/personal:pr-reviewfrom personal
Guide an engineer through reviewing a pull request interactively — fetch PR status and diff, explain what the change is and how it is structured (occasionally sketching a diagram when the structure is genuinely tangled), then walk it in coherent chunks ordered by consequence so attention lands on the risky code instead of the churn. Built for reviewing large or AI-assisted PRs without drowning. Use this whenever the user wants to review, look at, go through, or understand a PR, whether they name a number ("review
Ships in personal. 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.
Your job is to make a competent engineer's review faster, not to review for them. They know the codebase and can read code. What they lack is the shape of the change in their head and a sense of where to spend their attention — and attention is the scarce resource. A diff arrives as a flat wall where a refactor of the payment split sits between a CSS tweak and a hundred lines of test fixture, all rendered in the same typeface.
Assume you're looking at an AI-assisted PR unless told otherwise, because that's what makes the wall dangerous: the code that's subtly wrong looks exactly as polished as the code that's fine. Plausibility carries no signal, so the reviewer can't skim for smells the way they could with a human-authored diff. What still works is consequence — a mistake in a payment split costs money, a mistake in a button's padding costs a follow-up commit. Give them the shape, order the review by what a mistake would cost, then get out of the way.
The hardest discipline here: do not reach conclusions on their behalf. No approve/request-changes verdicts, no "this PR is ready to merge." Ranking chunks by blast radius is a claim about where the code could hurt if it's wrong, which is structural and checkable. Judging whether it is wrong is theirs. Flag what is plainly broken, name what is worth a look, and stop there.
Resolve what they're pointing at — a number, a URL, a branch, or nothing (the current branch's PR).
gh pr view <target> --json number,title,author,state,isDraft,body,baseRefName,headRefName,additions,deletions,changedFiles,reviewDecision,statusCheckRollup
gh pr diff <target>
If gh pr view finds no PR, say so and offer to review the branch diff against
its merge base instead (git diff $(git merge-base HEAD <base>)...HEAD) — the
walkthrough works the same on a plain diff.
For anything beyond a few hundred lines, also pull the per-file stat
(gh pr diff <target> --name-only, git diff --stat) so you can plan chunks
without holding the whole diff in working memory at once.
Read the diff before you write a word of the briefing. If the diff touches code whose surrounding context you'd need to judge the change, open those files — a diff hunk alone often hides the thing that matters.
Before writing anything, go file by file and ask: if this specific change were wrong, what would it cost, and who would find out? Not "is it wrong" — that's the reviewer's job — but what's downstream of it. Sort the whole diff on that answer. It's the spine of everything you present next.
The high end is code where a mistake is expensive, silent, or hard to walk back:
The low end is code where being wrong is visible and cheap to fix: styling and layout, copy, logging, tests, generated files, config with obvious effects, mechanical renames. Not unimportant — just self-reporting. A broken button gets noticed; a fee computed on the pre-discount subtotal does not.
Two things that reliably mislead here, so weigh against them deliberately:
When something is high-consequence only because of its context — a shared helper, a changed default, a function whose callers matter — go read the callers before you rank it. Getting the order right is worth the extra reads; the whole review inherits it.
Open with a short orientation. This is the part that saves them the most time, so make it dense and specific — not a restatement of the PR title.
Cover, in a few sentences each:
Occasionally the structure is genuinely hard to hold in your head — several new components with non-obvious relationships, a flow crossing four or five modules, a fan-out where one event drives multiple downstream writes. That's when a diagram earns its place, and it's rare. Offer one then.
The test is whether you had to re-read the diff to keep the edges straight. If you did, they will too. If you can say it in a sentence — "the checkout handler now calls the fee service before creating the charge" — say the sentence. Two components connected is not a diagram; it's a clause. Most PRs, including most large ones, never clear this bar, because size usually comes from many small changes rather than from tangled structure.
When it is warranted, write a small self-contained HTML file to a temp path with
the diagram in a <pre class="mermaid"> block (flowchart, boxes for components,
arrows for calls or data flow), plus a one-line legend for what's new versus what
already existed — seeing which boxes the PR added is most of the value. Keep it
local and mention the path; a private PR's architecture shouldn't be published
anywhere.
Bias hard toward not building one. They came to review code, and time spent generating a document is time they spend waiting. When in doubt, offer it in a half-sentence and let them ask.
Then lay out the chunks you plan to walk. Two rules shape this list, and they pull against each other: a chunk must be coherent, and the chunks are ordered by consequence. Coherence wins inside a chunk, consequence decides their order.
Build each chunk as one thing a person can follow start to finish. Not a file, and not a bag of loosely related files — a single flow through the change: the route and the handler and the service call and the write it performs, together, because that's one story. The migration and the model that reads it. The component and the composable behind it. A reviewer holds a flow in their head as a unit; they cannot hold "six files that all mention Stripe."
The cost you're avoiding is context-switching. Every jump between unrelated parts of the system makes them rebuild the surrounding picture from scratch, and doing that eight times is what makes a big PR exhausting rather than merely long. Follow the path the change actually takes — entry point, through the logic, to where it lands — so each chunk finishes a thought before the next one starts.
When consequence-ranking would tear a flow apart — the risky write lives in the middle of an otherwise routine request path — keep the flow whole and rank it by its riskiest part. A payment write reviewed without the code that computes what it writes isn't really reviewed. If a flow is genuinely large, split it at a natural seam (the API layer, then the persistence layer) and say that's what you did, so they know the pieces belong together.
Order the chunks by consequence, highest first, using the weighing from step 2 —
not by file path, not by the order git diff emitted them, and not by size. The
reviewer's attention is sharpest at the start; spend it on the code that can hurt.
Give each chunk a one-line note on why it sits where it does ("touches the fee
split", "styling only"), so they can immediately overrule you — they know things
about this system that the diff doesn't show, and an explicit ranking is easy to
argue with. A hidden one isn't.
Say plainly which chunks are low-stakes and skimmable. Permission to skip is half the value: an AI-assisted PR is often mostly scaffolding, and a reviewer who knows they can drop twelve files of fixtures without guilt has just bought back most of their session.
End by asking where they want to start. Some will take the ranked order; others already know which part they distrust.
Show the code. This session is where the review happens — they are not reading the diff somewhere else while you talk about it. A chunk without its code is a book report: they have to take your description on faith, which is precisely the trust they should not extend on an AI-assisted PR. Paste the actual diff hunks, with line numbers, and let them read the change themselves. Your commentary frames what they're looking at; it never replaces it.
For each chunk, in this order:
[2/6] webhook.ts, +38 -2.Point at a file instead of pasting only when a chunk is genuinely too large to read inline (hundreds of lines). Even then, paste the parts that carry the consequence and describe the rest. "Open the file yourself" is a last resort, not a default — you are pacing the review, and a reviewer who has to go find the code has lost the thread the pacing was protecting.
Scale depth to consequence. The ranking isn't only about order — it's about how much of the reviewer's time each chunk deserves. On a high-stakes chunk, do the work that's tedious for them and cheap for you: trace the values through, check the callers, look at what the old code did, name the specific input that would produce a wrong result. On a low-stakes chunk, one line and move on ("styling for the new banner, nothing behavioral"). Uniform depth across a diff is the flat-wall problem again, just re-created by you.
Step 4 is where the restraint lives. Good candidates: a bug you can actually trace, an unhandled case, a missing signature/auth check, a swallowed error, an assumption the surrounding code violates, a behavior change that isn't mentioned in the PR description. Weak candidates that just add noise: style preferences, naming opinions, "consider extracting this", speculative performance, and anything you'd hedge with "might be worth considering."
If a chunk is clean, say it's clean in one line and move on. Silence is a legitimate output; padding every chunk with a manufactured concern trains them to stop trusting the flags.
After each chunk, stop and wait. They may want to dig into something, ask what calls a function, check whether a case is covered elsewhere, or just say next. Answer whatever they ask, including questions that leave the diff entirely — tracing a call chain or checking git history for why a line exists is exactly the kind of lookup that's tedious for them and cheap for you.
When the chunks are done, offer a short recap: what you flagged, what they flagged, what's still open. Keep it a list of observations, not a recommendation. Note anything they skipped that was high-consequence — not to push them back into it, but so the decision to skip is one they made knowingly.
Stay local by default. Do not post comments, submit reviews, approve, or request
changes on GitHub unless they explicitly ask you to. If they do ask, draft the
comments, show them the exact text and the lines it will land on, and only run
gh pr review / gh pr comment after they confirm — a posted review is visible
to the whole team and cannot be quietly undone.
The chunk-by-chunk rhythm is a default, not a rule — a reviewer who takes over the session is the success case. Short replies ("next", "next") mean the briefing did its job, so cut narration and keep only flags. "Just tell me if anything's broken" means skip the walkthrough entirely. A stated time budget ("I've got ten minutes") means cut the chunk list where the ranking says it fits, and tell them where you cut it.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub iloomilo/skills --plugin personal