Skip to content

fix(dist): ship bundled skill assets in rendered payloads - #223

Merged
danielvm-git merged 2 commits into
mainfrom
fix/dist-render-assets-218
Nov 6, 2026
Merged

danielvm-git merged 2 commits into
mainfrom
fix/dist-render-assets-218

Conversation

@danielvm-git

Copy link
Copy Markdown
Owner

What this fixes — #218

The pi package channel (.pi/skills, shipped as package.json → pi.skills) and the Antigravity channel (.agents/skills) carried SKILL.md only — 0 of the 92 bundled files that 38 of 80 skills instruct the model to read or run.

Concrete breaks in the shipped payload:

  • skills/deepen-architecture/SKILL.md → [LANGUAGE.md](LANGUAGE.md) — LANGUAGE.md, DEEPENING.md, INTERFACE-DESIGN.md absent
  • skills/audit-code/SKILL.md → audit-code/HEURISTICS.md — absent
  • skills/extract-design/SKILL.md → node extract-design/scripts/extract.js — scripts/ (4 files) absent
  • skills/align-grid/ → scripts/grid_tokens.py, scripts/verify_grid.js — absent

Symlink installs ship the whole directory, so the same skill behaved differently depending on the install channel — the same class of problem as #208.

Change

  • New scripts/lib/adapter-assets.sh: mirror_skill_assets() copies every sibling of the source skill dir (markdown, nested dirs, dotfiles; never SKILL.md), and assert_skill_assets() verifies a rendered tree is complete.
  • scripts/adapters/pi.sh and scripts/adapters/agy.sh mirror assets on both render paths (mirror is non-fatal in a fixture tree; the post-sync assertion is the enforcement point).
  • scripts/lib/srp-engine.py passes BP_REPO_ROOT to the render driver so assets resolve from any cwd.
  • scripts/lib/sync-post.sh fails the build when .pi/skills or .agents/skills is missing an asset.
  • New tests/test-render-assets.sh (4 checks) wired into the golden suite.

Evidence

ok   T1 mirrors .md, nested dirs and dotfiles; skips SKILL.md
ok   T2 assertion passes when every sibling is present
ok   T3 assertion fails and names the missing asset
ok   T4 repository .pi/skills carries every bundled asset

find .pi/skills -mindepth 2 -type f ! -name SKILL.md | wc -l → 92 (was 0).

Gates

npm run compliance 0 · bash scripts/run-verification-gates.sh 58/58 · trace-stories --strict 0.

Note: .agents/skills is untracked/gitignored (it is the Antigravity render); it is regenerated by sync-skills.sh and now carries the assets too. The relocation of that render target is #209 (batch B3), so this PR keeps the current path and only fixes the payload.

Closes #218

render_skill copied nothing but SKILL.md, so the pi package channel
(.pi/skills) and the Antigravity channel (.agents/skills) shipped 0 of the 92
bundled files that 38 of 80 skills tell the model to read or run:
deepen-architecture/LANGUAGE.md, audit-code/HEURISTICS.md,
extract-design/scripts/extract.js, align-grid/scripts/*, templates, fixtures.
Symlink installs ship the whole directory, so the same skill behaved
differently per channel.

New scripts/lib/adapter-assets.sh mirrors every sibling of the source skill
directory (markdown, nested dirs, dotfiles) and exposes assert_skill_assets().
The pi and agy adapters call it on both render paths; srp-engine hands them
BP_REPO_ROOT so assets resolve from any cwd; sync-post now fails the build
when a rendered tree is missing an asset.

tests/test-render-assets.sh covers mirror contents, assertion pass/fail with a
named missing asset, and the live .pi/skills payload; wired into the golden
suite.

Refs #218
test-adapter-render.sh renders fixtures in a scratch tree with no
skills/<name> source directory. mirror_skill_assets must not fail the render
in that context — the post-sync assertion is the enforcement point, not the
adapter itself.

Refs #218
@danielvm-git
danielvm-git merged commit 7726939 into main Nov 6, 2026
7 checks passed
@danielvm-git
danielvm-git deleted the fix/dist-render-assets-218 branch November 6, 2026 19:07
github-actions Bot pushed a commit that referenced this pull request Nov 6, 2026
## [2.93.6](v2.93.5...v2.93.6) (2026-11-06)

### Bug Fixes

* **dist:** ship bundled skill assets in rendered payloads ([#223](#223)) ([7726939](7726939)), closes [#218](#218)
@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown

🎉 This PR is included 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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant