experimental-dedup

Identify semantic duplication across a codebase by analyzing behavior.

Updated Mar 29, 2026
One-click install
npx skills add https://github.com/Ovid/smudge --skill experimental-dedup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: experimental-dedup
Source: https://github.com/Ovid/smudge/tree/main/.claude/skills/experimental-dedup
Command: npx skills add https://github.com/Ovid/smudge --skill experimental-dedup

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Identify semantic duplicates in a codebase—cases where different implementations encode the same domain meaning, risking drift, inconsistent behavior, and harder maintenance.

Core Features & Use Cases

  • Phased reconnaissance and candidate discovery to surface true semantic duplicates, not just textual similarity.
  • Generate concept cards and behavioral fingerprints that capture intent, inputs/outputs, edge cases, and callers.
  • Guided, auditable workflow with risk-aware recommendations to support safe consolidation or intentional divergence.

Quick Start

Run the experimental-dedup skill on your repository to start a scoped semantic-duplication scan and review the findings.

Frequently Asked Questions about experimental-dedup

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

FAQPage Schema
How do I find semantic code duplication instead of just similar text?

To find semantic code duplication, you need a scanner that analyzes behavioral fingerprints rather than surface syntax. This approach targets validators, mappers, and domain rules to identify different implementations encoding the same domain meaning, reducing drift and inconsistent behavior.

What is the best way to detect duplicated domain rules and policy checks in a codebase?

The best way to detect duplicated domain rules and policy checks is using a phased workflow that runs reconnaissance and candidate discovery. This process surfaces true semantic duplicates and generates concept cards capturing intent, inputs, outputs, and edge cases for auditable review.

How do I reduce refactoring risk when consolidating duplicated validators and mappers?

To reduce refactoring risk when consolidating duplicated validators and mappers, use a specialist review phase that provides risk-aware recommendations. This ensures safe consolidation or intentional divergence by bounding findings and generating auditable behavioral fingerprints for review.

Does semantic duplication detection work for arbitrary code structures or only specific patterns?

Semantic duplication detection specifically targets validators, mappers, domain rules, and policy checks rather than arbitrary code structures. It surfaces behavioral fingerprints and concept cards for review, ensuring findings are bounded and auditable through a phased reconnaissance and discovery workflow.

When should I not use a semantic duplication scanner?

You should not use a semantic duplication scanner when you only need to find textual similarity or surface-level code clones. The scanner is designed for identifying behavioral fingerprints and domain meaning drift, which requires a phased workflow involving reconnaissance and specialist review.