What problem does it solve? AI assistants and developers often reimplement functions that already exist, creating duplicate logic scattered across a codebase. This Skill prevents semantic duplication by maintaining a capability index so existing utilities are found and reused before new code is written. ## Core Features & Use Cases - Capability Index (CODE_INDEX.md): Maintains a project-root index organized by capability (dates, validation, API clients, hooks) listing each function's location, purpose, and parameters. - Check-Before-Write Workflow: Enforces a decision tree that searches the index and codebase before creating any new function, preferring extension of existing code over reimplementation. - Duplicate Audits: Provides an audit checklist and report format to detect overlapping utilities, inline validation logic, and similar components, with optional vector DB search (ChromaDB or LanceDB) for large codebases. - Use Case: Before adding a date-formatting helper, the assistant checks CODE_INDEX.md, finds formatRelative() in utils/dates.ts, and reuses or extends it instead of writing a fourth date formatter. ## Quick Start Ask the assistant to check the code index for existing functionality before writing any new utility function, and to update CODE_INDEX.md afterward.