Skip to content
Back to skills

Code Review

ASecurity

Review a diff or module for correctness, security, regressions, and missing tests. Use when the user asks for a review or before shipping a change.

  • 4 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 11, 2026
ai-agentsshellsqlrailsgitapisecurity

Works with

  • api

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add purplemacaron/blank --skill code-review --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Code Review?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Code Review
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/purplemacaron-code-review/badge)](https://www.skillsdirectory.com/skills/purplemacaron-code-review)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: Code review
description: Review a diff or module for correctness, security, regressions, and missing tests. Use when the user asks for a review or before shipping a change.
---

# Code review

Review for truth, not for style points. A short review that finds the real bug beats a long checklist.

## 1. Establish the change

- Identify the exact diff (`git diff`, `git diff --staged`, or the files named).
- Read the full surrounding function and its callers — not only changed lines.
- Note the intent: bug fix, feature, refactor, or dependency bump.

## 2. Look for what breaks

In priority order:

1. **Correctness** — wrong state, off-by-one, race conditions, unhandled null/error paths, incorrect async ordering, stale closures.
2. **Security** — injection (SQL, shell, HTML), missing authorization, secret exposure, unsafe deserialization, path traversal, SSRF.
3. **Data** — migrations that lose data, missing transactions, non-idempotent retries, N+1 queries in hot paths.
4. **Compatibility** — public API changes, schema drift, platform differences, version constraints.
5. **Tests** — behavior changed without a failing test that now passes. Suggest the smallest meaningful test.

Do not report pure preference (formatting, naming taste) unless it obscures meaning. Do not invent issues to seem thorough.

## 3. Output

- Start with a one-line verdict: ship / ship with nits / needs work.
- List findings by severity: `blocker`, `major`, `minor`.
- Each finding: `path:line` → what happens → why it matters → minimal fix.
- Separate **questions** from findings when intent is unclear.
- If there are no issues, say so plainly and name what you verified.

## Guardrails

- Never modify code during a review unless asked. Offer a patch instead.
- Read tests and relevant call sites before claiming a regression.
- If the diff is too large to review meaningfully, say which files you covered.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.