dry-violations

Detect hardcoded values, duplicate enums, and repeated domain logic in codebases.

Updated Jan 16, 2026
One-click install
npx skills add https://github.com/markky21/claude-skills --skill dry-violations
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dry-violations
Source: https://github.com/markky21/claude-skills/tree/main/plugins/my-personal-tools/skills/dry-violations
Command: npx skills add https://github.com/markky21/claude-skills --skill dry-violations

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps developers prevent duplication by locating hardcoded values, duplicate enums, and repeated domain logic across a codebase, enabling proactive refactoring.

Core Features & Use Cases

  • Scan codebases for hardcoded values, duplicate enums, and repeated constants.
  • Identify cross-file duplications in domain methods, types, and constants, and suggest canonical definitions.
  • Use during feature development, code reviews, and architectural audits to improve maintainability.

Quick Start

Run a DRY-violation scan on your repository to surface duplicates and recommend centralization.

Frequently Asked Questions about dry-violations

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

FAQPage Schema
How do I find duplicate enums and hardcoded values in my codebase?

To find duplicate enums and hardcoded values, this skill scans your codebase using static-analysis heuristics to flag repeated constants and domain logic, then suggests canonical centralized definitions for refactoring.

What are DRY violations and how do they affect code maintainability?

DRY violations are repeated hardcoded values, duplicate enums, and redundant domain logic across files. They degrade code maintainability by scattering definitions, making centralized updates and architectural audits difficult.

Can I use static analysis to detect repeated domain methods during code reviews?

Yes, you can use static analysis to detect repeated domain methods during code reviews. It analyzes cross-file duplications in constants and type definitions, suggesting centralization to prevent duplication proactively.

What is the best way to scan for cross-file duplications in constants and type definitions?

The best way to scan for cross-file duplications in constants and type definitions is running a static-analysis scan that identifies repeated values and suggests a single canonical definition to centralize the logic.

Does this DRY violation detection work for CI integration?

Yes, DRY violation detection works for CI integration. The scan outputs are suitable for continuous integration pipelines, flagging duplicates and hardcoded values during feature development or automated audits.

When should I not use automated DRY violation scans?

You should not use automated DRY violation scans when a codebase lacks stable domain methods or enums, as heuristic static analysis may surface false positives for intentional repetitions in distinct type definitions.