Code Review

Use this skill when the user asks to review code, review a PR, review a diff, or check changes before committing/pushing.

Madaxohower Updated

File contents

Code Review Skill

Review the diff against this checklist, report findings grouped by severity (Blocker / Should-fix / Nit).

Checklist

  1. Correctness — logic errors, edge cases, null handling
  2. Tests — are new/changed behaviors covered?
  3. Style — matches CLAUDE.md conventions
  4. Security — no secrets, no unsafe SQL concatenation
  5. Scope — diff does only what it claims
  6. Readability — naming, function length, comments

How to gather the diff

git diff (unstaged), git diff --staged, or git diff main...HEAD

Output format

  • One-line verdict first
  • Findings by category (only ones with issues)
  • Concrete suggested fixes

Madaxohower/claude-skill/tree/main/.claude/skills/code-review commit 3522d0d975

Frequently asked questions

npx skillmds@latest add madaxohower/code-review