Repository navigation
fix(skills): YAML comments for frontmatter story tags, and a gate that rejects what pi rejects - #221
Merged
Merged
Conversation
pi parses SKILL.md frontmatter with the yaml package, where uniqueKeys is on by default. A '<!-- story: eNNsNN -->' line inside the --- block is a mapping entry, not a comment: two of them repeat the key and the block throws 'Map keys must be unique', so pi drops the skill entirely. 22 sources carried the form (43 markers, 2 of them with several ids on one line); of those, the ones with 2+ markers were dropped: audit-code, craft-skill, deepen-architecture, develop-tdd, gate-trace, plan-work, request-review, run-benchmark, stocktake-skills, validate-fix. Frontmatter tags are now '#' comments; body tags keep the HTML form, which is legal below the closing delimiter. Verified with pi 1.5.0's own parser: 80/80 sources parse, frontmatter keys are name, description, model, effort, phase. Refs #173
PyYAML accepts duplicate keys last-wins and the docstring allowed '<!-- story: -->' inside the block, so the validator reported PASS on 160 files while pi rejected 10 of them. Add two dependency-free structural rules that fire even with the bundled simple_yaml fallback: R4 no HTML comment inside the frontmatter block R5 no duplicate top-level key New tests/test-skill-frontmatter-strict.sh drives the real validator over throw-away trees (reject R4, reject R5, accept '#' comments, accept body HTML comments, repository clean) and is wired into the golden gate suite. On the pre-fix tree the new rules report 22 violations across 22 files; on this branch they pass. Refs #207
github-actions Bot
pushed a commit
that referenced
this pull request
Nov 6, 2026
## [2.93.4](v2.93.3...v2.93.4) (2026-11-06) ### Bug Fixes * **skills:** YAML comments for frontmatter story tags, and a gate that rejects what pi rejects ([#221](#221)) ([28110b8](28110b8)), closes [#173](#173) [#207](#207) [#173](#173) [#207](#207) [208-#212](https://github.com/208-/issues/212) [218-#220](https://github.com/218-/issues/220)
|
🎉 This PR is included in version 2.93.4 🎉 The release is available on: Your semantic-release bot 📦🚀 |
danielvm-git
added a commit
that referenced
this pull request
Nov 6, 2026
The bug batch shipped through PRs #221-#227 and the trace-worktrees fix #203, but the records stayed open; two omp defects (#119, #189) were fixed in code without the record updated, and pi-scripts-provisioning was fixed by PR #117. Record the evidence and regenerate the registry. Remaining open: cli-nontty-silent-noop (parked #201), dev-dependency-advisories (accepted: dev-only), story-verify-e58-eval-flake (epic done, flake not reproduced).
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.
What this fixes
Two defects that are the same failure seen from the artifact and the gate.
#173 — pi drops 10 skills. pi 1.5.0 parses
SKILL.mdfrontmatter with theyamlpackage (uniqueKeyson by default). A<!-- story: eNNsNN -->line inside the---block is a mapping entry, not a comment, so a second marker repeats the key and the whole block throwsMap keys must be unique— pi discards the skill. 22 sources carried the form (43 markers); the 10 with 2+ markers were dropped on every install: audit-code, craft-skill, deepen-architecture, develop-tdd, gate-trace, plan-work, request-review, run-benchmark, stocktake-skills, validate-fix. Frontmatter tags are now#comments; body tags keep the HTML form, which is legal below the closing delimiter.#207 — the gate could not see it.
validate-skill-yaml.pyused PyYAML (duplicate keys last-wins) and its docstring allowed<!-- story: -->inside the block, so it reportedPASS 160/160while pi rejected 10 files. Added two dependency-free rules that also fire with the bundledsimple_yamlfallback: R4 no HTML comment inside the block, R5 no duplicate top-level key.Evidence
Validator against the pre-fix tree (
git archive HEAD skills, before the data commit):After the fix, with pi 1.5.0's own parser (
require("yaml").parsefrom the installed host):New
tests/test-skill-frontmatter-strict.sh(5 checks, wired into the golden suite):Gates
trace-stories --strict0 (green).npm run compliance0,bash scripts/run-verification-gates.sh57/57 (the new gate included),trace-stories --strict0..pi/skills,.cursor/rules,.gemini/extensions/bigpowers,website/) are byte-identical: they render from body only, so no regeneration was needed.skills-lock.jsonrefreshed.model/effort/phaseare bigpowers extensions rather than spec keys — separating them is epic: move bigpowers metadata out of the Agent Skills frontmatter contract #215, out of this PR.Closes #173
Closes #207