code-check-duplication

Community

Catch enum drift and duplicated patterns fast

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 .filter chains or if/else if UI 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 required

Components

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.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.