review-dry-violations

Detect duplicated code patterns with file:line references across React and Express/Prisma projects.

Updated Apr 3, 2026
One-click install
npx skills add https://github.com/jacocanete/cebu-airsoft-hub --skill review-dry-violations
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: review-dry-violations
Source: https://github.com/jacocanete/cebu-airsoft-hub/tree/main/.opencode/skills/review-dry-violations
Command: npx skills add https://github.com/jacocanete/cebu-airsoft-hub --skill review-dry-violations

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Identifies duplicated logic, repeated UI patterns, scattered constants, redundant types, and overlapping validation across the Cebu Airsoft Hub repository to reduce maintenance cost and enable safe extractions into shared utilities.

Core Features & Use Cases

  • Performs a repository-wide DRY audit that locates duplicate objects, inline maps, mock-data usage, repeated Tailwind utility strings, and repeated validation logic across frontend and backend code.
  • Produces concrete evidence: file_path:line_number references, code snippets, occurrence counts, and grouped similarity results to prioritize extraction work.
  • Use cases include migration from mock data to real hooks, consolidating badge color maps, extracting shared UI components and hooks, and unifying type definitions for more reliable refactors.

Quick Start

Run a DRY audit pass on the repository and produce a markdown report listing duplicated patterns with file:line references, occurrence counts, suggested extractions, and estimated lines saved.

Frequently Asked Questions about review-dry-violations

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

FAQPage Schema
How do I detect duplicated code patterns across a React and Prisma codebase?

A repository-wide DRY audit analyzes your codebase to locate repeated UI patterns, scattered constants, and duplicated validation logic. It produces concrete evidence with file:line references and occurrence counts to prioritize extraction work.

What is the best way to find repeated Tailwind utility strings and badge color maps for refactoring?

The best way to find repeated Tailwind utility strings and badge color maps is a repository-wide DRY audit that groups similar shapes and counts occurrences. This provides concrete evidence to consolidate mappings into shared UI components.

Can I track migration progress from mock data to real hooks using a DRY audit?

Yes, you can track migration progress from mock data to real hooks. The DRY audit identifies mock-data usage across the codebase, providing file:line references and occurrence counts to guide safe extractions into shared utilities.

Does this DRY audit work with both frontend and backend validation logic?

Yes, this DRY audit works with both frontend and backend validation logic. It is applicable to React frontend and Express/Prisma backend projects, performing repository-wide text analysis to locate overlapping validation and redundant types.

How do I get a markdown report of duplicated code patterns with estimated lines saved?

To get a markdown report of duplicated code patterns, run a DRY audit pass on the repository. It produces a report listing duplicated patterns with file:line references, suggested extractions, and estimated lines saved for refactor planning.