Claude Code /code-review skill

Run a local review of a diff, branch, or file in Claude Code and inspect evidence for correctness findings before changing code.

How to use the Claude Code /code-review skill in Claude Code

  1. Open the repository where the change lives and check the target file or branch first.
  2. Use the example below as a starting point and replace the sample task with your own.
Claude Code prompt · Try this example
/code-review src/billing/format.ts

Review a narrow billing formatting change

Pass a file and ask for evidence on rounding, input validation, and currency display from the current diff. Check the cited lines and run behavior tests with currency values from your fixture.

Choose the scope and output before invoking

With no target, review covers the current diff. Review mode reports findings by default. Options that apply changes or post comments should be used only when you want those effects.

Browse Skills