component-analysis

Analyze cross-component consistency across 12 design-system groups to detect pattern deviations.

Updated Sep 14, 2025
One-click install
npx skills add https://github.com/Higashi-Kota/react-tailwindcss-sandbox --skill component-analysis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: component-analysis
Source: https://github.com/Higashi-Kota/react-tailwindcss-sandbox/tree/main/.claude/skills/component-analysis
Command: npx skills add https://github.com/Higashi-Kota/react-tailwindcss-sandbox --skill component-analysis

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pnpm.

What problem does it solve?

Inconsistent patterns across UI component groups lead to a fragmented user experience, increased development time, and a difficult-to-maintain design system. This Skill identifies and reports these deviations, providing a clear path to standardization and improved consistency.

Core Features & Use Cases

  • Group-Level Analysis: Inventories components within 12 predefined groups (e.g., Button, Form, Overlay) and extracts common patterns.
  • Pattern Extraction & Comparison: Identifies common props (e.g., variant, size), token usage, animation patterns, and compares their implementations across components.
  • Consistency Scoring: Provides a quantitative score for each group's uniformity and highlights specific inconsistencies with detailed examples.
  • Cross-Group Pattern Check: Evaluates the uniformity of critical patterns (e.g., variant naming, size values, disabled state, focus indicators) across all 12 component groups.
  • Use Case: Audit your entire component library to find all instances where the size prop uses inconsistent naming (e.g., small vs sm) and generate a prioritized action plan for standardization.

Quick Start

Use the component-analysis skill to evaluate consistency across all 12 component groups in the design system.

Frequently Asked Questions about component-analysis

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

FAQPage Schema
How do I identify inconsistent patterns across UI components in my design system?

Pattern analysis across UI components identifies deviations in props, tokens, naming, and state implementations. This Skill inventories components within 12 predefined groups, extracts common patterns, and scores consistency to reveal which components deviate from established standards and how to fix them.

What design system inconsistencies can component analysis detect?

Component analysis detects token usage discrepancies, variant naming inconsistencies (like `small` vs `sm`), size and animation mismatches, and props/state design misalignments. It evaluates the `disabled` state, `focus` indicators, and critical prop patterns across all 12 component groups.

How do I standardize UI component patterns across my entire design system?

Generate a standardization plan by running cross-component consistency analysis to compare implementations, identify deviations with detailed examples, and receive a prioritized action plan. The Skill provides a quantitative consistency score for each group and actionable fixes for each inconsistency.

Can I use component analysis to audit variant naming across component groups?

Yes. Component analysis finds all instances where props use inconsistent naming across groups—for example, where the `size` prop uses `small` in one component but `sm` in another—and generates a prioritized standardization roadmap for alignment.

What do I need to run component analysis on my design system?

You need pnpm installed as a dependency and access to your component library organized by the 12 predefined groups (Button, Form, Overlay, and others). The Skill processes your components to inventory them and extract patterns for analysis.

Does component analysis work with frontend frameworks and design tokens?

Component analysis evaluates design system consistency including token usage, animation patterns, and prop implementations across frontend components. It works at the design-system level, analyzing patterns and consistency regardless of the underlying framework or token structure.