Skip to content

[FEATURE] "devkit" Claude Code plugin — /devkit-adopt, /devkit-status, /devkit-release-* skills that wrap the canonical workflows with a state-lookup-first pre-flight #1744

Closed

Description

@gerchowl

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:

The gap is not features — it is an operator surface that knows the current state.

Proposed Solution

Distribution

  • Add a .claude-plugin/ tree to vig-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; the devkit plugin ships alongside the org-Claude plugin, not instead of it.
  • Versioned with devkit itself. plugin.json version = devkit version. A consumer pinned to DEVKIT_VERSION=1.10.0 gets the [email protected] skills. devkit-upgrade bumps 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.

Principles

  1. 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.
  2. Dry-run by default. Adoption and upgrade never mutate without an explicit second-turn confirmation. Release-train verbs echo the exact just line and the state they observed before dispatching.
  3. Skills wrap canonical workflows. Never re-implement release logic in a skill; only call the just verbs 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.
  4. Versioned with devkit. Plugin version = devkit release. Cross-version drift is impossible by construction.
  5. 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

Additional Context

Impact

  • Who benefits: every devkit consumer (adoption cost drops from re-reading docs/RELEASE_CYCLE.md to 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-os semantics. Consumers who don't install the plugin see zero behavior change.
  • Rollout: pilot on vig-os/devkit itself (dogfood: run the plugin against devkit's own release train, which is the reference implementation), then a second Rust-consumer pilot when /devkit-pack-rust has something to say.

Acceptance Criteria

  • .claude-plugin/plugin.json in vig-os/devkit, id devkit, version = devkit release version.
  • skills/devkit-status/SKILL.md exists and, run against vig-os/devkit itself, 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.md starts with a devkit-status step and refuses cleanly (with a reason and an offered next-step verb) on every state that would foot-gun the corresponding just verb — including at least: another RC open on a different base, a draft Release deleted (tombstone), :latest regression ([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.md produces 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.md is a dry-run wrapper over install.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 under docs/RELEASE_CYCLE.md's six verbs (drift-prevention gate).

Open Questions

  1. Marketplace home. [DISCUSSION] Standardize org Claude config via a plugin + private marketplace (retire per-repo .claude/ copies) #927 leaves vig-os/org-config vs a dedicated vig-os/claude-plugin open. 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.
  2. Command wrappers vs skills. Ship every skill also as a commands/<name>.md slash-command wrapper (belt-and-suspenders discovery), or skills only? Preference: skills only, plus one README.md in the plugin listing all /devkit-* slash-command names.
  3. Hooks. Does the plugin ship a PreToolUse hook that blocks git tag v* / gh release create outside a /devkit-release-* flow, mirroring [DISCUSSION] Standardize org Claude config via a plugin + private marketplace (retire per-repo .claude/ copies) #927's --no-verify guard? 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.
  4. 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-rust live in this plugin, or in a vig-os/rust-pack plugin? Preference: this plugin, one skill per pack, until packs are large enough to be their own marketplace entry.
  5. 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

https://claude.ai/code/session_01XdERKMVDAwfMJSKdTytNnK

Activity

  1. added
    feature
    on Sep 28, 2026
  2. gerchowl commented on Sep 28, 2026

    @gerchowl
    ContributorAuthor

    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

  3. gerchowl commented on Sep 28, 2026

    @gerchowl
    ContributorAuthor

    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-reference and .../plugins/marketplace-reference). Two points in the issue body above are off-spec, so the implementation deviates deliberately:

    1. .claude-plugin/ holds only plugin.json. The manifest reference is explicit: "Save the manifest at .claude-plugin/plugin.json under the plugin root. Put every other plugin file at the plugin root, not inside .claude-plugin/. That includes skills/, commands/, and hooks/." 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 its name: a skill status in plugin devkit is invoked as /devkit:status. Keeping the directory name devkit-status would yield /devkit:devkit-status. The skills are therefore named without the redundant prefix.

    Shipped layout:

    .claude-plugin/marketplace.json      # this repo is the marketplace ("vigos-devkit")
    plugins/devkit/                      # plugin root
      .claude-plugin/plugin.json         # name "devkit", version == DEVKIT_VERSION
      README.md                          # lists every /devkit:* command
      skills/status/SKILL.md
      skills/adopt/SKILL.md
      skills/upgrade/SKILL.md
      skills/release-{prepare,candidate,finalize,promote,abandon,hotfix,neutral}/SKILL.md
      skills/pack-rust/SKILL.md
    

    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

    Drift gate

    tests/test_devkit_plugin.py fails when a skill names a just recipe 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 pins plugin.json's version to DEVKIT_VERSION, and asserts that release.yml's finalize step bumps both in the same place.

    Per @gerchowl's note above, /devkit:status matches a pre-release as <base>-<anything> and reads DEVKIT_PRERELEASE_FORMAT rather than hard-coding -rc*, so it stays correct once #1746 makes the format configurable.

  4. gerchowl commented on Sep 29, 2026

    @gerchowl
    ContributorAuthor

    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@.

  5. added a commit that references this issue on Oct 5, 2026
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

    feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions