review-diff
Skill2 starsChanged 8 days agoMITView on GitHub
Review a pull request, a patch or an agent's own work with findings ranked by risk instead of listed by line. Use when asked to review a diff, when a change touches data, auth, money, migrations or concurrency, when reviewing generated code that looks plausible, or when a review is turning into a style debate the linter should have settled.
25 other projects use a version of this.
Adopted by
Most recently taken up by
- bInference-Lab/bInferencetheir own version, first seen Nov 29, 2026
- kaiitunnz/claude-skillstheir own version, first seen Nov 26, 2026
- felipebarraza6/opencode-configtheir own version, first seen Nov 22, 2026
- DmitryTokyo/agent-kittheir own version, first seen Nov 22, 2026
- UlisesCm/navori-owltheir own version, first seen Nov 22, 2026
- kishormorol/promptaliastheir own version, first seen Nov 16, 2026
Used with
Projects with it also use debug-failure, walkthrough and 2 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.
SauravSrivastavSkilldebug-failure
Diagnose a failing test, command, or runtime behavior using evidence and produce a minimal verified fix.
Also in 3 projects that use this
MSILycanthropySkillwalkthrough
Explore and visualize codebase architecture. Use when asked to "walk me through", "show how X works", "explain the flow", "diagram the architecture", or understand how components interact.
Also in 3 projects that use this
sevenschulteSkillship-pr
Ship the current branch as a pull request. Runs tests, formats code, commits any uncommitted work, pushes the branch, and opens a PR against the base branch with a generated body following the team's PR template. Use when the user says "ship it", "open a PR", "send this for review", or finishes a feature and wants it reviewed.
Also in 3 projects that use this
GoogleSkillgrilling
Grill the user relentlessly about a plan, decision, or idea. Use when the user wants to stress-test their thinking, or uses any 'grill' trigger phrases.
Also in 3 projects that use this
Other versions25 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 25
- faizkhairi/claude-code-blueprint★ 74same name
- bbvch-ai/aihub-core★ 19same name
- huytd/skills★ 19same name
- jisuzzzz/haechi★ 17same name
- nesnilnehc/ai-cortex★ 8same name
- tardigrde/agent-skill-eval★ 4same name
- anorth/agent-skills★ 2same name
- bInference-Lab/bInference★ 2same name
- Hy0sh/claude-skills★ 2same name
- Pradnyeshp/Claude-Skills★ 2same name
15 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 repository8 other files it gives its agents.
- api-contractSkill
- bilingual-docsSkill
- debug-connectivitySkill
- diagnose-slowSkill
- plan-migrationSkill
- release-verifySkill
- write-a-skillSkill
- write-postmortemSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 25 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
Read the intent before the diff: If the description does not state what changes and why, ask.
- Distinctive: line 25
Style is the linter's job: If a machine can decide it, do not spend a human comment on it — configure the machine instead.
- Distinctive: line 51
Look for what is absent, not only what is present: No error handling, no test for the new branch, no cleanup of the temporary file, no …
“Common” is measured: kept by at least 6 in 10 of the 25 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 a diff
A review is a risk assessment, not a reading exercise. The question is never "is this code nice" but "what can this change break, and would we find out before a user does".
When to use
- Any pull request larger than a trivial rename.
- Changes touching data, authentication, payments, permissions, migrations, concurrency or public API.
- Reviewing code you (or an agent) generated — plausible code is exactly the code that slips through.
- A review with 40 comments about formatting and none about the transaction boundary.
Ground rules
- Read the intent before the diff. If the description does not state what changes and why, ask; a diff without intent cannot be judged, only re-litigated.
- Rank by consequence. Blockers are things that break correctness, security, data or users. A naming preference is not in the top ten and often not in the review at all.
- Style is the linter's job. If a machine can decide it, do not spend a human comment on it — configure the machine instead.
- Every finding needs a concrete failure scenario. "This feels fragile" is not reviewable; "two concurrent requests both pass the check and both insert" is.
- Test the tests. A new test that passes before the change proves nothing; say so.
- Approve honestly. Approval means "I have seen what this can break". If you did not read part of it, say which part.
Procedure
- Read the description, the linked issue, and the test changes first — in that order. Then the source. Tests tell you the author's model of the change, which is where the misunderstanding shows.
Identify the blast radius and review in this order, which is roughly the order things hurt:
Area Question Data Can this lose, corrupt or duplicate data? Is it reversible? Auth / permissions Any path that skips a check? Any new trust in client input? Concurrency Two of these at once — still correct? Error paths What happens when the third-party call fails, times out or returns garbage? Migration / deploy Can it ship while old code runs? Can it roll back? Public contract Does this break a consumer who is not in this diff? Performance New loop, query or payload on a hot path? Readability Would the next person understand why, given a year? - Look for what is absent, not only what is present. No error handling, no test for the new branch, no cleanup of the temporary file, no removal of the old path, no migration for the new column, no version bump.
- For generated code, run the plausibility checks: does the imported symbol exist in the installed version; does the function signature match the call; does the test actually fail when the behaviour is removed; is the "happy path" the only path.
- Write findings with severity, evidence and a question —
[blocker],[major],[minor],[nit]. Each with file:line, the scenario, and what you suggest. A question invites the answer that might prove you wrong, which is often the correct outcome. - Summarise with a verdict: approve, approve with follow-ups, or request changes, plus the one or two things that actually matter. Nobody reads 30 comments in order of appearance.
Anti-patterns
| Tempting move | Why it is wrong |
| Commenting on 40 lines of formatting | Buries the one real finding; linters exist |
| "Can we make this more readable?" with no target | Unactionable; propose the shape you want |
| Approving because CI is green | CI checks what someone remembered to assert |
| Reviewing only the added lines | Deletions and unchanged callers are where breakage hides |
| Rewriting the PR in the comments | Review the change or propose your own, not both |
| Blocking on preference | Turns the review into a negotiation and teaches people to avoid review |
Definition of done
- The blast-radius table was actually walked, in that order.
- Every finding has severity, location, failure scenario and a suggestion.
- New tests were checked for the "would it fail before the fix" property.
- The verdict is explicit, with the top one or two concerns named.
- Style findings were moved to a linter or dropped, not counted.
- Anything you did not review is named ("I did not evaluate the SQL plan").
Report format
Verdict: approve | approve with follow-ups | request changes
Blockers
[file:line] <failure scenario in one sentence> → <suggestion>
Major
...
Minor / nits (optional, ignorable)
...
Tests: <do they fail before the fix? what is not covered?>
Not reviewed: <parts you skipped, and why>Severity definitions and the phrasing that keeps a review useful rather than adversarial are in references/severity.md.
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.

