- Home
- Skills
- Code Quality & Review
- Diff Review Lite — Severity-Ranked Findings Before You Merge
More screenshots
Works with the AI Agents you already use
Diff Review Lite — Severity-Ranked Findings Before You Merge
**Diff Review Lite** looks only at the lines you are adding, ranks what it finds worst-first, and names the file and line.
$5
Diff Review Lite — Severity-Ranked Findings Before You Merge
Example session with this skill installed
Review the diff in examples/sample.diff and list the findings, worst first.
- Read your context and instructions
- Compiled the diff review lite
Summary
Diff Review Lite found 6 findings in the sample diff (critical 1, high 3, medium 1, low 1), ranked worst-first, each with a file and line.
$ python3 scripts/diff_review_lite.py --diff examples/sample.diff
# Code review findings
**6 findings** (critical 1, high 3, medium 1, low 1)
| # | Severity | Category | Location | Finding |
|---|---|---|---|---|
| 1 | critical | security | `src/auth.py:3` | a credential appears to be hard-coded in the source |
| 2 | high | security | `src/auth.py:6` | subprocess with shell=True can be injected by its input |
| 3 | high | security | `src/auth.py:9` | a SQL statement is built by string formatting |
| 4 | high | bug | `src/cache.py:1` | a mutable default argument is shared across all calls |
| 5 | medium | performance | `src/auth.py:9` | SELECT * fetches every column and breaks on schema changes |
| 6 | low | style | `src/cache.py:4` | a TODO marker was added |
## Details
### 1. [critical] a credential appears to be hard-coded in the source
- **Location:** `src/auth.py:3`
- **Category:** security
- **Fix:** read it from the environment or a secrets store, not a literal
### 2. [high] subprocess with shell=True can be injected by its input
- **Location:** `src/auth.py:6`
- **Category:** security
- **Fix:** pass a list of arguments and keep shell=False
Next steps
- Treat each finding as a prompt to look; the checks are single-line and can be wrong.
- Add
--fail-on highin CI to stop a merge when a finding is high or worse.
Connects securely to your tools. The creator never sees your data.
About this skill
The diff is up and the reviewer reads from the top, hoping to notice the one line that matters. The hard-coded key, the shell=True, the SQL glued together with +, the mutable default argument — mechanical mistakes that a human eye tires of catching on the hundredth file. They hide in a wall of green.
Diff Review Lite looks only at the lines you are adding, ranks what it finds worst-first, and names the file and line.
What it does
- Reads a unified diff from a file, from standard input (
git diff main...HEAD | ...), or reviews a whole source file with--file - Runs 19 deterministic checks across four categories — security, bug, performance, style — over the added lines, and ranks the findings worst-first with a one-line fix each
- Prints the markdown report, or the findings as JSON, or runs as a gate:
--fail-on highexits 1 when a finding is high or worse - Never runs, imports, commits, pushes, or edits your code; makes no network calls
Honest limits
It is a first pass, not a review — mechanical single-line checks that catch the obvious smells, not the logic. Expect some false positives and misses; treat each finding as a prompt to look.
What is inside
SKILL.md, README.md, LICENSE, scripts/diff_review_lite.py, tests/test_package.py (50 tests), and examples/sample.diff and examples/clean.diff (the diffs used in the example and the tests).
Requirements and safety
Python 3.8+, macOS or Linux, standard library only. Read-only: no commits, no pushes, no background services, no credentials, no network.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Code Quality & Review.
Line-based pattern matching only. Cannot detect multi-line logic bugs or understand program flow. Does not execute code or perform network calls.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 11 days ago
- Accounts
X
- Software
Git
Permissions
Allowed Hosts