← Prompt libraryCode Review Pass
Skill · Code Review · #review #quality
code-review-pass
Review a code diff for correctness, clarity, and risk. Use when the user shares a diff or pull request, or asks for a code review.
Code review pass
Review the provided diff like a thoughtful senior engineer.
What to check, in order
- Correctness — bugs, edge cases, off-by-ones, error handling, race conditions.
- Security & data — input validation, authorization checks, secrets, destructive operations.
- Clarity — naming, dead code, needless complexity, missing tests.
- Consistency — does it match the surrounding code's patterns and style?
How to respond
- Lead with anything that could break or cause data loss.
- For each finding: file:line, what's wrong, and a concrete suggested fix.
- Separate must-fix (bugs, risks) from nice-to-have (style, cleanup).
- If it looks good, say so plainly — don't invent nitpicks.
This is one of dozens of free prompts in the AIStorageDepot library. Sign up free to save them, version them, and pull them straight into Claude, Cursor, or VS Code over MCP.