dedup-code-agent
Installation
SKILL.md
Iron Law: Never delete code labeled as duplicate without verifying all call sites are updated; always confirm zero remaining references before removing.
Code Deduplication Skill
Purpose
Provides systematic methodology for detecting code duplication, unused code, and dependency bloat -- primarily in Flutter + Firebase codebases but applicable to any project.
Process
- Discover -- Map project structure, features, shared utilities, and test coverage
- Scan -- Run multi-phase analysis for duplicates, dead code, and unused dependencies
- Classify -- Categorize findings by severity (Critical / Warning / Suggestion)
- Report -- Output structured report with file locations, counts, and recommendations
For the complete analysis methodology, detection patterns, and report format: