anti-duplication

Search codebases for existing implementations before writing new code.

3|2|Updated Mar 23, 2026
One-click install
npx skills add https://github.com/wesleyegberto/software-engineering-skills --skill anti-duplication-wesleyegberto
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: anti-duplication
Source: https://github.com/wesleyegberto/software-engineering-skills/tree/main/plugins/programming-skills/skills/anti-duplication
Command: npx skills add https://github.com/wesleyegberto/software-engineering-skills --skill anti-duplication-wesleyegberto

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Proactively searches for existing implementations before writing new code to prevent duplication and ensure consistent, maintainable solutions.

Core Features & Use Cases

  • Proactively searches the repository for existing endpoints, components, and services before implementing new code.
  • Analyzes results as exact matches, close matches, and pattern matches, and offers reuse options (A-D-E) to maximize consistency.
  • Documents decisions with justification and aligns new work with the codebase's established patterns and anti-pattern guidelines.

Quick Start

Ask me to implement a feature and I will search for existing patterns before coding.

Frequently Asked Questions about anti-duplication

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

FAQPage Schema
How do I prevent code duplication when adding new endpoints or services?

To prevent code duplication, proactively search the repository for existing implementations before writing new code. This skill analyzes exact, close, and pattern matches to offer reuse options that maximize consistency and maintainability.

What is the best way to find existing patterns for reuse before implementing a component?

Finding existing patterns for reuse involves applying semantic, literal, and pattern analyses across the codebase. This process identifies matching endpoints or components and presents options to extend established patterns instead of duplicating logic.

How do I document decisions when reusing code patterns for maintainability?

Documenting code reuse decisions involves recording the justification for extending an existing pattern or creating a new implementation. This practice aligns new work with established anti-pattern guidelines and ensures long-term maintainability.

Can I apply anti-duplication checks across any software engineering codebase?

Yes, anti-duplication checks apply to general software engineering tasks across any codebase. The skill requires no external dependencies and proactively searches for existing services, components, and endpoints before coding begins.

Why should I search for existing implementations before writing new code?

Searching for existing implementations before writing new code prevents redundant logic and ensures consistent solutions. It guides decision-making by evaluating semantic and literal matches to maximize code reuse and structural consistency.