ship-it · git:20261118.cfd80f1 · 2026-11-18 · sha256 acecc2f7e477d932

ship-it git:20261118.cfd80f1A

Immutable. This exact content never changes and is served at /api/v1/blob/acecc2f7e477d932.

No tool to install first
claude plugin marketplace add https://markdownregistry.com/mp/a/art_s6bujpapjf3ub2q5/acecc2f7e477d9321a06911cf5585d3b78f315db76d26ace86e150f45fdf5166.json

Then /plugin install ship-it@markdownregistry-s6bujpapjf3ub2q5 in Claude Code. It installs this exact version, the one graded A here, pinned to the commit it was graded at, and leaves it there.

---
name: ship-it
description: "Close a do-it work item after its audit passes: confirm assumptions, finalize ADRs, area contexts and changelog, update the tracker, and prepare one commit, which is made only when the user says so."
disable-model-invocation: true
argument-hint: "<work id> | --lane xs [--ref <tracker ref>] [--todo <id>] | --roadmap <file>"
model: sonnet
---

# ship-it

The only step that touches git history, and only on the user's word. Nothing
is written before the user answers the one question (§2).

## 1. Gate

`work.mjs` below is the work-item script in [STATE.md](../do-it/STATE.md);
a refused command (exit 1) is `blocked`.

- **Lane XS:** no state block, no id to close; [RESUME.md](RESUME.md).
  **`--roadmap <file>`:** [FINALIZE.md](FINALIZE.md).
- **Otherwise** `work.mjs show <id>` and require `status: shipping` and
  `audit.verdict: PASS`. First run: `work.mjs fingerprint <id>` must equal
  `audit.fingerprint`, else the code moved after the audit:
  `work.mjs event <id> reaudit`, stop, **Next:** `/prove-it <id>`.
- **Resumed after review** (`ship.prepared` set): [RESUME.md](RESUME.md).

## 2. The one question

One turn; write nothing yet. **Show** (information, no answer needed):

- `git status --short`: everything that will be in the change.
- The docs this will write, per [DOCS.md](DOCS.md): ADRs to accept, the
  area's `CONTEXT.md` and map row, the changelog entry (lane XS: changelog
  only, when the repo keeps one), a risk-area rollback note.
- Tracker, to-do and roadmap updates: one `close` per ref (state block refs,
  the slice's `Ref` cell, or `--ref`) with a comment drawn from the changelog; a
  roadmap's last slice also shows what finalize offers a to e will write
  ([FINALIZE.md](FINALIZE.md)).
- Numbered: the audit's open Should and Nice findings (no changelog), surfaced
  `defects:`, a roadmap Verify clause they leave unmet ([DOCS.md](DOCS.md)).
- Guardrail candidates or a failed audit round: one line offering `/retro-it <id>`;
  `work.mjs close` deletes the candidates, so it runs before "commit now".
- The commit message: `<id>: <summary>` (the commit id, it-core Git), a
  blank line, one bullet per phase or step; on a protected branch (`main`,
  `master`, `DO_IT_PROTECTED_BRANCHES`), the feature branch to create first.

**Ask** at most three things, numbered, each left out when empty; an answer
to the last alone keeps the defaults:

1. `assumptions:`, numbered: reject any? (default: keep all). Lane XS, no id: [RESUME.md](RESUME.md).
2. To log, and to finalize: new `shortcut:` markers with no upgrade trigger, the
   audit findings and surfaced defects above (default: findings and defects, no
   markers); a roadmap's last slice adds finalize offers a to e
   ([FINALIZE.md](FINALIZE.md)), every one taken by default
3. **Commit now** (say "do it") or **leave it for review**? Recommend leave it
   unless the user asked to commit; `DO_IT_COMMIT=never` makes it the only option.

## 3. After the answer

1. **A rejected assumption that changes code:** `work.mjs event <id>
   reject-assumption <n> "<instead>"`; stop. **Next:** `/do-it <id>`. One
   that changes nothing: `work.mjs set` the assumptions.
2. **Docs and closes, before any commit:** write what §2 showed per
   [DOCS.md](DOCS.md), updating an earlier run's; park or file the markers; log
   the chosen findings (no changelog), the finalize offers taken
   ([FINALIZE.md](FINALIZE.md)). Then close every ref per DOCS.md "Closes", so
   one commit holds it all (a user commit after review included).
3. **Leave it for review:** stop; the plan stays (`status: shipping`), the
   remote tracker stays open. Repeat the commit message and the command that
   finishes, `/ship-it <id>` (lane XS: `--lane xs` with its `--ref` and
   `--todo`), which commits, or finishes once the user has committed.
4. **Commit now** (or a resumed run after the user committed). Step 2 has
   already run, so the working tree holds the whole change:
   - create the feature branch if §2 named one; stage by path (never
     `git add -A`), with the issue, to-do and roadmap edits from step 2; commit
     with the approved message (already committed by the user: nothing to stage);
   - only after the commit succeeds: `work.mjs close <id>` (lane XS: none),
     then the remote tracker (GitHub, Jira) closes with a comment drawn from
     the changelog; it cannot be part of the commit, and a tracker failure
     never undoes the commit.

## 4. Close

"Shipped <id>: committed as abc123 | prepared, left for review", then
Skipped / Not checked / Risk, then **Next:** (the finish command, push when
ready, or nothing). On a roadmap slice, the slash command for the next one, never a script.

## Rules

- Never commit, push, amend or squash without an explicit "do it" in this run;
  push or open a PR only when the user asks.
- A run record exists for the item: [RUNMODE.md](RUNMODE.md) replaces §2's question.
- One commit for code and docs together unless the user asks for two; hooks
  still run on it, and a compliance block stops it.