Design Skill
Five-pillar design audit and holistic design critique system for validating UI quality and providing actionable feedback.
Design Skill
The design skill provides two complementary workflows: design-audit (validates against 5 core pillars) and design-ideate (holistic design critique). Both agents accept code, files, or descriptions and produce structured feedback.
Core Concept
The skill routes based on user intent:
- Audit: "review", "audit", "what's wrong", "fix violations" → validates against 5 pillars, produces star-rated report
- Ideate: "what should this have", "what am I missing", "is this the right design", "design critique" → produces design brief with gaps and suggestions
Five Core Pillars
Every design audit evaluates these five dimensions:
1. Design System Adherence
How thoroughly the UI utilizes UI Lab design tokens, components, and patterns vs. custom/raw HTML. All UI elements must use UI Lab components—not native HTML.
- Component sourcing (CRITICAL):
<button>→<Button>,<a>→<Anchor>,<input>→<Input>,<div className="flex">→<Flex>, etc. - Color tokens (no hex/rgba)
- API conventions (React Aria props, compound sub-components)
- Semantic color application for feedback states
2. Layout & Spacing
Visual alignment, padding consistency, whitespace distribution, and spatial relationships.
- Padding consistency within component families
- Margin relationships (logical grouping)
- Alignment (text baselines, grid, edges)
- Whitespace distribution reflecting hierarchy
- Element proximity reflecting logical grouping
3. Accessibility & Usability
Keyboard navigation, ARIA compliance, interactive state clarity, and affordance distinctness.
- ARIA labels/descriptions
- Keyboard navigation (tabindex, focus, escape hatch)
- Interactive states (hover, active, disabled, focus)
- Error states with recovery paths
- Loading states
- Touch target sizes (min 44x44px)
4. Cognitive Load
Information density, progressive disclosure effectiveness, visual noise, and decision complexity.
- Information density (critical vs. contextual)
- Progressive disclosure (dropdowns, collapsibles)
- Visual noise and clutter
- Decision paralysis (too many options)
- Scanning difficulty (weak hierarchy)
- Modal complexity
5. Visual Consistency
Consistent application of typography, color semantics, visual weight, icons, and state feedback.
- Typography hierarchy
- Color semantics (success = green, danger = red, etc.)
- Visual weight distribution
- Icon consistency and meaning clarity
- State feedback clarity (success, error, loading, disabled)
- Border/divider consistency
Star Rating System
Each pillar is scored 0–5 stars:
- ★★★★★ (5 stars): No violations. Pillar fully realized.
- ★★★★☆ (4 stars): Minor violations only (suggestions, low-priority warnings).
- ★★★☆☆ (3 stars): Moderate violations. Some important gaps, but core intent intact.
- ★★☆☆☆ (2 stars): Significant violations. Pillar compromised. Fix soon.
- ★☆☆☆☆ (1 star): Critical failures. Pillar fundamentally broken. Must fix.
- ☆☆☆☆☆ (0 stars): Completely missing or unusable.
Design-Audit Workflow
Input
- TSX/JSX code
- File path
- Description
Process
- Ingest the provided code, imports, component structure, styling
- Check for native HTML elements first (highest priority) — any use of
<button>,<a>,<input>,<select>, etc. instead of UI Lab components is a CRITICAL violation - Evaluate each pillar independently against validation scope
- Classify violations by severity (CRITICAL, WARNING, SUGGESTION)
- Assign star rating for each pillar
- Generate report with star ratings and violations
Output Format
Key Guidelines
- Pillar-by-pillar evaluation: Each pillar assessed independently
- Star rating first: Show rating before listing violations. If no violations: "No violations."
- Specific and actionable: Reference elements and provide recommendations
- No code generation: Reports issues only, does not propose fixes
- Component sourcing (CRITICAL): Native HTML elements (
<button>,<a>,<input>,<div className="flex">, etc.) are always CRITICAL violations. Always check for these first. - Design System Adherence deep dive: References
design-system.mdfor the complete Component Mapping table, color tokens, component APIs, React Aria conventions, and AI slop patterns
Design-Ideate Workflow
Input
- Code, file path, or description
- (Optional) Screenshots or visual descriptions
Process
- Domain context reasoning: What domain does this serve? Who is the user? What workflow brought them here?
- Element inventory: List every element with role, load-bearing status, and value rating (HIGH/MEDIUM/LOW/REMOVE)
- Gap identification: Critical gaps (missing states, missing context), layout coherence gaps, progressive disclosure opportunities
- Actionable brief: Top 5 suggestions ranked by spatial coherence impact, then functional criticality
Output Format
References
The design skill references these core documents:
references/core-pillars.md
Detailed definitions, validation scope, red flags, and scoring guidance for each pillar.
references/design-system.md
Authoritative standards for:
- Neutral palette and semantic color tokens
- Component & API standards (imports, React Aria conventions, compound components)
- Interactive states and affordance clarity
- AI slop patterns (redundant labels, verbose copy, parasitic instructional text, etc.)
Use design-system.md when auditing the Adherence pillar specifically.
How to Trigger the Skill
Trigger design-audit
Trigger design-ideate
Example: Audit Report
Input
Output
Example: Design Brief
Input
"Review this filter UI"
Note: This example intentionally uses native HTML elements (<input>, <label>) to demonstrate what a design audit would flag as violations. A corrected version would use <Input>, <Checkbox>, and <Label> from 'ui-lab-components'.
Output
Next steps
- MCP Workflows — how agents query components, patterns, and design tokens
- MCP Installation — connect the server to Claude Desktop or Cursor