/review:correctness-reviewfrom Review toolkit
Hunt 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.
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.
This skill looks for defects a diff introduces: code that crashes, shows wrong data, or persists wrong data. It treats every assumption the change makes as a claim to check, and ties every finding to a line. It works through named angles one at a time in a single context, sweeps once for gaps, and keeps every candidate the code does not refute.
/review:correctness-review base=<ref> head=<ref> [angles=<list>]
/review:correctness-review <pr> [angles=<list>]
On OpenCode the skill is correctness-review.
base= and head= name the two commits to compare. When one is missing and no PR number is given, stop and say which.gh pr view <n> --json baseRefName,headRefOid.git fetch origin <baseRefName> +refs/pull/<n>/head:refs/pr-review/<n>. The base is origin/<baseRefName> and the head is pr-review/<n>.git fetch origin <baseRefName> <headRefOid> and use <headRefOid> as the head.gh is unavailable or the number does not resolve, stop and say so. Do not guess a base.angles= is a comma-separated subset of A,B,C,D,E, the angles below. It defaults to all five. A letter outside that set is ignored and listed under ## Skipped.git diff <base>...<head>, three dots, so only what the branch adds is in scope.<head>, read them with git show <head>:<path> and search them with git grep <pattern> <head>.AGENTS.md, CLAUDE.md, CONTRIBUTING.md, and the like) at the root and in the directories the diff touches. They name the test commands and the invariants the code is expected to keep.Run the angles that angles= names, one after another in this context, in letter order. Each yields candidates: a path:line on the head side, the claim, and the input or sequence of events that triggers it. Rule on nothing yet; the drop rule comes after the sweep.
Walk every hunk line by line, together with the function that encloses it. Trace concrete inputs through the code rather than inferring a bug from an unfamiliar pattern. Look at:
For every deleted or replaced line, name the invariant it enforced: a check, a default, an ordering, a side effect, an error path. Then find where the head enforces it again. When nothing does, that is a candidate. A line that moved counts as removed until you find it at its new place.
For every function, method, or exported symbol the diff changes, find its callers on the head with git grep -n <name> <head> and read each call site. Check that each caller still gets what it relies on: argument order and meaning, the shape of the return value, the errors thrown, nullability, side effects. Then read every callee the changed code calls for the first time, or calls differently, and check the call against that callee's contract.
A name search misses callers reached by a string: a route, an event name, a config map, a container binding. Search for the string as well.
Check the hunks against the traps of the language and framework in use. These are examples, not a list to complete:
forEach;0 and "", null against undefined;For a wrapper, proxy, decorator, middleware, adapter, or any function that forwards to another, check that it:
When the diff touches no forwarding code, the angle yields nothing. Say so under ## Validated.
Merge candidates that share a root cause into one, at the line where the fix belongs. Then read the diff once more, looking only for defects the list does not hold yet: paths no angle walked, a file you read quickly, two changes that interact. Add what you find as candidates.
Rule on each candidate now.
path:line, under ## Validated. Finding the trigger unlikely is not a refutation.## Findings says No findings. and nothing else.Return exactly these three sections and nothing else.
## FindingsOne entry per finding, crash first. Each entry starts with path:line on the head side, then the claim in one or two sentences, then the outcome. An uncertain finding has (uncertain) after its path:line and says what would decide it. No finding without a path:line.
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. An uncertain finding keeps the outcome it would have if confirmed; question is only for asking the author something the diff cannot settle.
One filled example:
src/billing/invoice.ts:58 `applyDiscount()` now returns early when `lines` is empty, so `invoice.total` keeps the previous invoice's value and is saved with it. Outcome: wrong data persisted.
## ValidatedEvery check you ran, with the command and its result; each angle you ran and what it covered; and each dropped candidate with the quoted line that refutes it.
## SkippedEvery angle not run, file not read whole, and check that could not run, with the reason.
The report follows ../writing-comments/references/style.md.
Parts of this skill adapt emdash-cms/emdash adversarial-reviewer under the MIT license; see NOTICE.md.
What SKILL.md sets; muted values are Claude Code's defaults
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./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./pr-reviewOrchestrate 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.Other plugins' skills for the same job
npx claudepluginhub noppu-labs/ai-toolkit --plugin review