Duplication Prevention Skill

Enforce a search-before-create workflow to prevent duplicate file creation.

Updated Nov 22, 2025
One-click install
npx skills add https://github.com/rajeshyg/TeluguTutor --skill duplication-prevention-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Duplication Prevention Skill
Source: https://github.com/rajeshyg/TeluguTutor/tree/main/.claude/skills/duplication-prevention
Command: npx skills add https://github.com/rajeshyg/TeluguTutor --skill duplication-prevention-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

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.

Frequently Asked Questions about Duplication Prevention Skill

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

FAQPage Schema
How do I prevent duplicate code from being created in my project?

Code duplication prevention enforces a search-before-create workflow that checks existing files using glob and grep patterns before creating new ones. The Skill systematically searches your codebase, analyzes naming patterns and functionality, then either extends an existing file or creates a new one following established conventions, keeping your project lean and maintainable.

When should I search for existing code before creating new files?

Search before creating whenever adding components, hooks, utilities, pages, or data files. This prevents redundant implementations of similar functionality. The Skill applies automatically during feature requests and manual activation prompts, ensuring you extend existing patterns rather than duplicate logic across your codebase.

How does the search-before-create workflow identify duplicate functionality?

The workflow uses a 3-step process: Search applies glob and grep checks across components, hooks, pages, utilities, and data artifacts; Analyze compares naming variations and functional overlaps using a centralized file registry; Create or Extend decides whether to add to existing files or follow correct structure for new ones, blocking common anti-patterns like case and naming variations.

Can I use duplication prevention with AI agent feature requests?

Yes. The Skill enforces search-before-create during auto-activation, manual activation prompts, and feature requests that don't specify a location. It applies before the Scout phase in the TAC workflow, ensuring agents check for existing code before generating new files or implementations.

What file types and locations does duplication prevention cover?

The Skill covers components, hooks, pages, utilities, data files, and other code artifacts. It maintains clear naming guidelines and file registry patterns for each category, ensuring consistency across your project structure and preventing redundant files in any of these standard locations.

How does duplication prevention improve code quality and maintenance?

By blocking redundant file creation and enforcing consistent patterns, the Skill reduces code duplication, improves maintainability, and keeps your codebase clean. Centralized logic reduces debugging surface area, simplifies refactoring, and ensures development standards are applied consistently across the project.