test(skills): check SKILL.md frontmatter parses as strict YAML

Merged
TJ
25d ago
+140-0

Adds tests/skills.rs, which parses the frontmatter of every .claude/skills/*/SKILL.md with a strict YAML parser. It also checks that name matches the skill directory and that description is a non-empty string.

Claude Code accepts frontmatter that isn't valid YAML, so a bad frontmatter only shows up when another installer (such as the Skills CLI) skips the skill. That happened to detail-bugs in #347.

Depends on #348. On current main this test fails on detail-bugs/SKILL.md (mapping values are not allowed in this context ... line 2 column 255), so Tests will be red until #348 merges. With #348's fix applied it passes.

yaml-rust2 is added as a dev-dependency only. serde_yaml is archived and serde_yml has a RustSec advisory, so either would trip the audit job.

šŸ¤– Generated with Claude Code