/dev-process-toolkit:ship-milestone [M<N>] [--version X.Y.Z] [--codename "<override plan codename>"] [--summary "<text>"] [--partial]from dev-process-toolkit
Bundles release checklist, version bumps, and doc regeneration into a single atomic release commit. Reads milestone plans, updates release files, prompts for approval, and commits locally.
Ships in dev-process-toolkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Ship one completed milestone as a single, reviewed release commit. Dogfoods the Release Checklist in CLAUDE.md: every file listed in the host's release files — release.files in specs/settings.yaml, or the legacy ## Release Files block in CLAUDE.md on an unmigrated tree — is rewritten by this ceremony, so a partial update is a missing entry in that list rather than a step somebody forgot. A release surface absent from the block — specs/requirements.md's Latest shipped release: line was one until it was added to the block — is maintained by hand and goes stale.
Detailed reference (CHANGELOG subsection policy, version-bump semver rules, structure-count recipes, stack-specific test-parser fallbacks) lives in docs/ship-milestone-reference.md.
/ship-milestone M<N> — explicit milestone./ship-milestone — no-arg form picks the most recent in-progress milestone: the specs/plan/M<N>.md with status: active (or with frozen_at: null). If none qualifies, run the ship-debt offer below before refusing.specs/plan/M_<epic-key>.md plan ships exactly like an M<N> plan — same resolution, same pre-flights, same shipped_in stamp. Everywhere this skill says M<N>, the M_<epic-key> form is equally valid, including the CHANGELOG milestone-ref convention (Refs: M_<epic-key> is an accepted milestone token).--version X.Y.Z (override inferred bump), --codename "<name>" (overrides the plan's codename: key), --summary "<text>" (commit one-liner, else prompted), --partial (ship this repository's half of a spanning milestone — see pre-flight refusal #4).When the bare no-arg form (/ship-milestone with no argument) finds zero plans with status: active, do not fall straight into the flat "no active plan" NFR-10 refusal. First scan specs/plan/archive/ for ship debt: archived plans whose frontmatter lacks shipped_in and that are not parked (no ship_state: parked opt-out in frontmatter — the same predicate the plan_ship_coherence probe reads). Order candidates newest-first — sort by archived_at descending — and offer each in turn with the exact prompt:
Unshipped archived milestone M<N> — ship it? [y/N]
y / yes (case-insensitive) — proceed with that milestone exactly as if /ship-milestone M<N> had been invoked; resolution takes the archive-fallback leg of Flow step 1.N) — move to the next candidate; once candidates are exhausted (or none existed), emit today's refusal text and exit code byte-identically — the offer changes nothing about the declined path.Before offering a candidate, run the sibling release gate on it: bun run ${CLAUDE_PLUGIN_ROOT}/adapters/_shared/src/sibling_release.ts <projectRoot> specs/plan/archive/M<N>.md M<N> --offer. Exit 0 ⇒ offer it. A candidate the gate refuses (exit 1) is not offered; name every such candidate on one held line, Held by sibling gate: M<N>[, M<N>…], printed once before the first prompt (or before the refusal when all are held), so the omission is never silent.
Any of these fire before any file write and exit non-zero with an NFR-10-shape message:
Unshipped FRs. Walk specs/plan/M<N>.md; if any row links to an FR file whose frontmatter has status: active (not yet archived), probe tracker state and emit one of two remedy shapes.
Task-bullet pre-flight (STE-201 AC-STE-201.1..3). In addition to the FR-row walk, parse the milestone's **Tasks:** block. For each [ ] (unchecked) bullet, find a backing FR row by either (a) explicit inline link - [ ] foo — STE-NNN (wins over heuristic), or (b) case-insensitive substring match between the task's leading verb-phrase and an FR row's title. A task with no backing FR row, or one whose backing FR is status: active (not yet archived), accumulates into the unbacked_tasks list. A task explicitly marked [deferred] (e.g., - [deferred] multiply — moved to M3) is treated as ship-OK — same parse path as [x] and [ ]. If unbacked_tasks is non-empty, refuse with the AC-STE-201.2 shape:
/ship-milestone: milestone M<N> plan has <count> unchecked task(s) with no FR backing:
- <task-1>
- <task-2>
Cannot tag a release for a milestone whose plan describes uncompleted scope.
Remedy: either /spec-write FRs for the unbacked tasks (then /implement them), or
move the tasks to a later milestone's plan, then re-run /ship-milestone.
Context: milestone=M<N>, unbacked-tasks=<count>, skill=ship-milestone
For each status: active FR, call Provider.getTicketStatus(<tracker-ref>). Partition the unshipped set by whether the returned status equals the adapter's status_mapping.done:
All unshipped FRs are tracker-Done-but-file-active — every ticket already reached status_mapping.done (typical after per-FR /implement <FR-id> runs, which Done-transition each ticket in Phase 4 Close but leave status: active because milestone-scope archival is a separate step). Refuse with the /spec-archive-pointing remedy:
/ship-milestone: milestone M<N> has <count> unshipped FR(s): <list>. All <count> tracker tickets are already at status_mapping.done — the file side still shows status: active because single-FR /implement runs intentionally skip milestone archival.
Remedy: run /spec-archive M<N> to bulk-archive the file side (git mv + frontmatter flip for every FR + the plan file, one atomic commit), then re-run /ship-milestone.
Context: milestone=M<N>, unshipped=<count>, skill=ship-milestone
Any unshipped FR is genuinely unshipped — at least one ticket is NOT at status_mapping.done (or the tracker returned anything other than Done). mode: none falls into this branch too: LocalProvider.getTicketStatus returns the local-no-tracker sentinel, so it can never match status_mapping.done. Refuse with the existing remedy:
/ship-milestone: milestone M<N> has <count> unshipped FR(s): <list>.
Remedy: finish each FR via /implement, or move the unfinished FR to a later milestone's plan, then re-run /ship-milestone.
Context: milestone=M<N>, unshipped=<count>, skill=ship-milestone
Both shapes exit non-zero and preserve the Context: line byte-identically. See docs/ship-milestone-reference.md § Refusal #1 remedy shapes for the full decision matrix including mixed tracker-Done / not-Done sets (the "any genuinely unshipped" branch wins on mix — safer than misdirecting to /spec-archive when a ticket genuinely isn't done yet).
Dirty working tree outside the expected set. The expected-modified set is every entry in the host's ## Release Files block, plus the docs/ subtree (for the two /docs invocations in step 5), plus the resolved plan path (specs/plan/M<N>.md, or specs/plan/archive/M<N>.md on the archive-fallback leg) for the shipped_in frontmatter stamp. git status --porcelain lines outside that set ⇒ refuse:
/ship-milestone: working tree has uncommitted changes outside the release files: <list>.
Remedy: commit or stash unrelated changes, then re-run /ship-milestone. Release commits must not bundle unrelated work.
Context: milestone=M<N>, unexpected=<count>, skill=ship-milestone
Test gate red. Run the project's test command once; if <F> failures > 0, refuse:
/ship-milestone: cannot tag release with <F> test failure(s).
Remedy: fix failing tests, then re-run /ship-milestone. The CHANGELOG closing line reports `<N> tests, <F> failures, <E> errors` — a non-zero F blocks release.
Context: milestone=M<N>, version=<X.Y.Z>, skill=ship-milestone
Use the stack detector to pick bun / pytest / flutter parsers from adapters/_shared/src/test_count_parser.ts. Unrecognized output or unknown stack → NFR-10 asking the user to specify or skip the line.
Keep that run's parsed TestCount. It is the measured side of both the CHANGELOG closing line (step 4) and the write-boundary check that grades it — the same run, parsed once. Never run the gate a second time to measure the count: a second run costs the whole ceremony's wall time again to re-derive a number this one already produced, and two runs can disagree.
Sibling not provably idle. A plan that declares spans_repos: has a copy in each sibling repository it names; refuse unless every declared sibling is provably idle — located, a git repository, toolkit-managed, bound to this repository's tracker project, holding the M<N> plan and at least one FR bound to it, with no active one in any worktree, local branch or remote-tracking ref. Run bun run ${CLAUDE_PLUGIN_ROOT}/adapters/_shared/src/sibling_release.ts <projectRoot> <planFile> <milestone> [--partial] [--children <listingFile>], --children required only in a repository declaring a shared container (repo_tag), <listingFile> the milestone's children as the tracker returns them (Jira: the milestone Epic's child issues, with fields summary, issuetype, labels, description, creator, status and parent, and on v2 view: "full"; Linear: the project's issues, fetched with includeArchived: true; a listing past one page is the JSON array of every page in order, each fetched with the previous page's top-level cursor until hasNextPage is false (Jira: nextPageToken until isLast, or — when the Atlassian server answers in its wrapped shape — issues.pageInfo.endCursor until issues.pageInfo.hasNextPage is false; save each page verbatim either way), each page after the first saved with that cursor as requestCursor): exit 1 ⇒ refuse with its stderr verbatim; exit 0 ⇒ its stdout lines are the Spans: footer. --children is not required for a numeric M<N> milestone under a Jira shared binding — it has no Epic, so no child listing — and the front door prints children=none (no container) in place of the count.
/ship-milestone: M<N> spans a sibling that still holds active work — <sibling> is busy: <count> active FRs (<id> in <source>; …)
Remedy: finish sibling <sibling>'s active FRs bound to M<N>; or pass --partial to ship this repository's half alone
Context: milestone=M<N>, sibling=<sibling>, state=busy, skill=ship-milestone
The predicate is the sibling's state — idle or not — never "the sibling has not shipped": two repositories that each waited for the other to ship would deadlock, and neither could ever release. --partial is the only escape — it ships this repository's half and leaves the sibling's pending; on a plan that declares no sibling it refuses, since there is no second half. Every other state refuses the same way, naming the sibling, its state and a remedy of its own: busy, not-started, no-plan, one-sided, unlocatable, not-a-repository, not-toolkit-managed, different-container and unreadable — a sibling the gate cannot read is never taken for idle. Under --partial every state ships, and an unlocatable sibling still prints one not checked line on stderr; probe #63 grades it after the release.
Unversioned run (changelog_unversioned: true in ## Docs). The run skips version inference (step 2) and codename resolution (step 3). It still runs the test-gate refusal #3, but writes no test-count line. The step-4 migration pre-flight calls assertMigrationDeclared(planPath, MIGRATIONS, "unreleased"), which checks registry presence only. Steps 4 and 7 run release_config.ts <projectRoot> unreleased --date <YYYY-MM-DD> --body "<changelog body>" (with --dry-run at step 4), which adds the entries to the changelog's unreleased part and skips every other release file. The proposed branch is release/<milestone-lowercase>-unreleased (branchNameFor({ milestone, unreleased: true })), the plan is stamped shipped_in: unreleased, and the commit subject is chore(release): <milestone> unreleased with footers Release: unreleased and Refs: <milestone>.
Read specs/plan/M<N>.md. Archive fallback (STE-210 AC-STE-210.1): if specs/plan/M<N>.md is missing, check specs/plan/archive/M<N>.md — when the archived plan exists AND every FR row in it has status: archived (consistent end state), proceed to read from the archive path. When the archived plan exists but FR rows are mixed (some still status: active), refuse with NFR-10:
/ship-milestone: active plan path missing but archived plan has unarchived FRs — corrupt state.
Remedy: investigate; either restore plan to active/ or archive remaining FRs.
Context: milestone=M<N>, skill=ship-milestone
When neither path exists, refuse Plan M<N> not found in specs/plan/ or specs/plan/archive/. The fallback only activates when the active path is genuinely missing — for milestones whose plans are still in specs/plan/, behavior is unchanged.
Whichever path survives this resolution — specs/plan/M<N>.md or the archive-fallback specs/plan/archive/M<N>.md — is the resolved plan path; step 7 later stamps shipped_in into its frontmatter as part of the release commit.
Extract every FR with a live tracker ID / ULID. For each, read specs/frs/<name>.md frontmatter and pull title, tracker.<key>, breaking (default false), changelog_category (default Added), and status (must be archived after Pre-flight refusal #1 above — Unshipped FRs).
Call inferBump({ currentVersion, frs, override }) from adapters/_shared/src/version_bump.ts. Rules:
breaking: true.changelog_category is Fixed or Removed (pure fix-class milestone).--version X.Y.Z override wins and bypasses inference.inferBump exactly as read: the value passed as its category is the FR's changelog_category frontmatter value (the camel changelogCategory spelling is accepted too), so no key rewriting happens at this call site.Resolve the codename by precedence — the first source that yields a value wins:
--codename "<name>" — when passed, check it with bun run ${CLAUDE_PLUGIN_ROOT}/adapters/_shared/src/milestone_codename.ts --check "<name>" (prints codename=<value>, or exits 1 with an NFR-10 envelope) and use the printed value; --codename overrides the plan's codename: key.
The plan's codename: key — read via the front door bun run ${CLAUDE_PLUGIN_ROOT}/adapters/_shared/src/milestone_codename.ts <planPath>, which prints codename=<value> or codename=absent (an invalid value exits 1 with an NFR-10 envelope). A plan whose codename: reads valid ships with that value and no question.
Composed — when the plan carries no key, compose a codename from the plan's Goal and its FR titles.
The composed value is checked through the front door — bun run ${CLAUDE_PLUGIN_ROOT}/adapters/_shared/src/milestone_codename.ts --check "<composed>", the same rules a plan's key passes. On failure, recompose at most once and check again; a second failure refuses the ship in the NFR-10 shape (verdict, remedy, context naming the plan path and the broken rule). A composed codename is never prompted for and never written as a placeholder.
Every source passes the one rule set validateCodename owns — non-empty, ≤ 32 chars, no backticks, no newlines — so this step never restates or re-derives it.
Migration-coverage pre-flight. Before computing any bump, call assertMigrationDeclared(planPath, MIGRATIONS, releaseVersion) from adapters/_shared/src/migrations/coverage.ts (registry from adapters/_shared/src/migrations/index.ts; version from step 2). It refuses with the NFR-10 shape (naming the plan) when the plan's migration: key is absent or the template sentinel (null/empty), when a declared id is not present in the registry, or when the declared id's introduced_in ≠ the version being shipped. migration: none proceeds. The step rides the existing ceremony — no additional approval prompt; a refusal aborts before any file is rewritten.
Preview the release-file rewrites by RUNNING the writer — never by hand. From the repo root, with the counts the pre-flight test-gate run (refusal #3) measured. --dry-run here because nothing may reach disk before the step-6 approval; step 7 runs the same line without it:
bun run ${CLAUDE_PLUGIN_ROOT}/adapters/_shared/src/release_config.ts <projectRoot> <newVersion> --codename "<Codename>" --date <YYYY-MM-DD> --body "<changelog body>" --test-count <total>,<failures>,<errors> --dry-run
It reads the host project's release files — release.files in specs/settings.yaml, or on an unmigrated tree the legacy ## Release Files block from CLAUDE.md via parseReleaseFiles(content) — computes each listed path's new content, and prints one line per path it would rewrite. Every refusal — block absent, version missing, a changelog entry with no --test-count — writes the NFR-10 canonical shape to stderr, exits non-zero, and leaves the tree untouched; the preview refuses whatever the real run refuses, with the same verdict, so an approved diff is never one the write step then rejects. The counts are FORWARDED on --test-count, never re-measured at the write step: detection answers differently per directory, and the pre-flight test-gate run (refusal #3) already measured them against the root the gate ran in. The block declares every path that gets rewritten on this release; no path is hard-coded in this skill body. Schema reference + per-kind worked examples live in docs/ship-milestone-reference.md § Release Files block schema.
For each entry the writer computes the new file content via bumpFile(entry, currentContent, opts), dispatching on kind:
kind: json — rewrites a JSON property at the dot-path in field. Output is reformatted with two-space indent.kind: toml — rewrites a TOML field (top-level or one-level dotted).kind: yaml — rewrites a top-level YAML scalar; preserves a Flutter +<build> suffix on the same line.kind: changelog — inserts a new ## [X.Y.Z] — YYYY-MM-DD — "<Codename>" section above the topmost prior version section. Body comes from FR changelog_category + title (### Added / ### Changed / ### Removed / ### Fixed subsections; cross-refs rendered as (STE-X)). Closing line Total test count at release: <N> tests, <F> failures, <E> errors. rendered from the forwarded --test-count (measured by parseTestOutput on the pre-flight test-gate run, refusal #3), and the section is refused outright without one. Skipped entirely if changelog_ci_owned: true (from readDocsConfig(CLAUDE.md)) — CI owns the CHANGELOG; the closing line is also suppressed because it lives inside the entry.kind: regex — rewrites every occurrence of pattern using the replace template, which renders {version} and {codename} and is otherwise written literally. Used for free-form lines like the README "Latest:" banner and the Latest shipped release: line in specs/requirements.md, both of which name a version AND a codename.optional: true entries emit an n/a row in the proposed-diff summary on either of the two ways they can decline to be rewritten — the path is missing on disk, or the pattern matches nothing in it. Required (non-optional) entries surface the NFR-10 canonical refusal on both. A hand-maintained banner that got reformatted must not abort a release; a declared surface that silently stops being written must not pass for one that was.
Refusals: MissingReleaseFilesBlockError (block absent or empty) and MalformedReleaseFilesError (entry violates schema, e.g. regex without (?<version>) named group) both abort the run with the canonical NFR-10 shape on stderr and exit non-zero. Verdict line first — Refusing: to rewrite the release files — <what failed>. — then Remedy: fix the ## Release Files block in CLAUDE.md (or the offending file) and re-run; nothing was written. — then Context: root=<projectRoot>, version=<X.Y.Z>, skill=ship-milestone. The remedy names the block to fix — on a settings-file tree the offending file is specs/settings.yaml, whose release.files the writer reads in place of the legacy block — and reports what reached disk; it does not send the operator to /setup.
The docs step is TWO invocations, in this order, because /docs refuses two or more of its three flags as mutually exclusive and exits non-zero — and step 5 treats any non-zero /docs exit as a hard abort. --commit merges the fragments /docs --quick staged during the milestone into the canonical tree; --full then regenerates that tree from specs + source + config. The order is not a preference: --full deletes every docs/.pending/ fragment as superseded, so running it first would leave --commit nothing to merge.
If readDocsConfig(CLAUDE.md) returns at least one mode true, run /docs --commit in-process, then /docs --full in-process. Both approval prompts are merged into step 6's single gate (user sees one diff).
Grade each leg by its docs-run: outcome line, not by its exit code. /docs § 0 (c) makes every terminal path print one, last; exit 0 covers a successful write, an empty-set no-op, either decline path and the zero-flag usage path alike, so the status alone cannot tell a release that regenerated its docs from one whose docs leg quietly did nothing. Route on the outcome: written ⇒ continue; no-op ⇒ continue and record it in the release report, since a release that changed no docs is a fact worth stating rather than an absence to infer; declined ⇒ the operator refused the diff, so stop the ceremony and leave the release uncommitted; refused — including refused (--full) — empty spec corpus — ⇒ hard abort, exactly as a non-zero exit does. A leg that prints no docs-run: line is treated as refused, never as a silent success.
If both docs modes are false, log docs disabled — skipping /docs --commit and /docs --full and continue.
If either invocation fails (any non-zero exit / thrown error), abort with NFR-10 naming the one that failed. A --commit failure aborts before --full runs:
/ship-milestone: /docs <flag> failed; cannot proceed with release.
Remedy: fix the underlying /docs failure (see its stderr), then re-run /ship-milestone. Partial release (release commit without doc updates) is not supported.
Context: milestone=M<N>, version=<X.Y.Z>, step=<--commit|--full>, skill=ship-milestone
Print a single unified diff covering every modified file (every ## Release Files entry that produced a non-empty bump + any docs/ files the step-5 /docs invocations touched). The release-file half of that diff is never assembled by hand here: it is the unified-diff hunks the step-4 --dry-run preview already printed, one per changed path, computed from the same two sides the step-7 write will use. The diff also renders the frontmatter stamp hunk — shipped_in: v<X.Y.Z> on the resolved plan file, plus its codename: line when step 3's source was composed — alongside the release-file bumps; the stamp rides the existing single Apply? approval below, no extra prompt. Then:
=== Proposed diff (N files, M lines) ===
Codename: <value> (source: flag|plan|composed)
<diff>
=== Apply? [y/N] ===
The Codename: line shows the resolved name and which step-3 source produced it; it is informational only — to change it, decline and re-run with --codename "<name>".
Accept case-insensitive y / yes as approval. The user can type e to open $EDITOR on the proposed CHANGELOG entry, then re-prompt (see reference § e edit-in-loop).
Universal pre-commit branch gate (STE-228). Runs FIRST, before the rewrites below put a single byte on disk — the write depends on nothing this gate produces, so ordering it after would leave a declined run with bumped files it cannot take back. Call requireCommittableBranch({ commitType: "chore", proposedBranchName, currentBranch, isAutoMode }) from adapters/_shared/src/require_committable_branch.ts with proposedBranchName returned by branchNameFor({ version }) from skills/ship-milestone/branch_name_for.ts (release shape → release/v<X.Y.Z>; collision-suffix per STE-228 AC-STE-228.11 is exceedingly rare for this skill). On created / edited the gate runs git checkout -b <branchName> so the release commit lands on the new branch; declined exits non-zero before any release file is rewritten — no release file is touched, nothing is staged, nothing is written, and the tree is left exactly as the run found it, so a re-run reads the un-bumped version at step 2 instead of double-bumping and inserting a second CHANGELOG section; no-op (off-trunk OR commitType ∈ TRUNK_OK_TYPES = ["ci"]) is silent. Auto-mode default-apply uses the <dpt:auto-approve>v1</dpt:auto-approve> marker per STE-226. See STE-228 § Branch-name canonical table for the full builder catalogue.
Apply the release-file rewrites. With the branch settled, the approved diff is applied — the step-4 preview wrote nothing, so this is the run's first write to disk: the same line, minus --dry-run, before git add:
bun run ${CLAUDE_PLUGIN_ROOT}/adapters/_shared/src/release_config.ts <projectRoot> <newVersion> --codename "<Codename>" --date <YYYY-MM-DD> --body "<changelog body>" --test-count <total>,<failures>,<errors>
Same arguments as the preview, with one exception: when the operator edited the proposed CHANGELOG entry at step 6, the edited body is what --body carries here — so what lands on disk is what the operator approved, not the entry they replaced. A refusal here aborts before the commit.
Stamp the resolved plan. Before the commit is created, call stampShippedIn(resolvedPlanPath, "v<X.Y.Z>") from adapters/_shared/src/plan_ship_stamp.ts to write shipped_in: v<X.Y.Z> — the final version chosen for this release, after any --version override — into the resolved plan file's frontmatter, then stampShipCodename(resolvedPlanPath, { value: "<Codename>", source }) from the same module. source is the step-3 source that produced the codename (flag, plan or composed); when it is composed, that call sets the plan's codename: key to that value, so the plan records the name it shipped under, while a flag or plan source leaves the key untouched. The stamp targets the resolved plan path from step 1, so it lands identically on the live path and the archive-fallback path, and the stamped plan file rides the same single atomic release commit. Under --partial, also call stampShipPartial(resolvedPlanPath) beside it to write the bare scalar ship_partial: true — unquoted, since probe #63 fails closed on a quoted value; a re-run writes nothing.
Stamp semantics. shipped_in is written only by this skill or the one-shot backfill script (run once against the historical archive, never shipped, deleted after the backfill commit). Absence of shipped_in on an archived plan means unshipped debt: the plan reached the archive without a release carrying it. Absence on a live plan is normal — the milestone simply hasn't shipped yet.
Grade the two release surfaces. With the bumped README, the newly written CHANGELOG section and the shipped_in stamp all on disk — the first moment in this ceremony at which the two surfaces can disagree — run the agreement check from the repo root:
bun run ${CLAUDE_PLUGIN_ROOT}/adapters/_shared/src/release_surface_agreement.ts <projectRoot> <newVersion>
Exit 0: the README Latest: banner and the CHANGELOG entry for <newVersion> agree on version, codename and milestone — or the check is vacuous (no banner, no codenamed CHANGELOG.md release heading at all, no plan stamped with it, or the project declares changelog_ci_owned: true, whose CHANGELOG the bump never writes and which is therefore a surface this project never adopted). Exit 1: they disagree, one line per violation on stderr naming the field — including a changelog row when the CHANGELOG carries no ## [<newVersion>] — <date> — "<Codename>" heading for the release just written, which is a disagreement rather than vacuity. The usual pair is codename and milestone: the README entry is kind: regex and its replacement stops at the em-dash, so the bump rewrites the version and leaves everything after it describing the previous release. Exit 2: no <projectRoot> was given.
On exit 1, abort before git add — nothing is staged, no commit is created, and the bumped files stay in the working tree. Hand-edit the README Latest: line so its codename and M<N> match the CHANGELOG entry this release just wrote, re-run the line above, and continue to the commit once it exits 0.
Ordering matters: this check cannot run before the step-6 approval. Up to the step-7 write, both surfaces still describe the previous release, so they agree by construction and the check would pass on exactly the tree it exists to catch.
Render the ## Token Stats rollup. Opt-in gate: skip this rollup render when readTokenStatsConfig(projectRoot).enabled === false. Alongside the stamp, read the token ledger (.dpt/ledger/token-ledger.jsonl; absent or no rows for this milestone ⇒ skip, vacuously), scope rows to this milestone first — a row belongs when its claimed_by names an in-scope FR, when it is unclaimed and its git_branch is on the milestone's branch lineage, or when it carries the DESIGN_BUCKET sentinel as its claimed_by (a demoted row) and its git_branch is on that same lineage: a demoted row names no in-scope FR and is not unclaimed, so without its own leg it would be dropped before the render and shrink the milestone total — the sentinel marks shared-session cost, not another milestone's cost. That keeps a shared ledger from leaking another milestone's rows. Then call renderMilestoneRollup(rows, { frOrder }) / its upsert counterpart upsertMilestoneRollup from adapters/_shared/src/token_stats_render.ts to write the milestone rollup into the resolved plan file (specs/plan/M<N>.md, or the archive-fallback path): one per-FR subtotal line per model for each in-scope FR (plan order), a (main-loop) line per model for unattributed orchestrator rows, a design/exploration line covering both unclaimed brainstorm rows and rows demoted there from any skill when two FRs of one session claim the same rows (demoted rows carry the sentinel as their claimed_by, so shared-session cost stays visible on one line instead of being double-counted), and a milestone total row.
## Token Stats rollup mechanics. The block is sentinel-fenced (token-stats:begin / token-stats:end) and idempotent — re-rendering replaces the fenced region in place, never appending a duplicate. Stage the updated plan file with the rest of the set so the rollup rides the release commit — never a commit of its own, never a standalone working-tree mutation.
git add the expected-modified set and create a single commit in Conventional Commits v1.0.0 form. The commit-msg hook installed by /setup enforces the format locally.
chore(release): v<X.Y.Z>
<one-line summary>
Release: v<X.Y.Z> "<Codename>"
Spans: <repo>@<version|pending>
Refs: M<N>
chore(release): v<X.Y.Z> (≤ 72 chars; chore(release): v1.37.0 is 23 chars, well within budget).<one-line summary> is --summary "<text>" if provided, else prompted.Release: v<X.Y.Z> "<Codename>" (machine-readable release metadata), Spans: <repo>@<version|pending> (one line per declared sibling, copied from refusal #4's stdout; none when the plan declares no spans_repos:) and Refs: M<N> (milestone group reference). One blank line separates the body from the footer block per CC spec.Does not run git push — the push remains a user action (core principle: shared-state actions require confirmation).
Any response other than y / yes (including Ctrl-C): no release file is rewritten (the step-4 preview wrote nothing and the step-7 write never runs), no staging, no commit, any temp files deleted. Exit 0 with:
ship-milestone declined; release not committed. To retry, re-run /ship-milestone M<N>.
After the commit lands, print:
M<N> shipped as v<X.Y.Z> "<Codename>".
Next steps (not automated):
1. git push (when ready)
2. /pr (open release PR if this is a branch-based flow)
3. Update any external references (tracker milestone close, announcement); for an Epic-keyed plan M_<P>_<N>, close the milestone Epic <P>-<N> in Jira — when the plan declares spans_repos or the tracker container is shared, only after every sharing repository has shipped — in this order: save the Epic's children listing to a file (JQL `parent = <P>-<N>`, with the requested fields including `parent`, and `summary`, `issuetype` and `status` beside it; on v2 also `view: "full"`), run `bun run ${CLAUDE_PLUGIN_ROOT}/adapters/_shared/src/epic_close.ts <projectRoot> <P>-<N> --children <listing>`, then the transition to Done; on a refusal the Epic stays open and the refusal is reported verbatim
Driven runs. Omit this offer when the invocation body carries the driven-run marker: the step it offers was already fixed by the orchestrator that named it. In a run whose chain already holds the push, the /pr and the external updates, "not automated" is a false statement about that run, and a false line is worse than a redundant one. What is omitted is the notice, never the steps: the chain still runs each one under its own gate, and omitting this line authorizes no push and no PR.
Fires only after a successful release commit. Run the read-only probe bun run ${CLAUDE_PLUGIN_ROOT}/adapters/_shared/src/video_offer.ts <projectRoot> M<N>. Empty stdout means no prompt and no decline line — the project is not video-ready, so continue to step 10. On non-empty output (slug=<slug> then fr= lines), list the fr= lines and ask exactly once:
Make an explainer video for M<N>? [y/N]
y / yes: start /video <slug> with its own gates intact. When it returns — or fails or aborts — the run continues to step 10.n, no answer, or non-interactive stdin: print Run: /video <slug> and continue.Run: line; continue to step 10.At most one video offer per run; it never skips or reorders another ship gate.
Fires only after a successful release commit lands off-trunk (the step-7 branch gate created release/v<X.Y.Z>, or the run was already on a feature branch). On-trunk landings and every refusal/abort path skip this step silently. After the step-9 checklist prints, prompt (exact format, mirroring /implement Phase 5's milestone-close prompt):
Open ceremony PR via /pr now? (y/n):
y or yes (case-insensitive, trimmed). Chain into /pr in-process with all /pr gates intact — the tracker-mode probe, the uncommitted-changes confirmation, and the push run exactly as on a manual /pr invocation. Any push happens inside /pr under its own confirmation; /ship-milestone itself still never pushes — the chain does not erode that invariant.n / no / empty / any other non-matching string. Do not chain; print the hint and exit 0: Run: /pr./pr from here either — the chain the worker was spawned with already names /pr after this stage, so a PR opened here would be a second one. What is dropped is this surface's claim on the PR, never the PR: the chain still opens it, once. What the marker removes is the redundant question, never the authorization: opening a pull request is an outward act, and every /pr gate — the tracker-mode probe, the uncommitted-changes confirmation, and the push confirmation — still runs and still decides.Chain-start failure ⇒ NFR-10 canonical refusal, exit non-zero:
/ship-milestone: attempted to chain into /pr but it failed to start: <error>.
Remedy: verify the plugin is installed and the pr skill is enabled, then run /pr manually.
Context: milestone=M<N>, chain=pr, skill=ship-milestone
git push. The user pushes. Publishing a release is irreversible from the agent's side; that invariant holds regardless of user pressure.<F> blocks release; <N>=0 is still written if the test gate happens to run zero tests (the line itself is the discipline)./docs diffs into the ship-milestone diff; the user sees one unified diff and answers y / N once.## Release Files declares (plus docs/ if the step-5 /docs invocations ran). git add -A is forbidden — use explicit git add <file> per entry.inferBump before --version; --version is an escape hatch when inference is wrong, not a default.<F> blocks release. Fix the flake.docs/ regen, approve it" → approval is on the user. State the diff size and wait.--version is easier than debugging the bumper" → debug the bumper. --version is for when the release is genuinely exceptional.git push on their behalf to save a step" → never. Shared-state actions require confirmation.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub nesquikm/dev-process-toolkit --plugin dev-process-toolkit29 skills in this plugin
/best-practicesManage the project best-practices manifest at `specs/best-practices.yaml`. Add, edit, delete, or list entries cataloguing house best-practices docs with scope globs and topics that feed guidance retrieval into planning and implementation./brainstormSocratic design session for greenfield features with open solution spaces. Clarifies goals one question at a time, proposes 2-3 approaches with tradeoffs, gets design approval, then feeds into /spec-write./debugStructured debugging protocol for failed gate checks, failing tests, unexpected behavior, or a reported bug. Use when /gate-check or /tdd fails and the cause is unclear, or when a reported bug (a symptom, a ticket, a bug FR) needs its cause found and a test that proves the fix. Phases: Root Cause → Pattern Analysis → Hypothesis Testing → Implementation./deliverFull delivery pipeline orchestrator — takes a feature request from idea through specs to shipped, merged milestones by chaining the toolkit's phase skills end-to-end./depsManage the sibling-package dependency manifest at `specs/deps.yaml`. Add, edit, delete, list, or sync entries that feed topic-aware retrieval into /brainstorm and /spec-write via the deps-researcher fork./deps-researchInternal research fork — invoked exclusively by /brainstorm and /spec-write via context:fork pairing with the deps-researcher subagent. Returns topic-aware sibling-package retrieval as a ≤25-line block. Do not invoke directly.Other plugins' skills for the same job