alinaqi avatar

Code Deduplication

This is the "check before you write" skill. It fights the fundamental AI problem: models don't copy-paste, they reimagine, which means you end up with five different date formatters that all do roughly the same thing. The fix is systematic. You maintain a CODE_INDEX.md that catalogs what already exists by capability, not location. Before Claude writes any new utility function, it checks the index, searches for similar code, and either extends what's there or documents why something new is needed. The skill includes the index format (capability tables with function signatures), file header templates, and a step-by-step lookup process. Honestly most useful in established codebases where duplication has already become a tax.

skills.sh installs
335
GitHub stars
685
last updated
Jun 3, 2026

Install

$ npx -y skills add alinaqi/claude-bootstrap --skill code-deduplication --agent claude-code

Installs into .claude/skills of the current project.

Files

Code Deduplication Skill

Purpose: Prevent semantic duplication and code bloat. Maintain a capability index so Claude always knows what exists before writing something new.


Core Philosophy

Sponsors

Details

Repository
github.com/alinaqi/claude-bootstrap
First seen
Jun 3, 2026

More from alinaqi/claude-bootstrap

All 54

Recommended

1juliusbrussee avatarcavemanjuliusbrussee/cavemanUltra-compressed communication mode. Cuts output tokens 65% (measured) by speaking like caveman while keeping full technical accuracy. Supports intensity levels618.3Kskills.sh installs
2mattpocock avatargrill-memattpocock/skillsA relentless interview to sharpen a plan or design.1.5Mskills.sh installs
3shadcn avatarimproveshadcn/improveSurvey any codebase as a senior advisor and produce prioritized, self-contained implementation plans for OTHER models/agents to execute. Strictly read-only on s40Kskills.sh installs
4obra avatarsystematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes326.7Kskills.sh installs
5forrestchang avatarkarpathy-guidelinesforrestchang/andrej-karpathy-skillsBehavioral guidelines to reduce common LLM coding mistakes through explicit assumptions, simplicity, and verifiable success criteria.17.9Kskills.sh installs
6vercel-labs avatarfind-skillsvercel-labs/skillsHelps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express int4.3Mskills.sh installs