From design
Complete design thinking pipeline for UIs. Transforms rough ideas into PRDs, runs 9-pass UX analysis, audits existing UIs, and iterates based on feedback. Prevents "pretty but unusable" designs.
How this skill is triggered — by the user, by Claude, or both
Slash command
/design:designThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Complete design thinking pipeline that ensures Claude builds better UIs by forcing structured analysis before any visual work. Now with audit, iterate, and specialized sub-skills.
Complete design thinking pipeline that ensures Claude builds better UIs by forcing structured analysis before any visual work. Now with audit, iterate, and specialized sub-skills.
Rough Idea → PRD (1-7) → UX Spec (9 passes) → /frontend-design
OR
Existing UI → Audit → Issues Report → Iterate → Improvements
| Command | Purpose |
|---|---|
/design | Run full pipeline (idea → PRD → UX → build) |
/design init | Generate PRD sections 1-7 from rough idea |
/design ux | Generate UX spec from existing PRD (9 passes) |
/design build | Hand off UX spec to /frontend-design skill |
/design audit | NEW: Analyze existing UI and generate issues report |
/design iterate | NEW: Improve UI based on user feedback |
/design a11y | NEW: Accessibility-focused audit and fixes |
/design motion | NEW: Animation and micro-interaction design |
/design tokens | NEW: Extract or create design system tokens |
/design components | NEW: Best-practice component patterns |
/design (Full Pipeline)Runs all stages automatically:
.claude/design/PRD.md.claude/design/UX-spec.md/frontend-design with UX context/design init - Rough Idea to PRDInput: Rough MVP idea (vague, incomplete, "vibe-level")
Role: Senior product thinker turning rough idea into demo-grade PRD.
Output: .claude/design/PRD.md with sections 1-7:
[User] struggles to [do X] because [reason], resulting in [impact].
No personas or demographics.
If this flow works, the demo works.
| ID | Function | Notes |
|---|---|---|
| F1 | [Capability] | [Notes] |
Phrase as capabilities, not implementation. No "nice-to-haves".
6.1 Entry Point: How user starts, what they see first 6.2 Inputs: What user provides 6.3 Outputs: What user receives, in what form 6.4 Feedback & States: Loading, success, failure, partial 6.5 Errors: Invalid input, system failure, user does nothing
7.1 Inputs: User / API / static / generated 7.2 Processing: High-level only (input → transform → output) 7.3 Outputs: UI only / temp stored / logged
Rules:
See references/prd-template.md for detailed templates.
/design ux - PRD to UX SpecInput: .claude/design/PRD.md (or user-provided PRD)
Output: .claude/design/UX-spec.md with 9 mandatory passes
NO VISUAL SPECS UNTIL ALL 9 PASSES COMPLETE
Not negotiable:
Question: "What does the user think is happening?"
Output:
Question: "What exists, and how is it organized?"
Output:
Question: "What actions are obvious without explanation?"
Output:
Question: "Where will the user hesitate?"
Output:
Question: "How does the system talk back?"
For EACH major element:
| State | User Sees | User Understands | User Can Do |
|---|---|---|---|
| Empty | |||
| Loading | |||
| Success | |||
| Partial | |||
| Error |
Question: "Does this feel inevitable?"
Output:
Question: "Can everyone use this?"
Output:
See references/a11y-checklist.md for detailed checklist.
Question: "How does this adapt to different screens?"
Output:
Question: "How does this come alive?"
Output:
See references/motion-patterns.md for patterns.
See references/ux-passes.md for detailed methodology.
/design build - UX Spec to FrontendInput: .claude/design/UX-spec.md
Action: Invoke /frontend-design skill with full UX context
Context passed to /frontend-design:
Result: Production-grade UI built with proper design thinking already done.
/design audit - Analyze Existing UIInput:
src/components/dashboard)Process:
Output: .claude/design/audit-report.md
# UX Audit Report: [Component/Page Name]
## Summary
- Critical Issues: X
- Major Issues: Y
- Minor Issues: Z
## Issues by Pass
### Mental Model Issues
- [Issue]: [Description] → [Fix]
### Information Architecture Issues
- [Issue]: [Description] → [Fix]
### Affordance Issues
- [Issue]: [Description] → [Fix]
... (all 9 passes)
## Priority Actions
1. [Highest impact fix]
2. [Second highest]
3. [Third highest]
Use case: "Make this project's UI better"
See references/audit-checklist.md for criteria.
/design iterate - Improve Based on FeedbackInput:
Process:
Output: .claude/design/iteration-spec.md
# Iteration Spec: [Component/Page Name]
## Feedback Analysis
| Feedback | Affected Pass | Severity |
|----------|---------------|----------|
| "I don't know where to click" | Pass 3 (Affordances) | Critical |
| "Loading takes forever" | Pass 5 (State Design) | Major |
## Targeted Fixes
### Pass 3: Affordances (Re-run)
- Current: [What it does now]
- Problem: [Why it's confusing]
- Fix: [Specific change]
### Pass 5: State Design (Re-run)
- Current: [What it does now]
- Problem: [Why it's frustrating]
- Fix: [Specific change]
## Implementation Checklist
- [ ] Fix 1: [Description]
- [ ] Fix 2: [Description]
Use case: "Users say the form is confusing"
See references/iterate-workflow.md for process.
/design a11y - Accessibility AuditInput: Component or page path
Process:
Output: .claude/design/a11y-report.md
# Accessibility Report: [Component Name]
## WCAG 2.1 AA Compliance
### Perceivable
- [ ] 1.1.1 Non-text Content: [Status]
- [ ] 1.3.1 Info and Relationships: [Status]
- [ ] 1.4.3 Contrast (Minimum): [Status]
### Operable
- [ ] 2.1.1 Keyboard: [Status]
- [ ] 2.4.3 Focus Order: [Status]
- [ ] 2.4.7 Focus Visible: [Status]
### Understandable
- [ ] 3.1.1 Language of Page: [Status]
- [ ] 3.2.1 On Focus: [Status]
- [ ] 3.3.1 Error Identification: [Status]
### Robust
- [ ] 4.1.1 Parsing: [Status]
- [ ] 4.1.2 Name, Role, Value: [Status]
## Issues Found
| Issue | WCAG | Severity | Fix |
|-------|------|----------|-----|
| [Description] | [Criterion] | [Level] | [Solution] |
## Keyboard Navigation Map
[Tab order diagram]
## Screen Reader Flow
[Announcement sequence]
See references/a11y-checklist.md for complete checklist.
/design motion - Animation DesignInput:
Process:
Output: .claude/design/motion-spec.md
# Motion Specification: [Component Name]
## Animation Inventory
### Entry Animations
| Element | Animation | Duration | Easing | Delay |
|---------|-----------|----------|--------|-------|
| Modal | Fade + Scale | 200ms | ease-out | 0ms |
| Items | Stagger fade | 150ms | ease-out | 50ms each |
### Exit Animations
| Element | Animation | Duration | Easing |
|---------|-----------|----------|--------|
| Modal | Fade + Scale down | 150ms | ease-in |
### Micro-interactions
| Trigger | Response | Duration |
|---------|----------|----------|
| Button hover | Scale 1.02 | 100ms |
| Button click | Scale 0.98 | 50ms |
| Success | Checkmark draw | 300ms |
### Loading States
| State | Animation | Notes |
|-------|-----------|-------|
| Skeleton | Shimmer | 1.5s loop |
| Spinner | Rotate | 1s loop |
## Reduced Motion Fallbacks
- All animations → instant transitions
- Shimmer → static gray
- Spinners → static indicator
## Performance Budget
- Total animation time: < 500ms
- Concurrent animations: < 3
- Use transform/opacity only (no layout thrash)
See references/motion-patterns.md for patterns library.
/design tokens - Design System TokensInput:
Process:
Output: .claude/design/tokens.md + optional config files
# Design Tokens: [Project Name]
## Colors
### Brand
| Token | Value | Usage |
|-------|-------|-------|
| --color-primary | #3B82F6 | Primary actions, links |
| --color-primary-hover | #2563EB | Primary hover state |
### Semantic
| Token | Value | Usage |
|-------|-------|-------|
| --color-success | #10B981 | Success states |
| --color-error | #EF4444 | Error states |
| --color-warning | #F59E0B | Warning states |
### Neutral
| Token | Value | Usage |
|-------|-------|-------|
| --color-background | #FFFFFF | Page background |
| --color-surface | #F9FAFB | Card backgrounds |
| --color-border | #E5E7EB | Borders, dividers |
## Typography
| Token | Value | Usage |
|-------|-------|-------|
| --font-size-xs | 0.75rem | Helper text |
| --font-size-sm | 0.875rem | Body small |
| --font-size-base | 1rem | Body |
| --font-size-lg | 1.125rem | Body large |
| --font-size-xl | 1.25rem | H4 |
| --font-size-2xl | 1.5rem | H3 |
| --font-size-3xl | 1.875rem | H2 |
| --font-size-4xl | 2.25rem | H1 |
## Spacing
| Token | Value | Usage |
|-------|-------|-------|
| --space-1 | 0.25rem | Tight spacing |
| --space-2 | 0.5rem | Element padding |
| --space-3 | 0.75rem | Small gaps |
| --space-4 | 1rem | Standard gaps |
| --space-6 | 1.5rem | Section spacing |
| --space-8 | 2rem | Large gaps |
## Border Radius
| Token | Value | Usage |
|-------|-------|-------|
| --radius-sm | 0.25rem | Small elements |
| --radius-md | 0.375rem | Buttons, inputs |
| --radius-lg | 0.5rem | Cards |
| --radius-full | 9999px | Pills, avatars |
## Shadows
| Token | Value | Usage |
|-------|-------|-------|
| --shadow-sm | 0 1px 2px rgba(0,0,0,0.05) | Subtle elevation |
| --shadow-md | 0 4px 6px rgba(0,0,0,0.1) | Cards |
| --shadow-lg | 0 10px 15px rgba(0,0,0,0.1) | Modals |
## Breakpoints
| Token | Value | Usage |
|-------|-------|-------|
| --breakpoint-sm | 640px | Small tablets |
| --breakpoint-md | 768px | Tablets |
| --breakpoint-lg | 1024px | Laptops |
| --breakpoint-xl | 1280px | Desktops |
See references/token-extraction.md for extraction process.
/design components - Component PatternsInput: Description of component need (e.g., "multi-step form", "data table with sorting")
Process:
Output: Component specification with:
Forms:
Data Display:
Navigation:
Feedback:
Overlays:
See references/component-patterns.md for full pattern library.
.claude/design/
├── PRD.md # Stage 1 output
├── UX-spec.md # Stage 2 output (9 passes)
├── audit-report.md # Audit output
├── iteration-spec.md # Iterate output
├── a11y-report.md # Accessibility output
├── motion-spec.md # Motion output
├── tokens.md # Tokens output
└── component-spec.md # Component pattern output
Before any design work, automatically check for:
Tailwind config: tailwind.config.js or tailwind.config.ts
CSS variables: :root definitions in global CSS
Component library: Check for shadcn, Radix, MUI, etc.
Existing components: Scan src/components/ui/
Before designing new components:
If you catch yourself doing any of these during /design ux, STOP:
| Violation | What You're Skipping |
|---|---|
| Describing colors/fonts | All foundational passes |
| "The main screen shows..." | Pass 1-2 (mental model, IA) |
| Designing components before actions mapped | Pass 3 (affordances) |
| No friction point analysis | Pass 4 (cognitive load) |
| States only in component specs | Pass 5 (holistic state design) |
| No "where could they fail?" | Pass 6 (flow integrity) |
| No keyboard navigation plan | Pass 7 (accessibility) |
| No mobile consideration | Pass 8 (responsive) |
| Static mockups with no transitions | Pass 9 (motion) |
| Situation | Command |
|---|---|
| New feature from scratch | /design (full pipeline) |
| Have requirements, need UX spec | /design ux |
| Existing UI needs improvement | /design audit |
| Users complaining about UX | /design iterate |
| Need to check accessibility | /design a11y |
| Adding animations | /design motion |
| Setting up design system | /design tokens |
| Need component best practices | /design components |
npx claudepluginhub ankurjain1121/dev-workflow-skills --plugin designGuides UI/UX design, accessibility (WCAG 2.2), design systems, and user research. Use when designing interfaces, building design systems, or auditing accessibility.
Designs UI/UX systems with style guides, color palettes, typography, and component specs for new interfaces. Asks about product type, tech stack, and deliverables before producing design tokens, layouts, or style guides.
Senior-level UI/UX design expert for building data-driven, premium production interfaces. Use when you need to: 1. Design complex applications (dashboards, SaaS, AI tools) from scratch 2. Generate comprehensive design systems (tokens, palettes, typography) 3. Audit existing UI for quality, accessibility, and "craft" 4. Search for proven real-world design patterns and implementation details Trigger: "design a...", "audit this...", "create a design system", "find icons", "fintech dashboard", "landing page"