code-review-duplication-detector

Detect code duplication and generate prioritized refactoring recommendations for code reviews.

21|8|Updated Mar 9, 2026
One-click install
npx skills add https://github.com/speednet-software/speedwave --skill code-review-duplication-detector
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-review-duplication-detector
Source: https://github.com/speednet-software/speedwave/tree/main/.claude/skills/code-review-duplication-detector
Command: npx skills add https://github.com/speednet-software/speedwave --skill code-review-duplication-detector

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps teams maintain code health by automatically identifying duplicated logic and surfacing refactoring opportunities to enforce DRY principles.

Core Features & Use Cases

  • Detect exact, structural, semantic, and data duplicates across codebases and repositories.
  • Prioritize duplications by impact and provide actionable refactoring recommendations with estimated effort.
  • Integrate with code review workflows to surface duplications in diffs and pull requests, guiding targeted improvements.

Quick Start

Run a scan over your repository to surface the top duplications and recommended refactors.

Frequently Asked Questions about code-review-duplication-detector

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect code duplication across a whole repository?

Repository-wide code duplication detection scans your entire codebase to identify exact, structural, semantic, and data duplications, then surfaces actionable refactoring recommendations prioritized by impact.

What is the best way to find refactoring opportunities for DRY principles during code review?

The best way to find DRY refactoring opportunities during code review is to scan pull request diffs for duplicated logic, which automatically surfaces targeted improvements and estimated effort directly within your workflow.

What types of code duplication can static analysis identify?

Static analysis for code duplication can identify exact matches, structural similarities, semantic equivalents, and repeated data patterns across modules and repositories to prevent maintainability erosion.

Can I prioritize code duplications by impact before refactoring?

Yes, you can prioritize code duplications by impact. The detection process evaluates identified duplications and ranks them by severity, guiding you toward the most critical refactoring opportunities with estimated effort.

Does code duplication detection work on incremental diffs or only full modules?

Code duplication detection works on both incremental diffs and full modules. It can scan individual pull request diffs or apply broadly across entire repositories to catch duplicated logic at any scale.

When should I not rely on automated code duplication detection?

Automated code duplication detection should not be your only safeguard when semantic similarity is ambiguous, as structural and data pattern matching may surface false positives that require manual review before refactoring.