k
kritak
back to skills

Code Reviewer

by Anthropic

A Claude Code skill that performs a structured review of pending changes — flags bugs, security issues, style drift, and missing tests before you commit.

/review

$ install

# Add to your project's Claude Code skills directory
mkdir -p .claude/skills
# Then create .claude/skills/code-reviewer.md with the
# frontmatter + instructions shown in the README below.

$ cat readme.md

What it does

The code-reviewer skill runs a multi-pass review of your working tree:

  1. Diff scan — reads git diff and identifies the surface area of changes.
  2. Bug check — looks for obvious logic errors, off-by-one issues, and broken edge cases.
  3. Security pass — flags injection risks, hardcoded secrets, and unsafe deserialization.
  4. Style consistency — compares against existing patterns in the codebase.
  5. Test coverage — notes any new code paths that lack tests.

Why use a skill instead of a prompt

Skills are reusable across sessions and projects. Once installed, /review works the same way every time without re-pasting context.