Duplication Prevention Skill
CommunityEliminate redundant code, maintain a clean codebase.
Software Engineering#code quality#automation#refactoring#development standards#file management#code duplication#AI agent efficiency
Authorrajeshyg
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill prevents AI agents from creating redundant files or implementing functionality that already exists within the project. It enforces a "search-before-create" workflow, significantly reducing code duplication, improving maintainability, and keeping the codebase lean.
Core Features & Use Cases
- Search-Before-Create Workflow: Mandates a systematic search using Glob/Grep patterns before any new file creation.
- File Registry & Naming Patterns: Provides clear guidelines on where files should live and how they should be named, ensuring consistency.
- Anti-Patterns Blocking: Actively identifies and blocks common duplication scenarios like case variations, naming variations, and functional overlaps.
- Use Case: When asked to "add a new component," the AI agent will first use this Skill to search existing components, identify established patterns, and then either extend an existing file or create a new one following the correct structure, preventing unnecessary new files.
Quick Start
Before creating a new 'useProgress' hook, use the duplication prevention skill to check if similar progress logic already exists in the project.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: Duplication Prevention Skill Download link: https://github.com/rajeshyg/TeluguTutor/archive/main.zip#duplication-prevention-skill Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.