Repository navigation
fix(skills): pi no longer drops 16 skills — story tags above frontmatter delimiter (BUG-2026-08-06, issue #108) - #109
Merged
Conversation
…bove frontmatter delimiter)
…16 skills (BUG-2026-08-06) pi requires the frontmatter delimiter '---' at byte 0 of SKILL.md (dist/utils/frontmatter.js startsWith gate). 16 sources had # story: / <!-- story: --> tags above the delimiter, so pi returned no frontmatter, saw no description, and dropped the skill as 'description is required' (issue #108). - Move leading story tags inside the frontmatter block as YAML comments - validate-skill-yaml.py: scan sources + generated copies; new R1 rule (must start with '---'), wired into sync-skills.sh guard - skill-common.sh: parse_frontmatter / _okf skip comment lines (tags inside frontmatter no longer leak into descriptions/lockfile/index) - remove stray .agents/skills/SKILL.md (empty name/description)
Tag position shift (line 1→2 for moved story tags) reflected in codebase-wiki; fresh golden suite report.
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
|
🎉 This PR is included in version 2.87.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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
pi (v0.82.0) reports
description is requiredat startup for 16 skills (audit-code, plan-work, develop-tdd, fix-bug, …). Reporter's issue: #108.Root cause (verified in pi source via opensrc): pi's frontmatter extractor (
src/utils/frontmatter.ts) requires the opening delimiter---to be the first characters of SKILL.md:16 source
skills/*/SKILL.mdfiles placed# story:/<!-- story: -->traceability tags above the delimiter → pi sees no frontmatter → nodescription→ skill silently dropped. In-repo this was masked because the generated.pi/skills/copies (viasrp-engine.py) strip the tags; every external install (symlinked sources) hits it.Fix
# story:YAML comments (converted<!-- -->form). Valid YAML for pi, PyYAML, and the bundledsimple_yaml.pyfallback;trace-stories.shgreps the whole tree so traceability is unaffected; generated artifacts stay byte-identical (no churn).validate-skill-yaml.pynow scans sources + generated copies with a new R1 rule: file must start with---at byte 0. Wired into thesync-skills.shpost-generation guard → regression-proof.skill-common.sh:parse_frontmatter/parse_frontmatter_okfnow skip comment lines (story tags inside frontmatter no longer leak intoskills-lock.jsondescriptions or the search index)..agents/skills/SKILL.md(empty name/description — the 17th warning).Verification
.pi/,.cursor/,.gemini/trees byte-identical after synctrace-stories.sh --strictPASS,check-skill-linksPASS,check-skill-sizePASSnpm run compliance: 98/98 PASSspecs/bugs/BUG-2026-08-06-pi-drops-skills-frontmatter.md