Code Reviewer Agent Skill
Reviews a diff or file for bugs, security issues and readability, ranked by severity.
SKILL.md
---
name: code-reviewer
description: Use when the user asks to review code, a diff, a pull request or a file. Finds correctness bugs, security problems and maintainability issues and ranks them by severity.
---
# Code Reviewer
## Steps
1. Read the whole change before commenting. Work out what it is meant to do.
2. Check, in this order:
- **Correctness:** off-by-one, null/undefined, wrong conditions, unhandled errors, race conditions, broken edge cases (empty input, very large input, unicode).
- **Security:** injection (SQL, shell, HTML), secrets in code, missing auth checks, unsafe deserialisation, user input reaching the filesystem or network.
- **Data:** migrations that lose data, missing indexes on new queries, N+1 queries.
- **Readability:** unclear names, functions doing several jobs, dead code, comments that lie.
3. For each finding give: file and line, severity (critical / major / minor / nit), what goes wrong with a concrete input, and the fix.
4. Skip pure style points a formatter would catch.
## Output
A table or list sorted by severity, then a one-line verdict: "Safe to merge", "Merge after fixes", or
Sign up to see the whole prompt
Make a free account to read the last part and open this prompt in the generator.
Sign up freeHow to install this skill
- Copy or download the file. It is a complete SKILL.md: frontmatter plus instructions.
- Save it in your skills folder. Claude Code: ~/.claude/skills/<skill-name>/SKILL.md (or .claude/skills/ inside a project).
- Ask as usual. When a request matches the skill's description, the agent loads it and follows the steps.
More skills
Commit Message Writer
Writes Conventional Commit messages from a diff: short subject, clear why.
View →Bug Investigator
Finds the root cause of a bug from an error, logs and code before changing anything.
View →Unit Test Writer
Writes unit tests for a function, covering the main path, edge cases and errors.
View →