architecture-review

Audit design token architecture and generate a refactoring plan.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pnpm.

What problem does it solve?

A poorly structured design token architecture or inconsistent design patterns can lead to technical debt, scalability issues, and a fragile design system. This Skill provides a comprehensive architectural evaluation, identifying structural flaws and recommending improvements for a robust and scalable system.

Core Features & Use Cases

  • 3-Layer Hierarchy Audit: Reviews the Primitive→Semantic→Component token structure for compliance, integrity, and proper separation of concerns.
  • Naming Convention & Pattern Analysis: Evaluates consistency and extensibility of token naming, variant patterns (e.g., primary, ghost), and size systems (sm, md, lg).
  • State Management Completeness: Checks if all required interactive states (e.g., base, hover, focus, disabled) are covered by tokens and implemented consistently.
  • Tailwind Integration & Props API: Assesses the effectiveness of Tailwind @theme directives and the consistency of component Props API design across the system.
  • Use Case: Conduct a full architectural review to identify why new developers struggle to use your design system, uncovering inconsistencies in prop naming, missing state tokens, or direct primitive usage in components.

Quick Start

Use the architecture-review skill to evaluate the token hierarchy and design patterns across the entire design system.

Frequently Asked Questions about architecture-review

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

FAQPage Schema
How do I audit my design token architecture for scalability issues?

Design token architecture audits evaluate your Primitive→Semantic→Component hierarchy for structural health, naming consistency, and proper separation of concerns. This identifies technical debt, missing state tokens, and scaling bottlenecks before they fragment your system.

What's the best way to enforce consistent design patterns across a Tailwind CSS design system?

Enforce consistency by reviewing naming conventions, variant patterns, size systems, and state management across all tokens and components. Tailwind @theme integration and Props API standardization ensure developers use the system correctly and reduce prop-naming collisions.

Can I evaluate why new developers struggle to use my design system?

An architectural review identifies inconsistencies in prop naming, missing state tokens, direct primitive usage in components, and gaps in documentation or pattern uniformity. These findings explain adoption friction and guide refactoring priorities.

How do I plan a design token migration without breaking existing components?

A design token architecture review generates a concrete refactoring plan that maps current violations to target state, prioritizes changes by impact, and flags cross-component dependencies. This enables staged migration with minimal breakage.

What should I check when implementing a 3-layer token hierarchy?

Verify Primitive tokens are abstract, Semantic tokens map to intent, Component tokens cover all interactive states (base, hover, focus, disabled), naming follows a consistent convention, and variant patterns scale predictably across the system.

Do I need pnpm to run a design system architecture review?

The architecture-review Skill requires pnpm as a package manager. If your project uses npm or yarn, you'll need to adapt the setup, but the core audit logic applies to any Tailwind-based design system.