Simplify a change by reviewing existing reuse in Claude Code
Review staged and unstaged changes for duplicate logic and existing utilities that preserve the desired behavior.
中文Install in Claude Code
A Claude Code project with the implementation changes, reusable logic, and a behavior to verify.
- 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
An event list gains a venue filter. The diff adds a controller and two filters even though a venue function exists. The fixture is `{goal:'venue filter',staged:3,unstaged:2,reuse:'filterByVenue'}`.What to check
Propose `{reuse:'filterByVenue',expected:'same visible results'}`. Identify the duplicate filtration that can be removed and the call sites that can reuse the existing function. Include staged and unstaged work in the review.
Original SKILL.md on GitHub · Updated
Frequently asked question
What should a review say when added logic duplicates an existing function?
Confirm both entry points need the same behavior. Name the call sites and the reuse option, state which changes could be removed, and keep a visible outcome to check.