fix(skills): make media-use frontmatter valid YAML so skills add works#1709
Merged
Conversation
The `media-use` SKILL.md `description:` was an unquoted YAML scalar containing a mid-value `: ` (`...the full cascade: project cache...`). YAML 1.2 reads that as a nested mapping and the parse fails with "Nested mappings are not allowed in compact mappings". `skills add` aborts the entire install when any one skill fails to parse, so this single file blocked installing all 19 skills for everyone following the README's `npx skills add heygen-com/hyperframes`. - Replace the offending `: ` with ` — ` (keeps the plain-scalar style used by the other 18 skills; the description already uses `—` as a separator). - Add a frontmatter guard to scripts/lint-skills.ts that flags unquoted top-level scalars containing `: ` — the exact ambiguity — so this can't regress. No new dependency. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Fallow audit reportFound 2 findings. Details
Generated by fallow. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
npx skills add heygen-com/hyperframes— the install command in the README — fails for everyone:skills/media-use/SKILL.md'sdescription:is an unquoted YAML scalar containing a mid-value:(…handles the full cascade: project cache…). YAML 1.2 reads:as a nested mapping, so the parse throws. TheskillsCLI aborts the whole install when any single skill fails to parse — so this one file blocks installing all 19 skills for every user following the docs.Confirmed with the same parser the CLI uses (
yaml2.x): onlymedia-usebreaks; the other 18 parse fine.Fix
skills/media-use/SKILL.md— replace the offending:with—. Keeps the plain-scalar style of the other 18 skills (the description already uses—as a separator) and changes no meaning.scripts/lint-skills.ts— add a frontmatter guard that flags unquoted top-level scalars containing:(the exact ambiguity) so this can't regress. No new dependency.Verification
With
yaml2.9.0 against all 19 skills:media-use)media-use)The guard flags the original bad content and passes the fixed content — no false positives across the repo.
🤖 Generated with Claude Code