/review:pr-reviewfrom Review toolkit
Orchestrate a three-stage review (correctness, type safety, comment audit) of one PR or a stack of PRs, delegating each stage to a subagent with a structural brief and consolidating one report. Use when asked for a comprehensive, full, or three-stage PR review, or to review a PR stack.
Ships in Review 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; scripts run unread.
Three reviews of the same diff merged into one report: correctness, type safety, comments. Correctness runs as two independent passes: the harness's code-review skill invoked by the orchestrator at a level set by the PR's size, and a stage subagent reviewing by hand. When code-review is not listed, a stage subagent running review:correctness-review takes the first pass, so there are always two. The orchestrator resolves the refs, builds a structural brief, dispatches everything, and consolidates what comes back. On Claude Code with workflows enabled, the brief, the stage dispatch, and the consolidation run as the plugin workflow review:pr-review-stages (the workflow path in step 3); elsewhere the orchestrator does them by hand.
The orchestrator keeps its context lean. It reads briefs and subagent reports and nothing else. It never opens a diff, a changed file, or a git show, however small the PR looks. Everything that needs the diff happens inside a subagent.
/review:pr-review <pr> [<pr> ...]
One PR number, or several forming a stack in merge order. Everything else is resolved from gh.
For each PR number:
gh pr view <n> --json number,title,baseRefName,headRefName,headRefOid,url
Each PR is reviewed against its own baseRefName, never against the trunk. In a stack, PR two's base is PR one's head branch, so reviewing it against main would re-review PR one's diff. PR two's <BASE> is PR one's resolved <HEAD> rather than a separate fetch of origin/<baseRefName>, so the two reviews meet at the same commit.
Fetch the base branch and the PR head so the diff resolves in this clone. GitHub publishes every PR head on the base repository as refs/pull/<n>/head, fork or not, so the head comes from there and never from <headRefName>, which may live in a fork.
Before the fetch, check that origin is the repository gh resolves pull requests against: compare nameWithOwner from gh repo view --json nameWithOwner with git remote get-url origin. When they name different repositories (a clone of a fork with gh pointed at upstream, or a caller passing --repo for another repository), stop and say so: the base would be fetched from the wrong repository, and the SHA fallback cannot fix a base. Reviewing from a fork clone is out of scope.
git fetch origin <baseRefName> +refs/pull/<n>/head:refs/pr-review/<n>
The base and head passed to every stage are then origin/<baseRefName> and pr-review/<n>. headRefName is for display only. The + lets a re-review after a force-push update the ref. The ref lives outside refs/remotes/origin/ because a plain git fetch --prune deletes anything there that is not a branch on the remote, and a branch named pr/<n> would overwrite it.
When git rev-parse pr-review/<n> differs from <headRefOid>, the branch moved after the gh call. Run gh pr view <n> --json headRefOid once more. If the refreshed value matches the ref, continue with the pull ref and the refreshed <headRefOid>. If it still differs, take the SHA fallback below with the refreshed <headRefOid>.
The SHA fallback is also taken when the pull ref cannot be fetched (a remote that does not publish it). A failed combined fetch leaves the base stale, so the fallback fetches the base together with the head commit and passes the SHA as <HEAD>:
git fetch origin <baseRefName> <headRefOid>
Every consumer of <HEAD> takes a commit-ish, so a bare SHA works in the <BASE>...<HEAD> diff, in git rev-parse, in git grep, and in git worktree add. If the branch is force-pushed after the gh call, the review stays on the commit gh reported.
Size each PR once its <BASE> and <HEAD> resolve, with the bundled script, which reads the same diff the stages review:
bash ${CLAUDE_PLUGIN_ROOT}/skills/pr-review/scripts/pr-size.sh <BASE> <HEAD>
It prints one line, lines=<n> code-review=high|xhigh|max correctness-review=1|3|4. code-review= is the level for the code-review first pass: high up to 300 lines, xhigh up to 3000, and max over that. correctness-review= is how many subagents run the correctness-review first pass when code-review is not listed: 1 up to 200 lines, 3 up to 1200, and 4 over that. Take both as printed and never recount by hand. The script counts added plus deleted lines and leaves out lockfiles, binary files, and the unchanged part of a moved or renamed file, so a file moved without edits counts zero. Each PR of a stack is sized on its own diff, since its <BASE> is the head of the PR below it. The number of files plays no part: a change spread over many files but a few hundred lines still fits in one context. The fields set how the first correctness pass runs in step 3. Their cutoffs differ because a higher code-review level adds finder and verifier subagents, while more correctness-review subagents only spread the same angles over more contexts. The thresholds live in the script and are a starting point to tune, not a measured value.
State the resolved pairs before starting, one line per PR: number, title, base, head, url, the script's line, and head from SHA fallback when the SHA fallback was used. If gh is unavailable, a number does not resolve to a PR, origin is not the repository gh resolves against, the SHA fallback fetch fails, origin/<baseRefName> still does not resolve, or the size script fails, stop and say which number failed. Do not guess a base ref.
One brief per PR, plain text, pasted whole into every subagent prompt for that PR.
If the investigate:brief skill is available (the investigate plugin from this marketplace), invoke the investigate:brief skill to get its script path under ${CLAUDE_PLUGIN_ROOT}, and build the brief from the script's output plus part of the lighter brief below. Paste the outputs concatenated as the brief.
<HEAD>, since it reads the working tree. When the current checkout is already there and clean (git rev-parse HEAD equals git rev-parse <HEAD> and git status --porcelain prints nothing), run it in place: that checkout has its node_modules or vendor and its gitnexus registration, so the brief is richer. Otherwise create a worktree named after the PR in a scratch directory outside the repository, git worktree add <scratch>/pr-review-<number> <HEAD>, and remove it afterwards with git worktree remove <scratch>/pr-review-<number>. A fresh worktree has no node_modules or vendor, so language-server types and callers degrade, and its directory name does not match the gitnexus registry, so the Tools line reads gitnexus: unavailable (...) and graph sections are omitted..mjs, .cjs, .mts, .cts, and not named *.test.*, *.spec.*, or *.stories.*, which the script leaves out. Take the directory of each, then drop every directory that is an ancestor of another on the list. A dropped directory's own changed source files, and changed source files at the repo root, are targeted one file at a time instead of by directory, so . is never a target. Directories with no changed sources (manifests, docs, workflows) get no run.FAILED and still builds the brief, and the review goes on without docs. A run that still exits non-zero (a deleted directory, no sources) gets no per-directory fallback; item 4 covers its files.When the script's output lists no symbols and git diff --stat shows most of the changed lines are in .py files, build the brief from the commands below instead, and record under ## Not available in this run that the structural brief came from the fallback commands.
If it is not, build a lighter one from these commands:
git diff --stat <BASE>...<HEAD>
git diff -U0 <BASE>...<HEAD> | grep -E '^@@'
git diff <BASE>...<HEAD> | grep -E '^\+(export )?(async )?(function|class|const|interface|type) |^\+[[:space:]]*(public|protected|private) function'
git diff <BASE>...<HEAD> -- '*.py' | grep -E '^\+[[:space:]]*(async )?def [A-Za-z_]|^\+[[:space:]]*class [A-Za-z_]'
git grep -nw <symbol> <HEAD>
<BASE> and <HEAD> are the two refs resolved in step 1, the same slots step 3 fills.
The first gives the shape of the change. The next three give the added or changed functions, classes, and methods, from the hunk headers and from the added lines. The last runs once per changed symbol and gives its callers on the head ref, which is what tells a stage whether a signature change has call sites the PR missed.
Every anchor in the third and fourth commands carries a +, so it matches added lines and not the context lines around them. Dropping the + inverts the result: every unchanged declaration in the hunk matches and every added one does not, and the per-symbol git grep then has nothing to run on.
The fourth command is for Python. A Python method is indented under its class, so its anchors allow leading whitespace before def and class. It reads only *.py files, as a separate command, because those indented anchors otherwise match markdown prose and nested TypeScript classes. For a Python symbol, run the caller command as git grep -nw <symbol> <HEAD> -- '*.py'. The word match finds a call, a decorator argument, and a reference passed as a value, such as Depends(get_db) or callbacks=[handler], and the pathspec keeps a same-named symbol in another language out of the list. Search for the bare name, never a dotted module path: a Python project without a package layout imports a sibling module by bare name and may load a hyphenated script file by path.
An empty caller list for a Python symbol is not evidence of dead code when the symbol is a function a decorator registers (a web route, a CLI command, a pytest fixture), a method a framework calls by name (a pydantic validator, a __dunder__ method), or a module imported for what it does at import time. None of them has a textual caller. List such a symbol in the brief as callers unresolved, not with an empty caller list.
Three dots, so only what the branch adds is in scope.
The commands run here produce the brief. Their output goes into the brief, not into a reading pass by the orchestrator. Keep each brief to roughly a page: the stat block, the symbol list, and the caller list.
Per PR: one first correctness pass and three stage subagents, all dispatched in the same turn so they run in parallel where the harness allows. The first pass is one code-review invocation, or, when code-review is not listed, as many correctness-review stage subagents as step 1's correctness-review= says, from one to four. A three PR stack with code-review listed is three invocations and nine subagents.
If a tool named Workflow is listed, the brief of step 2, the three stage subagents below, and the consolidation of step 4 run as the plugin workflow review:pr-review-stages instead of by hand. Run the first correctness pass first: invoke code-review, or dispatch the correctness-review stage when code-review is not listed, exactly as the next sections say, so both run at once. Then call the Workflow tool with name set to review:pr-review-stages and args set to the list from step 1, in merge order, as a JSON array value (never a JSON-encoded string), one object per PR:
[
{
"number": 117,
"title": "<title>",
"base": "origin/<baseRefName>",
"head": "pr-review/<n>",
"url": "<url>"
}
]
head carries whatever step 1 resolved: pr-review/<n>, or <headRefOid> after the SHA fallback. The same holds for the example with instructions below.
The workflow builds each brief in a subagent, runs the three stage prompts below with every return validated against a schema, and returns { report, counts }. report is the step 4 report without the first-pass merge: every correctness finding carries hand review only, and the roll-up already names what the brief and the stages skipped. counts is one { number, correctness, typeSafety, comments } per PR, a finding count per stage or null for a stage that did not report. Skip step 2 and the stage dispatch below, hold the result, and go to step 4 for the merge. The orchestrator still never opens the diff.
When the prompt that invoked this skill asks for instructions to reach the stages or the brief (the requirements the PR is meant to deliver, which repository files are the review standard, --repo <owner>/<name> on every gh call, which refs exist in the checkout, sibling= and out= for comment-audit, the package manager the gate commands use), add an instructions object to that PR, with any of brief, correctness, typeSafety, comments, and all, each a non-empty string:
{
"number": 117,
"title": "<title>",
"base": "origin/<baseRefName>",
"head": "pr-review/<n>",
"url": "<url>",
"instructions": {
"all": "Pass --repo <owner>/<name> to every gh call.",
"correctness": "The PR is meant to deliver: <requirements from the invoking prompt>."
}
}
The script appends them to that agent's prompt after the filled template and before the trailer, under ## Additional instructions from the caller, all first and the agent's own key after it; all reaches the brief and all three stages. An instruction that fits no single stage goes under all. Give each PR of a stack its own out= path, since the comments stages of a stack run at once. A PR without instructions gets no such section. The script rejects an unknown key, or a value that is not a non-empty string, naming the key. Never rewrite the templates to carry the caller's instructions, and never drop them.
The Workflow tool exists only in Claude Code with workflows enabled. When it is not listed (another harness, disableWorkflows, a plan without workflows), or the call fails before any agent runs (a syntax error in the script, a refused launch, or not found because only the skill is installed, as after npx skills add), continue as written: build the briefs, dispatch the stage subagents, and consolidate by hand. Both paths produce the same report shape. The exception is a rejected args: the call fails before any agent runs, but the tool result names the field, as in args[0].instructions.typesafety is not a known key, so fix that field and call the workflow once more instead of continuing by hand.
If the run stops after agents have run (the tool result reports an error, or the run was stopped from /workflows), relaunch it once with the scriptPath and resumeFromRunId from the first result and the same args verbatim, instructions included, as the Workflow tool documents: completed agents return their saved results, and the failed agent and those started after it run again. The same relaunch covers a PR where one or two stage sections read The stage did not report. (that stage's agent died or exhausted its schema retries): its completed agents return from the saved results and the missing stage runs again. When a stage is still missing after the relaunch, dispatch that stage by hand with the template below and a brief rebuilt per step 2, and replace its roll-up line. A PR whose three stage sections all read The stage did not report. did not complete inside the workflow: build its brief and dispatch its three stage subagents by hand, as below, and write that PR's section by the step 4 rules before the first-pass merge, replacing its roll-up line PR <n>: the pipeline stopped before consolidation, so no stage reported with what those stages skipped.
code-reviewIf a skill named code-review is listed, the orchestrator invokes it once per PR, from its own context, with a level and the PR number as the target. The level is fixed so that runs are reproducible, since without one the skill reuses whatever level was typed last:
code-review high <number>
code-review xhigh <number>
code-review max <number>
Step 1's code-review= is the level. high and xhigh run their angles in one context; max runs them as subagents, so a diff too big for one context still gets every angle.
The skill runs its review in a background subagent and returns only that subagent's name. Its report arrives later as a task completion notification addressed to the session that invoked it. Invoked from the orchestrator, that is the orchestrator. Invoked from inside a stage subagent, the harness parents the background subagent to the top-level session anyway, so the notification bypasses the stage, and the stage waits for a result that never reaches it. That is why the stage template below reviews by hand and does not invoke code-review.
The notification carries the report as text. Hold it for step 4, and to keep it on disk write that text to the scratchpad with the Write tool. Consolidation waits until it has arrived; the correctness section is never written from what the skill was expected to find. If the skill is not listed, the next section's correctness-review stage takes the first pass. If the code-review subagent stops without a report, the hand review is the only correctness pass, and ## Not available in this run says so. Never read or copy the task's .output file: for a background subagent it is a symlink to the subagent's JSONL transcript under ~/.claude, not the report, and touching it stops the session on a permission prompt.
The same parenting applies one level down, on max only, the level where code-review spawns its own finder subagents. Those finders are registered under the orchestrator's session as well, so their results arrive at the orchestrator while the fork idles with nothing left to wait on. The sign is a completion notification from the fork saying its finders are still running, followed by idle notices from agents named finder-*. Collect every finder result that arrives, then send them verbatim in one message to the fork by its name, code-review. It resumes, runs its verification pass, and returns the consolidated report as a second completion notification. Finder results are candidates, not findings; only the fork's consolidated report enters step 4.
correctness-reviewWhen no skill named code-review is listed, the orchestrator dispatches the first-pass template below as a stage subagent, in the same turn as the other stages. Its slots are filled as in the table under the next heading, plus <ANGLES>:
correctness-review=1: one subagent runs with <ANGLES> set to A,B,C,D,E.correctness-review=3: three subagents run, with <ANGLES> set to A,B, C, and D,E.correctness-review=4: four subagents run, with <ANGLES> set to A, B, C, and D,E. E gets no subagent of its own, since it finds nothing when the diff touches no forwarding code.When more than one subagent runs, the orchestrator merges their reports into one first-pass report by listing each subagent's findings. It combines two entries only when their path:line and outcome are identical, and it never judges whether two different claims are the same finding. An angle a subagent lists under ## Skipped only because its <ANGLES> left it out is dropped from the merge when another subagent ran it. When some but not all of them do not report, the angles they owned go under ## Not available in this run.
On the workflow path the brief is built inside the workflow, so the orchestrator has none when it dispatches this stage. There, <BRIEF> is the line No brief for this pass; find the changed symbols and their callers from the diff.
The merged report is held for step 4 in place of the code-review report. When every first-pass subagent stops without a report, the hand review is the only correctness pass, as for code-review. A first-pass subagent that could not invoke the skill and reviewed by hand says so under ## Skipped; its findings carry the hand review only label, not correctness-review only.
Correctness stage, the first pass:
Review PR "<PR_TITLE>" (<PR_URL>) for correctness. Base ref <BASE>, head ref <HEAD>.
Only what the branch adds is in scope: git diff <BASE>...<HEAD>, three dots.
Structural brief:
<BRIEF>
Invoke `review:correctness-review base=<BASE> head=<HEAD> angles=<ANGLES>`. That
skill returns its report as its response and writes no file. Use the brief as the
starting list of changed symbols and their callers.
A separate stage reviews the same diff by hand as the second correctness pass, so
your findings are this skill's reading of the diff alone.
Return the skill's three sections, `## Findings`, `## Validated`, and `## Skipped`,
unchanged and nothing else. If the skill cannot be invoked, review the diff by hand,
end every finding with its outcome (crash, wrong data shown, wrong data persisted,
harmless, question), and say so under `## Skipped`.
Each prompt is one of the templates below with these slots filled:
| Slot | Value |
|---|---|
<BRIEF> | the whole brief from step 2, for this PR |
<BASE> | origin/<baseRefName> from step 1, or the previous PR's <HEAD> in a stack |
<HEAD> | pr-review/<n> from step 1, or <headRefOid> when step 1 fell back to the SHA |
<PR_TITLE> | the PR title |
<PR_URL> | the PR url |
Instructions the invoking prompt asked to add to a stage, or to every stage, go after the filled template, under ## Additional instructions from the caller, the same place the workflow puts them, and never inside the template. Instructions aimed at the brief, or at every agent, apply to step 2 whenever it runs by hand, including a brief rebuilt after a relaunch.
Correctness stage, the second pass:
Review PR "<PR_TITLE>" (<PR_URL>) for correctness. Base ref <BASE>, head ref <HEAD>.
Only what the branch adds is in scope: git diff <BASE>...<HEAD>, three dots.
Structural brief:
<BRIEF>
Review by hand: read the diff and the changed files, and look for behaviour changes,
error handling, boundary conditions, and missing tests. Validate any claim you can by
running the project's tests or linters; record what you ran.
For a Python project, run `pytest`, `ruff check`, and the configured type checker
(mypy, pyright, pyrefly, or ty), resolving each command the way step 0 of
`review:comment-audit` does. When pytest runs with `filterwarnings = ["error"]`, a
new deprecation warning fails the suite, so a passing run is also evidence that the
branch adds no warning. Look in particular for a mutable default argument; a bare
`except:` or an `except Exception: pass`; a coroutine called without `await`; `is`
compared with a literal; a collection mutated inside the loop that iterates it; a
`datetime.now()` without a timezone where the stored value has one; an f-string or
`%` interpolation inside a SQL or shell call; blocking I/O inside an `async def`
that belongs in `asyncio.to_thread` or an async client; and a module-level
environment read that raises at import time and so leaves the module untestable.
These are leads, not rules: each finding still ends with its outcome.
When the diff calls a third-party library or works around one, check the call
against that library's docs. Take the source from the brief's doc sources: one whose
verdict starts with USE, or the pinned id when it starts with PIN; any other verdict
means no usable docs. Ask context7's `query-docs` how the documented API does the
same thing, and report code that works through a roundabout or undocumented path
where the docs give a direct one, citing the doc. When the brief lists no usable
source, or context7 is unavailable or a query fails, read the installed package under
`node_modules/` or `vendor/` instead, or skip the check and list it under
`## Skipped`. Missing docs never stop the review.
End every finding with its outcome, one of: crash, wrong data shown, wrong data
persisted, harmless, question. Harmless means no crash, no wrong data shown or
persisted, and an effect that clears on retry or reload. Question means the diff
could not settle the claim and you are asking the author. The outcome separates a
bug from a harmless edge case or a question, and a finding without one is graded as
a bug. A finding about structure rather than behaviour (dead code, duplication,
layering, a convention) ends with harmless.
Skills that run in a background subagent, `code-review` among them, deliver their
result to the session that spawned you, not to you. The orchestrator runs
`code-review` itself as a separate pass, so your findings are your own reading of
the diff.
Return exactly these three sections and nothing else:
## Findings
One entry per finding, each starting with `path:line` on the HEAD side, then the
claim in one or two sentences, then the outcome. No finding without a `path:line`.
## Validated
Every check you ran, with the command and its result.
## Skipped
Every skill, tool, or check you could not use, with the reason.
Type safety stage:
Review PR "<PR_TITLE>" (<PR_URL>) for type safety. Base ref <BASE>, head ref <HEAD>.
Structural brief:
<BRIEF>
Invoke `review:type-safety-review base=<BASE> head=<HEAD>`. That skill returns its
report as its response and writes no file. Relay its findings in the shape below,
keeping each finding's rule id (`PHP-1` to `PHP-5`, `TS-1` to `TS-4`, `PY-1` to
`PY-5`), its verbatim quote, and its proposed shape.
That skill inherits comment-audit's `base=`/`head=` detection and its ask. Both are
already given above, so if it asks for anything else, you have no one to ask: record
the miss under `## Skipped` and carry on with the rest of the review rather than
stopping.
Return exactly these three sections and nothing else:
## Findings
One entry per finding, each starting with `path:line` on the HEAD side, then the
rule id, the quote, the reason, and the proposed shape.
## Validated
Every check you ran, with the command and its result.
## Skipped
Every skill, tool, or check you could not use, with the reason. Include the paths
the skill reported as skipped for being generated or vendored.
Comments stage:
Review PR "<PR_TITLE>" (<PR_URL>) for comments and documentation. Base ref <BASE>,
head ref <HEAD>.
Structural brief:
<BRIEF>
Invoke `review:comment-audit base=<BASE> head=<HEAD>` in report mode. Never pass
`--apply`: this run reports and changes nothing. That skill writes its report to a
file. Read that file and return its summary and findings in the shape below.
That skill's step 0 asks for `readme=` when a MOVE verdict needs one, and for a
`base=` it cannot resolve. You have no one to ask. Both are already given above
except `readme=`, so if it asks for that, record the miss under `## Skipped`, take
the proposed text it writes without a path, and carry on with the rest of the
audit rather than stopping.
Return exactly these three sections and nothing else:
## Findings
The audit report lists findings as `**L123, VERDICT**` under a `### path` heading;
prefix each one you relay with the path from its file heading, so it reads
`path:line`. One entry per finding, each starting with `path:line` on the HEAD side,
then the verdict (DELETE, TRIM, MOVE, KEEP, UNSURE, WRONG), the verbatim comment,
and the rewrite or pointer where the verdict has one. For a DELETE or TRIM, also give
the comment's first and last HEAD line as `L<start>-L<end>`: the start is the audit's
`L123`, and the end is the start plus the comment's line count at HEAD minus one, so
a three-line comment at `L123` is `L123-L125` and the span the rewrite replaces is
explicit. KEEP verdicts may be one line each.
## Validated
Every check you ran, with the command and its result. Include the report file path
and the comment line count the audit opened with.
## Skipped
Every skill, tool, or check you could not use, with the reason.
Subagents may use IDE MCP tools, a local database, or a REPL when those exist in the setup. They record what they used under ## Validated and what they could not under ## Skipped. A stage that returns no ## Skipped entries had everything it needed.
A subagent that cannot invoke its skill falls back to reviewing by hand against the same criteria and says so under ## Skipped. It does not return an empty report.
One report, written by the orchestrator from the subagent responses. It is the whole output of this skill:
# Review: <PR list>
## <number> <title>
<url>
### Correctness
### Type safety
### Comments
## Not available in this run
Rules for the body:
path:line from the HEAD side, so it can be pasted as a PR review comment, and keeps its outcome clause, which decides its label downstream.also reported by <stage>. The orchestrator has not read the diff and does not decide whether two claims at one line are one finding; review:pr-comments shows it once (step 5).### Correctness merges the two passes. A finding both passes reported appears once, labelled both passes. A finding one pass reported keeps its label, code-review only, correctness-review only, or hand review only, so the reader knows how much weight it carries. correctness-review only marks a first-pass finding when the correctness-review stage ran in place of code-review. A first-pass finding from a subagent that reviewed by hand because it could not invoke the skill is labelled hand review only. Where the passes disagree, both claims are listed under the finding; the orchestrator does not pick a side, since it has not read the diff.## Not available in this run names every skill or tool any subagent listed under ## Skipped, once each, with the stages that wanted it. If code-review was not listed, it is named here with the reason and the line says that correctness-review replaced it. If the first pass, code-review or correctness-review, returned no report, it is named here with the reason, and the correctness findings carry the hand review only label. When some but not all of a split first pass's subagents did not report, the angles they owned are named here, and the findings of the subagents that did report keep correctness-review only. When every stage had everything, the section says so in one line rather than being dropped.## Not available in this run says which trigger applied (refs/pull/<n>/head was not fetchable, or the branch moved after the gh call) and names the SHA reviewed, so the reader knows the head came from gh rather than from the pull ref.On the workflow path the script has written everything above except the first-pass merge, which stays a model step. It runs the same way whether the first pass was code-review or the correctness-review stage, with that pass's label: a finding both passes reported becomes one entry relabelled both passes; a finding only the first pass reported is added under ### Correctness with code-review only or correctness-review only; the hand review only labels the script wrote stay on the rest; when code-review was not listed, add it to ## Not available in this run with the reason and say that correctness-review replaced it; when the first pass returned no report, add it there with the reason; and when step 1 used the SHA fallback, add its line, naming the trigger and the SHA reviewed, to ## Not available in this run. Do not rewrite the rest of the report. When the finding you add lands under a ### Correctness that reads No findings., or a line you add to ## Not available in this run lands in a roll-up that reads Every stage had everything it needed., replace that line. When ### Correctness reads The stage did not report., keep that line and add the code-review only or correctness-review only findings under it.
The consolidated report is written for the reviewer and is not what a PR author reads. When the findings are going onto the PR, invoke review:pr-comments with the report: it drops the pass labels and rule ids, grades each finding from a fixed label, and gives it a code the author can refer to.
The consolidated report follows ../writing-comments/references/style.md.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
6 skills in this plugin
/comment-auditAudit every comment, docblock, JSDoc, Python docstring, GraphQL description, and markdown line a branch adds and give each a verdict (DELETE, TRIM, MOVE, KEEP, UNSURE, WRONG). Use before opening a PR, when reviewing a PR's comments, or when asked to trim, audit, or clean up comments. Report only by default; `--apply` edits and commits./correctness-reviewHunt correctness defects in a diff through named angles (hunk scan, removed behaviour, callers and callees, language pitfalls, wrapper routing) and drop a candidate only when the code refutes it. Use for a correctness or bug review of a branch or PR, and as the first correctness pass of pr-review./pr-commentsUse when a code review report (the pr-review consolidated report, a single stage report, or pasted findings) has to become comments a pull request author reads, anchored to a file and line, graded for severity, and referenceable by a code. Also use when asked to format, post, clean up, or grade review findings for a PR./type-safety-reviewReview a diff or a path for type-safety findings (mixed and any, unstructured arrays where a DTO belongs, array-shape pseudo-types without a reason, duplicate types, unchecked casts). Use during PR review, before opening a PR, or when asked about type coverage or type hierarchy. Calibrated on PHP and PHPStan first, with TypeScript and Python sections./writing-commentsWhat belongs in a code comment and what to cut. Use when writing comments or docblocks, trimming a diff before opening a PR, or reviewing comments in someone else's change.npx claudepluginhub noppu-labs/ai-toolkit --plugin review