Repository navigation
fix(skill): one frontmatter parser for skills and agents - #498
Merged
Merged
Conversation
Skill files had their own line parser, an older copy of the one agent files use, and it never got that one's fixes: - `name: "my-skill"` kept its quotes, so `/my-skill` did not find it; - `description: >` became the description `>`, and its indented lines (`for bugs: carefully`) became stray keys; - `file_patterns: ["*.rs"]` items kept their quotes and inline `[a, b]` lists were one item. Move the agent parser to whycodes_skill::frontmatter and use it in both places; the skill copy is removed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
mrnasil
enabled auto-merge (squash)
November 25, 2026 15:38
Merged
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.
Skill files had their own frontmatter parser. It was an older copy of the one agent files use, and it never got that parser's fixes:
name: "my-skill"kept its quotes, so/my-skilldid not find the skill.description: >was stored as the description>, and its indented lines (for bugs: carefully) became stray keys."*.rs"kept their quotes, and an inline[a, b]list was read as one item.The agent parser moves to
whycodes_skill::frontmatter(agentalready depends onskill), and both now use it. The skill copy is removed.One existing assertion encoded the bug, expecting
"\"*.rs\""as a file pattern; it now expects*.rs.Tests: the parser module covers quoted values,
>and|blocks, inline and-lists, and stray lines. A skill test reads a quoted name, a folded description and an inline list. All 18 agentcustom_agentstests still pass. On Linux (WSL), all 42 skill tests pass, andfrontmatter.rsandskill.rshave 100% line coverage.🤖 Generated with Claude Code