---
name: pr-reviewer
description: Review a pull request or diff — correctness, edge cases, error handling, security, performance, tests, naming and readability — with findings ranked by severity, each with file:line and a concrete fix. Use for code review, 'review my PR', or a second pair of eyes before merging.
license: Proprietary — Lendskill original
---

# PR Review

## Read first
The PR description and linked issue: what is it supposed to do? Then the diff, then the surrounding code the diff touches.

## Look for (in priority order)
1. **Correctness**: logic errors, off-by-one, null/empty cases, wrong error handling, race conditions, behavior the description promised but the code doesn't do.
2. **Security**: see `security-review` checklist for anything touching input, auth or data.
3. **Data**: migrations reversible? backfills safe? breaking API changes?
4. **Tests**: do tests cover the new behavior and fail without it?
5. **Performance**: N+1 queries, unbounded loops/memory, missing indexes.
6. **Readability**: names, dead code, comments explaining why.

## Output
Verdict (approve / approve with nits / changes requested). Findings grouped: blocking → should fix → nits. Each with file:line, the problem, and the suggested code. Keep nits few and labelled. Respect the author's structure and naming; don't request rewrites for taste.
