lukasrepublic/agentic-foundry/cut-release
Claude Code and agent skill by lukasrepublic/agentic-foundry
- community
Checking that the SKILL.md file is still in the repository.
Cut an agentic-foundry release as a guarded playbook (/foundry:cut-release). Encodes the hand-run cut procedure as a loop whose EXIT GATE is the existing acceptance verdict — verifies the ordered preconditions (plugin.json version, CHANGELOG section, clean tree, and the candidate tree's own test suite; note the preflight TOLERATES a marketplace.json catalogue version left at the preceding release but the acceptance gate HARD-STOPS on it, so the catalogue bumps in R and only source.sha defers to the re-pin commit R2), refuses to emit any publish plan until run_acceptance returns pass, and only afterward emits the gotcha-correct publish plan (re-pin marketplace source.sha to the release commit → annotated tag on the re-pin commit → machine-verify the tag → push, never force) WITHOUT pushing. Trigger when the operator is cutting/releasing a version — "cut a release", "release v0.6.1", "/foundry:cut-release", "ship the release".
Install
npx vskill@latest install lukasrepublic/agentic-foundry/cut-releaseSKILL.md
The same SKILL.md was published earlier as lukasrepublic/agentic-foundry/cut-release.
/foundry:cut-release — the cut-release playbook
The FIRST foundry playbook (a guarded, looping skill — task-triggered, loop held by an EXIT GATE, floors orthogonal; see docs/TERMINOLOGY.md). It turns the release-cut procedure — which lived only as memory-prose and was hand-run ~6× (every recurring gotcha was that procedure failing) — into a self-contained, gated loop driven by scripts/foundry-cut-release.py.
Its EXIT GATE is the EXISTING acceptance verdict (foundry-release-acceptance.run_acceptance) — the only gate this script invokes; it reimplements no gate logic. The closure derivation (foundry_release.py) is upstream prep the operator runs before the cut, not invoked here. It adds no new floor and never runs `git tag` / `git push` — it emits the publish plan as data and the operator executes it.
Retired: the wiring-pin migrate. This loop once named afoundry-wiring-hash.pywiring-pin migrate step, re-checked transitively via DOCTOR-GREEN. That mechanism —scripts/foundry-wiring-hash.py, the.foundry/wiring-hash.pinfile, and the doctor's wiring-hashcheck — was retired; the currentfoundry-doctor.py(a thin 5-checkprobe,skills/doctor/SKILL.md) carries no wiring-hash check to re-check. What carries the loadtoday is thefoundry-release-acceptancegate (run_acceptance) this loop's EXIT GATE alreadycalls. Seeskills/release/SKILL.md's "Gate-wiring pin & manifest" tombstone for the fuller history.
The playbook shape (the standard template — see docs/TERMINOLOGY.md §6)
- TRIGGER — the operator is cutting/shipping a release (description-matched; no global pointer).
- ENGINE —
deterministic-seam-drive: ordered prep-check → machine gate → emit plan. - EXIT GATE —
foundry-release-acceptance.py run_acceptance(tree) == pass(the artifact-sha-bound
verdict). The loop is NOT "done" until the gate is green; nothing reaches tag/push before that.
- FLOORS TOUCHED — none new. The orthogonal floors (front-authorization, the per-atom merge floor,
the acceptance HARD-STOP) already fired upstream; cut-release only sequences and refuses-until-green. It never folds a floor into a step.
The loop
The READY plan's tail carries the ER-reconciliation backstop — see below.
Procedure
- Pick the version (the operator picks it — there is no inference) and make sure the prep is staged:
bump plugin.json alone → bump the install pin's remaining binding (below) → stage BOTH npm packages (next paragraph) → write the ## vX.Y.Z CHANGELOG section → commit (the release commit R).
> TWO npm packages ship on a `v*` tag, not one. npm-publish.yml runs two sequential jobs: > publish-cli (cli/ → create-agentic-workspace, the scaffolder) and then > publish-cli-update (cli-update/ → update-agentic-workspace, the upgrader), the second > needs: the first and polls the registry for its dependency before installing. Staging a > release means staging both, and they move together in R — only source.sha defers to R2: > > | file | field | commit | rule | > |---|---|---|---| > | .claude-plugin/plugin.json | version | R | the plugin version itself | > | .claude-plugin/marketplace.json | version, source.ref | R | not R2 — see the trap below | > | .claude-plugin/marketplace.json | source.sha | R2 | the ONLY field that defers; it names R, which does not exist yet | > | docs/ + cli/permission-floor.json | generated_for_plugin_version | R | both, byte-identical | > | README.md | the **Status: vX.Y.Z.** line | R | asserted equal to plugin.json's version | > | cli/package.json | foundry.plugin_version | R | asserted EQUAL to marketplace.json's version, so it follows the catalogue | > | cli/package.json | version | R | the scaffolder tarball; a row in TARBALL_VERSION_BY_PLUGIN_PIN, keyed by plugin_version | > | cli-update/package.json | dependencies.create-agentic-workspace | R | exactly cli/package.json's new version | > | cli-update/package.json | version | R | must ALSO move; a row in CLI_UPDATE_VERSION_BY_PIN | > > ### ⚠ THE TRAP: the preflight and the acceptance gate disagree about the catalogue bump > > Read this before staging anything, because two of this playbook's own gates give opposite > answers and only one of them is a HARD-STOP. > > - The preflight tolerates marketplace.json sitting at the immediately-preceding release > and says in as many words that "the bump may be deferred to the re-pin commit R2". > - The acceptance gate — claude plugin tag --dry-run, run inside run_acceptance — then > REFUSES exactly that state: "Version mismatch: plugin.json says X but > .claude-plugin/marketplace.json plugins[0].version says Y … update the marketplace entry > before tagging." That is a HARD-STOP; the cut cannot reach READY. > > So the tolerance is not usable. marketplace.json's version and source.ref bump in > R, with everything the equality chain drags along: cli/package.json's plugin_version > (asserted equal to the catalogue version by > test_the_plugin_pin_block_matches_the_marketplace_manifest, no R-to-R2 tolerance), then its > version via TARBALL_VERSION_BY_PLUGIN_PIN, then cli-update's pin and version via > CLI_UPDATE_VERSION_BY_PIN. `source.sha` is the only field that can defer to R2 — it names > R, which does not exist until R is committed, and that is the whole reason R2 exists. > > The v1.10.0 cut lost two full preflight runs (~12 minutes each) rediscovering this: first by > staging the CLI pins in R against the deferred catalogue (suite red), then by deferring the > catalogue as this playbook said (acceptance HARD-STOP). Stage as the table says and neither > State the trade honestly: deferring `source.sha` does NOT preserve AC-ILU-11's property — it > is the field that breaks it. What it preserves is only the weaker, unavoidable "never pin a > commit that does not exist yet", since source.sha names R. Between R and R2, main's > catalogue advertises the new version while pinning the PREVIOUS release's tree, so an adopter > resolving tagless in that window installs the previous code labelled as the new version — and > sha outranks ref in resolution. It is sticky: R2 moves only sha, and manifestRefreshed > needs BOTH version and sha to move, so their next refresh reports already current. > `main`'s `ci` is RED for the whole window — foundry_main_catalogue.py runs on push-to-main > and exists to convict exactly this state; the workflow scopes it to push-only because the > window is legitimate. That red is the window reporting itself, not a defect to fix in the gate. > So: land R and R2 back to back. Every minute of that window is an adopter-visible > mislabelled install. The window is not new — v1.9.1 had it too — but nothing in this playbook > said so before. > > Why `cli-update`'s own version must move whenever its pin does. The publish workflow skips > a version already on the registry. update-agentic-workspace@<old> is published with the > previous dependency baked in, so bumping only the pin leaves the registry serving an upgrader > that installs the previous shared modules — a fully green release delivering the fix to nobody. > On a release that first introduces a shared module it is worse: the published pin resolves to a > version that does not contain it, and npx update-agentic-workspace@latest installs and then crashes > on import. > > Both tables live in tests/test_bootstrap_cli.py and both refuse an unrecorded pin, so the > preflight suite names this rather than trusting you to remember it. Add each row deliberately, > with the one-line reason — that is the point of a table over a diff.
> RETIRED — this paragraph used to say `marketplace.json` does not bump in R. It claimed the > version and source.ref bump moved to R2 alongside source.sha, on the AC-ILU-11 reasoning > that the default branch must never advertise a version its own pinned commit does not carry. > No cut has ever done that, because the acceptance gate refuses it (the trap above), and > v1.9.1's own R bumped version + ref while leaving sha at the previous release's commit — > exactly what step 1's table now prescribes. The text is kept as a tombstone because it is > quotable and was believed; do not restore it. test_manifests_agree > (tests/test_docs_claims.py) tolerates the R-to-R2 lag and still refuses a marketplace.json > that gets AHEAD of plugin.json or whose source.ref names a version it does not itself carry.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/cut-release/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 3
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/lukasrepublic/agentic-foundry/cut-release)