Anti-Duplication
Enforces the DRY principle by searching your codebase for existing patterns and components before implementing new code.
The Anti-Duplication skill is a powerful architectural guardian for Claude Code that prevents technical debt by proactively identifying existing code patterns. When a developer asks to build new functionality, the skill automatically triggers a multi-phase search across the repository to find similar endpoints, services, or UI components. By presenting options to reuse, extend, or abstract existing logic, it ensures that your codebase remains lean, consistent, and maintainable while significantly reducing the long-term burden of inconsistent bug fixes and redundant implementations.
Key Features
01Multi-layered search strategies using keyword matching, file patterns, and structural regex
02Parallel execution of searches to analyze large codebases in seconds
03Intelligent classification of results into exact matches, close matches, and pattern matches
04Structured decision-making process for code reuse, extension, or justified new creation
0518 GitHub stars
06Automatic trigger on implementation keywords like 'create', 'build', and 'add'
Use Cases
01Standardizing API endpoints by reusing existing authentication and validation middleware
02Maintaining database model consistency by checking for existing schemas before creating new entities
03Consolidating UI components by identifying similar rendering patterns across different domains