Skill · Coding
code-review-checklist
Reviews a diff for correctness, security, performance and tests, and reports findings as file:line with a fix. Use when asked to review a PR, a diff or changes before merge.
The skill itself. Agents read the name and description first and load the rest only when a task matches.
code-review-checklist/SKILL.md
---
name: code-review-checklist
description: Reviews a diff for correctness, security, performance and tests, and reports findings as file:line with a fix. Use when asked to review a PR, a diff or changes before merge.
---
# Code review checklist
## Steps
1. Read the whole diff once to understand the change and its intent.
2. Check correctness: edge cases, null/empty inputs, error paths, off-by-one, concurrency.
3. Check security: auth on new routes, input validation, injection, secrets, unsafe deserialization.
4. Check performance: N+1 queries, unbounded loops or payloads, missing pagination or indexes.
5. Check tests: new branches covered, failure cases tested, no flaky timing.
6. Report each finding as `file:line — severity — what's wrong — the fix`, most severe first.
## Rules
- Only report what you can point to in the diff. Drop speculation.
- Say "no findings" when there are none; don't pad.