anti-duplication

Identify and reuse existing code patterns before implementing new functionality.

Updated Jan 5, 2026
One-click install
npx skills add https://github.com/Marcus-Mok-GH/Claude-code-conductor --skill anti-duplication-marcus-mok-gh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: anti-duplication
Source: https://github.com/Marcus-Mok-GH/Claude-code-conductor/tree/main/.claude/skills/anti-duplication
Command: npx skills add https://github.com/Marcus-Mok-GH/Claude-code-conductor --skill anti-duplication-marcus-mok-gh

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill helps developers prevent code duplication by analyzing the codebase and suggesting reuse of existing patterns before writing new code.

Core Features & Use Cases

  • Code Duplication Analysis: Search the codebase for existing patterns and suggest reusing them instead of writing new code.
  • DRY Principle Enforcement: Encourages the "Don't Repeat Yourself" principle, leading to cleaner, maintainable codebases.
  • Use Case: Before implementing a new API endpoint, the Skill will search for similar endpoints that can be reused or extended, reducing duplication and ensuring consistency.

Quick Start

When prompted to create or implement new functionality, automatically trigger the anti-duplication search to check for existing patterns.

Frequently Asked Questions about anti-duplication

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

FAQPage Schema
How do I analyze my codebase for code duplication before writing new code?

This Skill prevents code duplication by analyzing your codebase and suggesting the reuse of existing patterns. It triggers automatically when you implement new functionality, searching for similar API endpoints or components to extend instead of writing from scratch.

How does automated semantic search enforce the DRY principle in software engineering?

Automated semantic search enforces the DRY principle by understanding the intent behind code rather than just matching text. It finds functionally similar patterns within your codebase, allowing you to reuse or extend existing services and models instead of creating redundant logic.

Can I check for existing API endpoint patterns to reuse before implementing a new one?

Yes, you can check for existing API endpoint patterns before implementation. When prompted to create new functionality, the Skill searches for similar endpoints that can be reused or extended, reducing duplication and ensuring architectural consistency across your project.

What is the best way to maintain code consistency when adding new services or models?

The best way to maintain code consistency is using an anti-duplication analysis tool that searches for existing services or models. By matching the intent behind your new code with current patterns, it suggests reusing established implementations to keep your architecture clean and maintainable.

Do I need specific dependencies to run automated codebase analysis for duplicate code?

No specific dependencies are required to run automated codebase analysis for duplicate code. The Skill operates independently using bundled scripts and references to perform semantic and literal searches across your project files without external setup.