/review-toolkit:pr-review [PR number] [--publish] [--ticket URL|ID] [--owner-answer TEXT]from review-toolkit
Drafts a thorough GitHub PR review with independent judgement, owner card, dual-model code pass, and LGTM/NOT LGTM verdict. Publishes only after user approval with --publish.
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.
Three roles: the user invokes this skill and approves any publication; the owner decides whether the change belongs in the project, found per references/preparation.md; the caller receives the result in draft mode, and is the user or the agent that invoked the skill.
Default mode is draft: the result goes to the caller and nothing is sent to GitHub. --publish allows publication after the user approves the draft. --owner-answer carries the owner's answer to a card; an answer to that card already in the conversation counts the same. The answer stays valid for a later head while that head does not change what the card was about: the own diff is unchanged as the base-merge short path of references/preparation.md checks it, or the card's sign still fires on the same lines; otherwise the card is raised again.
Follow references/preparation.md. A gate exit or the short path goes straight to Step 5. Later steps work inside the worktree.
Input: git diff origin/<base>...<head> and the changed files at head, plus whatever files in the worktree you need to understand what the change does and where it sits. Not yet: the PR title and body, commit messages (git log shows them; do not read it), bot and review comments, linked issues and designs, the project's contributing contract, the cases file. They carry the author's framing, and a judgement formed after them checks the frame instead of the change.
Judge the change as an engineer who will have to maintain this code, not as a checker of correctness. Say doubt when you would not take it as it is into a project you maintain, for one of these reasons: the mechanism sits in the wrong place (another component owns the fact, or the cause could be fixed where it arises); it carries far more machinery than the problem needs; it repairs something this project itself did a step earlier; or it is built on something that is not yet decided or has no consumer. Say sound when it is a proportionate change in a reasonable place; most changes are. Bugs, style, naming and missing tests are not reasons for doubt. Do not soften a doubt because the code is correct and tested, and do not invent one: a wrong doubt costs a maintainer thirty seconds of reading, a wrong sound costs a merge.
Write down exactly three lines before reading anything else:
WHAT: <one sentence, in plain words, what this change is>
WORD: <sound or doubt>
WHY: <one sentence: for doubt, the simpler or better-placed alternative and what it gives up; for sound, why nothing simpler would do>
Read, in order: the theory note of the touched subsystem at the base branch (where it lives, and why the base: ../series-review/references/theory-note.md); references/cases.md; the project's contract (found and read per references/preparation.md); the PR title and body, its commits, linked issues, the ticket if given, and any design the PR or its commits cite. A ticket requirement the change does not meet is an item of type (b) in Step 5.
Revise the word once, and write one line: stayed or changed, and why. An accepted design is input, not authority: a clause of it counts under (b) only if this revision keeps it, and a PR that does not name each deviation from the design it implements gets an optional note asking it to. Its acceptance does not settle its premise either. Name what the change publishes, anything another component, an operator or a user can come to depend on. For each interface, ask what assumptions its shape rests on and which future alternatives it makes harder or impossible, even within its own component and when no other design names it. Then look through the project's other designs, accepted and still under discussion, for the same names (references/preparation.md, Designs). Of each one found, ask: does this change make it harder or impossible, or rest on something it makes false? A questionable assumption or commitment, a yes, or a clash with a stated project principle changes the word to doubt and goes on the card; name the assumption and the evidence, quoting both sides of a clash. When it is the premise of the implemented design that fails, the card proposes returning the implementation to draft and reopening the design.
A card goes to the owner when the word is doubt, or when a sign fires. The signs, from the diff of the project's own code, not vendored or generated files: a new hook, Job, one-off migration script, or role or permission set (a ClusterRole, an IAM policy); a new controller, service or package; state kept in annotations, labels or other metadata instead of a declared field; a write that stores a value one party chose into an object another party owns, after which nothing tells it from the owner's own choice; a new check that can fail other changes (a pinned count, a naming or layout convention, a lint or test constraining files it does not own); a new field on an API type, or a new vocabulary other components read (label, annotation, configuration or quota keys, value keys shared beyond one chart or module, a string field evaluated as a language); a test or lint that reads another component's sources instead of going through its interface (building or rendering it, calling its API, loading an artifact generated from the code under test); code that serves every application or consumer (a controller, an API type, a shared package or library, a framework layer, the platform's own chart, packaging or monitoring) gaining or extending knowledge of one particular application, plugin, provider, operating system, runtime or third-party component: its kinds or types, API groups, labels, value keys, formats, image or artifact names, or files. This counts even where the file already held such knowledge before the change, and in the comments, examples and documentation the change ships: an example is what its readers copy as the interface. An application's own chart or package and its own test suite are not such code, nor is a list whose job is to enumerate components unless an entry carries behaviour beyond being listed. When the diff is a design document, the signs apply to what it specifies: whatever it defines counts as added code.
The card is five lines, in plain words:
The card is addressed to its owner by name and is a hypothesis for a human, not a finding. On doubt, no review is published and Step 4 does not run until the owner answers. On a sign with sound, Step 4 runs and the review does not wait for the answer: with --publish it goes out, an LGTM as a COMMENT until the owner answers (references/publishing.md). Without an answer nothing changes; the LGTM stays COMMENT and this skill publishes no reminder.
An owner other than the user gets the card as a PR comment posted before any review, or, without --publish, forwarded by the user (references/publishing.md, Card delivery). That owner's later PR comment counts as --owner-answer.
An answer that arrives after that COMMENT went out starts a new run with --owner-answer; its verdict and event follow references/publishing.md as usual, and a published review goes over the COMMENT. With the owner's answer, the card is not raised again, and Steps 1 and 2 still run and go into the draft. If the owner agrees the change should not go in as it is, that answer blocks under (b), quoted. If the owner accepts it, nothing waits, the draft quotes the answer in one line and asks where the acceptance is written down (the theory note's "Known debts", a decision record the theory note or the contract links, the contract). Once written, a later review of the same files or the same subsystem the acceptance names quotes it as the owner's recorded decision instead of raising the card again, and blocks under (b) only a diff that contradicts it; an acceptance written nowhere covers this PR only and is not precedent. Either way, Step 4 and the verdict run as usual.
references/code-pass.md.The blocker rule:
Blocks only what is shown: (a) a path through the sources at head from a line of the diff to a wrong result — for a regression, together with the state at the merge base; (b) a quoted item the project itself wrote down (contract, theory note, a clause of an accepted design that Step 2 kept, the owner's answer to a card) that the diff contradicts; (c) in a project that tests the area it touches, a change of behaviour without a test that fails without it, at the layer that owns the behaviour; a test at another layer that restates another component's values or reads its sources does not count, and when the owning layer cannot exercise the change in this PR, (c) does not block and the draft names where the test belongs, for the maintainer to accept or refuse. A doubt about meaning without (a), (b) or (c) goes on the card, never into the published body. Everything else is an optional note.
The verdict is NOT LGTM when any blocker stands, LGTM otherwise. The GitHub event, findings, inline comments and publication are in references/publishing.md; maintainer actions in references/maintainer-actions.md.
The draft carries: the three lines of Step 1, the line of Step 2, the card if raised, the verdict and its event, the body, each inline comment with path and line, and the dismissed findings. After a gate exit or the short path it is the note references/preparation.md describes. Without --publish, stop there; with it, never publish a review while a doubt card is waiting for the owner.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
3 skills in this plugin
/branch-reviewReview current branch changes in isolation. Output starts with LGTM verdict — if no LGTM, the code is not ready to merge. The verdict is decided ONLY by defects the diff introduced, worsened, or interacts with (merge-base attribution, computed from git); pre-existing defects are reported in full in a separate "Found outside this diff" section and never block. LGTM is compatible with a non-empty recommendations list. IMPORTANT — always pass all flags you already know from context (target branch, project type, ticket, round-1 head, etc.). Do not rely on auto-detection when the answer is known. Pass --target to set which branch the changes are going INTO. Pass --ticket with a URL or ID to validate against requirements. On re-review rounds pass --round1-head with the SHA from round 1's printed review header to enable churn diagnostics, and pass the earlier rounds' findings and origin ratio in the invocation./series-reviewReview what a subsystem has become across a series of merged PRs, not one PR: one page for the subsystem's owner with the subsystem in plain words, the growth of machinery, contradictions with its theory note, and candidates for removal. Run by whoever manages the review queue, on a schedule, never during a PR review. TRIGGER: invoke when the user asks for a series review, a subsystem review, or "what has <subsystem> become". DO NOT trigger for a single PR (use pr-review).
npx claudepluginhub lexfrei/ccc --plugin review-toolkitOther plugins' skills for the same job