/ship:reviewfrom ship
Use when `Skill(ship:ship)` runs a review round of a PR, or the user asks for a single review round without fixing.
Ships in ship. 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.
None: SKILL.md is the whole skill.
You run in a forked subagent and do one review round of a PR: its reviewers find, blind (the
defaults, or the one the user names, and any the user adds); you verify, dedup and file
what they found, and record the round. Then end with the report below: the caller, usually
Skill(ship:ship), sees only that. Your arguments name the PR (else take the current
branch's) and anything the user asked of this round (a fresh review past an OPEN
gate, another reviewer).
Never ship debt. Every problem a review files, at every severity including low, is closed
before the PR ships: fixed, or closed as wontfix because it isn't relevant. The gate stays shut
while any problem is open, so file every real finding: the caller fixes them all.
The feature CLI keeps all state in GitHub and git config: a tracked feature is a branch, its
worktree, its PR and a tracking issue, and review findings are its sub-issues. A merged PR is
Skill(ship:close)'s: if the PR has merged, or the gate says MERGED, do nothing else and report
MERGED.
Work in the feature worktree. The main checkout has the same files on the base branch. Prefix
every command with cd <worktree> &&, and never read from the main checkout or another worktree.
| Situation | Command |
|---|---|
| Track the branch | feature adopt (also creates the workflow labels if the repo lacks them) |
| Resume | feature status |
| Record the user's request | feature prompt "<request>" |
| Link the PR | feature pr <number> |
| Rewrite the PR description | feature describe [--title "<t>"] [--attach <file>]… --body-file - <<'EOF' … EOF |
| Find the PR's worktree, refusing one outside this thread's checkout or a checkout of another repo | feature worktree --repo <OWNER/NAME> --branch <branch> --inside <checkout> |
| Pin the round: the default reviewers, the worktree they read, the head to record, the range they review | feature reviewer --branch <branch> |
| Record a review | feature review record --sha <sha> --found [<problem#> ...] [--regressions <problem#> ...] --summary "<sentence>" --risk <r> --door <one-way|two-way> --blast-radius "<words>" --complexity <c> --why "<sentence>" --reviewer "<model>" [<problem#> ...] [--reviewer "<model>" [<problem#> ...] ...] --code-review "<model>" [<problem#> ...] |
| Problems | feature problem list [--open], add [--repeats <fixed #>], block <#> --reason "…" |
| Merge check | feature gate: exit 0 OPEN, 10 REVIEW_AGAIN, 20 NEEDS_DECISION, 30 MERGED, 40 REDESIGN; 1/2 mean the command failed |
| Old repo/issue after a CLI upgrade | feature migrate |
Track the PR. Take the PR the caller named, else the current branch's open PR in the
repository of this checkout's origin (git remote get-url origin). Look it up with that
repository named: gh pr view <PR#, URL or branch> --repo <OWNER/NAME> --json number,url,headRefName,baseRefName,isDraft,state. Without --repo, gh picks among the
checkout's remotes itself, preferring upstream, so PR #N can resolve in another repo. The PR's
repository is the OWNER/NAME in its url; every gh command this round runs names it with
--repo. No PR → don't review;
report that one must be opened against the parent branch. Load the T3 tools the round uses
with ToolSearch now: t3_worktree_status here, and step 3's orchestrator_capabilities,
delegate_task, t3_thread_wait, t3_thread_read and task_cancel.
This thread's checkout is the folder every reviewer starts in: t3_worktree_status gives
it, its worktreePath when attached, else its projectWorkspaceRoot. feature worktree --repo <the PR's repository> --branch <the PR's head branch> --inside <this thread's checkout>
prints the worktree: the checkout that has the branch, or the one to make.
cd into it wouldn't hold. Don't review, and
report Blocked: this thread's checkout can't hold the PR, with its message and the PR's URL.Worktree to make: git worktree add --detach <the worktree>, then gh pr checkout <PR#> --repo <the PR's repository> inside it.feature status says so): feature adopt. It links the open PR and takes the PR's base as the parent, or refuses if
the branch's git-town parent differs. When another feature issue links the PR already and is the branch's one
live record, it wires the branch to that issue instead: go on. When it refuses over whose the PR is (several
issues link it, the one that does is finished or tracks another branch, or a state block can't be read),
don't review, and report Blocked: feature ownership, with its message. It names feature adopt --as <issue> and the issues to pick from: the pick is the user's, so don't run it unless your arguments name it.feature pr <PR#>.feature gate. OPEN: don't review; report it, unless your arguments ask for a fresh
review. NEEDS_DECISION: don't review either; the budget is spent or the loop churns, and only
the user buys another round (feature budget --set, which reopens the gate). Report it.
REDESIGN: don't review either; a kind of bug came back after its fix, and the caller's fix
round redesigns first, so a review now would read code about to be replaced. Report it.Describe the PR. A branch from feature start got its title and description before any
code existed. When they no longer fit what the branch does (always on its first ship), rewrite
them. It runs in this order, with no headers:
git log --format='%s%n%b' origin/<base>..HEAD), not from the
diff: the reviewers' spec check reads the PR's intent from these sentences.The title says what the PR does, in plain words. End the description with your signature
line if your harness asks for one. feature describe takes the text with or without ship's
block (editing the fetched body is fine) and writes exactly one, above that signature. The
reviewers and step 5 read this description to know the PR's intent, so it comes first.
Have the reviewers find, blind, side by side. Every round runs each default brief
reviewer feature reviewer prints and the /code-review reviewer; a reviewer the user names
replaces every brief default for the run, never /code-review. feature reviewer --branch <branch> pins what they review: the PR's head and base as one gh pr view saw them,
the base fetched. It refuses, changing nothing, unless the PR's worktree is at that head with no
changes to tracked files. When GitHub hasn't yet moved the PR's head to a push, it waits for it,
for up to five minutes, so run it with a ten-minute timeout. It prints a T3 provider instance
and a model id for each default reviewer, the worktree all read, the head, which step 7 records,
and the range <base sha>...<head sha> all review, the diff GitHub shows of the PR, stacked or
not, whatever its size:
feature reviewer printed. A name replaces only the brief ones: the /code-review reviewer
runs every round, so naming Claude makes every reviewer Claude;/code-review reviewer, running the /code-review command feature reviewer
printed, with the task after the brief;feature reviewer printed as a default) is that reviewer: start it once, and record it once in step 7.Those are the round's reviewers: look up and check only them, never a default it doesn't run.
Call orchestrator_capabilities once, for all of them.
A reviewer feature reviewer printed is that provider's model with that exact id, never
another of its family, even a newer one: the short list lags what T3 can run. Only an id
missing from the list gets a second call, with search: "<the id>", which must return that
id. A reviewer your arguments name is a name, not an id. When it is one of the names
feature reviewer printed for a reviewer (the named … part of its line, whatever the case), it
is that reviewer's provider and id, taken as above. Any other name is a family with no pin: it
takes that family's newest model, from the list and a second call with search: "<the name>"
both, since the list alone lags.
Every round runs each reviewer at high reasoning effort, whatever the PR: among that model's
options, as listed, set the one that is its reasoning effort to high (Codex calls it
reasoningEffort, Claude effort, Gemini variant; take the name the listing gives, never one
from memory). Pass that option alone: an option you don't pass isn't reset to the model's
default, a child of this thread's provider inherits it from this thread. Start them all in one
message, a delegate_task each, with the brief below or, for the /code-review reviewer, the
task after it, and title: "Review PR #<n> (<the reviewer's name>)", mode: "wait", role: "review", timeoutMs: 45000 (the most the tool takes; a timeout doesn't cancel the child) and
target: {providerInstanceId: "<provider>", model: <model>, options: {"<that option's id>": "high"}}.
Keep each task id and its child thread id. No reviewer gets anything about tracked problems or
earlier rounds: they must find without them. Fill the user's request in the brief from the
Last prompt line of feature status. A review runs longer than a wait: call t3_thread_wait
on each task's child thread, and again each time one returns unfinished, until every run
finishes, even where a result says to end your turn; then read each reviewer's final message to
its end: t3_thread_read its child thread with maxCharsPerItem: 20000, and while the message
comes back cut off, read it again with its itemId and textOffset: <the nextTextOffset returned>, until no nextTextOffset comes back. A page holds 20,000 characters at most, and a
big PR's findings run past it. You run as a subagent, so ending your turn ends the round
without a review. Never cancel a running reviewer to review yourself instead. The round fails,
and you stop, when feature reviewer refuses the PR, the id or named family of a reviewer the
round runs isn't listed even by its search, none of its options is a reasoning effort that
lists high, more than one of them could be its reasoning effort, any reviewer comes back
failed (an auth or gateway error, a crash, or the /code-review reviewer's "review failed"),
or any waits on a question or an approval: nobody here answers it. Then task_cancel each
reviewer still running, record no review, put the failing reviewer's error or question
verbatim in the report, and don't substitute another reviewer or record the round on some
reviewers' findings. Leave the PR's worktree as it is until all have finished: the reviewers
read its code.
The reviewer's brief:
Review PR #<n> in <owner/repo> at its head <the head feature reviewer printed>, which <the
worktree feature reviewer printed> has checked out. `gh pr view <n> --repo <owner/repo>` for its description, and
its diff as `git diff <the range feature reviewer printed>` in that worktree; read code only
there, never another checkout. Read-only: no edits, commits, pushes or GitHub comments.
Find real defects this PR introduces: wrong results, crashes, data loss, security holes,
broken edge cases on realistic paths, races, missing error handling, and breakage outside
the diff. Callers are the easy part of that. Follow what a symbol search misses: a wire
format, a DB column or stored file another reader parses, a config key or feature flag,
another language reading the same bytes, code a few hops downstream, the source of a library
the change leans on. Check each against the code before reporting it. Skip style and taste.
For each finding give: a title; severity (high = data loss, security hole, crash or silently
wrong result on a realistic path; med = a real bug on a narrower path; low = anything else);
file:line; a concrete failure scenario (inputs or state → wrong outcome); the evidence, as
far up this ladder as is cheap: cited (you read the line), traced (you walked the failure
step by step and it gets there), ran (a script or test calling the real code fails as
described; include it); the root-cause fix. If you find nothing, say so plainly.
Then, separately from the defects, three more checks, each under its own heading. Give each
finding a title, file:line where there is one, and the root-cause fix; no severity.
- Spec: what the PR's intent asks for that the diff leaves missing or partial, and behaviour
the diff adds that nothing asked for. The intent is the PR description's prose (its evidence
shows what was built, not what was asked), the issues it or its
commits reference, and the user's request: <recorded request, or "none recorded">. Don't
open issues labelled `feature` or `problem`: they're this review's own bookkeeping. Quote the
line of intent each finding rests on. Something asked for but built wrong is a defect: report
it with the defects above.
- Design: breaches of the repo's documented coding rules (AGENTS.md, CLAUDE.md,
CONTRIBUTING.md and the like, and your own instructions), citing the file and the rule; and
these smells in the PR's own code, each a judgement call ("possible Feature Envy"):
- Mysterious Name: a name that hides or misstates what the thing does or holds.
- Duplicated Code: the same logic shape in more than one place in the change.
- Feature Envy: a function that works on another object's data more than its own.
- Data Clumps: the same few fields or parameters travelling together, a type wanting to exist.
- Primitive Obsession: a string or number standing in for a domain concept.
- Repeated Switches: the same switch or if-cascade on the same type in several places.
- Shotgun Surgery: one logical change scattered as edits across many files.
- Divergent Change: one module edited for several unrelated reasons.
- Speculative Generality: abstractions, parameters or hooks for needs nothing has.
- Message Chains: callers walking `a.b().c().d()` they shouldn't depend on.
- Middle Man: a class or function that mostly just delegates onward.
- Refused Bequest: a subclass or implementer that ignores most of what it inherits.
A documented rule wins over a smell. Skip what a linter or formatter enforces.
- Comments: each comment, docstring and lint or type-checker suppression the diff adds or
rewrites. A comment that explains our own code is usually covering for it, so read each one
as a pointer to the code and sort it:
- Covers a flaw: it explains a surprise in our own code (a misleading name, an argument that
must be passed just so, an order that matters, a special case), or justifies a workaround
("fine for now", "too risky to change", "needed because X does Y"). The finding is the
code, named by its symbol, and the fix is the redesign that makes the comment unnecessary:
a rename, an extracted function, a type, the workaround removed at its cause. The comment
goes with it. A shorter comment is never the fix.
- Claims a constraint: "do not remove", "keep in sync with X", "must run before Y". Check the
claim against the code. If it holds, the fix enforces it with a type, test, runtime check
or lint, and deletes the comment; if it doesn't, the fix deletes the comment.
- Says nothing the code doesn't: narration of what it does, banners, commented-out code,
history ("was X", "now uses Y"). The fix is to delete it.
- Kept, and no finding:
- license headers and formatter directives (`# fmt: off`, `// prettier-ignore`);
- behaviour forced by an external dependency, platform, vendor or protocol we can't
change, checked against the code: a surprise in our own code doesn't qualify;
- doc comments and docstrings that define a public API's contract;
- issue or RFC links that explain a constraint the code can't express;
- comments the repo's AGENTS.md or CLAUDE.md asks for, by that file's own bar;
- text the code reads at runtime, where cutting it changes behaviour: a docstring that
becomes a schema or a prompt (a pydantic model's does), a tool description, CLI help.
Report a comment when you're unsure a keep clause covers it, unless cutting it could change
behaviour. A suppression stays only when its rule is wrong here or style-only; one that
silences a correctness or safety rule covers a flaw, fixed in the code it silences.
Then grade the PR as a whole: risk and complexity each low/med/high, the door and the blast
radius, plus one or two sentences on what drives the risk and complexity:
- risk, what a bug left in this change would cost: who it would reach (the blast radius) and
how hard it would be to undo (the door). Judge the stakes from the repo (its README, what it ships and to whom): the same
bug costs far less in a personal tooling repo than in a service with users. high: lasting
harm to others that is hard to undo, like data lost or corrupted beyond easy restore,
security or auth, money, migrations of stored data, shared infra or deploys. med: wrong
behaviour that users or other systems hit on a main path, public APIs, error handling. low:
a mistake its author sees and fixes by hand: docs, tests, tooling only its author runs,
internal refactors with good coverage, and text written to GitHub (PR bodies, issues,
comments), which keeps every edit. Risk is the cost of a bug, not how likely one is (that
is complexity) or how serious the subject sounds.
- door, one-way or two-way: whether reverting the PR undoes what a bug in it did. one-way:
stored data rewritten or migrated, data or messages sent out, a deploy cutover or interface
others come to depend on. two-way: a revert puts everything back.
- blast radius, in a few words: who or what a bug would reach, e.g. "every vertical's page",
"refine and chat titles", "only this repo's own tooling".
- complexity, how hard the change is to get right. high: subtle state, ordering, caching, new
invariants, many interacting parts. med: real logic in a few places. low: mechanical or local.
The /code-review reviewer's task. /code-review reviews the range, so it never asks GitHub
for the PR's diff, which GitHub refuses past 300 files or 20,000 lines, and it reads the code
from the folder its shell is in, adding that checkout's uncommitted changes to what it reviews:
hence the PR's worktree, at the head with no tracked changes. The child starts in this
thread's checkout, so it moves into the worktree first and checks the move held.
First, as two separate shell calls: `cd <the worktree feature reviewer printed>`, then `pwd -P`.
If the second doesn't print that path's `realpath`, stop and report the review failed, quoting
both outputs. Then run `<the /code-review command feature reviewer printed>`, exactly as
written, from there: PR #<n>'s worktree in <owner/repo>. The project instructions you started
with are those of the checkout you started in: where the worktree's own AGENTS.md, CLAUDE.md or
the like differ, the worktree's are the PR's rules. If it fails, stop and report the
review failed, quoting its error. Read-only otherwise: no edits, commits, pushes or GitHub
comments, and don't pass --comment or --fix. When /code-review finishes, write every finding
it reported in your final message as plain text, one per finding: title, severity, file:line,
failure scenario, evidence and fix. If it reported none, say so. If it says nothing was
reviewed, report the review failed, quoting its sentence.
Now load state: feature problem list --open, plus closed problems for regression checks.
Verify and dedup each finding of every reviewer against the real code. Keep which reviewer each finding came from, so each problem steps 5–6 file or block is credited to every reviewer whose findings went into it:
sudo, not even sudo -n: it stops for the user's approval. To make a file owned by
root or by a uid the host doesn't know, chown it from a container (docker run --rm -v <dir>:/d alpine chown -R <uid>:<gid> /d/<path>), and hand it back the same way once done, so the
scratch dir can be deleted.low. So is code, a test or
a guard the intent doesn't need.feature problem block <#> --reason "rediscovered: <repro>", and pass it in --found (and, if high/med, in --regressions).
Never gh issue reopen.--repeats <#>. It tells
the gate the fix patched an instance, not the cause. A shared category isn't enough: two
unrelated missing null checks don't repeat each other.rejected) → skip,
unless the new repro answers the reason. Then block it. A problem disputed twice goes to the
human: escalate with both sides.problem add it and it doesn't hold
the gate. If it survives the same verification, list it under Pre-existing in the report.high = data loss, security hole, crash, or
silently wrong result on a realistic path; med = real bug on a narrower path; low =
everything else. Always pass --sev. Severity orders the work and feeds the churn trend; it
doesn't decide what blocks. Every filed problem blocks until it's closed./code-review reviewer's broken-rule and cleanup findings are design findings) go through the same dedup, then --sev low, always. They
block like any other problem. Their evidence is a citation, not a trace: drop a spec gap whose
quoted intent doesn't say what the reviewer claims, a rule breach the cited rule doesn't cover, a smell
outside the PR's own code, a comment the PR didn't add or rewrite, and one the brief's keep
list covers (read the code for the external constraint or the runtime read it claims). Title
them Spec: …, Design: … or Comments: …. A comment that covers a flaw is a design
finding: file it as Design: … on the code it names, with the comment quoted in the body, and
merge it with any smell or rule finding on the same code. If the reviewer proposed only deleting a
comment that explains our own code or justifies a workaround, file the flaw it covers
instead, with its redesign. A constraint to enforce is a Comments: … problem of its own.
The comments that only need deleting go in one Comments: … problem, listing each
file:line.File new ones: feature problem add --title "…" --sev … [--repeats <#>] --body-file - <<'EOF' … EOF, with
the repro, its evidence (traced or ran, with the script if ran; for a spec gap, the quoted
intent; for a design finding, the rule or smell and the code; for a comment, the comment, which kind
it is and why no keep clause covers it), file:line and the suggested
root-cause fix.
Record: feature review record --sha <the head feature reviewer printed> --found <#> … …,
never the worktree's git rev-parse HEAD: a commit that lands there mid-round was reviewed by
no reviewer, and recording the printed head leaves it to the next round. Pass
--found listing every problem steps 5–6 filed or blocked this round (bare --found if none);
the CLI counts them by severity and lists them in the round's row of the rounds table, in the PR body (low ones
counted, not numbered) and in the tracking issue (all numbered), which shows once they're all closed. Write
--summary as a real sentence about what was reviewed and found, never a bare "clean pass";
name any spec, design and comment findings in it. Pass the brief reviewers' grade as --risk,
--door, --blast-radius, --complexity and --why, never lowered. Raise complexity when
the findings show the change was harder to get right than the reviewers graded. Raise risk only
when a finding shows a bug costs more than they graded: it reaches further (widen the blast
radius) or is harder to undo (the door turns one-way). Many findings in a low-risk change still
mean low risk. When several reviewers ran the brief, combine their grades field by field: the
highest risk and the highest complexity, one-way if any of them says so, the widest blast
radius, and as --why the sentences of the reviewers whose grades these are. The CLI
writes the grade into the PR body for the human. Then every reviewer, each with what step 5
credited to it, which the PR body's rounds table shows in a column per reviewer, with those no other reviewer found
counted apart, for the user to compare the reviewers by: --reviewer "<model>" <#> … for each that ran the brief, and
--code-review "<model>" <#> … for the /code-review one. The model is as
orchestrator_capabilities listed it in step 3: its label, else its id. The numbers are the
problems of --found its findings went into, none if it had none. A problem several reviewers
found goes after each of them, and every problem of --found after at least one: the CLI
refuses a problem no reviewer found.
wontfix is only for a problem that isn't relevant (a false positive, by design,
outside this PR's scope), never for a real problem nobody has fixed yet.End with only this, filled in:
Feature: <name> Branch: <branch> PR: <url or none> Worktree: <abs path>
Did: <one line>
Review: <provider> <model> for each reviewer, the /code-review one marked; graded risk <…> (<door> door, blast radius <…>), complexity <…> (or not run: <why>, with the failing reviewer's error verbatim if it failed)
Gate: <the gate line from `feature review record` or `feature gate`, its reasons included, or not run>
Open: #<n> [sev] <title> — <file:line>, fix: <root-cause fix> (every open problem, low included, one per line; or none)
Pre-existing: [sev] <title> — <file:line>, <failure scenario>, fix: <root-cause fix> (bugs this PR didn't cause, one per line; or none)
Blocked: <only when the round couldn't run: no PR, the PR's base isn't the tracked parent, this thread's checkout can't hold the PR, feature ownership (adopt's refusal over whose the PR is), a reviewer unavailable or failed; what it needs>
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub vladsavelyev/skills --plugin ship5 skills in this plugin
/closeUse when a PR has merged and its feature should be closed out, or the user says it's merged, done, or asks to close it out./fixUse when `Skill(ship:ship)` fixes the open problems of its run./shipUse when the user asks to ship a PR, or to babysit or watch one./startUse when the user starts new work — a new feature, branch, worktree or draft PR.