PoulpYBifle

Detect Duplication — Development skill for Claude Code

Development community

/detect-duplication - Detect Code Duplication.

How to install Detect Duplication

Installs to ~/.claude/commands/poulpybifle-claude-code-framework-detect-duplication.md

Terminal
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

  1. 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 Repository