Semantic Duplication Scanner

•
205
•

Detects and clusters redundant business logic reimplemented across different architectural layers to maintain code integrity.

The Semantic Duplication Scanner is an advanced architectural audit tool for Claude Code designed to find 'semantic clones'—business logic that has been independently implemented multiple times across different layers of an application. While traditional linters only find identical syntax, this skill uses LLM-powered semantic analysis to identify when a domain calculation (like a discount logic or status check) appears in a React component, a backend service, and a database adapter under different names. By building a persistent computation register and suggesting canonical locations for rules, it helps teams eliminate logic drift and significantly reduce technical debt.

Key Features

01Semantic Clustering: Groups functions based on intent and domain concept rather than syntactic similarity.
02Automated Canonical Scoring: Suggests the most appropriate architectural location for specific business rules.
03Cross-Layer Detection: Identifies domain logic leaked into presentation or infrastructure layers.
04Trivial Logic Filtering: Intelligently excludes getters, setters, and pass-through functions to minimize noise.
05205 GitHub stars
06Incremental Git-Diff Scanning: Uses git history to efficiently analyze only changed files after the initial full scan.

Use Cases

01Refactoring monolithic or legacy codebases to centralize fragmented business rules.
02Onboarding to large projects to understand where core business concepts are calculated.
03Conducting architectural reviews to ensure domain purity and prevent logic leakage.