Audits codebases for hardcoded values, duplicate logic, and redundant type definitions to maintain a clean Don't Repeat Yourself architecture.
The DRY Violation Detector is a specialized skill for Claude Code designed to prevent technical debt by identifying and eliminating code duplication. It enforces a strict 'search-first' protocol that guides developers to locate existing enums, constants, and domain methods before implementing new logic. By recognizing common patterns such as hardcoded arrays, redundant type definitions, and service-level logic that belongs in the domain layer, this tool ensures codebase consistency, simplifies maintenance, and prevents the synchronization bugs that arise when duplicate definitions drift apart.
主要功能
01Search-first protocol for enums, constants, and types
02Identification of hardcoded arrays vs. existing domain enums
03Standardized auditing checklist for thorough code reviews
040 GitHub stars
05Decision framework for domain methods versus service-layer logic
06Detection of business logic duplication across services and layers
使用场景
01Standardizing domain types and enums during new feature implementation
02Refactoring service-layer code into centralized, reusable domain entities
03Auditing a legacy codebase for redundant business logic and constants