AI Builder - UX Design
This skill creates/updates the UX design documentation including user flows, interaction specifications, edge cases, accessibility requirements, and most importantly, interactive HTML/CSS/JS mockups for UI-based applications.
When to Use This Skill
- User asks to "design UX" or "create mockups"
- User requests to start Stage 5 or the next stage after PRD
- User wants to visualize the product design
- User wants to create interactive prototypes
- User needs to present product design to non-technical stakeholders
Prerequisites
This skill requires 04-prd to be completed. The UX design will translate functional requirements into visual designs and user flows.
Your Roles in This Skill
- UX Designer: Lead UX design with user flows, interaction specs, and accessibility. Create user journey maps and ensure intuitive navigation. Design information architecture and interaction patterns. Ensure WCAG 2.1 accessibility compliance.
- UI Designer: Create visual mockups using static HTML/CSS/JS. Define theme, color palette, typography, and spacing. Design components and layouts. Create interactive prototypes that showcase the product to non-technical stakeholders.
- Content Moderator: Design user input moderation workflows in UI. Define content submission and review interfaces. Plan flagging, reporting, and appeals flows. Design moderation queue interfaces. Ensure community guidelines are presented clearly in UI. Plan user communication flows for moderation actions.
- Product Manager: Ensure UX aligns with requirements and user stories. Review flows against acceptance criteria. Validate that design solves user problems effectively.
Role Communication
As an expert in your assigned roles, you must announce your actions before performing them using the following format:
As a {Role} [and {Role}, ...], I will {action description}
This communication pattern ensures transparency and allows for human-in-the-loop oversight at key decision points.
Instructions
Follow these steps in order:
Step 0: Verify Prerequisites and Gather Context
- Check if
04-prd/ folder exists (mandatory):
- If NOT found: Inform user they need to create PRD first, then STOP
- If found: Read all files to understand:
- Functional requirements
- User journeys
- Product goals
- Non-functional requirements (especially usability and accessibility)
1.5 Verify previous stage completion (04-prd):
- Read
04-prd/README.md and list required docs
- If README is missing or required docs are missing:
- Ask the user to start/continue stage 04, or skip it
- If skip: create
04-prd/SKIP.md with a short reason
- If continue: STOP and return after stage 04 is complete
Check if 02-personas/ folder exists (mandatory):
- If NOT found: Inform user they need personas first, then STOP
- If found: Read to understand:
- User personas and their needs
- User pain points
- User preferences and behaviors
Check if 00-init-ideas/ folder exists (recommended):
- If found: Read to understand:
- Cost budget (to understand constraints for this stage)
Check if 03-mvp/ folder exists (recommended):
- If found: Read to understand:
- MVP scope
- Core features to prioritize in design
Check if this stage should be skipped:
- Check if
05-ux/SKIP.md exists
- If SKIP.md exists:
- Read SKIP.md to understand why this stage was skipped
- Inform the user: "Stage 5 (ux) is marked as SKIP because [reason from SKIP.md]"
- Ask the user: "Would you like to proceed to the next stage (architecture)?"
- If user says yes:
- Exit this skill and inform them to run the next stage skill
- If user says no:
- Ask if they want to proceed with UX anyway
- If yes, delete SKIP.md and continue with this skill
- If no, exit the skill
Check if 05-ux/ folder exists:
- If exists: Read all existing files to understand current UX design state
- If NOT exists: Will create new structure
If README.md exists: Check whether it requires diagrams. If it does,
follow dev-swarm/docs/mermaid-diagram-guide.md and use the
dev-swarm-mermaid skill to render outputs.
Proceed to Step 1 with gathered context
Step 1: Refine Design Requirements in README and Get Approval
CRITICAL: Create/update README.md first without pre-approval. Then ask the user to review/update/approve it, re-read it after approval, and only then create other docs.
Analyze information from previous stages:
- Read
04-prd/ to understand functional requirements and user journeys
- Read
02-personas/ to understand user needs and pain points
- Read
03-mvp/ (if exists) to understand core features to prioritize
- Consider cost-budget constraints for this stage
Create or update 05-ux/README.md with refined requirements:
- Use the template in
references/README.md
- Follow the checkbox rules: checked items apply after README approval; create file items only after approval; propose default checks; allow user changes
- Populate only the template sections; do not add new headings such as Documents or Deliverables
- Follow
dev-swarm/docs/stage-readme-guidelines.md before drafting
- Refer to
references/deliverables.md to select deliverables by project type
- Present any choices as checkbox lists with a default selection
- List deliverables explicitly in README (typical: user-flows.md, interaction-specs.md, edge-cases.md, accessibility.md, mockups/)
- Stage overview and objectives (based on previous stage context)
- Owners: UX Designer (lead), UI Designer, Product Manager, Content Moderator
- Diagrams (if required by project init):
- Reference
dev-swarm/docs/mermaid-diagram-guide.md
- Include
diagram/ deliverables when needed
- What UX will include:
- User flows for critical journeys (list key flows from PRD)
- Interaction specifications for components
- Edge cases and error handling
- Accessibility compliance (WCAG 2.1 Level AA)
- Interactive mockups (for UI-based apps)
- Methodology:
- How user flows will be created (from PRD requirements)
- Mockup approach (HTML/CSS/JS for UI apps)
- Deliverables planned:
- List of files that will be created (user-flows.md, mockups/, etc.)
- Status: In Progress (update to "Completed" after implementation)
Notify user after README is created:
- Say: "I have created README.md file, please check and update or approve the content."
- Summarize the UX approach and what will be designed
- Summarize what documentation files and mockups will be created
- Explain how it aligns with previous stages
Wait for user approval:
- If user says yes: Re-read README.md (user may have updated it), then proceed to Step 2
- If user says no:
- Ask what needs to be changed
- Update README based on feedback
- Ask for approval again, then re-read README.md before proceeding
Step 2: Create/Update UX Structure
Only after user approves the README and you re-read it:
Create files as specified in the approved README.md:
IMPORTANT: The file structure below is a SAMPLE only. The actual files you create must follow what was approved in the README.md in Step 1.
Typical structure (example):
05-ux/
├── README.md (created in Step 1, then reviewed/approved)
├── user-flows.md (if specified in README)
├── interaction-specs.md (if specified in README)
├── edge-cases.md (if specified in README)
├── accessibility.md (if specified in README)
└── mockups/ (if specified in README - for UI-based applications)
├── index.html
├── styles.css
├── script.js
└── assets/
Create only the files listed in the README's "Deliverables planned" section.
Note: For UI-based web/mobile/desktop apps, the mockups/ folder with static HTML/CSS/JS files is CRITICAL as it showcases the product to non-technical stakeholders.
Step 3: Create/Update UX Documentation
IMPORTANT: Only create UX documentation after README is approved in Step 1 and re-read.
- Use the approved README "Deliverables planned" list as the source of truth.
- Follow
references/deliverables.md for file-by-file content guidance and mockup requirements.
Step 4: Ensure Alignment
Make sure UX design aligns with:
- Functional requirements from 04-prd/functional-requirements.md
- User journeys from 04-prd/prd.md
- User personas from 02-personas/
- MVP scope from 03-mvp/ (prioritize core features in mockups)
- Accessibility requirements from 04-prd/non-functional-requirements.md
Verify that:
- All critical user flows are documented
- All edge cases are considered
- Accessibility checklist is complete
- Mockups showcase the product effectively (for UI-based apps)
- Interactions are clearly specified
Step 5: Final User Review
Inform user that UX design is complete
Update README.md:
- Change Status from "In Progress" to "Completed"
- Add a Summary section with key insights (2-3 paragraphs)
- Add a Created Files section listing all created files
Present completed work to user:
- Show the interactive mockups (if UI-based app)
- Walk through critical user flows
- Demonstrate interaction patterns
- Explain accessibility considerations
Highlight key insights:
- Number of user flows documented
- Key interaction patterns defined
- Accessibility compliance level (WCAG 2.1 Level AA)
- Mockup screens created (if applicable)
- Theme and design system defined
For mockups specifically:
- Open
mockups/index.html in browser
- Demonstrate navigation between screens
- Show responsive behavior (resize browser)
- Point out theme consistency (colors, fonts, spacing)
- Explain how this represents the final product
Ask questions:
- Does the design align with their vision?
- Are there any flows missing?
- Any concerns about accessibility?
- Should any mockup screens be added/changed?
- Ready to proceed to next stage (architecture)?
Make adjustments based on user feedback if needed
Step 6: Commit to Git (if user confirms)
- If user confirms UX design is complete:
- Ask if they want to commit to git
- If user wants to commit:
- Stage all changes in
05-ux/
- Commit with message: "Design UX flows, interactions, and mockups (Stage 5)"
Deliverables
Refer to references/deliverables.md for the deliverable list, content guidance, and mockup rationale.
1---2name: dev-swarm-ux-23description: Design user experience including flows, interactions, mockups, and accessibility. Use when user asks to design UX, create mockups, or start Stage 5 after PRD.4---5
6# AI Builder - UX Design
7
8This skill creates/updates the UX design documentation including user flows, interaction specifications, edge cases, accessibility requirements, and most importantly, **interactive HTML/CSS/JS mockups** for UI-based applications.
9
10## When to Use This Skill
11
12- User asks to "design UX" or "create mockups"
13- User requests to start Stage 5 or the next stage after PRD
14- User wants to visualize the product design
15- User wants to create interactive prototypes
16- User needs to present product design to non-technical stakeholders
17
18## Prerequisites
19
20This skill requires **04-prd** to be completed. The UX design will translate functional requirements into visual designs and user flows.
21
22## Your Roles in This Skill
23
24- **UX Designer**: Lead UX design with user flows, interaction specs, and accessibility. Create user journey maps and ensure intuitive navigation. Design information architecture and interaction patterns. Ensure WCAG 2.1 accessibility compliance.
25- **UI Designer**: Create visual mockups using static HTML/CSS/JS. Define theme, color palette, typography, and spacing. Design components and layouts. Create interactive prototypes that showcase the product to non-technical stakeholders.
26- **Content Moderator**: Design user input moderation workflows in UI. Define content submission and review interfaces. Plan flagging, reporting, and appeals flows. Design moderation queue interfaces. Ensure community guidelines are presented clearly in UI. Plan user communication flows for moderation actions.
27- **Product Manager**: Ensure UX aligns with requirements and user stories. Review flows against acceptance criteria. Validate that design solves user problems effectively.
28
29## Role Communication
30
31As an expert in your assigned roles, you must announce your actions before performing them using the following format:
32
33As a {Role} [and {Role}, ...], I will {action description}
34
35This communication pattern ensures transparency and allows for human-in-the-loop oversight at key decision points.
36## Instructions
37
38Follow these steps in order:
39
40### Step 0: Verify Prerequisites and Gather Context
41
421. **Check if `04-prd/` folder exists (mandatory):**
43 - If NOT found: Inform user they need to create PRD first, then STOP
44 - If found: Read all files to understand:
45 - Functional requirements
46 - User journeys
47 - Product goals
48 - Non-functional requirements (especially usability and accessibility)
49
501.5 **Verify previous stage completion (04-prd):**
51 - Read `04-prd/README.md` and list required docs
52 - If README is missing or required docs are missing:
53 - Ask the user to start/continue stage 04, or skip it
54 - If skip: create `04-prd/SKIP.md` with a short reason
55 - If continue: STOP and return after stage 04 is complete
56
572. **Check if `02-personas/` folder exists (mandatory):**
58 - If NOT found: Inform user they need personas first, then STOP
59 - If found: Read to understand:
60 - User personas and their needs
61 - User pain points
62 - User preferences and behaviors
63
643. **Check if `00-init-ideas/` folder exists (recommended):**
65 - If found: Read to understand:
66 - Cost budget (to understand constraints for this stage)
67
684. **Check if `03-mvp/` folder exists (recommended):**
69 - If found: Read to understand:
70 - MVP scope
71 - Core features to prioritize in design
72
735. **Check if this stage should be skipped:**
74 - Check if `05-ux/SKIP.md` exists
75 - **If SKIP.md exists:**
76 - Read SKIP.md to understand why this stage was skipped
77 - Inform the user: "Stage 5 (ux) is marked as SKIP because [reason from SKIP.md]"
78 - Ask the user: "Would you like to proceed to the next stage (architecture)?"
79 - **If user says yes:**
80 - Exit this skill and inform them to run the next stage skill
81 - **If user says no:**
82 - Ask if they want to proceed with UX anyway
83 - If yes, delete SKIP.md and continue with this skill
84 - If no, exit the skill
85
866. **Check if `05-ux/` folder exists:**
87 - If exists: Read all existing files to understand current UX design state
88 - If NOT exists: Will create new structure
89
907. **If README.md exists:** Check whether it requires diagrams. If it does,
91 follow `dev-swarm/docs/mermaid-diagram-guide.md` and use the
92 `dev-swarm-mermaid` skill to render outputs.
93
948. Proceed to Step 1 with gathered context
95
96### Step 1: Refine Design Requirements in README and Get Approval
97
98**CRITICAL: Create/update README.md first without pre-approval. Then ask the user to review/update/approve it, re-read it after approval, and only then create other docs.**
99
1001. **Analyze information from previous stages:**
101 - Read `04-prd/` to understand functional requirements and user journeys
102 - Read `02-personas/` to understand user needs and pain points
103 - Read `03-mvp/` (if exists) to understand core features to prioritize
104 - Consider cost-budget constraints for this stage
105
1062. **Create or update 05-ux/README.md with refined requirements:**
107 - Use the template in `references/README.md`
108 - Follow the checkbox rules: checked items apply after README approval; create file items only after approval; propose default checks; allow user changes
109 - Populate only the template sections; do not add new headings such as Documents or Deliverables
110 - Follow `dev-swarm/docs/stage-readme-guidelines.md` before drafting
111 - Refer to `references/deliverables.md` to select deliverables by project type
112 - Present any choices as checkbox lists with a default selection
113 - List deliverables explicitly in README (typical: user-flows.md, interaction-specs.md, edge-cases.md, accessibility.md, mockups/)
114 - **Stage overview and objectives** (based on previous stage context)
115 - **Owners:** UX Designer (lead), UI Designer, Product Manager, Content Moderator
116 - **Diagrams (if required by project init):**
117 - Reference `dev-swarm/docs/mermaid-diagram-guide.md`
118 - Include `diagram/` deliverables when needed
119 - **What UX will include:**
120 - User flows for critical journeys (list key flows from PRD)
121 - Interaction specifications for components
122 - Edge cases and error handling
123 - Accessibility compliance (WCAG 2.1 Level AA)
124 - Interactive mockups (for UI-based apps)
125 - **Methodology:**
126 - How user flows will be created (from PRD requirements)
127 - Mockup approach (HTML/CSS/JS for UI apps)
128 - **Deliverables planned:**
129 - List of files that will be created (user-flows.md, mockups/, etc.)
130 - **Status:** In Progress (update to "Completed" after implementation)
131
1323. **Notify user after README is created:**
133 - Say: "I have created README.md file, please check and update or approve the content."
134 - Summarize the UX approach and what will be designed
135 - Summarize what documentation files and mockups will be created
136 - Explain how it aligns with previous stages
137
1384. **Wait for user approval:**
139 - **If user says yes:** Re-read README.md (user may have updated it), then proceed to Step 2
140 - **If user says no:**
141 - Ask what needs to be changed
142 - Update README based on feedback
143 - Ask for approval again, then re-read README.md before proceeding
144
145### Step 2: Create/Update UX Structure
146
147**Only after user approves the README and you re-read it:**
148
1491. **Create files as specified in the approved README.md:**
150
151 **IMPORTANT:** The file structure below is a SAMPLE only. The actual files you create must follow what was approved in the README.md in Step 1.
152
153 **Typical structure (example):**
154 ```
155 05-ux/
156 ├── README.md (created in Step 1, then reviewed/approved)
157 ├── user-flows.md (if specified in README)
158 ├── interaction-specs.md (if specified in README)
159 ├── edge-cases.md (if specified in README)
160 ├── accessibility.md (if specified in README)
161 └── mockups/ (if specified in README - for UI-based applications)
162 ├── index.html
163 ├── styles.css
164 ├── script.js
165 └── assets/
166 ```
167
168 **Create only the files listed in the README's "Deliverables planned" section.**
169
170 **Note**: For UI-based web/mobile/desktop apps, the `mockups/` folder with static HTML/CSS/JS files is **CRITICAL** as it showcases the product to non-technical stakeholders.
171
172### Step 3: Create/Update UX Documentation
173
174**IMPORTANT: Only create UX documentation after README is approved in Step 1 and re-read.**
175
176- Use the approved README "Deliverables planned" list as the source of truth.
177- Follow `references/deliverables.md` for file-by-file content guidance and mockup requirements.
178
179### Step 4: Ensure Alignment
180
181Make sure UX design aligns with:
182- Functional requirements from 04-prd/functional-requirements.md
183- User journeys from 04-prd/prd.md
184- User personas from 02-personas/
185- MVP scope from 03-mvp/ (prioritize core features in mockups)
186- Accessibility requirements from 04-prd/non-functional-requirements.md
187
188Verify that:
189- All critical user flows are documented
190- All edge cases are considered
191- Accessibility checklist is complete
192- Mockups showcase the product effectively (for UI-based apps)
193- Interactions are clearly specified
194
195### Step 5: Final User Review
196
1971. **Inform user that UX design is complete**
1982. **Update README.md:**
199 - Change **Status** from "In Progress" to "Completed"
200 - Add a **Summary** section with key insights (2-3 paragraphs)
201 - Add a **Created Files** section listing all created files
202
2033. **Present completed work to user:**
204 - Show the interactive mockups (if UI-based app)
205 - Walk through critical user flows
206 - Demonstrate interaction patterns
207 - Explain accessibility considerations
208
2094. **Highlight key insights:**
210 - Number of user flows documented
211 - Key interaction patterns defined
212 - Accessibility compliance level (WCAG 2.1 Level AA)
213 - Mockup screens created (if applicable)
214 - Theme and design system defined
215
2165. **For mockups specifically:**
217 - Open `mockups/index.html` in browser
218 - Demonstrate navigation between screens
219 - Show responsive behavior (resize browser)
220 - Point out theme consistency (colors, fonts, spacing)
221 - Explain how this represents the final product
222
2236. **Ask questions:**
224 - Does the design align with their vision?
225 - Are there any flows missing?
226 - Any concerns about accessibility?
227 - Should any mockup screens be added/changed?
228 - Ready to proceed to next stage (architecture)?
229
2307. Make adjustments based on user feedback if needed
231
232### Step 6: Commit to Git (if user confirms)
233
2341. **If user confirms UX design is complete:**
235 - Ask if they want to commit to git
2362. **If user wants to commit:**
237 - Stage all changes in `05-ux/`
238 - Commit with message: "Design UX flows, interactions, and mockups (Stage 5)"
239
240
241## Deliverables
242
243Refer to `references/deliverables.md` for the deliverable list, content guidance, and mockup rationale.