Detect Duplication — Development skill for Claude Code
/detect-duplication - Detect Code Duplication.
How to install Detect Duplication
Installs to ~/.claude/commands/poulpybifle-claude-code-framework-detect-duplication.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/PoulpYBifle/Claude-Code-Framework/HEAD/.claude/commands/detect-duplication.md -o ~/.claude/commands/poulpybifle-claude-code-framework-detect-duplication.md Restart Claude Code, or start a new session, for it to be picked up.
What Detect Duplication does
/detect-duplication - Detect Code Duplication
Analyzes codebase for duplicate code patterns and provides refactoring recommendations.
Usage
/detect-duplication [path] [threshold]
Parameters
path: Path to analyze (optional, defaults to src/)threshold: Similarity threshold percentage (optional, defaults to 80%)
What this command does
- Analyze code patterns:
- Scan for duplicate code blocks
- Identify similar functions
- Find repeated patterns
- De
Alternatives in Development
- Sanitize — Detect and redact PII from text files — 15 categories (SSNs, credit cards, API keys, etc.), zero dependencies 3.1k ★
- Content Shipped — Proactively detect and log shipped content when user mentions publishing, launching, or completing work 1k ★
- Translation Detect — 同步原版更新、检测翻译状态、制定同步计划, 完成后自动建议执行翻译 695 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Code Smell Detector
Scan the codebase for code smells — duplication, complexity, dead code, and poor naming
Dry
Remove code duplication you just introduced
Census
Reconcile corpus populations, distinct vulnerabilities, and duplication across findings trees.
Cldpm
CPM (Claude Project Manager) is an SDK and CLI for managing mono repos with multiple Claude Code projects. It
Agent Instructions Review
Review changes to agent-instruction files (CLAUDE.md, AGENTS.md, .cursor/rules, copilot-instructions, .claude/
Skill Review Claude
Claude Code plugin marketplace: skill-review — a duplication and drift gate for skill, agent, and plugin prose
Related Agents
Resource Duplication
Resource duplication expert - use when configuring a resource to be copied between projects.
Svelte Abstraction Review
Reviews a feature segment in any SvelteKit app (apps/moderator, apps/auth, apps/creator-studio) for duplicatio
Clean Code Refactor
Use this agent when you need to refactor existing code, rewrite a module for better maintainability, decompose