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.