fix(skills): fix sync.sh parsing frontmatter delimiter as list item

- Add check for `---` inside getline loop in extract_metadata
- Prevents YAML frontmatter delimiter from being parsed as action
This commit is contained in:
Adrián Jesús Peña Rodríguez
2026-01-21 18:09:06 +01:00
parent 9d56fb12b8
commit ee932249a1
5 changed files with 2 additions and 6 deletions

View File

@@ -52,8 +52,6 @@ When performing these actions, ALWAYS invoke the corresponding skill FIRST:
| Action | Skill |
|--------|-------|
| -- | `jsonapi` |
| -- | `prowler-commit` |
| Add changelog entry for a PR or feature | `prowler-changelog` |
| Adding DRF pagination or permissions | `django-drf` |
| Adding new providers | `prowler-provider` |

View File

@@ -13,8 +13,6 @@ When performing these actions, ALWAYS invoke the corresponding skill FIRST:
| Action | Skill |
|--------|-------|
| -- | `jsonapi` |
| -- | `prowler-commit` |
| Add changelog entry for a PR or feature | `prowler-changelog` |
| Adding DRF pagination or permissions | `django-drf` |
| Committing changes | `prowler-commit` |

View File

@@ -8,7 +8,6 @@ When performing these actions, ALWAYS invoke the corresponding skill FIRST:
| Action | Skill |
|--------|-------|
| -- | `prowler-commit` |
| Add changelog entry for a PR or feature | `prowler-changelog` |
| Committing changes | `prowler-commit` |
| Create PR that requires changelog entry | `prowler-changelog` |

View File

@@ -137,6 +137,8 @@ extract_metadata() {
# On multi-line list, only accept "- item" lines. Anything else ends the list.
line = $0
# Stop at frontmatter delimiter (getline bypasses pattern matching)
if (line ~ /^---$/) break
if (line ~ /^[[:space:]]*-[[:space:]]*/) {
sub(/^[[:space:]]*-[[:space:]]*/, "", line)
line = trim(line)

View File

@@ -18,7 +18,6 @@ When performing these actions, ALWAYS invoke the corresponding skill FIRST:
| Action | Skill |
|--------|-------|
| -- | `prowler-commit` |
| Add changelog entry for a PR or feature | `prowler-changelog` |
| App Router / Server Actions | `nextjs-15` |
| Building AI chat features | `ai-sdk-5` |