Skip to content

fix(runtime): publish the Claude target as a skills-dir plugin - #46

Merged
thecolormaroun merged 1 commit into
mainfrom
fix/claude-plugin-runtime
Nov 6, 2026
Merged

thecolormaroun merged 1 commit into
mainfrom
fix/claude-plugin-runtime

Conversation

@thecolormaroun

Copy link
Copy Markdown
Owner

Problem

Claude Code has never loaded Stack's Claude runtime. It discovers skills only one level under ~/.claude/skills/ (~/.claude/skills/<name>/SKILL.md), but Stack publishes to ~/.claude/skills/stack/skills/<name>/SKILL.md.

A fresh headless session listed zero Stack skills. That includes the 17 Emil skills and blank-page from #44/#45, and the matt-*/david-* imports installed since August.

Fix

compile-runtime.py now writes .claude-plugin/plugin.json into the Claude target only. With that manifest, Claude Code loads the directory in place as a skills-dir plugin (stack@skills-dir). Every staged skill, command, and agent then appears as stack:<name>, e.g. stack:emil-animate, stack:blank-page, stack:ship.

  • Attested: the manifest is written before the attestation, so staged_tree_digest covers it.
  • Version: 1.0.0+<source commit>. The Claude post-switch verifier now checks it.
  • No new write surfaces: nothing touches a raw skill root, a marketplace, or the plugin store, so the maintenance safety boundary is unchanged.
  • Codex target unchanged.

Verification

  • python3 -m unittest discover -s tests: 493 tests, OK. The new test covers: Claude gets the manifest, Codex doesn't, and the attestation covers it.
  • claude plugin validate on the runtime with the manifest: success.
  • Throwaway HOME with ~/.claude/skills/stack as a symlink (the installer's real layout): claude plugin list shows stack@skills-dir ✔ loaded.
  • claude -p --plugin-dir <runtime>: the session loads 190 stack: entries.
  • The Phase 1 reconciliation was regenerated because it embeds the runtime targets. A classifier re-run is otherwise a no-op.

After merge

Reinstall with the documented bootstrap-stack.py --install command, then start a new Claude Code session.

🤖 Generated with Claude Code

Claude Code discovers skills only one level under ~/.claude/skills/, so
nothing in ~/.claude/skills/stack/skills/<name>/ has loaded since the
runtime was first published: a fresh session listed zero Stack skills.

The compiler now writes .claude-plugin/plugin.json into the Claude
target. Claude Code then loads the directory in place (through the
installer's symlink) as stack@skills-dir and exposes every staged skill,
command, and agent as stack:<name>. Verified with a throwaway HOME
(`claude plugin list` shows stack@skills-dir loaded through a symlink)
and with --plugin-dir (190 stack: entries).

- Manifest is written before attestation, so the staged tree digest
  covers it; version is 1.0.0+<source commit>.
- The Claude post-switch verifier checks the manifest name and version.
- No raw skill root, marketplace, or plugin store is touched.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-06T19:40:56.427400Z 3408aae PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@thecolormaroun
thecolormaroun merged commit 433824f into main Nov 6, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant