code-deduplication

Maintain a CODE_INDEX.md capability index to prevent code duplication.

1|Updated Jan 10, 2026
One-click install
npx skills add https://github.com/artofrawr/claude-control --skill code-deduplication
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-deduplication
Source: https://github.com/artofrawr/claude-control/tree/main/skills/code-deduplication
Command: npx skills add https://github.com/artofrawr/claude-control --skill code-deduplication

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Prevents semantic code duplication by maintaining a capability index and enforcing a check-before-write workflow.

Core Features & Use Cases

  • Central CODE_INDEX.md tracks existing capabilities to minimize reimplementation.
  • Check-before-write guidelines guide when to search, extend, or reuse existing code before creating new functionality.
  • Workflow governance includes updating the index after changes and periodic audits to catch overlap.

Quick Start

Review CODE_INDEX.md before creating any new function to evaluate existing capabilities and update the index after changes.

Frequently Asked Questions about code-deduplication

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent code duplication across my software projects?

Preventing code duplication requires maintaining a central capability index, such as CODE_INDEX.md, to track existing functionality and enforce a check-before-write workflow before creating new code.

What is a capability index and how does it minimize code reimplementation?

A capability index is a central document tracking existing project capabilities to minimize reimplementation by guiding developers to search, extend, or reuse existing code rather than writing new functions.

How do I set up guardrails for code reuse and governance?

Set up code reuse guardrails by establishing check-before-write guidelines that reference a capability index, updating the index after changes, and conducting periodic audits to catch overlapping functionality.

Can I apply a check-before-write workflow to any existing software codebase?

Yes, you can apply this check-before-write workflow across any software project by integrating a central capability index to evaluate existing capabilities and document patterns for reuse and governance.

When should I not use a code deduplication capability index?

Avoid using a code deduplication capability index for very small or disposable software projects where maintaining a central index and conducting periodic audits outweighs the benefits of code reuse.