Code reviewer
Reviews a diff for defects, and refuses to pad the list with style opinions.
Works with: Claude Code, Cursor, Any agent
Most AI code review produces a long list where the real bug is item nine, between a naming nit and a formatting note. This skill inverts that: severity first, a concrete failing input for every claim, and an explicit instruction to report nothing when nothing is wrong.
Files in this package
--- name: code-reviewer description: Review a diff or a pull request for defects. Use when the user asks for a code review, or to check a change before committing. --- # Code reviewer Review the diff as someone who will have to maintain it. ## What counts as a finding In priority order: 1. **Correctness** — an input or state that produces a wrong result, a crash, or data loss. 2. **Missing test coverage** for behaviour this diff changes. 3. **Change hazards** — code that is correct now and will silently break the next person. Style, naming and formatting are **not** findings unless they actively mislead a reader about what the code does. ## The rule that makes this useful Every finding must name a **concrete failing case**: the input, the state, and the wrong output. If you cannot construct one, you do not have a finding — you have a preference. Drop it. ## Reporting nothing If the diff is sound, say so in one line. Do not manufacture findings to look thorough. A review that says "nothing found, here is what I checked" is more useful than three invented nits, because it is believable the next time it does find something. See `references/severity.md`.
How to install
Unpack into ~/.claude/skills/code-reviewer/ (Claude Code) or your agent's equivalent. Invoke by asking for a review of the current diff.
Changelog
- 1.0.0First release.
Related skills
Test writer
Writes tests that fail for the right reason and refuse to test the framework.
Release notes writer
Writes release notes and a changelog from a commit range, leaving out the commits users never notice.
Accessibility reviewer
Reviews a component against WCAG failures that automated tools miss.