@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
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Improve design based on review feedback with auto-fixes and guided improvements
|
|
3
|
-
---
|
|
4
|
-
|
|
5
1
|
# Design Iterate
|
|
6
2
|
|
|
7
3
|
**Trigger:** After design-review, or `/design-iterate`
|
|
@@ -10,6 +6,28 @@ description: Improve design based on review feedback with auto-fixes and guided
|
|
|
10
6
|
|
|
11
7
|
---
|
|
12
8
|
|
|
9
|
+
## CORE PRINCIPLE: Surgical Fixes Only
|
|
10
|
+
|
|
11
|
+
**You are a code surgeon, not a designer.**
|
|
12
|
+
|
|
13
|
+
Your ONLY job: Fix the EXACT issues the scorecard identified. Nothing more.
|
|
14
|
+
|
|
15
|
+
❌ **NEVER:**
|
|
16
|
+
- Add new visual elements (borders, banners, badges, icons)
|
|
17
|
+
- Remove contextual labels or units from numbers
|
|
18
|
+
- Redesign sections or "improve" things not in the scorecard
|
|
19
|
+
- Add "enhancements" or "polish"
|
|
20
|
+
|
|
21
|
+
✅ **ALWAYS:**
|
|
22
|
+
- Read the scorecard line by line
|
|
23
|
+
- Fix ONLY what it says to fix
|
|
24
|
+
- Make minimal changes to resolve each issue
|
|
25
|
+
- Preserve existing design and structure
|
|
26
|
+
|
|
27
|
+
If the scorecard doesn't mention it, don't touch it.
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
13
31
|
## INSTRUCTIONS
|
|
14
32
|
|
|
15
33
|
### Step 1: Load Latest Scorecard
|
|
@@ -65,9 +83,10 @@ Group issues by fix type:
|
|
|
65
83
|
- Banned characters → Replace with allowed characters
|
|
66
84
|
- Missing alt text → Add descriptive alt (or ask user)
|
|
67
85
|
- Placeholder copy → Remove or ask user for real copy
|
|
86
|
+
- Contrast failures → Fix text color ONLY (never add borders)
|
|
68
87
|
|
|
69
88
|
#### **Guided** (need user input):
|
|
70
|
-
-
|
|
89
|
+
- Complex contrast issues → Show color options that pass
|
|
71
90
|
- Layout problems → Explain what to change
|
|
72
91
|
- Missing functionality → Describe what to add
|
|
73
92
|
|
|
@@ -78,8 +97,44 @@ Group issues by fix type:
|
|
|
78
97
|
|
|
79
98
|
---
|
|
80
99
|
|
|
100
|
+
### CRITICAL: What NOT to Do When Fixing
|
|
101
|
+
|
|
102
|
+
**❌ NEVER do these when applying fixes:**
|
|
103
|
+
|
|
104
|
+
1. **Don't add new visual elements:**
|
|
105
|
+
- ❌ Don't add colored borders to cards/containers
|
|
106
|
+
- ❌ Don't add banners, alerts, or celebration messages
|
|
107
|
+
- ❌ Don't add decorative icons or emojis
|
|
108
|
+
- ❌ Don't add badges unless the scorecard specifically says to
|
|
109
|
+
|
|
110
|
+
2. **Don't remove context:**
|
|
111
|
+
- ❌ Don't remove labels or units from numbers ("4 filings" → "4")
|
|
112
|
+
- ❌ Don't remove explanatory text that helps understanding
|
|
113
|
+
- ❌ Don't simplify copy so much it loses meaning
|
|
114
|
+
|
|
115
|
+
3. **Don't over-correct:**
|
|
116
|
+
- ❌ If scorecard says "fix contrast on button text", ONLY fix that button text
|
|
117
|
+
- ❌ Don't redesign entire sections
|
|
118
|
+
- ❌ Don't add "enhancements" not mentioned in scorecard
|
|
119
|
+
|
|
120
|
+
4. **Be surgical:**
|
|
121
|
+
- ✅ ONLY fix what the scorecard identified
|
|
122
|
+
- ✅ Make minimal changes to fix the specific issue
|
|
123
|
+
- ✅ Preserve existing design intent and structure
|
|
124
|
+
|
|
125
|
+
**Example of BAD fix:**
|
|
126
|
+
```
|
|
127
|
+
Scorecard: "Button text fails contrast"
|
|
128
|
+
❌ BAD: Add red border to entire card, add success banner, remove "filings" labels
|
|
129
|
+
✅ GOOD: Change button text color from gray-400 to gray-600
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
---
|
|
133
|
+
|
|
81
134
|
### Step 4: Apply Auto-Fixes
|
|
82
135
|
|
|
136
|
+
**CRITICAL PRINCIPLE:** Be surgical. ONLY change what the scorecard identified. Don't add, don't redesign, don't embellish.
|
|
137
|
+
|
|
83
138
|
For each auto-fixable issue:
|
|
84
139
|
|
|
85
140
|
**Example: Hardcoded color**
|
|
@@ -109,9 +164,27 @@ Issue: prototypes/campaign-planner/input-form.html:23
|
|
|
109
164
|
Applying fix...
|
|
110
165
|
```
|
|
111
166
|
|
|
167
|
+
**Example: Contrast fix (text only)**
|
|
168
|
+
```
|
|
169
|
+
Issue: prototypes/campaign-planner/input-form.html:89
|
|
170
|
+
Found: class="text-gray-400" (fails contrast 2.8:1)
|
|
171
|
+
Fix: Change to text-gray-600 (passes 4.5:1)
|
|
172
|
+
|
|
173
|
+
Applying fix...
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
**❌ WRONG way to fix contrast:**
|
|
177
|
+
```
|
|
178
|
+
Issue: Button text fails contrast
|
|
179
|
+
❌ DON'T: Add colored borders to card
|
|
180
|
+
❌ DON'T: Add success banners
|
|
181
|
+
❌ DON'T: Redesign the whole section
|
|
182
|
+
✅ DO: Change only the button text color
|
|
183
|
+
```
|
|
184
|
+
|
|
112
185
|
**Report each fix:**
|
|
113
186
|
```
|
|
114
|
-
✓ Fixed: [file:line] - [issue
|
|
187
|
+
✓ Fixed: [file:line] - [exact issue from scorecard]
|
|
115
188
|
```
|
|
116
189
|
|
|
117
190
|
---
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: Plan design work by creating PRD and running grilling review
|
|
2
|
+
description: Plan design work by creating PRD and running grilling review. Triggers when user wants to plan, create, build, or design something.
|
|
3
3
|
---
|
|
4
4
|
|
|
5
5
|
# Design Plan
|
|
6
6
|
|
|
7
|
-
**Trigger:** When user
|
|
7
|
+
**Trigger:** When user says "plan to create/build/design", "I want to plan", "help me plan", or `/design-plan`
|
|
8
8
|
|
|
9
|
-
**
|
|
9
|
+
**Examples that should trigger this skill:**
|
|
10
|
+
- "I want to plan to create this dashboard"
|
|
11
|
+
- "Help me plan a campaign planner"
|
|
12
|
+
- "I need to build a form, let's plan it out"
|
|
13
|
+
- "Plan this feature with me"
|
|
14
|
+
|
|
15
|
+
**Purpose:** Guide PRD creation, assess change size, run grilling, check alignment with decisions, then offer ideation
|
|
10
16
|
|
|
11
17
|
---
|
|
12
18
|
|
|
@@ -143,9 +149,8 @@ Ask user via free text or structured questions:
|
|
|
143
149
|
**Question 2:** Who are the users? (Primary & secondary)
|
|
144
150
|
**Question 3:** Must-have requirements? (Critical features)
|
|
145
151
|
**Question 4:** Nice-to-have requirements? (Optional features)
|
|
146
|
-
**Question 5:**
|
|
147
|
-
**Question 6:**
|
|
148
|
-
**Question 7:** Open questions or unknowns?
|
|
152
|
+
**Question 5:** Success metrics? (How we measure success)
|
|
153
|
+
**Question 6:** Open questions or unknowns?
|
|
149
154
|
|
|
150
155
|
Generate: `docs/prd/[feature-name]-prd.md`
|
|
151
156
|
|
|
@@ -185,25 +190,15 @@ Generate: `docs/prd/[feature-name]-prd.md`
|
|
|
185
190
|
|
|
186
191
|
---
|
|
187
192
|
|
|
188
|
-
## Design Principles
|
|
189
|
-
|
|
190
|
-
**Start Simple:**
|
|
191
|
-
[What's the absolute simplest version?]
|
|
192
|
-
|
|
193
|
-
**Other Principles:**
|
|
194
|
-
[From Q5 - specific to this feature]
|
|
195
|
-
|
|
196
|
-
---
|
|
197
|
-
|
|
198
193
|
## Success Metrics
|
|
199
|
-
[From
|
|
194
|
+
[From Q5]
|
|
200
195
|
- Metric 1: [How measured]
|
|
201
196
|
- Metric 2: [How measured]
|
|
202
197
|
|
|
203
198
|
---
|
|
204
199
|
|
|
205
200
|
## Open Questions
|
|
206
|
-
[From
|
|
201
|
+
[From Q6]
|
|
207
202
|
- [ ] Question 1
|
|
208
203
|
- [ ] Question 2
|
|
209
204
|
|
|
@@ -306,7 +301,7 @@ OR
|
|
|
306
301
|
|
|
307
302
|
---
|
|
308
303
|
|
|
309
|
-
### Step 7: Summarize &
|
|
304
|
+
### Step 7: Summarize & Offer Ideation
|
|
310
305
|
|
|
311
306
|
Tell user:
|
|
312
307
|
```
|
|
@@ -319,20 +314,32 @@ Summary:
|
|
|
319
314
|
- Alignment: [All clear / Needs review]
|
|
320
315
|
|
|
321
316
|
[IF PRD created]: PRD saved to: docs/prd/[filename].md
|
|
317
|
+
```
|
|
318
|
+
|
|
319
|
+
Then ask using `AskUserQuestion`:
|
|
320
|
+
```
|
|
321
|
+
Would you like help ideating potential solutions?
|
|
322
322
|
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
3. Ready to build? Let me know!
|
|
323
|
+
I can generate 3 divergent design directions using ideation techniques
|
|
324
|
+
(SCAMPER, mash-ups, constraint removal) to explore different approaches
|
|
325
|
+
before we build.
|
|
327
326
|
|
|
328
|
-
|
|
329
|
-
-
|
|
330
|
-
-
|
|
327
|
+
Options:
|
|
328
|
+
- Yes, let's ideate first (recommended for medium/large changes)
|
|
329
|
+
- No, I already know what I want to build
|
|
331
330
|
```
|
|
332
331
|
|
|
333
|
-
**
|
|
334
|
-
- `/design-ideate`
|
|
335
|
-
-
|
|
332
|
+
**If user selects "Yes":**
|
|
333
|
+
- Invoke `/design-ideate` skill
|
|
334
|
+
- Tell user: "Great! Let me generate 3 divergent design directions for you..."
|
|
335
|
+
|
|
336
|
+
**If user selects "No":**
|
|
337
|
+
- Tell user: "Understood! Ready to build when you are."
|
|
338
|
+
- Next step: User can invoke `/design-execute` when ready
|
|
339
|
+
|
|
340
|
+
**Route to:**
|
|
341
|
+
- `/design-ideate` (if Yes)
|
|
342
|
+
- Wait for user to invoke `/design-execute` (if No)
|
|
336
343
|
|
|
337
344
|
---
|
|
338
345
|
|
|
@@ -365,12 +372,13 @@ Skill: "Next step: /design-execute"
|
|
|
365
372
|
### Example 2: Medium Change
|
|
366
373
|
|
|
367
374
|
```
|
|
368
|
-
User: "
|
|
375
|
+
User: "I want to plan to create a campaign input form with 5 fields"
|
|
369
376
|
|
|
370
|
-
Skill: [
|
|
377
|
+
Skill: [Triggered by "plan to create"]
|
|
378
|
+
[Assesses as Medium]
|
|
371
379
|
"This is a medium change. I recommend a light PRD."
|
|
372
380
|
|
|
373
|
-
Skill: [Asks 3 questions]
|
|
381
|
+
Skill: [Asks 3 questions - no design principles]
|
|
374
382
|
User: [Answers]
|
|
375
383
|
|
|
376
384
|
Skill: [Generates light PRD]
|
|
@@ -385,21 +393,26 @@ Skill: [Invokes grilling]
|
|
|
385
393
|
Skill: [Checks alignment]
|
|
386
394
|
"✅ All clear!"
|
|
387
395
|
|
|
388
|
-
Skill: "
|
|
396
|
+
Skill: [Asks via MCQ] "Would you like help ideating potential solutions?"
|
|
397
|
+
User: Selects "Yes, let's ideate first"
|
|
398
|
+
|
|
399
|
+
Skill: [Invokes /design-ideate]
|
|
400
|
+
"Great! Let me generate 3 divergent design directions for you..."
|
|
389
401
|
```
|
|
390
402
|
|
|
391
403
|
### Example 3: Large Change
|
|
392
404
|
|
|
393
405
|
```
|
|
394
|
-
User: "
|
|
406
|
+
User: "I want to plan a multi-step campaign planner with 3 screens"
|
|
395
407
|
|
|
396
|
-
Skill: [
|
|
408
|
+
Skill: [Triggered by "plan a"]
|
|
409
|
+
[Assesses as Large]
|
|
397
410
|
"This is a large change. Full PRD required."
|
|
398
411
|
|
|
399
|
-
Skill: [Asks
|
|
412
|
+
Skill: [Asks 6 questions - removed design principles question]
|
|
400
413
|
User: [Answers]
|
|
401
414
|
|
|
402
|
-
Skill: [Generates full PRD]
|
|
415
|
+
Skill: [Generates full PRD without design principles section]
|
|
403
416
|
"PRD created: docs/prd/campaign-planner-prd.md"
|
|
404
417
|
|
|
405
418
|
Skill: "I'm going to grill you on this plan (mandatory for large changes)."
|
|
@@ -408,21 +421,26 @@ Skill: [Invokes grilling]
|
|
|
408
421
|
[Hard questions...]
|
|
409
422
|
|
|
410
423
|
Skill: [Checks alignment]
|
|
411
|
-
"
|
|
412
|
-
|
|
413
|
-
|
|
424
|
+
"✅ All clear!"
|
|
425
|
+
|
|
426
|
+
Skill: [Asks via MCQ] "Would you like help ideating potential solutions?"
|
|
427
|
+
User: Selects "Yes, let's ideate first"
|
|
414
428
|
|
|
415
|
-
Skill:
|
|
429
|
+
Skill: [Invokes /design-ideate]
|
|
430
|
+
"Great! Let me generate 3 divergent design directions for you..."
|
|
416
431
|
```
|
|
417
432
|
|
|
418
433
|
---
|
|
419
434
|
|
|
420
435
|
## NOTES
|
|
421
436
|
|
|
437
|
+
- **Trigger keywords:** "plan to create/build/design", "I want to plan", "help me plan" should activate this skill (not EnterPlanMode)
|
|
422
438
|
- PRD folder is created if it doesn't exist: `docs/prd/`
|
|
423
439
|
- PRD filename is kebab-case: `campaign-input-form-prd.md`
|
|
440
|
+
- **Design principles removed:** No longer ask about design principles - use project DESIGN.md instead
|
|
424
441
|
- Grilling is **mandatory** for large changes
|
|
425
442
|
- Alignment check is **always** performed
|
|
443
|
+
- **Always offer ideation** after planning via MCQ (don't just tell them to invoke manually)
|
|
426
444
|
- Save PRD content to memory for use in design-ideate and design-execute
|
|
427
445
|
|
|
428
446
|
---
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Run 4-critic blind design review panel (craft, UX, tokens, opportunity)
|
|
3
|
-
---
|
|
4
|
-
|
|
5
1
|
# Design Critique (Adversarial Blind Panel)
|
|
6
2
|
|
|
7
3
|
**Trigger:** Pre-commit hook on staged HTML/CSS/JS files, or user types `/design-critique`
|
|
@@ -177,7 +173,23 @@ Spawn **4 independent critic subagents**, each in its own fresh context.
|
|
|
177
173
|
- 7-8: Thoughtful, polished, some moments of delight
|
|
178
174
|
- 9-10: Exceptional, memorable, raises the bar
|
|
179
175
|
|
|
180
|
-
**
|
|
176
|
+
**CRITICAL CONSTRAINTS for Critic D:**
|
|
177
|
+
|
|
178
|
+
❌ **NEVER suggest:**
|
|
179
|
+
- Adding colored borders to cards/containers
|
|
180
|
+
- Adding celebratory banners, success messages, or alerts
|
|
181
|
+
- Adding badges, icons, or emojis not in the original
|
|
182
|
+
- Removing contextual labels or units from numbers
|
|
183
|
+
- "Enhancing" visual hierarchy with extra decoration
|
|
184
|
+
|
|
185
|
+
✅ **DO suggest:**
|
|
186
|
+
- Better use of existing spacing/typography tokens
|
|
187
|
+
- Reordering content for clarity
|
|
188
|
+
- Simplifying complex patterns
|
|
189
|
+
- Using existing components more effectively
|
|
190
|
+
- Improving copy clarity
|
|
191
|
+
|
|
192
|
+
**Important:** Critic D does NOT change the blind score. This is direction for the next loop, but suggestions must be conservative and preserve the existing design structure.
|
|
181
193
|
|
|
182
194
|
**Deliverables:**
|
|
183
195
|
- Reach score (0-10)
|