Skip to content

fix: quote four skill descriptions that break YAML frontmatter, add a CI check - #74

Merged
ziyiunity merged 1 commit into
mainfrom
fix/skill-frontmatter-yaml
Sep 22, 2026
Merged

ziyiunity merged 1 commit into
mainfrom
fix/skill-frontmatter-yaml

Conversation

@ziyiunity

@ziyiunity ziyiunity commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

What

Four skills have an unquoted description: whose text contains ": " (colon followed by a space). A strict YAML parser reads that as a nested mapping and fails with mapping values are not allowed here, so agents that parse the frontmatter drop the skill silently. Nothing is logged; the skill just isn't in the list.

Affected: ui, ui-imgui, physics-3d-collision, tilemap-ruletile-createfromsegment. ui is the routing entry point for the whole UI family, so its absence matters most.

Fix

Rewrite the four descriptions as folded block scalars (>-), the form optimize-text-mesh-pro and setup-multiplayer-services already use. The text is unchanged: the parsed value of each description is byte-identical to the old plain scalar, verified by parsing both.

Add scripts/check-skill-frontmatter.mjs and a Validate skills workflow that parses every skills/*/SKILL.md frontmatter with js-yaml (the parser Claude Code ships) and requires a non-empty name matching the folder and a non-empty description. Against main it reports exactly these four files; after this change all 31 pass.

Verify

npm install --no-save js-yaml@4
node scripts/check-skill-frontmatter.mjs skills

@Vivraan

Vivraan commented Sep 19, 2026

Copy link
Copy Markdown

Had to patch this myself on my fork 😂

@ziyiunity
ziyiunity merged commit a851b67 into main Sep 22, 2026
4 checks passed
@ziyiunity
ziyiunity deleted the fix/skill-frontmatter-yaml branch September 22, 2026 15:08
JonMUnity added a commit that referenced this pull request Sep 22, 2026
Conflicts were description-only in four skills. main's side is the
folded copy of the pre-shortening text (from #74, the squash of this
branch's own YAML-quoting fix), so this branch's shortened
descriptions win in all four.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants