What problem does it solve?
Code reviews often miss cases where new code duplicates existing utilities, reinvents wheels, or ignores established project patterns, leading to inconsistent and harder-to-maintain codebases.
Core Features & Use Cases
- Structured Duplication Investigation: Follows a five-step workflow to extract core logic, hypothesize existing locations, delegate codebase searches, evaluate best practices, and formulate feedback.
- Sub-Agent Delegation Strategy: Formulates specific investigative objectives for
codebase_investigator and generalist sub-agents covering structural similarity, naming conventions, architectural fit, and refactoring guidance.
- Constructive Review Feedback: Generates review comments that identify the source file path, provide implementation guidance with code snippets, and explain the value of reusing existing code.
- Use Case: A reviewer encounters a new
formatDate utility in a pull request and uses this skill to verify whether an existing helper in packages/core/src/utils/ already handles the same logic before flagging the duplication.
Quick Start
Review the current pull request for duplicated functionality and report any missed opportunities to reuse existing project utilities or shared patterns.