/ui-ux - UI/UX Design Studio
Orchestrates a team of UI/UX specialists to design, build, review, or audit frontend interfaces. Covers aesthetic direction, component architecture, performance optimization, and visual quality assurance.
When to Activate
- User asks to design, build, or improve any UI or frontend
- User asks for a design system, color palette, typography selection
- User asks to review or audit existing UI quality
- User says "make it look good", "fix the UI", "design review", or "visual QA"
- Any work involving React components, layouts, styling, or responsive design
- Pre-launch quality checks for frontend code
User Discovery
Ask the user these questions (use AskUserQuestion, one at a time):
Project: Which project are you working on?
- Provide the project name and path
- If creating new UI, what is the product and who uses it?
Mode: What do you need?
- Design - Create a new design system or major visual direction
- Build - Build new pages, features, or components with design guidance
- Review - Audit existing UI for quality, usability, and performance
- Fix - Fix specific UI/UX issues
- Audit - Full pre-launch quality check (all agents engaged)
Scope: What specifically do you need? (adapt to mode)
- Design: "Describe the product and the feeling you want it to evoke"
- Build: "Describe the feature or page you want to build"
- Review: "What pages or components should be reviewed?"
- Fix: "Describe the UI issue. What happens vs. what should happen?"
- Audit: "Which pages are launch-critical?"
Tech Stack: (if not already known from the project)
- React + Next.js + Tailwind (default for most projects)
- Other: specify framework, CSS approach, component library
Team Composition: Which specialists do you need?
- Full team (Director + Visual Designer + Component Architect + Performance Reviewer + UX Reviewer) - recommended for Design and Audit
- Build team (Director + Component Architect + UX Reviewer) - recommended for Build
- Review team (Director + Performance Reviewer + UX Reviewer) - recommended for Review
- Minimal (Director + one specialist) - recommended for Fix
- Custom - pick specific roles
Pre-Survey
If the project path exists, run this before spawning the director:
cd {PROJECT_PATH} && echo "=== Recent Commits ===" && git log -5 --oneline 2>/dev/null && echo "=== Source Structure ===" && ls -1 src/ 2>/dev/null && echo "=== Component Count ===" && find src -name "*.tsx" -o -name "*.jsx" 2>/dev/null | wc -l && echo "=== Design Tokens ===" && (cat tailwind.config.ts 2>/dev/null || cat tailwind.config.js 2>/dev/null || echo "No tailwind config found") | head -30 && echo "=== Client Components ===" && grep -rl '"use client"' src/ 2>/dev/null | wc -l && echo "=== Global Styles ===" && ls src/app/globals.css src/styles/ 2>/dev/null
Available Tooling
- Playwright MCP: Browser automation for responsive testing, visual QA, and interactive state validation. The UX Reviewer uses this for screenshot-based quality checks at multiple viewports.
- Context7: Current API documentation for React, Next.js, Tailwind, and other frameworks.
Knowledge Base
The following shared data files are available to all agents:
~/.claude/skills/ui-ux/data/design-rules.md: 35 non-negotiable design rules
~/.claude/skills/ui-ux/data/perceptual-defaults.md: Research-backed typography, color, spacing, motion values
~/.claude/skills/ui-ux/data/scaffold-templates.md: 9 common layout patterns (dashboard, list, detail, marketing, modal, wizard, mobile, form, empty state)
~/.claude/skills/ui-ux/data/react-performance.md: Priority-tiered React/Next.js performance rules (4 tiers, 20+ rules)
Orchestration
After gathering answers and pre-survey data, spawn a Task agent:
- subagent_type: general-purpose
- model: sonnet
- name: ui-ux-director
Pass to the agent:
- Pre-survey output (if available)
- All user answers (project, mode, scope, tech stack, team composition)
- The project path as the working directory
- Instruction: "You are the UI/UX Director. Follow the instructions in ~/.claude/agents/ui-ux-director.md"
- Include which team members to activate based on the user's team composition choice
After Agent Returns
The director returns a structured report with phases completed, design decisions, files created/modified, quality scores, team reports, and next steps.
- Display the summary and quality scores
- Show design decisions and rationale
- List files created and modified
- If quality scores are available, display the heuristic and TASTE averages
- Show the UX Review gate decision (PASS/CONDITIONAL/FAIL)
- List recommended next steps
- Ask if the user wants to commit the changes
Integration with Other Skills
This skill's agents can be invoked by other orchestrators:
- game-director: Can spawn
ui-ux-reviewer.md for Playwright QA on game UI
- blog-captain: Can spawn
ui-visual-designer.md for blog design decisions
- Any agent: Can reference
~/.claude/skills/ui-ux/data/ for design rules and patterns
Ad-Hoc Agent Usage
Individual agents can be spawned directly without the full skill workflow:
# Quick design system review
Agent: ui-visual-designer.md - "Review the color system in this project"
# Component architecture audit
Agent: ui-component-architect.md - "Audit the component structure in src/components/"
# Performance check
Agent: ui-performance-reviewer.md - "Run a performance audit on this Next.js app"
# Full QA pass
Agent: ui-ux-reviewer.md - "Run Playwright QA on http://localhost:3000"
1---2name: ui-ux3description: UI/UX design and quality system: aesthetic direction, component architecture, performance, and visual QA with a coordinated agent team4---56# /ui-ux - UI/UX Design Studio78Orchestrates a team of UI/UX specialists to design, build, review, or audit frontend interfaces. Covers aesthetic direction, component architecture, performance optimization, and visual quality assurance.910## When to Activate1112- User asks to design, build, or improve any UI or frontend13- User asks for a design system, color palette, typography selection14- User asks to review or audit existing UI quality15- User says "make it look good", "fix the UI", "design review", or "visual QA"16- Any work involving React components, layouts, styling, or responsive design17- Pre-launch quality checks for frontend code1819## User Discovery2021Ask the user these questions (use AskUserQuestion, one at a time):22231. **Project:** Which project are you working on?24 - Provide the project name and path25 - If creating new UI, what is the product and who uses it?26272. **Mode:** What do you need?28 - **Design** - Create a new design system or major visual direction29 - **Build** - Build new pages, features, or components with design guidance30 - **Review** - Audit existing UI for quality, usability, and performance31 - **Fix** - Fix specific UI/UX issues32 - **Audit** - Full pre-launch quality check (all agents engaged)33343. **Scope:** What specifically do you need? (adapt to mode)35 - Design: "Describe the product and the feeling you want it to evoke"36 - Build: "Describe the feature or page you want to build"37 - Review: "What pages or components should be reviewed?"38 - Fix: "Describe the UI issue. What happens vs. what should happen?"39 - Audit: "Which pages are launch-critical?"40414. **Tech Stack:** (if not already known from the project)42 - React + Next.js + Tailwind (default for most projects)43 - Other: specify framework, CSS approach, component library44455. **Team Composition:** Which specialists do you need?46 - **Full team** (Director + Visual Designer + Component Architect + Performance Reviewer + UX Reviewer) - recommended for Design and Audit47 - **Build team** (Director + Component Architect + UX Reviewer) - recommended for Build48 - **Review team** (Director + Performance Reviewer + UX Reviewer) - recommended for Review49 - **Minimal** (Director + one specialist) - recommended for Fix50 - **Custom** - pick specific roles5152## Pre-Survey5354If the project path exists, run this before spawning the director:5556```bash57cd {PROJECT_PATH} && echo "=== Recent Commits ===" && git log -5 --oneline 2>/dev/null && echo "=== Source Structure ===" && ls -1 src/ 2>/dev/null && echo "=== Component Count ===" && find src -name "*.tsx" -o -name "*.jsx" 2>/dev/null | wc -l && echo "=== Design Tokens ===" && (cat tailwind.config.ts 2>/dev/null || cat tailwind.config.js 2>/dev/null || echo "No tailwind config found") | head -30 && echo "=== Client Components ===" && grep -rl '"use client"' src/ 2>/dev/null | wc -l && echo "=== Global Styles ===" && ls src/app/globals.css src/styles/ 2>/dev/null58```5960## Available Tooling6162- **Playwright MCP**: Browser automation for responsive testing, visual QA, and interactive state validation. The UX Reviewer uses this for screenshot-based quality checks at multiple viewports.63- **Context7**: Current API documentation for React, Next.js, Tailwind, and other frameworks.6465## Knowledge Base6667The following shared data files are available to all agents:68- `~/.claude/skills/ui-ux/data/design-rules.md`: 35 non-negotiable design rules69- `~/.claude/skills/ui-ux/data/perceptual-defaults.md`: Research-backed typography, color, spacing, motion values70- `~/.claude/skills/ui-ux/data/scaffold-templates.md`: 9 common layout patterns (dashboard, list, detail, marketing, modal, wizard, mobile, form, empty state)71- `~/.claude/skills/ui-ux/data/react-performance.md`: Priority-tiered React/Next.js performance rules (4 tiers, 20+ rules)7273## Orchestration7475After gathering answers and pre-survey data, spawn a Task agent:76- **subagent_type:** general-purpose77- **model:** sonnet78- **name:** ui-ux-director7980Pass to the agent:811. Pre-survey output (if available)822. All user answers (project, mode, scope, tech stack, team composition)833. The project path as the working directory844. Instruction: "You are the UI/UX Director. Follow the instructions in ~/.claude/agents/ui-ux-director.md"855. Include which team members to activate based on the user's team composition choice8687## After Agent Returns8889The director returns a structured report with phases completed, design decisions, files created/modified, quality scores, team reports, and next steps.90911. Display the summary and quality scores922. Show design decisions and rationale933. List files created and modified944. If quality scores are available, display the heuristic and TASTE averages955. Show the UX Review gate decision (PASS/CONDITIONAL/FAIL)966. List recommended next steps977. Ask if the user wants to commit the changes9899## Integration with Other Skills100101This skill's agents can be invoked by other orchestrators:102103- **game-director**: Can spawn `ui-ux-reviewer.md` for Playwright QA on game UI104- **blog-captain**: Can spawn `ui-visual-designer.md` for blog design decisions105- **Any agent**: Can reference `~/.claude/skills/ui-ux/data/` for design rules and patterns106107## Ad-Hoc Agent Usage108109Individual agents can be spawned directly without the full skill workflow:110111```112# Quick design system review113Agent: ui-visual-designer.md - "Review the color system in this project"114115# Component architecture audit116Agent: ui-component-architect.md - "Audit the component structure in src/components/"117118# Performance check119Agent: ui-performance-reviewer.md - "Run a performance audit on this Next.js app"120121# Full QA pass122Agent: ui-ux-reviewer.md - "Run Playwright QA on http://localhost:3000"123```