code-clone-assistant
✓Detect and refactor code duplication with PMD CPD. TRIGGERS - code clones, DRY violations, duplicate code.
Installation
SKILL.md
Detect code clones and guide refactoring using PMD CPD (exact duplicates) + Semgrep (patterns).
Tested: October 2025 - 30 violations detected across 3 sample files Coverage: 3x more violations than using either tool alone
| Detects | Exact copy-paste duplicates | Similar patterns with variations | | Scope | Across files ✅ | Within/across files (Pro only) | | Matching | Token-based (ignores formatting) | Pattern-based (AST matching) | | Rules | ❌ No custom rules | ✅ Custom rules |
Detect and refactor code duplication with PMD CPD. TRIGGERS - code clones, DRY violations, duplicate code. Source: terrylica/cc-skills.
Facts (cite-ready)
Stable fields and commands for AI/search citations.
- Install command
npx skills add https://github.com/terrylica/cc-skills --skill code-clone-assistant- Source
- terrylica/cc-skills
- Category
- </>Dev Tools
- Verified
- ✓
- First Seen
- 2026-02-04
- Updated
- 2026-02-18
Quick answers
What is code-clone-assistant?
Detect and refactor code duplication with PMD CPD. TRIGGERS - code clones, DRY violations, duplicate code. Source: terrylica/cc-skills.
How do I install code-clone-assistant?
Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/terrylica/cc-skills --skill code-clone-assistant Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor
Where is the source repository?
https://github.com/terrylica/cc-skills
Details
- Category
- </>Dev Tools
- Source
- skills.sh
- First Seen
- 2026-02-04