Design System Violation Detector

Detect design-system violations in React components against DESIGN_GUIDELINES.md.

6|2|Updated Jul 29, 2025
One-click install
npx skills add https://github.com/spartDev/My-Prompt-Manager --skill design-system-violation-detector
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Design System Violation Detector
Source: https://github.com/spartDev/My-Prompt-Manager/tree/main/.claude/skills/design-violation-detector
Command: npx skills add https://github.com/spartDev/My-Prompt-Manager --skill design-system-violation-detector

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the detection and enforcement of design system guidelines across React components, ensuring accessibility, consistency, and adherence to the purple-indigo visual language.

Core Features & Use Cases

  • Automated detection: Scan React components (*.tsx, *.jsx) to identify violations of the design system guidelines documented in docs/DESIGN_GUIDELINES.md.
  • Enforcement & guidance: Provide actionable fixes and recommendations to bring components into compliance.
  • Use Case: Before submitting a PR with UI changes, run this Skill to ensure all components comply with the design system, including dark mode and typography rules.

Quick Start

Analyze the React components under src/ and report all design-system violations in DESIGN_GUIDELINES.md.

Frequently Asked Questions about Design System Violation Detector

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

FAQPage Schema
How do I enforce design system rules across React components automatically?

Design system enforcement scans React components against documented guidelines to detect violations in dark mode, color palette, spacing, typography, and accessibility rules. This Skill analyzes *.tsx and *.jsx files, identifies non-compliant code, and reports violations with actionable remediation guidance to keep components consistent.

Can I integrate design system checks into my PR review workflow?

Yes. Run this Skill before submitting PRs with UI changes to catch design-system violations early. It integrates with lint and test workflows, scanning components during creation, modification, and refactoring to ensure all changes comply with your documented guidelines before code review.

What design system rules can this detect in React components?

The Skill detects violations across dark mode support, color palette usage, spacing consistency, typography rules, focus states for accessibility, and border styling. It checks components against rules documented in DESIGN_GUIDELINES.md and provides concrete examples and fixes for each violation found.

How do I set up design system violation detection for my codebase?

Document your design rules in DESIGN_GUIDELINES.md, then run this Skill against your src/ directory containing React components. It scans all files, reports violations with remediation guidance, and generates actionable output you can integrate into your component creation and PR workflows.

Does this work with Tailwind and dark mode implementations?

Yes. The Skill specifically detects Tailwind-based violations including dark mode class usage and color palette consistency. It enforces accessibility compliance across dark and light themes, ensuring your purple-indigo visual language is applied uniformly across components.

What happens when design system violations are found?

The Skill reports each violation with its location, the rule it breaks, and concrete remediation examples showing how to fix it. Output is actionable, guiding developers to bring components into compliance with documented guidelines without ambiguity.