code-check-duplication
CommunityCatch enum drift and duplicated patterns fast
Software Engineering#typescript#static analysis#code review#tsx#duplication scan#enum drift#status handling
Authorwebdevcody
Version1.0.0
Installs0
System Documentation
What problem does it solve?
It finds duplicated TypeScript/TSX patterns where the runtime contract can silently drift from the type-level definition, especially around enum-like unions and status/variant handling.
Core Features & Use Cases
- Parallel-array drift detection (HIGH): flags hand-maintained arrays typed from string-literal unions when their contents mirror or mismatch the union literals.
- Repeated filter and per-variant branching detection (MEDIUM): surfaces smell-class repetition such as multiple
.filterchains orif/else ifUI branches keyed on the same literal field. - Scattered literal usage detection (LOW–MEDIUM): identifies widely repeated literals that increase the chance of forgetting a new enum value.
- Safety-first reporting: produces a ranked Markdown report without refactoring or code changes.
Quick Start
Ask the AI to run code-check-duplication on your recently edited TypeScript files to get a prioritized duplication/drift report without auto-fixing.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: code-check-duplication Download link: https://github.com/webdevcody/go-mailing-list/archive/main.zip#code-check-duplication Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.