command · sumi · v0.6.1
/sumi:ship
Final pre-PR gate — verify checks, review receipt and acceptance criteria, then draft commits and the PR description (single or chained).
- Reference
- sumi
- command
- /sumi:ship
- source
- plugins/sumi/commands/ship.md
Feature: $ARGUMENTS (default: the single active file in .sumi/tasks/).
- Branch guard. Confirm you are on a feature branch, not a protected branch from
.sumi/config.json. - Checks. Run typecheck, lint, tests and build with the project's commands. Paste the summarized results. Any failure stops the ship.
- Receipt. There must be a burned/approved receipt in
.sumi/reviews/covering the current HEAD for medium/high risk work. If not, run/sumi:reviewfirst. - Acceptance criteria. Walk the feature file criteria; each needs evidence in the Evidence section. List any missing and stop unless the user accepts the gap explicitly (record it).
- Commits. Ensure Conventional Commits, one concern each. Suggest squashes/rewording if the history is messy (don't rewrite pushed history without asking).
- Deliberate simplifications. Collect the
ponytail:notes added in the diff (git diff <base>...HEAD | grep '^+.*ponytail:') and list them in the PR under "Deliberate simplifications" with file and trigger. Also list notes removed (their trigger happened). - PR draft. Fill
${CLAUDE_PLUGIN_ROOT}/templates/pull-request.mdfrom the feature file and receipt (evidence, risk, rollback). Fordelivery: chained-prs, draft one description per slice with the chain links and a final tracker PR description. - Do not push or open the PR yourself unless the user asks; give them the exact commands (
git push -u origin <branch>,gh pr create --fillor the body file). - Update the feature file: status, process log entry, follow-ups.
- Report per
sumi:output. Subject: the branch and feature slug. Body: a table of acceptance criteria × evidence, with any criterion still open markedopen; below it the checks that ran and their results, and theponytail:notes collected in step 6. Next step: the exact push and PR commands from step 8 — or/sumi:reviewwhen step 3 found no burned receipt.