Skip to content

bug(dist): rendered .pi/skills and .agents/skills ship 0 of 92 bundled skill assets (scripts, REFERENCE.md, templates) #218

Closed

Description

@danielvm-git

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 holds DEEPENING.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.js absent.

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 alongside SKILL.md. Same for .agents/skills.
  • Add a sync-post assertion: for each rendered skill dir, file count == source file count and every relative link target in SKILL.md resolves. Fails the build otherwise.
  • Add the assertion to run-verification-gates.sh and 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 load

Why 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

  1. added
    bug
    quality
    on Nov 6, 2026
  2. added a commit that references this issue on Nov 6, 2026
  3. github-actions commented on Nov 6, 2026

    @github-actions

    🎉 This issue has been resolved in version 2.93.6 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugqualityreleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions