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

  1. Maintain CODE_INDEX.md in project root—a capability index organized by purpose, not file location
  2. Before writing any new function, check the index for similar capabilities
  3. After writing new code, update the index immediately
  4. Periodically audit for overlapping implementations

CODE_INDEX.md Structure

Related skills

More from jr2804/prompts

Installs
6
Repository
jr2804/prompts
First Seen
Apr 16, 2026