diff-reviewer
Skill0 starsChanged 2 months agoMITView on GitHub
Reviews a git diff for concrete bugs, regressions, security risks, and style breaches with line citations.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- amkfbant/claude-codex-orchestrationtheir own version, first seen May 15, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- amkfbant/claude-codex-orchestration★ 1same name
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 repository49 other files it gives its agents.
- bug-reproducerSkill
- claim-checkerSkill
- command-failure-diagnoserSkill
- config-risk-reviewerSkill
- csv-validatorSkill
- deployment-checklist-makerSkill
- factual-summarizerSkill
- field-extractorSkill
- api-contract-testerSkill
- database-migration-helperSkill
- security-vulnerability-fixerSkill
- git-commit-stagerSkill
- git-conflict-resolverSkill
- github-actions-debuggerSkill
- github-issue-triagerSkill
- github-pr-creatorSkill
- github-pr-reviewerSkill
- go-code-qualitySkill
- go-lint-and-vetSkill
- go-testingSkill
- json-schema-converterSkill
- lint-and-typecheckSkill
- meaning-preserving-editorSkill
- meeting-notes-to-actionsSkill
- minimal-bug-fixSkill
- option-comparatorSkill
- py-code-qualitySkill
- py-lint-and-typecheckSkill
- py-testingSkill
- readme-writerSkill
- regression-test-writerSkill
- release-notes-drafterSkill
- repo-inspectorSkill
- research-briefSkill
- reversible-cleanup-plannerSkill
- rust-clippy-checkSkill
- rust-code-qualitySkill
- rust-testingSkill
- small-refactorSkill
- status-updateSkill
- step-by-step-tutorialSkill
- step-decomposerSkill
- tabular-analyzerSkill
- task-briefSkill
- test-runner-debuggerSkill
- ts-code-qualitySkill
- ts-lint-and-typecheckSkill
- ts-testingSkill
- skill-templateSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. About 0 are common, 7 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Use this skill when:
- Very specific: line 20
Do not use to review pure infrastructure configuration files.
- Very specific: line 21
Do not use to apply code fixes.
- Very specific: line 28
If git_diff is empty: report "Diff is empty.
- Very specific: line 29
If diff is missing line numbers: calculate relative to chunk headers (@@ -L,S +L,S @@).
- Distinctive: line 30
Never invent defects if the diff is clean.
- Distinctive: line 33
Follow these numbered actions:
- Distinctive: line 35
Check for hardcoded credentials, unescaped SQL queries, command injections, and exposed debug logs.
- Distinctive: line 37
Check null/undefined handling, off-by-one errors, unhandled promise rejections, and missing error branches.
- Distinctive: line 39
Verify that existing public signatures or data contracts are not broken.
- Very specific: line 48
If any secret or API key is found in diff: immediately classify as BLOCKER and recommend immediate credential rotation.
- Very specific: line 49
If there are zero blockers or warnings: mark verdict as APPROVED.
- Distinctive: line 83
Stop and ask the user when:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Diff Reviewer
Conducts a rigorous, objective code review on a git diff. Flags logic errors, security vulnerabilities, leaked secrets, and broken conventions with exact line references.
1. Purpose
Identify defects in pull requests or staged commits before merging. Prioritizes correctness and security over stylistic opinions.
2. When to Use
Use this skill when:
- Reviewing a branch diff before merging (
git diff main...feature). - Inspecting staged changes prior to commit.
- User requests: "Review this diff" or "Check my changes".
3. When Not to Use
- Do not use to review pure infrastructure configuration files; use
config-risk-reviewer. - Do not use to apply code fixes; use
minimal-bug-fix.
4. Required Inputs
git_diff: Unified diff output (string).context_summary: Optional description of the goal of the diff.
5. Missing-Input Behavior
- If
git_diffis empty: report "Diff is empty; no changes to review." - If diff is missing line numbers: calculate relative to chunk headers (
@@ -L,S +L,S @@). - Never invent defects if the diff is clean.
6. Procedure
Follow these numbered actions:
- Action 1: Scan for Security Vulnerabilities and Leaks
- Check for hardcoded credentials, unescaped SQL queries, command injections, and exposed debug logs.
- Action 2: Check Logic Correctness and Edge Cases
- Check null/undefined handling, off-by-one errors, unhandled promise rejections, and missing error branches.
- Action 3: Check Backward Compatibility & Regressions
- Verify that existing public signatures or data contracts are not broken.
- Action 4: Classify Findings by Severity
BLOCKER: Security flaw, crash bug, or data corruption.WARNING: Edge case bug, performance pitfall, or missing test.NIT: Style, typo, or minor naming consistency.
- Action 5: Emit Review Report
- Format using Section 8.
7. Decision Rules
- If any secret or API key is found in diff: immediately classify as
BLOCKERand recommend immediate credential rotation. - If there are zero blockers or warnings: mark verdict as
APPROVED. Otherwise markCHANGES REQUESTED.
8. Output Format
Emit the review using this template:
### Code Review: [PR or Branch Title]
- **Verdict**: [APPROVED | CHANGES REQUESTED]
- **Files Changed**: [Count]
- **Blockers**: [Count] | **Warnings**: [Count] | **Nits**: [Count]
#### Findings Table
| File | Line | Severity | Category | Description & Fix Recommendation |
| :--- | :--- | :--- | :--- | :--- |
| `[file]` | `[line]` | **BLOCKER** | Security | [Exact issue and replacement code] |
| `[file]` | `[line]` | **WARNING** | Logic | [Edge case explanation] |
#### Positive Observations
- [Clean patterns or good test coverage observed in the diff]9. Verification Checklist
- Every finding references exact file and line number.
- Findings are categorized by severity.
- No stylistic bike-shedding promoted to Blocker.
- Verdict accurately reflects presence of blockers.
10. Common Failures and Recovery
| Failure Symptom | Cause | Recovery Action |
| Vague feedback | Saying "Check error handling" | Cite specific line and write the exact missing catch block. |
| Hallucinating issues | Misunderstanding framework | Verify against framework standard before labeling Blocker. |
11. Stop or Escalation Conditions
Stop and ask the user when:
- Diff is too large (> 3,000 lines) to review accurately in one turn.
12. Examples
Example 1: Successful Execution
Input:
--- a/src/db.js
+++ b/src/db.js
@@ -10,3 +10,3 @@ function getUser(id) {
- return db.query('SELECT * FROM users WHERE id = $1', [id]);
+ return db.query(`SELECT * FROM users WHERE id = '${id}'`);
}Output:
### Code Review: SQL Query Refactoring
- **Verdict**: CHANGES REQUESTED
- **Files Changed**: 1
- **Blockers**: 1 | **Warnings**: 0 | **Nits**: 0
#### Findings Table
| File | Line | Severity | Category | Description & Fix Recommendation |
| :--- | :--- | :--- | :--- | :--- |
| `src/db.js` | 11 | **BLOCKER** | Security | Critical SQL injection vulnerability. String interpolation allows arbitrary query execution. Revert to parameterized query: `db.query('SELECT * FROM users WHERE id = $1', [id])`. |
#### Positive Observations
- Query simplified, but security must take precedence.Example 2: Ambiguous or Missing Input
Input:
Review this: (Empty diff)Output:
### Code Review: Empty Diff
- **Verdict**: APPROVED (No Changes)
- **Files Changed**: 0
- **Blockers**: 0 | **Warnings**: 0 | **Nits**: 0
The provided diff contains no additions, modifications, or deletions.Example 3: Expected Final Output
Output:
### Code Review: Add User Avatar Upload
- **Verdict**: APPROVED
- **Files Changed**: 2
- **Blockers**: 0 | **Warnings**: 0 | **Nits**: 1
#### Findings Table
| File | Line | Severity | Category | Description & Fix Recommendation |
| :--- | :--- | :--- | :--- | :--- |
| `src/upload.ts` | 42 | **NIT** | Style | Typo in comment: "avater" -> "avatar". |
#### Positive Observations
- MIME type and file size validation properly implemented before processing buffer.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.

