code-deduplication
Installation
SKILL.md
Code Deduplication
Prevent semantic duplication and code bloat through capability indexing and pre-write checks.
Core Philosophy
Check before you write. Agents tend to reimplement rather than reuse. The problem isn't duplicate code—it's duplicate purpose.
Goal: Know what exists before writing anything new.
Quick Workflow
- Maintain CODE_INDEX.md in project root—a capability index organized by purpose, not file location
- Before writing any new function, check the index for similar capabilities
- After writing new code, update the index immediately
- Periodically audit for overlapping implementations