Repository navigation
Description
Severity: P1 · Found while triaging #173 · Related: #208 (channels ship different content)
Symptom
The pi package channel (package.json → "pi": { "skills": ["./.pi/skills"] }, i.e. pi install npm:bigpowers or packages: ["…/bigpowers"]) ships SKILL.md only. 38 of 80 skills reference bundled sibling files that are not there.
$ find skills -mindepth 2 -type f ! -name SKILL.md | wc -l
92 # scripts, REFERENCE.md, HEURISTICS.md, templates, fixtures
$ find .pi/skills -mindepth 2 -type f ! -name SKILL.md | wc -l
0
$ find .agents/skills -mindepth 2 -type f ! -name SKILL.md | wc -l
0
Concrete breaks in the loaded skill text:
skills/deepen-architecture/SKILL.md:20→[LANGUAGE.md](LANGUAGE.md);skills/deepen-architecture/also holdsDEEPENING.md,INTERFACE-DESIGN.md,LANGUAGE.md. Absent from the package.skills/deepen-architecture/SKILL.md:37→[CONTEXT-FORMAT.md](../model-domain/CONTEXT-FORMAT.md)— cross-skill link, absent.skills/audit-code/SKILL.md:109→audit-code/HEURISTICS.md— absent.skills/extract-design/SKILL.md:20-29→node extract-design/scripts/extract.js—skills/extract-design/scripts/(4 files) absent.skills/align-grid/→scripts/grid_tokens.py,scripts/verify_grid.jsabsent.
The model is told to run or read files that do not exist, so it improvises. The symlink channel (install.sh → skills/<name>) ships them correctly, so the same skill behaves differently depending on how it was installed — the core problem in #208.
Root cause
scripts/lib/sync-render.sh:57-68 (render_pi_skill) writes a single file:
render_pi_skill() {
mkdir -p "$PI_SKILLS/$IR_NAME"
{ echo "---"; … echo "$IR_BODY"; } > "$PI_SKILLS/$IR_NAME/SKILL.md"
}No asset copy, no symlink of siblings. render_agents_skill / the Antigravity target behave the same. render_okf_concept and .cursor/rules renderers are single-file by design, but .pi/skills is declared as the shippable package payload in package.json, so single-file is wrong there.
Fix direction
- Make
.pi/skills/<name>/a full mirror: copy (or symlink) every sibling file and every nested directory alongsideSKILL.md. Same for.agents/skills. - Add a sync-post assertion: for each rendered skill dir,
file count == source file countand every relative link target inSKILL.mdresolves. Fails the build otherwise. - Add the assertion to
run-verification-gates.shand to the host conformance harness (epic: host conformance harness — no host-visible warning may pass CI #213), because this defect is invisible at startup — the skill loads fine and only fails at use time.
Verify
bash scripts/sync-skills.sh
diff -rq skills .pi/skills # no "Only in skills/…" lines
python3 - <<'PY' # every markdown link target exists
# resolve relative links in each .pi/skills/*/SKILL.md
PY
pi # deepen-architecture / audit-code / extract-design still loadWhy no gate caught it
validate-skill-yaml.py only parses frontmatter; audit-catalog.sh only counts directories; trace-stories.sh only greps tags. Nothing compares rendered payload with source payload.
Activity
fix(skills): YAML comments for frontmatter story tags, and a gate tha…
fix(dist): ship bundled skill assets in rendered payloads (#223)
chore(release): 2.93.6 [skip ci]
github-actions commentedon Nov 6, 2026
🎉 This issue has been resolved in version 2.93.6 🎉
The release is available on:
Your semantic-release bot 📦🚀