Review code correctness and clarity in layers with Claude Code
Review correctness, clarity, performance, and style in order, and address severe findings before moving on.
中文Install in Claude Code
A Claude Code workspace with the code, its intended behavior, and a reproducible input before inspecting performance or style.
- Review `.claude/skills/code-review/SKILL.md` and its requirements at the pinned GitHub commit.
- Create `.claude/skills/code-review/` in your project and save the reviewed file as `.claude/skills/code-review/SKILL.md`.
- Start Claude Code from that project's root, then select `/code-review` in the slash menu.
Example task
A fictional paginator uses zero-based pages. The request is `{page:0,limit:2,data:['hall','garden','loft'],actual:['garden','loft']}`. It should return the first two entries.What to check
Lead with a correctness finding and expected `['hall','garden']`. Locate the offset error and add a page-zero regression. After resolving the severe issue, review naming, performance, and style.
Original SKILL.md on GitHub · Updated
Frequently asked question
What comes first in a layered review of a pagination offset?
Record the input, expected and actual results as a correctness finding. Give a concrete fix and case to protect it before reviewing clarity and the later layers.