review-pr
Skill22 starsChanged 21 days agoMITView on GitHub
Review a PR: bugs, deploy risk, important decisions, architecture consistency, tests, simplicity, comment abuse.
185 other projects use a version of this.
Adopted by
Most recently taken up by
- GLinnik21/plx-nativetheir own version, first seen Nov 30, 2026
- nickybmon/OpenEmu-Silicontheir own version, first seen Nov 30, 2026
- percona/percona-server-mongodb-operatortheir own version, first seen Nov 30, 2026
- pmndrs/react-springtheir own version, first seen Nov 29, 2026
- danielcherubini/skillstheir own version, first seen Nov 29, 2026
- sigee-min/ashfoxtheir own version, first seen Nov 29, 2026
Used with
Projects with it also use diagnose-ci-failures, docs-loop and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
zerx-labSkilldiagnose-ci-failures
Diagnose CI failures for a PR using the GitHub CLI, extract error logs, and generate a plan to fix them. Use when the user asks to check CI status, pull CI issues, triage test failures, or investigate PR build failures.
Also in 3 projects that use this
GeiserXSkilldocs-loop
Use when the user asks to audit docs, check documentation for stale claims, or verify docs against the code.
Also in 3 projects that use this
GeiserXSkillfull-loop
Drive a repository to done with sergio-loop, then keep improving it with refine-loop at a descending theta. Use only when the user explicitly invokes full-loop.
Also in 3 projects that use this
tirth8205Skillreview-delta
Review only changes since last commit using impact analysis. Token-efficient delta review with automatic blast-radius detection.
Also in 3 projects that use this
- +8 more from GeiserX
Other versions185 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 185
- denoland/deno★ 109ksame name
- ToolJet/ToolJet★ 41ksame name
- remix-run/remix★ 34ksame name
- tirth8205/code-review-graph★ 33ksame name
- alpinejs/alpine★ 32ksame name
- nrwl/nx★ 29ksame name
- pmndrs/react-spring★ 29ksame name
- PrefectHQ/fastmcp★ 29ksame name
- jlowin/fastmcp★ 29ksame name
- livewire/livewire★ 24ksame name
175 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository3 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- review-pr-feedbackSkill
- review-ticketSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 4 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 178 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
If no PR was given, ask which one — don't guess from the current branch.
- Distinctive: line 60
Is there a real bug in the business logic?: Not style, not theory — a path that produces the wrong answer, a race, an edge case the rules …
- Distinctive: line 68
Ask whether old and new can run side by side, because for a while they will.
- Distinctive: line 113
Add a view only where prose would leave the reader rebuilding a shape or a flow.
- Distinctive: line 148
only the pieces needed to follow it, in the user's words.
“Common” is measured: kept by at least 6 in 10 of the 178 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Review PR
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.
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.
Know what you actually read
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.
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.
The questions
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.
- Is there a real bug in the business logic? Not style, not theory — a path that produces the wrong answer, a race, an edge case the rules of the domain care about and the code doesn't. Show it: the input or sequence that takes the bad path.
- What happens at deploy? Breaking changes are the standing risk here. An API or event contract consumers already depend on, a migration that can't run while the old version is still serving, a config or flag that must land in an order nobody wrote down, state that outlives the deploy. Ask whether old and new can run side by side, because for a while they will.
- Are the design calls right — and should the user check any by hand? Database shape, contracts, interfaces with other systems, and whether the acceptance tests exercise them the way a consumer actually would. These are the findings where your judgment runs out and theirs starts; say so explicitly rather than guessing, and name what you'd want them to look at.
- Can it be simpler? What should be simplified, refactored, or replaced by something the codebase already has. Reuse is the cheapest maintainability win and the easiest to miss from inside a diff.
- Does it follow the patterns already here? And where it deviates — is the deviation argued, or accidental?
- Can I trust that the change is covered by tests? Three questions, not one: whether the behaviour that matters is covered at all, whether it's covered at the right level, and whether what's covered is what the ticket's acceptance criteria actually asked for. A unit test standing in for an integration concern passes while the thing it claims to protect is broken, and a green suite that never touches an AC proves nothing about the feature.
- Is there comment abuse? AI-authored code produces a lot of it: redundant restatement, archaeology, narrating the change to the reviewer. Raise it as a maintainability finding, not a nitpick.
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.
Explain it to someone who doesn't know the code
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 releaseAdd 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.
The gate
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:
- an
erDiagramof the tables the PR creates or changes, as they are now, when it has a migration; - otherwise a
sequenceDiagram, when the PR adds or changes a flow across three services or components or more; - only the pieces needed to follow it, in the user's words; none otherwise.
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.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

