Review Duplication
Structured code-review workflow that hunts for duplicated logic and missed reuse of existing project utilities.
- CCM score
- 70 of 100
- skills.sh installs
- 363
- GitHub stars
- 109.3K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers the review steps: extract core logic, locate likely existing homes, trace dependencies, evaluate conventions, and write feedback
- Directs investigation to
packages/coreandpackages/clipaths, pluspackage.jsonfor already-installed libraries likelodashoruuid - Delegates open-ended searches to
codebase_investigatorandgeneralistsub-agents, checking structural similarity, naming patterns, and comments - Checks new code against error handling, state management, and styling conventions, including hardcoded colors or spacing instead of theme variables
- Designed for code reviewers who want to flag reinvented utilities with specific file paths and integration snippets
Install
$ npx -y skills add google-gemini/gemini-cli --skill review-duplication -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Review Duplication
Overview
This skill provides a structured workflow for investigating a codebase during a code review to identify duplicated logic, reinvented utilities, and missed opportunities to reuse established patterns. By executing this workflow, you ensure that new code integrates seamlessly with the existing project architecture.
Workflow: Investigating for Duplication
When reviewing code, perform the following steps before finalizing your review:
1. Extract Core Logic
Analyze the new code to identify the core algorithms, utility functions, generic data structures, or UI components being introduced. Look beyond the specific business logic to see the underlying mechanics.
Details
- Repository
- github.com/google-gemini/gemini-cli
- Category
- Code Review & Quality
- First seen
- Jun 3, 2026
Questions
What does the review-duplication skill do during a code review?
It guides the agent to investigate the codebase for duplicated functionality, reinvented utilities, and missed reuse of existing project patterns and shared helpers. It traces core logic, checks likely existing locations, and reviews best practices before finalizing feedback.
How do I install the review-duplication skill?
Run npx -y skills add google-gemini/gemini-cli --skill review-duplication -y in a project to install it. Once installed, the agent can flag new code that reimplements existing utilities and point to the file and symbol to reuse instead.
Which other skills are in the Code Review & Quality category?
Review-duplication sits in the Code Review & Quality category alongside improve-codebase-architecture, codebase-design, code-review, setup-ts-deep-modules and caveman-review. It stands apart by focusing on finding duplicated logic and missed reuse of shared utilities during review.
Who should use the review-duplication skill?
It suits developers reviewing pull requests in a large codebase who want new code to fit existing utilities and conventions. It is especially useful when a change introduces helpers, wrappers or third-party imports that the project may already provide.
More from google-gemini/gemini-cli
All 12Similar to Review Duplication
More Code Review & Qualitycode-reviewergoogle-gemini/gemini-cli9.8K installsStructured code review skill covering local changes and remote Pull Requests for correctness, maintainability, and project standards.
code-reviewagno-agi/agno479 installsStructured code review assistant that sorts findings into critical, important, and suggestion severity levels.
code-simplifiergetsentry/skills9.2K installsBehavior-preserving refactoring guide that simplifies recent code for clarity while following project conventions.
string-reviewergoogle-gemini/gemini-cli409 installsReviews user-facing strings for clarity, brevity, and style, suggesting fixes without rewriting them directly.
ponytail-auditDietrichGebert/ponytail64.9K installsWhole-repo audit that ranks bugs, security risks, and bloat to delete or replace with native equivalents.
review-and-refactorgithub/awesome-copilot11.1K installsReviews code against project instructions in .github/ and refactors it while keeping existing files intact.