Repository navigation
Description
Description
Ship a devkit Claude Code plugin that packages state-aware slash-command skills for adopting devkit, operating the devkit release train, and keeping a consumer in sync with devkit. The plugin is versioned with devkit (so skills cannot drift from the workflows they drive) and distributed through the private marketplace already proposed in #927.
The plugin is a thin operator surface, not a re-implementation: every skill wraps the canonical devkit verbs (install.sh, just prepare-release, just publish-candidate, just finalize-release, just promote-release, just abandon-release, just prepare-hotfix, scripts/sync_manifest.py) and starts with a read-only state lookup so an agent cannot walk into a foot-gun (another RC open, a draft Release live, dev diverged from main, tag ruleset in the way, missing Apps/secrets).
Problem Statement
Adopting devkit and running its release train are procedural workflows with a large, learnable surface: install.sh flags (--mode, --workflow, --force, --version, --org), the .vig-os manifest keys (DEVKIT_VERSION, DEVKIT_WORKFLOW, DEVKIT_TAG_PREFIX, DEVCONTAINER_VERSION), the gitflow-vs-trunk branch topology, the six-verb release cycle, the two repo-owned extension seams (prepare-release-extension.yml, release-extension.yml), the release-neutral lane, the hotfix lane cut from main, the "publishing burns the tag name" immutable-releases hazard (#1301), the legacy-tag hazard when discovering RC numbers, the required GitHub Apps (RELEASE_APP_*, COMMIT_APP_*), and the promote-time cross-repo validation gate.
Concrete evidence this is a real cost, not theory:
- tessera adoption was toolchain-only. chore(ci): adopt the vigOS devkit scaffold (toolchain only, no release train) tessera#442 (merged 2026-09-24) adopts the scaffold without the release train because the train's cost was not legible. The full-train question is deferred to Decide: retire release-plz for the vigOS devkit release train, or stay and document why tessera#441, which enumerates the six blockers a human had to compile by hand (version-series decision, cargo-dist ↔
release-publish.ymlseam collision, changelog-model habit change, App/secret rotation, legacy-tag hazard, first-promote bootstrap). An informed skill would have surfaced that list from the state, not from a person re-reading the docs. - The Rust pack (Rust pack: L1/L4/L7 never shipped — the pack cannot be adopted cold #1496, Smallest denominator, not the sum: stop shipping speculative defaults to every Rust consumer #1519) has never been adopted cold — the L7 template that would make a Rust repo adoptable in one step was never shipped, so every new Rust consumer hand-writes
flake.nix,rust-toolchain.toml,Cargo.tomllint tables,justfile.project, and can silently green a build of nothing. An/devkit-adoptthat inspects the repo (languages present, existing CI, existing release tooling) and proposes the manifest + diff makes this failure mode visible before it ships. - Release-train foot-guns are already documented one-by-one as separate issues that all shape the same rules: [FEATURE] promote-release: refuse to move :latest to a lower version #1626 (
:latestnever moves backwards), [FEATURE] prepare-release: refuse while a hotfix release branch is in flight #1627 (refuseprepare-releasewhile a hotfix is in flight), chore: release 1.5.0 #1301 / chore: release 1.5.1 #1311 (published-release tombstoning), Upgrade staleness is unobservable on both axes: the auto-bump grep misses most consumers, and scaffold-drift compares the pin to itself #1497 (upgrade staleness unobservable on both axes), [BUG] Switching trunk -> gitflow leaves the dev-branch guard stripped from the preserved .pre-commit-config.yaml #1642 (workflow-model switch leaves stale guards), Release-neutral lane: merge to main without cutting a release #1676 (release-neutral lane). Each of these is a state check a skill should run before dispatching, not a lesson each consumer re-learns. - Skills today are copied per-repo and drift (see [DISCUSSION] Standardize org Claude config via a plugin + private marketplace (retire per-repo .claude/ copies) #927's audit). Distributing them through the same marketplace fixes drift for both the org-Claude payload and the devkit-operator payload with one mechanism.
The gap is not features — it is an operator surface that knows the current state.
Proposed Solution
Distribution
- Add a
.claude-plugin/tree tovig-os/devkit(co-located with the workflows it drives, so a devkit release cannot ship without also releasing the matching skills):.claude-plugin/ plugin.json # id: "devkit", version = devkit's own skills/ devkit-adopt/SKILL.md devkit-status/SKILL.md devkit-release-prepare/SKILL.md devkit-release-candidate/SKILL.md devkit-release-finalize/SKILL.md devkit-release-promote/SKILL.md devkit-release-abandon/SKILL.md devkit-release-hotfix/SKILL.md devkit-release-neutral/SKILL.md devkit-upgrade/SKILL.md devkit-pack-rust/SKILL.md # extension-specific; one per pack commands/ # optional slash-command wrappers hooks/ # optional; e.g. block release-train verbs on a dirty tree - Register the plugin in the marketplace repo agreed under [DISCUSSION] Standardize org Claude config via a plugin + private marketplace (retire per-repo .claude/ copies) #927 (proposed
vig-os/org-config). Consumers already run/plugin marketplace add vig-os/org-config+/plugin install; thedevkitplugin ships alongside the org-Claude plugin, not instead of it. - Versioned with devkit itself.
plugin.jsonversion = devkit version. A consumer pinned toDEVKIT_VERSION=1.10.0gets the[email protected]skills.devkit-upgradebumps both together. Skills cannot describe a verb that does not exist in the consumer's pinned scaffold.
Skill catalogue
Every skill starts with a read-only state lookup (dry-run by default, apply only after explicit confirmation). Section 1 of every skill is that lookup; no skill mutates before it runs.
-
/devkit-adopt— inspect the target repo (languages via file globs, existing CI under.github/workflows/, existing release tooling like release-plz / release-please / cargo-dist / semantic-release, existing.claude/, existing pre-commit config, existing Nix flake), map devkit's scaffold and all packs/extensions (Python template, Rust pack per Rust pack: L1/L4/L7 never shipped — the pack cannot be adopted cold #1496 when it ships, guardrails module, docs capability, workflow-mode gitflow-vs-trunk) to the repo's actual needs, propose theinstall.shinvocation + resulting.vig-osmanifest + the concrete diff, and flag conflicts (release-plz ↔release-publish.yml, cargo-dist ↔release-publish.ymlper tessera#441 blocker 2, existingflake.nixalready present,.gitignorecollisions per [BUG] Scaffold .gitignore is Python-only: blanket dist/ breaks JS Action repos, Node ignores dropped, not upgrade-persistent #1024, CodeQL matrix collision per [BUG] Scaffold codeql.yml: hardcoded python matrix + conflicts with GitHub default code-scanning setup #1025). Never auto-applies. Ends by handing the operator the exactinstall.shline and the follow-up checklist. -
/devkit-status— pure read-only state, no arguments. Reports:- Pinned
DEVKIT_VERSIONin.vig-osvs latest tag onvig-os/devkit; - Scaffold drift (delegates to devkit's own drift check per Upgrade staleness is unobservable on both axes: the auto-bump grep misses most consumers, and scaffold-drift compares the pin to itself #1497);
- Open release PRs (any
release/X.Y.Zbranch, PR draft/ready state); - Open/draft RCs: which
X.Y.Z-rcNtags exist for the in-flight base version, highest N, whether the tag has a linked (draft or published) GitHub Release; - Pending promotes: has the cross-repo smoke-test gate published a final Release for the tag yet? (
promote-release.yml's precondition); - Hotfix lane state: is a
release/*branch cut frommainin flight? ([FEATURE] prepare-release: refuse while a hotfix release branch is in flight #1627 blocksprepare-releasewhen one is); DEVKIT_WORKFLOW(gitflow/trunk) and whether the repo's branch topology matches;- Legacy-tag hazards: tags outside the current version series that sort above it lexically (the trap tessera#441 flags in blocker 4);
- Required Apps/secrets present:
RELEASE_APP_CLIENT_ID/RELEASE_APP_PRIVATE_KEY,COMMIT_APP_CLIENT_ID/COMMIT_APP_PRIVATE_KEY; - GHCR immutable-releases setting on the repo (informational; chore: release 1.5.0 #1301 hazard).
- Output is stable text a human can scan and an agent can grep — this is the skill every other release-train skill delegates to as step 1.
- Pinned
-
/devkit-release-prepare X.Y.Z— pre-flight/devkit-status, refuse (with reason) if any RC is open on a different base version, a hotfix release is in flight ([FEATURE] prepare-release: refuse while a hotfix release branch is in flight #1627), the working tree is dirty, ordevis behindmain. Then dispatchjust prepare-release X.Y.Z. End by verifying the release PR opened anddev's Unreleased reset. -
/devkit-release-candidate— infer version from the currentrelease/X.Y.Zbranch, refuse if the PR isn't draft or CI isn't green, then dispatchjust publish-candidate. Verify theX.Y.Z-rcNtag pushed and the cross-repo smoke-test dispatch fired. Print the RC number the operator now has to accept downstream. -
/devkit-release-finalize— refuse if any candidate is still in progress or if the PR is still draft (marking ready is a human act). Dispatchjust finalize-release. Verify a draft GitHub Release was opened for the tag and stop — publishing is the human's single approval, per RELEASE_CYCLE.md phase 5. -
/devkit-release-promote— refuse if the downstream smoke-test hasn't published a final Release for the tag, if:latestwould move backwards ([FEATURE] promote-release: refuse to move :latest to a lower version #1626), or if the draft Release for this version was already deleted (the tombstone trap of chore: release 1.5.0 #1301). Dispatchjust promote-release. Verify:latestmoved, the draft Release published, the release PR merged, and RC cleanup ran. -
/devkit-release-abandon— refuse if the Release is already published (tombstone risk) or the PR is out of draft. Dispatchjust abandon-release. Verify the release branch was cleaned up anddev's Unreleased was restored. -
/devkit-release-hotfix X.Y.Z— refuse if a regular-trainrelease/*is in flight ([FEATURE] prepare-release: refuse while a hotfix release branch is in flight #1627 mirror), or if the trunk-mode repo would take the wrong copy-exclude path ([FEATURE] Port the hotfix release lane to the workspace scaffold (copy-exclude under trunk) #1625). Dispatchjust prepare-hotfix. Handoff to/devkit-release-candidateand/devkit-release-finalize. -
/devkit-release-neutral— the merge-to-main-without-a-release lane (Release-neutral lane: merge to main without cutting a release #1676). Same state pre-flight; verifies the release-neutral guard passes. -
/devkit-upgrade— dry-runinstall.sh --force --version <latest>on the consumer, show the diff, flag.vig-oskey changes and workflow-model rendering changes, then apply on confirmation. Delegates to/devkit-statusfor drift observability. -
/devkit-pack-rust(and one per pack) — extension-specific: check L1/L4/L7 presence per Rust pack: L1/L4/L7 never shipped — the pack cannot be adopted cold #1496,justfile.project'stest/lintrecipes actually compile something (the silent-green trap Rust pack: L1/L4/L7 never shipped — the pack cannot be adopted cold #1496 opens with),deny.toml/clippy.toml/rustfmt.tomlownership vs guardrails (guardrails as a capability module — the semantic-gate half of #1400 #1488),release-extension.ymlwired for crates.io +cargo set-version --workspace(tessera#441 blocker 2, once resolved).
Principles
- State-lookup-first. Every skill's step 1 is
/devkit-status(or its skill-scoped equivalent). No mutation without a fresh state read in the same run. - Dry-run by default. Adoption and upgrade never mutate without an explicit second-turn confirmation. Release-train verbs echo the exact
justline and the state they observed before dispatching. - Skills wrap canonical workflows. Never re-implement release logic in a skill; only call the
justverbs and read the state. If a workflow is missing a knob, the fix is a devkit issue against the workflow, not a workaround in the skill. - Versioned with devkit. Plugin version = devkit release. Cross-version drift is impossible by construction.
- Distributed via the [DISCUSSION] Standardize org Claude config via a plugin + private marketplace (retire per-repo .claude/ copies) #927 marketplace. One
/plugin marketplace add, one update path.
Alternatives Considered
- Prose in
docs/RELEASE_CYCLE.mdonly (status quo). Works for a careful human; every automated agent has to re-derive the state each time and gets it wrong (see the six-blocker list a human had to compile for tessera#441). - Per-repo
.claude/skills/copies. This is the drift model [DISCUSSION] Standardize org Claude config via a plugin + private marketplace (retire per-repo .claude/ copies) #927 exists to retire. - A separate
vig-os/devkit-pluginrepo. Splits the version pin from the workflows the plugin drives — the exact drift [DISCUSSION] Standardize org Claude config via a plugin + private marketplace (retire per-repo .claude/ copies) #927 is trying to eliminate. Co-locating invig-os/devkitand shipping through the marketplace gives distribution without splitting the SSoT. - Fold devkit skills into the org-config plugin ([DISCUSSION] Standardize org Claude config via a plugin + private marketplace (retire per-repo .claude/ copies) #927). Possible, but the org-Claude plugin is language/workflow-neutral by design; devkit-operator skills only make sense to a devkit-adopting repo. Two plugins in one marketplace is the cleaner factoring.
Additional Context
- Distribution vehicle: [DISCUSSION] Standardize org Claude config via a plugin + private marketplace (retire per-repo .claude/ copies) #927 (private marketplace; devkit plugin ships alongside the org-Claude plugin proposed there).
- Adjacent motivation: chore(ci): adopt the vigOS devkit scaffold (toolchain only, no release train) tessera#442 (merged: scaffold adopted without the release train) and Decide: retire release-plz for the vigOS devkit release train, or stay and document why tessera#441 (open: release-train migration decision — the six-blocker list is exactly the state a
/devkit-adopt+/devkit-statuspair would report). - Extension-pack motivator: Rust pack: L1/L4/L7 never shipped — the pack cannot be adopted cold #1496 (Rust pack L1/L4/L7 never shipped) and Smallest denominator, not the sum: stop shipping speculative defaults to every Rust consumer #1519 (smallest-denominator defaults) —
/devkit-pack-rustis the operator surface both issues have been missing. - Release-train foot-gun issues the skills encode: [FEATURE] promote-release: refuse to move :latest to a lower version #1626, [FEATURE] prepare-release: refuse while a hotfix release branch is in flight #1627, chore: release 1.5.0 #1301 / chore: release 1.5.1 #1311, Upgrade staleness is unobservable on both axes: the auto-bump grep misses most consumers, and scaffold-drift compares the pin to itself #1497, [BUG] Switching trunk -> gitflow leaves the dev-branch guard stripped from the preserved .pre-commit-config.yaml #1642, Release-neutral lane: merge to main without cutting a release #1676, [FEATURE] Port the hotfix release lane to the workspace scaffold (copy-exclude under trunk) #1625.
- Claude Code plugin format reference:
.claude-plugin/plugin.json,skills/<name>/SKILL.md,commands/,hooks/, marketplace via/plugin marketplace add <owner>/<repo>+/plugin install.
Impact
- Who benefits: every devkit consumer (adoption cost drops from re-reading
docs/RELEASE_CYCLE.mdto running/devkit-adopt), every agent (release-train mutations can be gated on read-only state, not on prompt discipline), the devkit maintainers (one place to encode a new release-train rule so every consumer picks it up on the next/devkit-upgrade). - Compatibility: additive. No change to
install.sh, no change to the six release verbs, no change to.vig-ossemantics. Consumers who don't install the plugin see zero behavior change. - Rollout: pilot on
vig-os/devkititself (dogfood: run the plugin against devkit's own release train, which is the reference implementation), then a second Rust-consumer pilot when/devkit-pack-rusthas something to say.
Acceptance Criteria
-
.claude-plugin/plugin.jsoninvig-os/devkit, iddevkit, version = devkit release version. -
skills/devkit-status/SKILL.mdexists and, run againstvig-os/devkititself, correctly reports: pinned version, drift, open release PRs, open RCs, pending promotes, workflow model, legacy-tag hazards, App/secret presence. - Every
skills/devkit-release-*/SKILL.mdstarts with adevkit-statusstep and refuses cleanly (with a reason and an offered next-step verb) on every state that would foot-gun the correspondingjustverb — including at least: another RC open on a different base, a draft Release deleted (tombstone),:latestregression ([FEATURE] promote-release: refuse to move :latest to a lower version #1626), hotfix-in-flight collision ([FEATURE] prepare-release: refuse while a hotfix release branch is in flight #1627), dirty working tree. -
skills/devkit-adopt/SKILL.mdproduces a diff-only proposal for a repo with no.vig-os, and flags a release-tool collision when the repo already ships release-plz or cargo-dist. -
skills/devkit-upgrade/SKILL.mdis a dry-run wrapper overinstall.sh --force --version <latest>and refuses to run through a dirty tree. - At least one extension-pack skill (
devkit-pack-rust) exists as a stub tied to Rust pack: L1/L4/L7 never shipped — the pack cannot be adopted cold #1496, so the extension seam is proven with more than one pack once Rust ships. - Plugin appears in the marketplace repo agreed under [DISCUSSION] Standardize org Claude config via a plugin + private marketplace (retire per-repo .claude/ copies) #927 and installs via
/plugin marketplace add ... && /plugin install devkit. -
plugin.json's version is bumped in the same release PR as any workflow change underdocs/RELEASE_CYCLE.md's six verbs (drift-prevention gate).
Open Questions
- Marketplace home. [DISCUSSION] Standardize org Claude config via a plugin + private marketplace (retire per-repo .claude/ copies) #927 leaves
vig-os/org-configvs a dedicatedvig-os/claude-pluginopen. The devkit plugin inherits whichever answer [DISCUSSION] Standardize org Claude config via a plugin + private marketplace (retire per-repo .claude/ copies) #927 lands on; no independent decision needed here. - Command wrappers vs skills. Ship every skill also as a
commands/<name>.mdslash-command wrapper (belt-and-suspenders discovery), or skills only? Preference: skills only, plus oneREADME.mdin the plugin listing all/devkit-*slash-command names. - Hooks. Does the plugin ship a
PreToolUsehook that blocksgit tag v*/gh release createoutside a/devkit-release-*flow, mirroring [DISCUSSION] Standardize org Claude config via a plugin + private marketplace (retire per-repo .claude/ copies) #927's--no-verifyguard? Useful, but touches the same trust model — defer to [DISCUSSION] Standardize org Claude config via a plugin + private marketplace (retire per-repo .claude/ copies) #927's answer. - Extension-pack ownership. When the Rust pack (Rust pack: L1/L4/L7 never shipped — the pack cannot be adopted cold #1496) ships, does
devkit-pack-rustlive in this plugin, or in avig-os/rust-packplugin? Preference: this plugin, one skill per pack, until packs are large enough to be their own marketplace entry. - First-adopter for the release-train skills. devkit itself (dogfood on the reference implementation) or a downstream consumer? Preference: devkit — the reference implementation is the shortest path to catching a skill/workflow mismatch.
Refs: #927, #1496, #1519, #1523, #1626, #1627, #1301, #1497, #1642, #1676, #1625, vig-os/tessera#441, vig-os/tessera#442
Activity
gerchowl commentedon Sep 28, 2026
Related: #1746 (Rust release extension — pre-release format, draft-Release-owner contract, standalone publish seam). A
/devkit-pack-rust//devkit-release-*skill should encode #1746's contract once it lands.https://claude.ai/code/session_01XdERKMVDAwfMJSKdTytNnK
test(plugin): shape + referential-integrity gate for the devkit plugin
feat(plugin): ship the devkit Claude Code plugin
gerchowl commentedon Sep 28, 2026
Two format corrections while implementing this
Verified the plugin format against the current Claude Code docs (they have moved to
code.claude.com/docs/en/plugins-referenceand.../plugins/marketplace-reference). Two points in the issue body above are off-spec, so the implementation deviates deliberately:1.
.claude-plugin/holds onlyplugin.json. The manifest reference is explicit: "Save the manifest at.claude-plugin/plugin.jsonunder the plugin root. Put every other plugin file at the plugin root, not inside.claude-plugin/. That includesskills/,commands/, andhooks/." The layout sketched above (.claude-plugin/skills/devkit-adopt/SKILL.md) would not load from its default location.2. Components are namespaced, so there is no bare
/devkit-status. A plugin namespaces every component under itsname: a skillstatusin plugindevkitis invoked as/devkit:status. Keeping the directory namedevkit-statuswould yield/devkit:devkit-status. The skills are therefore named without the redundant prefix.Shipped layout:
Command names:
/devkit:status,/devkit:adopt,/devkit:upgrade,/devkit:release-prepare,/devkit:release-candidate,/devkit:release-finalize,/devkit:release-promote,/devkit:release-abandon,/devkit:release-hotfix,/devkit:release-neutral,/devkit:pack-rust.Both manifests pass
claude plugin validate --strict.Other decisions taken
.claude-plugin/marketplace.jsonnow, so the plugin is installable and dogfoodable the moment this merges (/plugin marketplace add vig-os/devkitthen/plugin install devkit@vigos-devkit) rather than blocking on [DISCUSSION] Standardize org Claude config via a plugin + private marketplace (retire per-repo .claude/ copies) #927. When [DISCUSSION] Standardize org Claude config via a plugin + private marketplace (retire per-repo .claude/ copies) #927 lands,vig-os/org-configadds agit-subdirentry pointing atplugins/devkitin this repo — nothing moves, and the version pin stays co-located with the workflows.scripts/manifest.toml; a test asserts there never is one. Per-repo copies are the drift model [DISCUSSION] Standardize org Claude config via a plugin + private marketplace (retire per-repo .claude/ copies) #927 exists to retire.commands/wrappers (open question 2's stated preference; the docs also say to preferskills/for new plugins, and skills already run as commands). No hooks in this cut (open question 3 defers to [DISCUSSION] Standardize org Claude config via a plugin + private marketplace (retire per-repo .claude/ copies) #927).status,adopt,pack-rust) stay model-invocable. Every mutating skill setsdisable-model-invocation: true, so an agent cannot infer its way into dispatching a release verb — a human has to type the command./devkit:pack-rustscope (open question 4): a real read-only auditor for what devkit ships today — toolchain/lint-table/project-recipe layers per Rust pack: L1/L4/L7 never shipped — the pack cannot be adopted cold #1496, and the silent-green trap wheretest/lintcompile nothing — plus an explicit "still open" section naming Release train: first-class Rust release extension (crates.io, cargo-dist binaries, wheels) via a general publish/Release-owner seam #1746's three contracts (pre-release format, draft-Release-owner, the standalone publish seam) as unmerged. It reports the gap rather than describing an unmerged contract as if it existed.Drift gate
tests/test_devkit_plugin.pyfails when a skill names ajustrecipe or a workflow file that does not exist in devkit or in the consumer scaffold, so a renamed verb breaks the suite before it breaks an operator mid-release. It also pinsplugin.json's version toDEVKIT_VERSION, and asserts thatrelease.yml's finalize step bumps both in the same place.Per @gerchowl's note above,
/devkit:statusmatches a pre-release as<base>-<anything>and readsDEVKIT_PRERELEASE_FORMATrather than hard-coding-rc*, so it stays correct once #1746 makes the format configurable.fix(plugin): correct two status checks found by dogfooding on devkit
fix(plugin): stop inferring the hotfix lane from branch ancestry
fix(plugin): drop the redundant --force from preview invocations
test(plugin): failing tests for the three review blockers
fix(plugin): resolve the three review blockers on #1751
test(plugin): failing tests for the installer-URL path traversal
fix(plugin): guard the installer URL against path traversal
test(plugin): assert the guards abort, blocks self-contain, titles st…
fix(plugin): self-contain the smoke-gate block, keep PR titles literal
chore: merge dev and align the plugin with the merged release seams
Merge pull request #1751: devkit plugin with state-lookup-first skills
gerchowl commentedon Sep 29, 2026
Implemented by #1751 (merged): the plugins/devkit Claude Code plugin with 11 state-lookup-first skills, and this repo as the vigos-devkit marketplace. Install pinned: /plugin marketplace add vig-os/devkit@.
chore: release 1.18.0 (#1819)