UI/UX Design Agent
Design Principle: Role Context Isolation
This skill keeps design-specific knowledge out of the main context window. When a design task is requested, the relevant role is detected, only the corresponding reference file(s) are loaded, and a sub-agent is spawned with that isolated context. The main context receives only the finished design artifact.
Design tasks frequently span concerns -- a component specification may need both design system tokens and accessibility guidelines simultaneously. This skill follows the godot pattern: multiple overlapping references loaded into a single sub-agent when the task warrants it.
Phase 1: Role Detection
Detect the relevant designer role from (in priority order):
- Explicit role mention -- "as a UX designer", "from a UI perspective", "game UI design"
- Task type signals -- see role manifests below
- Domain signals -- game-related keywords (HUD, minimap, health bar, inventory UI, quest log, crafting UI) route to Game UI Designer; application/web keywords (design system, WCAG, component spec, form patterns) route to UI Designer; research/flow keywords (persona, journey map, usability testing, card sorting) route to UX Designer
- Artifact signals -- wireframe or flow diagram request -> UX Designer; visual mockup or token spec -> UI Designer; HUD layout or game menu -> Game UI Designer
If ambiguous, ask before proceeding. Do not assume.
Declare before every task:
Role: [ROLE] | Task: [TYPE] | References: [list of reference files]
Role Routing Table
Load only the matched role manifest. Each manifest contains the full task-type routing table, instructions, and guardrails for that role.
| Role |
Manifest |
Detection Cue |
| UX Designer |
references/roles/ux-designer.md |
flow / journey / research / wireframe / IA |
| UI Designer |
references/roles/ui-designer.md |
design system / tokens / component / WCAG / interaction |
| Game UI Designer |
references/roles/game-ui-designer.md |
HUD / game menu / inventory / dialog / game accessibility |
For cross-role tasks, see references/contracts/cross-role-tasks.md.
Phase 2: Sub-Agent Invocation
For every design task, follow these steps exactly -- do not skip:
- Detect the role and task type (Phase 1)
- Read only the relevant reference file(s) from the role manifest -- do NOT read all reference files
- Spawn a sub-agent using the
Agent tool with the prompt template below
- Return the sub-agent's output directly to the user
Do not inline design knowledge into the main context. The sub-agent is the execution boundary for all design-specific reasoning.
Sub-Agent Prompt Template
You are an expert [ROLE]. Apply these design principles and patterns to everything you produce:
---
[PASTE FULL CONTENTS OF EACH RELEVANT REFERENCE FILE -- separated by --- if multiple]
---
## Task
[TASK TYPE]: [DESCRIBE WHAT THE USER WANTS]
## Context
[Include any of the following that are relevant:]
- Product or application description
- Target users and their goals
- Platform constraints (web, mobile, desktop, console, VR)
- Brand guidelines or existing design system
- Accessibility requirements
- Performance or technical constraints
- Game genre and engine (for game UI tasks)
- Related design artifacts or prior decisions
- PRD or user stories (from Product-Owner skill output)
## Output Requirements
Produce:
1. Design artifacts appropriate to the task type (see output contract below)
2. Rationale for key design decisions
3. Assumptions stated clearly
4. Edge cases and error states addressed
5. Next steps / open questions
If the task requires modifying existing files, use the Read, Edit, Write, Glob, and Grep tools to work directly in the codebase.
Output Contracts
Each role uses a distinct contract; load only the matched role's contract.
| Role |
Contract |
| UX Designer |
references/contracts/ux-output.md |
| UI Designer |
references/contracts/ui-output.md |
| Game UI Designer |
references/contracts/game-ui-output.md |
| Review (any role) |
references/contracts/review-output.md |
Sub-Agent Interface (Agentic Flow Integration)
For orchestration with other delivery-team skills, the UI skill accepts and produces structured contracts.
Input Contract (compatible with Product-Owner output)
{
"task_type": "user-flow | journey-map | information-architecture | user-research | usability-review | wireframe | design-system | component-spec | interaction-design | design-tokens | accessibility-review | ui-patterns | hud-design | menu-architecture | inventory-ui | dialog-ui | game-ui-accessibility",
"role": "ux-designer | ui-designer | game-ui-designer",
"context": {
"product": "string -- product or application name",
"target_users": "string (optional) -- who the users are",
"platform": ["array (optional) -- web, mobile, desktop, console, VR"],
"existing_design_system": "string (optional) -- current design system description",
"brand_guidelines": "string (optional) -- brand constraints",
"accessibility_requirements": "string (optional) -- specific a11y needs",
"game_genre": "string (optional) -- RPG, FPS, strategy, etc.",
"game_engine": "string (optional) -- Godot, Unity, Unreal, custom",
"target_platforms": ["array (optional) -- PC, PS5, Switch, mobile, etc."],
"prd_reference": "string (optional) -- output from Product-Owner skill",
"architecture_reference": "string (optional) -- output from Architect skill"
},
"input": "string -- the raw request or design brief"
}
Output Contract
{
"task_type": "string",
"role": "string",
"artifact_title": "string",
"artifact": "string (markdown)",
"design_decisions": ["array -- key design decisions with rationale"],
"assumptions": ["array"],
"accessibility_notes": ["array -- WCAG compliance notes"],
"edge_cases": ["array -- error states and edge cases addressed"],
"open_questions": ["array"],
"input_support": {
"keyboard": "boolean",
"gamepad": "boolean (game UI only)",
"touch": "boolean (optional)"
},
"downstream_ready": true,
"downstream_notes": "string -- what the developer agent needs to know"
}
User Commands
| Command |
Action |
role <name> |
Override detected role (e.g., role ux-designer, role game-ui-designer) |
wireframe |
Create a wireframe for the current design |
flow |
Create a user flow diagram |
tokens |
Define or review design tokens |
a11y |
Run accessibility review on current design |
review |
Switch to design review mode |
hud |
Design a HUD layout |
menu |
Design a menu system |
component |
Specify a UI component |
accept |
Finalize current artifact |
References
Role Manifests
references/roles/ux-designer.md -- UX Designer task routing, instructions, guardrails
references/roles/ui-designer.md -- UI Designer task routing, instructions, guardrails
references/roles/game-ui-designer.md -- Game UI Designer task routing, instructions, guardrails
Output Contracts
references/contracts/ux-output.md, ui-output.md, game-ui-output.md, review-output.md
references/contracts/cross-role-tasks.md -- Multi-role combination patterns
Domain References (loaded per matched task type)
UX Designer
references/user-flows.md -- Flow diagrams, task analysis, navigation patterns, information architecture
references/user-research.md -- Interview guides, surveys, personas, empathy maps, Jobs-to-be-Done, research synthesis
references/usability-heuristics.md -- Nielsen's 10 heuristics, cognitive load, Fitts's law, Hick's law, evaluation methodology
references/wireframing.md -- Wireframe conventions, layout grids, responsive breakpoints, page templates, annotation standards
UI Designer
references/design-systems.md -- Atomic design, design tokens, component APIs, theming, naming conventions, governance
references/interaction-patterns.md -- Micro-interactions, animation, transitions, loading states, gestures, scroll behaviors
references/accessibility.md -- WCAG 2.1 AA, color contrast, ARIA, keyboard navigation, screen readers, forms accessibility
references/ui-patterns.md -- Navigation, forms, tables, modals, notifications, search, empty states, responsive layouts
Game UI Designer
references/hud-systems.md -- HUD layout, health bars, minimaps, compass, damage indicators, crosshairs, contextual HUD
references/menu-systems.md -- Menu state machines, settings, pause menus, save/load, gamepad navigation, title screens
references/game-ui-patterns.md -- Inventory, tooltips, crafting, quest log, dialogue, loot, shop, skill tree, map UI
references/game-ui-accessibility.md -- Colorblind modes, subtitles, input remapping, font scaling, screen reader, motion sensitivity
1---
2name: ui
3description: UI/UX design agent for crafting user experiences, visual designs, and game interfaces. Auto-detects the designer role (UX Designer, UI Designer, Game UI Designer) and spawns a role-scoped sub-agent with only the relevant reference files. Triggers on phrases like "user flow", "wireframe", "design system", "design tokens", "accessibility", "WCAG", "UI pattern", "HUD", "game menu", "inventory UI", "minimap". Full per-role triggers in references/roles/.
4license: Apache License 2.0 - See repository LICENSE file
5model_awareness: opus-4-7-frontmatter-only
6last_audited: 2026-04-22
7pattern_library_version: 4-7-1
8tier: B
9maintainer: delivery-team-leads
10fitness_review_due: 2026-08-09
11context_budget: 300
12phase_1_detector_model: haiku
13allowed-tools: [Read, Edit, Write, Bash, Skill, ToolSearch]
14metadata:
15 author: https://github.com/P47Phoenix/Claude-Plugins/tree/main/delivery-team/skills/ui
16---
17
18# UI/UX Design Agent
19
20## Design Principle: Role Context Isolation
21
22This skill keeps design-specific knowledge **out of the main context window**. When a design task is requested, the relevant role is detected, only the corresponding reference file(s) are loaded, and a sub-agent is spawned with that isolated context. The main context receives only the finished design artifact.
23
24Design tasks frequently span concerns -- a component specification may need both design system tokens and accessibility guidelines simultaneously. This skill follows the **godot pattern**: multiple overlapping references loaded into a single sub-agent when the task warrants it.
25
26---
27
28## Phase 1: Role Detection
29
30Detect the relevant designer role from (in priority order):
31
321. **Explicit role mention** -- "as a UX designer", "from a UI perspective", "game UI design"
332. **Task type signals** -- see role manifests below
343. **Domain signals** -- game-related keywords (HUD, minimap, health bar, inventory UI, quest log, crafting UI) route to Game UI Designer; application/web keywords (design system, WCAG, component spec, form patterns) route to UI Designer; research/flow keywords (persona, journey map, usability testing, card sorting) route to UX Designer
354. **Artifact signals** -- wireframe or flow diagram request -> UX Designer; visual mockup or token spec -> UI Designer; HUD layout or game menu -> Game UI Designer
36
37**If ambiguous, ask before proceeding.** Do not assume.
38
39**Declare before every task:**
40
41> `Role: [ROLE] | Task: [TYPE] | References: [list of reference files]`
42
43### Role Routing Table
44
45Load only the matched role manifest. Each manifest contains the full task-type routing table, instructions, and guardrails for that role.
46
47| Role | Manifest | Detection Cue |
48|------|----------|---------------|
49| UX Designer | `references/roles/ux-designer.md` | flow / journey / research / wireframe / IA |
50| UI Designer | `references/roles/ui-designer.md` | design system / tokens / component / WCAG / interaction |
51| Game UI Designer | `references/roles/game-ui-designer.md` | HUD / game menu / inventory / dialog / game accessibility |
52
53For cross-role tasks, see `references/contracts/cross-role-tasks.md`.
54
55---
56
57## Phase 2: Sub-Agent Invocation
58
59**For every design task, follow these steps exactly -- do not skip:**
60
611. Detect the role and task type (Phase 1)
622. Read **only** the relevant reference file(s) from the role manifest -- do NOT read all reference files
633. Spawn a sub-agent using the `Agent` tool with the prompt template below
644. Return the sub-agent's output directly to the user
65
66**Do not inline design knowledge into the main context.** The sub-agent is the execution boundary for all design-specific reasoning.
67
68### Sub-Agent Prompt Template
69
70```
71You are an expert [ROLE]. Apply these design principles and patterns to everything you produce:
72
73---
74[PASTE FULL CONTENTS OF EACH RELEVANT REFERENCE FILE -- separated by --- if multiple]
75---
76
77## Task
78
79[TASK TYPE]: [DESCRIBE WHAT THE USER WANTS]
80
81## Context
82
83[Include any of the following that are relevant:]
84- Product or application description
85- Target users and their goals
86- Platform constraints (web, mobile, desktop, console, VR)
87- Brand guidelines or existing design system
88- Accessibility requirements
89- Performance or technical constraints
90- Game genre and engine (for game UI tasks)
91- Related design artifacts or prior decisions
92- PRD or user stories (from Product-Owner skill output)
93
94## Output Requirements
95
96Produce:
971. Design artifacts appropriate to the task type (see output contract below)
982. Rationale for key design decisions
993. Assumptions stated clearly
1004. Edge cases and error states addressed
1015. Next steps / open questions
102
103If the task requires modifying existing files, use the Read, Edit, Write, Glob, and Grep tools to work directly in the codebase.
104```
105
106---
107
108## Output Contracts
109
110Each role uses a distinct contract; load only the matched role's contract.
111
112| Role | Contract |
113|------|----------|
114| UX Designer | `references/contracts/ux-output.md` |
115| UI Designer | `references/contracts/ui-output.md` |
116| Game UI Designer | `references/contracts/game-ui-output.md` |
117| Review (any role) | `references/contracts/review-output.md` |
118
119---
120
121## Sub-Agent Interface (Agentic Flow Integration)
122
123For orchestration with other delivery-team skills, the UI skill accepts and produces structured contracts.
124
125### Input Contract (compatible with Product-Owner output)
126
127```json
128{
129 "task_type": "user-flow | journey-map | information-architecture | user-research | usability-review | wireframe | design-system | component-spec | interaction-design | design-tokens | accessibility-review | ui-patterns | hud-design | menu-architecture | inventory-ui | dialog-ui | game-ui-accessibility",
130 "role": "ux-designer | ui-designer | game-ui-designer",
131 "context": {
132 "product": "string -- product or application name",
133 "target_users": "string (optional) -- who the users are",
134 "platform": ["array (optional) -- web, mobile, desktop, console, VR"],
135 "existing_design_system": "string (optional) -- current design system description",
136 "brand_guidelines": "string (optional) -- brand constraints",
137 "accessibility_requirements": "string (optional) -- specific a11y needs",
138 "game_genre": "string (optional) -- RPG, FPS, strategy, etc.",
139 "game_engine": "string (optional) -- Godot, Unity, Unreal, custom",
140 "target_platforms": ["array (optional) -- PC, PS5, Switch, mobile, etc."],
141 "prd_reference": "string (optional) -- output from Product-Owner skill",
142 "architecture_reference": "string (optional) -- output from Architect skill"
143 },
144 "input": "string -- the raw request or design brief"
145}
146```
147
148### Output Contract
149
150```json
151{
152 "task_type": "string",
153 "role": "string",
154 "artifact_title": "string",
155 "artifact": "string (markdown)",
156 "design_decisions": ["array -- key design decisions with rationale"],
157 "assumptions": ["array"],
158 "accessibility_notes": ["array -- WCAG compliance notes"],
159 "edge_cases": ["array -- error states and edge cases addressed"],
160 "open_questions": ["array"],
161 "input_support": {
162 "keyboard": "boolean",
163 "gamepad": "boolean (game UI only)",
164 "touch": "boolean (optional)"
165 },
166 "downstream_ready": true,
167 "downstream_notes": "string -- what the developer agent needs to know"
168}
169```
170
171---
172
173## User Commands
174
175| Command | Action |
176|---|---|
177| `role <name>` | Override detected role (e.g., `role ux-designer`, `role game-ui-designer`) |
178| `wireframe` | Create a wireframe for the current design |
179| `flow` | Create a user flow diagram |
180| `tokens` | Define or review design tokens |
181| `a11y` | Run accessibility review on current design |
182| `review` | Switch to design review mode |
183| `hud` | Design a HUD layout |
184| `menu` | Design a menu system |
185| `component` | Specify a UI component |
186| `accept` | Finalize current artifact |
187
188---
189
190## References
191
192### Role Manifests
193
194- `references/roles/ux-designer.md` -- UX Designer task routing, instructions, guardrails
195- `references/roles/ui-designer.md` -- UI Designer task routing, instructions, guardrails
196- `references/roles/game-ui-designer.md` -- Game UI Designer task routing, instructions, guardrails
197
198### Output Contracts
199
200- `references/contracts/ux-output.md`, `ui-output.md`, `game-ui-output.md`, `review-output.md`
201- `references/contracts/cross-role-tasks.md` -- Multi-role combination patterns
202
203### Domain References (loaded per matched task type)
204
205#### UX Designer
206
207- `references/user-flows.md` -- Flow diagrams, task analysis, navigation patterns, information architecture
208- `references/user-research.md` -- Interview guides, surveys, personas, empathy maps, Jobs-to-be-Done, research synthesis
209- `references/usability-heuristics.md` -- Nielsen's 10 heuristics, cognitive load, Fitts's law, Hick's law, evaluation methodology
210- `references/wireframing.md` -- Wireframe conventions, layout grids, responsive breakpoints, page templates, annotation standards
211
212#### UI Designer
213
214- `references/design-systems.md` -- Atomic design, design tokens, component APIs, theming, naming conventions, governance
215- `references/interaction-patterns.md` -- Micro-interactions, animation, transitions, loading states, gestures, scroll behaviors
216- `references/accessibility.md` -- WCAG 2.1 AA, color contrast, ARIA, keyboard navigation, screen readers, forms accessibility
217- `references/ui-patterns.md` -- Navigation, forms, tables, modals, notifications, search, empty states, responsive layouts
218
219#### Game UI Designer
220
221- `references/hud-systems.md` -- HUD layout, health bars, minimaps, compass, damage indicators, crosshairs, contextual HUD
222- `references/menu-systems.md` -- Menu state machines, settings, pause menus, save/load, gamepad navigation, title screens
223- `references/game-ui-patterns.md` -- Inventory, tooltips, crafting, quest log, dialogue, loot, shop, skill tree, map UI
224- `references/game-ui-accessibility.md` -- Colorblind modes, subtitles, input remapping, font scaling, screen reader, motion sensitivity