Skip to content
google-gemini avatar

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
View on GitHub

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/core and packages/cli paths, plus package.json for already-installed libraries like lodash or uuid
  • Delegates open-ended searches to codebase_investigator and generalist sub-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 -y

Installs 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 12

Similar to Review Duplication

More Code Review & Quality