@lamjingxuan/designverse-harness 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +93 -101
- package/package.json +5 -6
- package/plugin.json +108 -0
- package/skills/design-execute/SKILL.md +142 -32
- package/skills/design-ideate/SKILL.md +424 -8
- package/skills/design-iterate/{SKILL.md → skill.md} +79 -6
- package/skills/design-plan/SKILL.md +59 -41
- package/skills/design-review/{SKILL.md → skill.md} +17 -5
- package/skills/design-setup/SKILL.md +323 -86
- package/skills/project-context/SKILL.md +373 -61
- package/.claude/settings.local.json +0 -9
- package/.claude-plugin/plugin.json +0 -20
- package/designverse-harness-1.0.1.tgz +0 -0
- package/docs/CLEANUP-SUMMARY.md +0 -124
- package/docs/MIGRATION.md +0 -246
- package/docs/TEST-REPORT.md +0 -289
- package/test-output/test-button.html +0 -21
|
@@ -156,51 +156,114 @@ Create production-quality HTML:
|
|
|
156
156
|
- Forms: `<form>`, `<label>`, `<input>`, `<button>`
|
|
157
157
|
- Proper heading hierarchy (`<h1>` → `<h2>` → `<h3>`)
|
|
158
158
|
|
|
159
|
-
4. **
|
|
159
|
+
4. **Icons - NEVER Emojis:**
|
|
160
|
+
- ❌ NEVER use emojis (🎨, ✅, 📋, etc.)
|
|
161
|
+
- ✅ ALWAYS use Lucide icons: https://lucide.dev
|
|
162
|
+
- Include Lucide script: `<script src="https://unpkg.com/lucide@latest"></script>`
|
|
163
|
+
- Use `<i data-lucide="icon-name"></i>` and `lucide.createIcons()`
|
|
164
|
+
- Examples: `<i data-lucide="alert-circle"></i>`, `<i data-lucide="check"></i>`
|
|
165
|
+
|
|
166
|
+
5. **Copy Guidelines - Concise & Clear:**
|
|
167
|
+
- ❌ Avoid wordy explanations: "Take action below to improve filing compliance"
|
|
168
|
+
- ✅ Use clear section headers with counts: "For your attention (3)", "Compliant Projects (5)"
|
|
169
|
+
- Remove unnecessary instructional banners
|
|
170
|
+
- Be direct and scannable
|
|
171
|
+
|
|
172
|
+
6. **Color Usage - Minimal & Purposeful:**
|
|
173
|
+
- **Backgrounds:** Always neutral (white, gray-50, gray-100)
|
|
174
|
+
- **Text:** Default to neutral colors (gray-900 for primary, gray-600 for secondary)
|
|
175
|
+
- **Colored elements:** Only for status badges/tags
|
|
176
|
+
- **Status colors:**
|
|
177
|
+
- Critical: Red badge with white text
|
|
178
|
+
- At Risk: Yellow/amber badge with **dark brown text** (NOT red text)
|
|
179
|
+
- Compliant: Green badge with white text
|
|
180
|
+
- **Numbers/metrics:** Neutral color (not colored unless it's the badge itself)
|
|
181
|
+
- **Color matching:** Yellow badge = dark brown text. Never yellow + red.
|
|
182
|
+
|
|
183
|
+
7. **Interactive Patterns:**
|
|
184
|
+
- ❌ NEVER use show/hide toggle buttons ("Hide Compliant Projects")
|
|
185
|
+
- ✅ ALWAYS use accordions with `<details>` and `<summary>`
|
|
186
|
+
- Collapsible sections should use native HTML disclosure widgets
|
|
187
|
+
- Example:
|
|
188
|
+
```html
|
|
189
|
+
<details>
|
|
190
|
+
<summary>Compliant Projects (5)</summary>
|
|
191
|
+
<!-- Content here -->
|
|
192
|
+
</details>
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
8. **Typography & Contrast:**
|
|
196
|
+
- **Minimum text size:** 12px (0.75rem)
|
|
197
|
+
- **Minimum contrast:** 4.5:1 for text against background
|
|
198
|
+
- **No light gray text** that fails contrast (gray-300, gray-400 on white)
|
|
199
|
+
- Use gray-600 or darker for secondary text
|
|
200
|
+
- Verify all text colors meet WCAG AA
|
|
201
|
+
|
|
202
|
+
9. **Accessibility:**
|
|
160
203
|
- All inputs have labels
|
|
161
204
|
- All images have alt text
|
|
162
205
|
- Interactive elements have proper roles
|
|
163
206
|
- Focus indicators visible
|
|
164
207
|
- Minimum 44px touch targets
|
|
165
208
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
209
|
+
10. **Follow Always/Never Rules:**
|
|
210
|
+
- Check DESIGN.md for project-specific rules
|
|
211
|
+
- No banned characters (curly quotes, em dashes, ellipsis)
|
|
212
|
+
- No placeholder copy (Lorem ipsum, TODO)
|
|
170
213
|
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
214
|
+
11. **Start Simple:**
|
|
215
|
+
- Build minimum viable version
|
|
216
|
+
- Don't add features not in requirements
|
|
217
|
+
- Don't add unnecessary complexity
|
|
175
218
|
|
|
176
219
|
---
|
|
177
220
|
|
|
178
|
-
### Step 5:
|
|
221
|
+
### Step 5: Run Quality Enhancement Skills (Required)
|
|
179
222
|
|
|
180
|
-
|
|
223
|
+
After building the initial HTML, automatically invoke these skills to improve quality:
|
|
181
224
|
|
|
182
|
-
**
|
|
225
|
+
**Step 5.1: Run /better-ui (REQUIRED)**
|
|
226
|
+
|
|
227
|
+
Invoke the `interfaces:better-ui` skill on the generated HTML:
|
|
183
228
|
```
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
}
|
|
229
|
+
Skill({
|
|
230
|
+
skill: "interfaces:better-ui",
|
|
231
|
+
args: "prototypes/[feature-name]/[screen-name].html"
|
|
232
|
+
})
|
|
189
233
|
```
|
|
190
234
|
|
|
191
|
-
|
|
235
|
+
This will check and improve:
|
|
236
|
+
- Color usage and contrast
|
|
237
|
+
- Typography hierarchy
|
|
238
|
+
- UI patterns and consistency
|
|
239
|
+
- Component usage
|
|
240
|
+
|
|
241
|
+
**Step 5.2: Run /better-layout (REQUIRED)**
|
|
242
|
+
|
|
243
|
+
Invoke the `interfaces:better-layout` skill on the generated HTML:
|
|
192
244
|
```
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
[
|
|
196
|
-
|
|
197
|
-
}
|
|
245
|
+
Skill({
|
|
246
|
+
skill: "interfaces:better-layout",
|
|
247
|
+
args: "prototypes/[feature-name]/[screen-name].html"
|
|
248
|
+
})
|
|
198
249
|
```
|
|
199
250
|
|
|
200
|
-
|
|
251
|
+
This will check and improve:
|
|
252
|
+
- Layout structure
|
|
253
|
+
- Spacing and alignment
|
|
254
|
+
- Responsive behavior
|
|
255
|
+
- Visual hierarchy
|
|
256
|
+
|
|
257
|
+
**Apply all suggestions from both skills before proceeding to Step 6.**
|
|
258
|
+
|
|
259
|
+
Tell user:
|
|
201
260
|
```
|
|
202
|
-
|
|
203
|
-
|
|
261
|
+
🔍 Running quality checks...
|
|
262
|
+
- interfaces:better-ui ✓
|
|
263
|
+
- interfaces:better-layout ✓
|
|
264
|
+
|
|
265
|
+
Improvements applied:
|
|
266
|
+
[List key improvements from both skills]
|
|
204
267
|
```
|
|
205
268
|
|
|
206
269
|
---
|
|
@@ -214,11 +277,45 @@ Run these checks:
|
|
|
214
277
|
- [ ] Uses design system components
|
|
215
278
|
- [ ] Uses spacing scale (no arbitrary values)
|
|
216
279
|
|
|
280
|
+
**✓ Icons & Visual Elements:**
|
|
281
|
+
- [ ] NO emojis used (❌ 🎨 ✅ 📋 etc.)
|
|
282
|
+
- [ ] Lucide icons used instead (`<i data-lucide="...">`)
|
|
283
|
+
- [ ] Lucide script included in HTML
|
|
284
|
+
|
|
285
|
+
**✓ Copy Quality:**
|
|
286
|
+
- [ ] Concise, scannable text (no wordy banners)
|
|
287
|
+
- [ ] Clear section headers with counts: "For your attention (3)"
|
|
288
|
+
- [ ] No unnecessary instructional text
|
|
289
|
+
|
|
290
|
+
**✓ Color Usage:**
|
|
291
|
+
- [ ] Backgrounds are neutral (white, gray-50, gray-100)
|
|
292
|
+
- [ ] Text is neutral (gray-900, gray-600) except badges
|
|
293
|
+
- [ ] Colored elements ONLY for status badges
|
|
294
|
+
- [ ] At Risk badges use yellow with DARK BROWN text (not red)
|
|
295
|
+
- [ ] Numbers/metrics are neutral colored
|
|
296
|
+
- [ ] Color combinations match (no yellow + red)
|
|
297
|
+
|
|
298
|
+
**✓ Interactive Patterns:**
|
|
299
|
+
- [ ] NO show/hide toggle buttons
|
|
300
|
+
- [ ] Uses `<details>` and `<summary>` for collapsible sections
|
|
301
|
+
- [ ] Accordions used for expandable content
|
|
302
|
+
|
|
303
|
+
**✓ Typography & Contrast:**
|
|
304
|
+
- [ ] All text minimum 12px (0.75rem)
|
|
305
|
+
- [ ] All text meets 4.5:1 contrast ratio
|
|
306
|
+
- [ ] No light gray text (gray-300, gray-400) on white
|
|
307
|
+
- [ ] Secondary text is gray-600 or darker
|
|
308
|
+
|
|
217
309
|
**✓ Accessibility:**
|
|
218
310
|
- [ ] All inputs have labels
|
|
219
311
|
- [ ] Proper heading hierarchy
|
|
220
312
|
- [ ] Semantic HTML
|
|
221
313
|
- [ ] No banned characters in copy
|
|
314
|
+
- [ ] Minimum 44px touch targets
|
|
315
|
+
|
|
316
|
+
**✓ Quality Skills Applied:**
|
|
317
|
+
- [ ] /better-ui ran and suggestions applied
|
|
318
|
+
- [ ] /better-layout ran and suggestions applied
|
|
222
319
|
|
|
223
320
|
**✓ Always/Never Rules:**
|
|
224
321
|
- [ ] Follows DESIGN.md rules
|
|
@@ -255,12 +352,19 @@ Components used:
|
|
|
255
352
|
- [Component 1] - [Purpose]
|
|
256
353
|
- [Component 2] - [Purpose]
|
|
257
354
|
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
355
|
+
Quality standards met:
|
|
356
|
+
✓ Design system compliance
|
|
357
|
+
✓ Accessibility (WCAG AA)
|
|
358
|
+
✓ No emojis (Lucide icons used)
|
|
359
|
+
✓ Minimal color usage (neutral backgrounds)
|
|
360
|
+
✓ Typography (min 12px, 4.5:1 contrast)
|
|
361
|
+
✓ Accordions for collapsible content
|
|
362
|
+
✓ Concise copy
|
|
363
|
+
✓ MDDI principles applied
|
|
261
364
|
|
|
262
|
-
|
|
263
|
-
✨
|
|
365
|
+
Quality enhancements:
|
|
366
|
+
✨ interfaces:better-ui - [Key improvements]
|
|
367
|
+
✨ interfaces:better-layout - [Key improvements]
|
|
264
368
|
|
|
265
369
|
---
|
|
266
370
|
|
|
@@ -405,9 +509,15 @@ Next steps:
|
|
|
405
509
|
## NOTES
|
|
406
510
|
|
|
407
511
|
- **Never skip the self-check** - catches issues before review
|
|
512
|
+
- **Quality skills are REQUIRED** - always run /better-ui and /better-layout
|
|
513
|
+
- **NO emojis ever** - use Lucide icons (https://lucide.dev)
|
|
514
|
+
- **Minimal color usage** - neutral backgrounds, colored badges only
|
|
515
|
+
- **At Risk = yellow badge + dark brown text** (never yellow + red)
|
|
516
|
+
- **Accordions not buttons** - use `<details>`/`<summary>` for show/hide
|
|
517
|
+
- **Minimum 12px text** - with 4.5:1 contrast
|
|
518
|
+
- **Concise copy** - section headers with counts, no wordy banners
|
|
408
519
|
- **Always use semantic HTML** - better for accessibility and SEO
|
|
409
520
|
- **Keep it simple** - resist the urge to add features not in requirements
|
|
410
|
-
- **Optional skills enhance, not required** - works standalone
|
|
411
521
|
- **Save to prototypes/[feature-name]/[screen-name].html** - consistent structure
|
|
412
522
|
|
|
413
523
|
---
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: Generate
|
|
2
|
+
description: Generate design concepts through HMW statements and structured ideation
|
|
3
3
|
---
|
|
4
4
|
|
|
5
5
|
# Design Ideate
|
|
6
6
|
|
|
7
7
|
**Trigger:** After design-plan, or `/design-ideate`
|
|
8
8
|
|
|
9
|
-
**Purpose:** Generate
|
|
9
|
+
**Purpose:** Generate design concepts using HMW (How Might We) framework and structured ideation process
|
|
10
10
|
|
|
11
11
|
---
|
|
12
12
|
|
|
@@ -16,21 +16,437 @@ description: Generate 3 divergent design directions using ideation techniques
|
|
|
16
16
|
|
|
17
17
|
Read and understand:
|
|
18
18
|
- **PRD** (if exists): `docs/prd/[feature-name]-prd.md`
|
|
19
|
-
- **
|
|
19
|
+
- **CLAUDE.md**: Product context, users, goals, **5W1H problem definition**
|
|
20
20
|
- **DESIGN.md**: Design system, principles, tokens
|
|
21
|
-
- **CLAUDE.md**: Product context, users, goals
|
|
22
21
|
- **design-system/component-library.html**: Available components
|
|
23
22
|
|
|
24
23
|
Extract:
|
|
25
|
-
- **
|
|
24
|
+
- **Pain point**: From CLAUDE.md 5W1H "WHAT" section or PRD problem statement
|
|
25
|
+
- **Product context**: Product name, type, target users
|
|
26
|
+
- **Strategic goal**: Target outcome from CLAUDE.md or PRD
|
|
26
27
|
- **Constraints**: Technical, accessibility, design system rules
|
|
27
|
-
- **Available components**: What's already built?
|
|
28
28
|
|
|
29
29
|
---
|
|
30
30
|
|
|
31
|
-
### Step 2:
|
|
31
|
+
### Step 2: Generate HMW Statements
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
You are a product strategist skilled at reframing user pain points into opportunity-driven "How Might We" (HMW) questions.
|
|
34
|
+
|
|
35
|
+
**Pain point from context:**
|
|
36
|
+
[Extract from CLAUDE.md WHAT section or PRD problem statement]
|
|
37
|
+
|
|
38
|
+
**Generate 5-7 HMW questions that:**
|
|
39
|
+
- Focus on solving or reframing the core issue
|
|
40
|
+
- Are open-ended, not leading to a single solution
|
|
41
|
+
- Represent different angles (emotional, behavioural, informational, etc.)
|
|
42
|
+
- Are simple, clear, and user-centred
|
|
43
|
+
|
|
44
|
+
**Guidelines:**
|
|
45
|
+
- Avoid vague or generic questions
|
|
46
|
+
- Push for specificity and variety
|
|
47
|
+
- Each HMW should offer a different lens on the problem
|
|
48
|
+
|
|
49
|
+
**Example format:**
|
|
50
|
+
```
|
|
51
|
+
Pain point: "Officers spend 3 hours daily manually consolidating reports from 5 different systems"
|
|
52
|
+
|
|
53
|
+
HMW statements:
|
|
54
|
+
1. How might we reduce the time officers spend on report consolidation?
|
|
55
|
+
2. How might we automatically integrate data from multiple systems?
|
|
56
|
+
3. How might we make report consolidation feel less tedious and manual?
|
|
57
|
+
4. How might we help officers trust automated consolidation over manual work?
|
|
58
|
+
5. How might we eliminate the need for report consolidation entirely?
|
|
59
|
+
6. How might we surface the most important insights without full consolidation?
|
|
60
|
+
7. How might we make cross-system data accessible in one place?
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
**Present HMWs to user:**
|
|
64
|
+
```
|
|
65
|
+
🎯 Generated [N] How Might We statements
|
|
66
|
+
|
|
67
|
+
Based on the pain point: "[pain point from context]"
|
|
68
|
+
|
|
69
|
+
1. HMW statement 1
|
|
70
|
+
2. HMW statement 2
|
|
71
|
+
3. HMW statement 3
|
|
72
|
+
4. HMW statement 4
|
|
73
|
+
5. HMW statement 5
|
|
74
|
+
[6-7 if applicable]
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
---
|
|
78
|
+
|
|
79
|
+
### Step 3: Select Top 3 HMWs
|
|
80
|
+
|
|
81
|
+
Ask user via `AskUserQuestion` (multi-select):
|
|
82
|
+
```
|
|
83
|
+
Which HMW statements would you like to explore?
|
|
84
|
+
|
|
85
|
+
Select your top 3 that feel most promising or interesting to explore.
|
|
86
|
+
|
|
87
|
+
Options (multi-select):
|
|
88
|
+
- HMW statement 1
|
|
89
|
+
- HMW statement 2
|
|
90
|
+
- HMW statement 3
|
|
91
|
+
- HMW statement 4
|
|
92
|
+
- HMW statement 5
|
|
93
|
+
[- HMW statement 6]
|
|
94
|
+
[- HMW statement 7]
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
User selects 3 HMWs. Store these for Step 4.
|
|
98
|
+
|
|
99
|
+
---
|
|
100
|
+
|
|
101
|
+
### Step 4: Generate Concepts for Each HMW
|
|
102
|
+
|
|
103
|
+
For EACH of the 3 selected HMWs, generate 5 concept ideas.
|
|
104
|
+
|
|
105
|
+
**Use this prompt structure:**
|
|
106
|
+
|
|
107
|
+
```
|
|
108
|
+
Role:
|
|
109
|
+
You are an experienced product designer with strong problem-solving skills and deep empathy for users.
|
|
110
|
+
|
|
111
|
+
Context:
|
|
112
|
+
You're contributing to an early-stage ideation sprint. We are exploring ideas to solve a real user problem based on recent research.
|
|
113
|
+
|
|
114
|
+
The product we are exploring ideas for is [Product Name from CLAUDE.md].
|
|
115
|
+
[Product description from CLAUDE.md]
|
|
116
|
+
[Target users from CLAUDE.md]
|
|
117
|
+
|
|
118
|
+
Key problem to solve: [Pain point from WHAT section]
|
|
119
|
+
Strategic Goal: [Target outcome from CLAUDE.md]
|
|
120
|
+
|
|
121
|
+
Input:
|
|
122
|
+
HMW question: [One of the 3 selected HMWs]
|
|
123
|
+
Pain points/insights: [From 5W1H analysis in CLAUDE.md - WHO, WHAT, WHEN, WHERE, WHY, HOW]
|
|
124
|
+
|
|
125
|
+
Output:
|
|
126
|
+
Generate 5 concept ideas that respond to the HMW question.
|
|
127
|
+
|
|
128
|
+
For each concept, include:
|
|
129
|
+
- Title (1 sentence, catchy but descriptive)
|
|
130
|
+
- Short description (2-3 sentences explaining how it works and why it helps)
|
|
131
|
+
- The hypothesis this concept will test
|
|
132
|
+
|
|
133
|
+
Constraints:
|
|
134
|
+
- Ideas must be technically feasible in the next 6-12 months
|
|
135
|
+
- Ideas must be usable without extensive onboarding or training
|
|
136
|
+
- At least 2 concepts should be mobile-first (if relevant to product type)
|
|
137
|
+
- At least 1 should be radically different in form (e.g. product, service, policy, community-led)
|
|
138
|
+
|
|
139
|
+
Additional instructions:
|
|
140
|
+
- Be bold. Quality and variety matter.
|
|
141
|
+
- Build on themes in the pain points, not just the HMW wording.
|
|
142
|
+
- Avoid obvious or generic solutions. Push for variety.
|
|
143
|
+
- Assume we will refine and filter later - right now we want breadth.
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
**Repeat for all 3 HMWs = 15 total concepts (5 per HMW)**
|
|
147
|
+
|
|
148
|
+
**Present concepts to user:**
|
|
149
|
+
```
|
|
150
|
+
💡 Generated 15 Concepts
|
|
151
|
+
|
|
152
|
+
---
|
|
153
|
+
|
|
154
|
+
HMW: [HMW #1]
|
|
155
|
+
|
|
156
|
+
1. [Concept Title]
|
|
157
|
+
Description: [2-3 sentences]
|
|
158
|
+
Hypothesis: [What we're testing]
|
|
159
|
+
|
|
160
|
+
2. [Concept Title]
|
|
161
|
+
...
|
|
162
|
+
|
|
163
|
+
[... 5 concepts for HMW #1]
|
|
164
|
+
|
|
165
|
+
---
|
|
166
|
+
|
|
167
|
+
HMW: [HMW #2]
|
|
168
|
+
|
|
169
|
+
[... 5 concepts for HMW #2]
|
|
170
|
+
|
|
171
|
+
---
|
|
172
|
+
|
|
173
|
+
HMW: [HMW #3]
|
|
174
|
+
|
|
175
|
+
[... 5 concepts for HMW #3]
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
---
|
|
179
|
+
|
|
180
|
+
### Step 5: Shortlist 3 Concepts
|
|
181
|
+
|
|
182
|
+
Ask user via `AskUserQuestion` (allow selection of exactly 3):
|
|
183
|
+
```
|
|
184
|
+
Which 3 concepts would you like to prototype?
|
|
185
|
+
|
|
186
|
+
Choose based on:
|
|
187
|
+
- Feasibility (can we build this in reasonable time?)
|
|
188
|
+
- Impact (will this meaningfully solve the problem?)
|
|
189
|
+
|
|
190
|
+
Select exactly 3 concepts from the 15 generated.
|
|
191
|
+
|
|
192
|
+
Options:
|
|
193
|
+
[List all 15 concepts with their titles and brief description]
|
|
194
|
+
- HMW #1 - Concept 1: [Title]
|
|
195
|
+
- HMW #1 - Concept 2: [Title]
|
|
196
|
+
...
|
|
197
|
+
- HMW #3 - Concept 5: [Title]
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
User selects 3 concepts. Store these for Step 6.
|
|
201
|
+
|
|
202
|
+
---
|
|
203
|
+
|
|
204
|
+
### Step 6: Generate Prototype Prompts
|
|
205
|
+
|
|
206
|
+
For EACH of the 3 selected concepts, generate a clear prototype prompt using the scoping framework.
|
|
207
|
+
|
|
208
|
+
**For each concept, answer these questions:**
|
|
209
|
+
|
|
210
|
+
Based on context already available from CLAUDE.md and the concept:
|
|
211
|
+
1. What the app or product is → [From CLAUDE.md]
|
|
212
|
+
2. What the concept for the screen is and the problem it solves → [From selected concept]
|
|
213
|
+
3. Who the user is → [From CLAUDE.md]
|
|
214
|
+
4. When and where the user sees this screen → [Infer from concept + user workflow]
|
|
215
|
+
5. What content or features should appear on the screen → [From concept description]
|
|
216
|
+
6. What actions the user should be able to take on the screen → [From concept description]
|
|
217
|
+
7. What we want to test or learn from this prototype → [From concept hypothesis]
|
|
218
|
+
|
|
219
|
+
**Generate a prototype prompt for each concept:**
|
|
220
|
+
|
|
221
|
+
```
|
|
222
|
+
Concept 1: [Title]
|
|
223
|
+
|
|
224
|
+
Prototype Prompt:
|
|
225
|
+
Build a [screen type] for [product name] that helps [user] [achieve goal].
|
|
226
|
+
|
|
227
|
+
The screen should include:
|
|
228
|
+
- [Content/feature 1]
|
|
229
|
+
- [Content/feature 2]
|
|
230
|
+
- [Content/feature 3]
|
|
231
|
+
|
|
232
|
+
User actions:
|
|
233
|
+
- [Action 1]
|
|
234
|
+
- [Action 2]
|
|
235
|
+
|
|
236
|
+
Design constraints:
|
|
237
|
+
- Use design system tokens from design-system/tokens.css
|
|
238
|
+
- Use components from design-system/components.css
|
|
239
|
+
- Must meet WCAG AA standards (4.5:1 contrast, 44px touch targets)
|
|
240
|
+
- [Technical constraints from CLAUDE.md]
|
|
241
|
+
|
|
242
|
+
This prototype tests: [Hypothesis from concept]
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
**Generate prompts for all 3 concepts.**
|
|
246
|
+
|
|
247
|
+
---
|
|
248
|
+
|
|
249
|
+
### Step 7: Build HTML Prototypes with Parallel Agents
|
|
250
|
+
|
|
251
|
+
Spawn 3 agents in parallel to build HTML prototypes based on the prompts.
|
|
252
|
+
|
|
253
|
+
**Use Agent tool to create 3 parallel agents:**
|
|
254
|
+
|
|
255
|
+
```javascript
|
|
256
|
+
Agent({
|
|
257
|
+
name: "concept-1-builder",
|
|
258
|
+
description: "Build HTML prototype for Concept 1",
|
|
259
|
+
prompt: `You are a product designer building an HTML prototype.
|
|
260
|
+
|
|
261
|
+
${[Prototype Prompt for Concept 1]}
|
|
262
|
+
|
|
263
|
+
Build a functional HTML page that demonstrates this concept using:
|
|
264
|
+
- Design system tokens from design-system/tokens.css
|
|
265
|
+
- Components from design-system/components.css
|
|
266
|
+
- Semantic HTML
|
|
267
|
+
- Accessible markup (WCAG AA)
|
|
268
|
+
|
|
269
|
+
Save the HTML file as: prototypes/concepts/[feature-name]-concept-1.html
|
|
270
|
+
|
|
271
|
+
If you need any clarifications about the requirements, ask me before building.`
|
|
272
|
+
})
|
|
273
|
+
|
|
274
|
+
Agent({
|
|
275
|
+
name: "concept-2-builder",
|
|
276
|
+
description: "Build HTML prototype for Concept 2",
|
|
277
|
+
prompt: `[Same structure with Concept 2 prompt]`
|
|
278
|
+
})
|
|
279
|
+
|
|
280
|
+
Agent({
|
|
281
|
+
name: "concept-3-builder",
|
|
282
|
+
description: "Build HTML prototype for Concept 3",
|
|
283
|
+
prompt: `[Same structure with Concept 3 prompt]`
|
|
284
|
+
})
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
**Wait for all 3 agents to complete their HTML prototypes.**
|
|
288
|
+
|
|
289
|
+
Agents can ask clarifying questions if needed before building.
|
|
290
|
+
|
|
291
|
+
---
|
|
292
|
+
|
|
293
|
+
### Step 8: Review & Choose
|
|
294
|
+
|
|
295
|
+
Once all 3 prototypes are built, present them to user:
|
|
296
|
+
```
|
|
297
|
+
✅ 3 Concept Prototypes Built
|
|
298
|
+
|
|
299
|
+
---
|
|
300
|
+
|
|
301
|
+
Concept 1: [Title]
|
|
302
|
+
File: prototypes/concepts/[feature-name]-concept-1.html
|
|
303
|
+
[Screenshot or description of what was built]
|
|
304
|
+
|
|
305
|
+
---
|
|
306
|
+
|
|
307
|
+
Concept 2: [Title]
|
|
308
|
+
File: prototypes/concepts/[feature-name]-concept-2.html
|
|
309
|
+
[Screenshot or description of what was built]
|
|
310
|
+
|
|
311
|
+
---
|
|
312
|
+
|
|
313
|
+
Concept 3: [Title]
|
|
314
|
+
File: prototypes/concepts/[feature-name]-concept-3.html
|
|
315
|
+
[Screenshot or description of what was built]
|
|
316
|
+
```
|
|
317
|
+
|
|
318
|
+
Ask user via `AskUserQuestion`:
|
|
319
|
+
```
|
|
320
|
+
Which concept would you like to refine and focus on?
|
|
321
|
+
|
|
322
|
+
Options:
|
|
323
|
+
- Concept 1: [Title] - Focus on this and refine with /design-execute
|
|
324
|
+
- Concept 2: [Title] - Focus on this and refine with /design-execute
|
|
325
|
+
- Concept 3: [Title] - Focus on this and refine with /design-execute
|
|
326
|
+
- Explore more layout variants - Use layout-variant-explorer to generate 3 divergent layouts per concept
|
|
327
|
+
- None - I want to explore different concepts entirely
|
|
328
|
+
```
|
|
329
|
+
|
|
330
|
+
**If user selects a concept:**
|
|
331
|
+
- Tell user: "Great! Let's refine [Concept Title] with /design-execute"
|
|
332
|
+
- Route to `/design-execute` with the selected concept prototype
|
|
333
|
+
|
|
334
|
+
**If user selects "Explore more layout variants":**
|
|
335
|
+
- Ask which concept(s) to explore variants for
|
|
336
|
+
- For each selected concept, invoke `layout-variant-explorer` agent:
|
|
337
|
+
```
|
|
338
|
+
Agent({
|
|
339
|
+
name: "layout-explorer-concept-1",
|
|
340
|
+
subagent_type: "layout-variant-explorer",
|
|
341
|
+
description: "Generate 3 layout variants for Concept 1",
|
|
342
|
+
prompt: "Generate 3 divergent layout variants for the [Concept 1 Title] screen.
|
|
343
|
+
|
|
344
|
+
Base concept: [Concept 1 description]
|
|
345
|
+
Prototype prompt: [Concept 1 prototype prompt]
|
|
346
|
+
|
|
347
|
+
Generate 3 structurally different layouts while maintaining the core concept."
|
|
348
|
+
})
|
|
349
|
+
```
|
|
350
|
+
- Present variants and ask user to choose again
|
|
351
|
+
|
|
352
|
+
**If user selects "None":**
|
|
353
|
+
- Tell user: "No problem! You can explore different concepts by:"
|
|
354
|
+
- Going back to Step 3 and selecting different HMWs
|
|
355
|
+
- Running `/design-ideate` again with different focus
|
|
356
|
+
- Or proceed directly with `/design-execute` if you have a clear vision
|
|
357
|
+
|
|
358
|
+
---
|
|
359
|
+
|
|
360
|
+
## NOTES
|
|
361
|
+
|
|
362
|
+
- **HMW generation:** Use the pain point from 5W1H WHAT section in CLAUDE.md
|
|
363
|
+
- **15 concepts total:** 5 per selected HMW
|
|
364
|
+
- **Prototype prompts:** Generated in Step 6 (not V0-specific, general prototyping)
|
|
365
|
+
- **3 parallel agents in Step 7:** Spawn all at once to build HTML simultaneously (efficient)
|
|
366
|
+
- **Agents can ask questions:** If clarification needed, agents should ask before building
|
|
367
|
+
- **Layout explorer:** Only used if user wants more variants (not by default)
|
|
368
|
+
- **Prototype prompts:** Should be clear, specific, and testable
|
|
369
|
+
- Save all HMWs, concepts, and prototype prompts to memory for downstream use
|
|
370
|
+
|
|
371
|
+
---
|
|
372
|
+
|
|
373
|
+
## EXAMPLE FLOW
|
|
374
|
+
|
|
375
|
+
```
|
|
376
|
+
User: [Triggered from /design-plan] "Yes, let's ideate first"
|
|
377
|
+
|
|
378
|
+
Skill: [Loads context from CLAUDE.md]
|
|
379
|
+
Pain point: "Officers spend 3 hours daily manually consolidating reports"
|
|
380
|
+
|
|
381
|
+
Skill: [Generates 7 HMWs]
|
|
382
|
+
1. How might we reduce consolidation time from 3 hours to 15 minutes?
|
|
383
|
+
2. How might we automate data integration from 5 systems?
|
|
384
|
+
...
|
|
385
|
+
7. How might we make report data instantly accessible?
|
|
386
|
+
|
|
387
|
+
Skill: [Asks user to select top 3 HMWs]
|
|
388
|
+
User: Selects HMWs 1, 2, and 7
|
|
389
|
+
|
|
390
|
+
Skill: [Generates 5 concepts for HMW #1]
|
|
391
|
+
Concept 1: One-Click Consolidation Button
|
|
392
|
+
Concept 2: Scheduled Auto-Consolidation
|
|
393
|
+
...
|
|
394
|
+
|
|
395
|
+
Skill: [Generates 5 concepts for HMW #2]
|
|
396
|
+
Concept 6: Universal Data Connector
|
|
397
|
+
...
|
|
398
|
+
|
|
399
|
+
Skill: [Generates 5 concepts for HMW #7]
|
|
400
|
+
Concept 11: Live Dashboard Feed
|
|
401
|
+
...
|
|
402
|
+
|
|
403
|
+
Skill: [Presents all 15 concepts]
|
|
404
|
+
|
|
405
|
+
Skill: [Asks user to shortlist 3 based on feasibility + impact]
|
|
406
|
+
User: Selects Concept 1, Concept 6, Concept 11
|
|
407
|
+
|
|
408
|
+
Skill: [Generates 3 prototype prompts using scoping questions]
|
|
409
|
+
Prompt 1: Build a "One-Click Consolidation Button" that helps officers...
|
|
410
|
+
Prompt 2: Build a "Universal Data Connector" that helps officers...
|
|
411
|
+
Prompt 3: Build a "Live Dashboard Feed" that helps officers...
|
|
412
|
+
|
|
413
|
+
Skill: [Spawns 3 parallel agents to build HTML prototypes]
|
|
414
|
+
Agent 1: Building HTML for Concept 1
|
|
415
|
+
Agent 2: Building HTML for Concept 2
|
|
416
|
+
Agent 3: Building HTML for Concept 3
|
|
417
|
+
|
|
418
|
+
[Agents can ask clarifying questions if needed, then build]
|
|
419
|
+
|
|
420
|
+
Skill: [Presents 3 HTML prototypes]
|
|
421
|
+
Concept 1: prototypes/concepts/report-consolidation-concept-1.html
|
|
422
|
+
Concept 2: prototypes/concepts/report-consolidation-concept-2.html
|
|
423
|
+
Concept 3: prototypes/concepts/report-consolidation-concept-3.html
|
|
424
|
+
|
|
425
|
+
Skill: [Asks which concept to focus on]
|
|
426
|
+
User: Selects "Concept 1: One-Click Consolidation Button"
|
|
427
|
+
|
|
428
|
+
Skill: "Great! Let's refine One-Click Consolidation Button with /design-execute"
|
|
429
|
+
[Routes to /design-execute with Concept 1 V0 prompt]
|
|
430
|
+
```
|
|
431
|
+
|
|
432
|
+
---
|
|
433
|
+
|
|
434
|
+
## OUTPUT
|
|
435
|
+
|
|
436
|
+
**Files created:**
|
|
437
|
+
- `prototypes/concepts/[feature-name]-concept-1.html` (built by agent 1)
|
|
438
|
+
- `prototypes/concepts/[feature-name]-concept-2.html` (built by agent 2)
|
|
439
|
+
- `prototypes/concepts/[feature-name]-concept-3.html` (built by agent 3)
|
|
440
|
+
|
|
441
|
+
**Saved to memory:**
|
|
442
|
+
- HMW statements
|
|
443
|
+
- 15 concepts (5 per HMW)
|
|
444
|
+
- 3 prototype prompts
|
|
445
|
+
- 3 selected concepts
|
|
446
|
+
|
|
447
|
+
**Next step:**
|
|
448
|
+
- Route to `/design-execute` with selected concept prototype
|
|
449
|
+
- OR invoke `layout-variant-explorer` if user wants layout variants first
|
|
34
450
|
```
|
|
35
451
|
How many design directions would you like to explore?
|
|
36
452
|
|