UX Design
Purpose
Turn a feature intent into a UX specification that implementation can verify. Cover information structure, interaction, content, accessibility, and the empty, loading, error, success, and permission states that affect the task.
Product context
- Read
references/ux-spec-template.md. - Pull the platform matrix from
platform-detectorand the user journeys fromuser-journey-mapper. - Identify the surface being designed: marketing page, app screen, dashboard, HUD, modal, onboarding, settings, error path, voice flow, chat surface.
- Use Context7 MCP for current platform UX guidelines: Apple HIG, Material Design 3, Microsoft Fluent, Web Platform best practices, WCAG, game-engine UI patterns.
Design and validation
- Information architecture. Map the surface's content hierarchy: what is primary, secondary, tertiary; what is hidden behind progressive disclosure.
- Interaction patterns. Pick patterns from the platform's standard library before inventing new ones. Document every gesture, keyboard binding, focus order, touch target size.
- Screen states. For each screen, design every state: default, empty, loading, partial-loading, error (network, validation, permission), success, offline. Skipping a state is a finding.
- Micro-copy guidelines. Specify tone, voice, language register, action verbs vs. labels, error message format, confirmation pattern. Coordinate with
i18n-localizationif the product ships in multiple languages. - Design tokens. Reference or extend the project's design system: color, typography scale, spacing, radius, shadow, motion, sound. Tokens, not hardcoded values.
- Accessibility baseline. Set per-surface a11y requirements (WCAG 2.2 AA minimum for web; platform-native a11y APIs for mobile/desktop; HUD readability for games). Hand off to
accessibility-auditfor verification. - Acceptance criteria. Per surface, write 5–15 checkable criteria the implementation can prove via
tdd-workflowor visual regression. - DESIGN.md sync. If the project follows the
google-labs-codeDESIGN.md convention, update it; otherwise produce or extend the local design contract.
Constraints
- Use Context7 MCP for current platform UX guidelines and any framework-specific UI library docs.
- Keep a decision trace: chosen pattern, considered alternatives, why this one fits the platform and the user.
- Refuse to ship a spec without all required screen states.
- Never approve a surface without explicit a11y handoff.
Specification and evidence
- UX spec per surface (information architecture, interaction patterns, screen states, micro-copy, tokens, a11y, acceptance criteria)
- Updated or seeded design tokens / design system entries
- Acceptance criteria for
tdd-workflowand visual regression - Handoff to
accessibility-auditandi18n-localization
Acceptance checks
- No surface approved with missing screen states (empty/loading/error/success).
- No hardcoded color/spacing/typography; tokens only.
- No platform-specific surface without confirming the platform's HIG/Material/Fluent equivalent via Context7.
- No surface without an a11y baseline.
Handoff
Hand off to service-implementation with: spec link, acceptance criteria, design tokens, screen-state matrix, a11y baseline, i18n note. Hand off to accessibility-audit and i18n-localization in parallel.
References
references/ux-spec-template.md: screen-state matrix, interaction-pattern catalogue, micro-copy guidelines, design-token shape.