/review-powers:review-prfrom review-powers
Reviews a PR for bugs, deploy risk, architecture consistency, tests, and comment abuse. Reads beyond the diff to check call sites, migrations, and ticket context.
Ships in review-powers. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
If no PR was given, ask which one — don't guess from the current branch. Then
run ${CLAUDE_SKILL_DIR}/scripts/fetch-pr.sh <PR> first: it saves the
description, CI, every comment feed and the diff to a scratch directory and
prints only counts and paths. Read the files you need. Generated files are left
out of diff.patch and listed in omitted.txt; open one when it carries a
contract.
Without gh or jq, read the same with the GitHub tools you have (an MCP
server, the API): the description, CI, the three comment feeds (inline threads
with resolved and outdated state, conversation comments, review bodies)
through every page, each with its count, zero included; and the diff, with
generated files (lock files, linguist-generated, generated folders) set
aside. A state your tools can't read is unknown, not false: say so (whether a
thread is resolved needs GitHub's GraphQL API, logged in).
We ship to a high-availability product. The cost of a bad merge is not a revert, it's a revert under load. Read for that.
The diff shows what changed, not what depends on it. A signature that
reads correct in the diff has call sites the diff never mentions, and a
migration reads fine right up until you look at what queries the column.
So read past the boundary whenever the change touches something other code
uses — a worktree checkout of the PR when the diff alone won't settle it.
${CLAUDE_SKILL_DIR}/scripts/checkout-pr.sh <PR> makes one, detached in the
scratch directory, so the user's checkout stays as it is; --cleanup removes
it once you have read what you need. Without the script, the same by hand:
git fetch <remote> pull/<n>/head, then git worktree add --detach of
FETCH_HEAD in the scratchpad.
Account for the feeds, not just the findings. The description (which states intent, and makes claims worth checking rather than trusting), the ticket chain, CI, existing review comments, and whether this PR is stacked on another are each either read or unread — and an unread feed and a clean one look identical in a report. Only one of them is honest.
The ticket chain is the PR's ticket and its parent, each with its comments, plus any sibling the ticket itself references. The PR's ticket is often a subtask, and the decisions that bind it can live above it: a PR can satisfy its subtask and still break its story. Read them through whatever issue-tracker tool the environment provides.
Someone — or something — has often reviewed this before you, whether an automated reviewer or a colleague. Don't restate what they already raised, and don't treat their ground as covered either: their findings are claims to verify like any other. Your value is in the questions they didn't ask, which with an automated pass is usually the same two: business logic that is wrong rather than unsafe, and design calls that need a human.
Establish early whether this is a backend or a frontend PR. It decides which of the questions below are live and which are silent.
These are the reviewer's questions, heaviest first. Not a checklist to fill — most PRs answer two or three and the rest are genuinely silent. Say which ones you looked at and found nothing in; that is a different statement from not having looked.
On a frontend PR, the deploy and design questions still apply, they just point elsewhere: the API contracts this code consumes, state and cache correctness, what the user sees while a request is in flight or fails, and whether the change is reachable by keyboard and screen reader.
The user decides from the report and rarely opens the code. Skip preambles and keep prose brief and plain: what goes wrong and why, in everyday words. Names in backticks point at the code; they don't explain it. A term they would have to look up gets a few words or stays out.
Lead each finding with one concrete case, then why it happens.
An abstract point needs numbers: "3 shirts in M + 1 in L, merged by
product → the warehouse ships 4 in M". A finding that is already one input
and one wrong result is its own case, and a sentence is enough. A case that unfolds in steps
(a rollout, retries, a race) gets a few lines in text:
Old pods still serve while the migration drops `quote.status`.
during rollout: old code selects it → 500 on every quote read
safe: stop reading it now, drop it next release
Add a view only where prose would leave the reader rebuilding a shape or a flow. Pick the smallest one that makes the point, next to the sentence it supports:
What changes in something that already exists, a shape (route, fields with
type and nullability, table columns) or the fix you propose, as a diff,
never raw JSON:
GET /api/v1/orders/{orderId}
response Order
id: uuid
+ shipments: Shipment[] (required)
- legacyTotal: decimal?
Changed control flow as a call tree or pseudocode in text, the new step
marked.
Which files changed as a shallow file tree, only when that matters.
Usually one kind of view, sometimes two. Use your judgement and don't overwhelm the user.
The inline comment is for the author, who knows the code: keep the case, drop the explanation.
Open with the PR's linked title as a heading and, under it, one line on what
the change does, in a user's words. Then, when it applies, one mermaid
diagram, never more:
erDiagram of the tables the PR creates or changes, as they are now,
when it has a migration;sequenceDiagram, when the PR adds or changes a flow across
three services or components or more;Then say what you covered — which feeds you read, and which questions came back empty versus unexamined.
Then a numbered list of findings the user can act on — ignore, or leave as an
inline PR comment on its file:line. Each is a headline and up to three
bullets, not a paragraph:
1. **Design** — <the problem in one sentence> (`file:line`)
- Case: <the real input or situation where it goes wrong>
- Fix: <what to change>
- Cost: <how big the fix is> → comment (<what it prevents>) | ignore (<why it's safe to skip>)
The last bullet weighs the cost against the value and ends in what you'd do
(→ comment, → ignore). Background the ticket or author already knows is one clause or cut.
Order findings by what ignoring each would cost, worst first: the user may stop reading anywhere. Start each with a tag for what it is about: Bug, Product, Tests, Design, Docs, Security, Deploy, Conventions, Localization, Scope, Nit, or a better word when none fits. One tag; when two fit, pick by what goes wrong if it's ignored.
Close with What I'd do: your verdict in one sentence (approve, comment or request changes), then the plan the user can accept with "go ahead", one bullet per step: which findings to post and where, which to skip, the review to submit. End with one line inviting a change: "Go ahead, or tell me what to post instead (by finding number)." Do nothing until they answer.
Concise, kind and non-pedantic govern how a comment is written, never whether it is raised. An inline comment's line is part of the comment, so verify where each one actually landed and tell the user.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub jcesarperez/review-powers --plugin review-powers3 skills in this plugin
/review-pr-feedbackWork a PR's review feedback end to end, from verdicts to replies./review-ticketReview a completed Jira ticket as a whole — all its subtasks and merged PRs, across repos — for a human: contracts, deploy risk, design calls, simplifications. Files the chosen improvements as one follow-up Task.Other plugins' skills for the same job