@lamjingxuan/designverse-harness 0.0.0-stage → 1.0.0
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/.claude/settings.local.json +9 -0
- package/.claude-plugin/plugin.json +20 -0
- package/LICENSE +21 -0
- package/README.md +593 -2
- package/designverse-harness-1.0.1.tgz +0 -0
- package/docs/CLEANUP-SUMMARY.md +124 -0
- package/docs/HOW-IT-WORKS.md +854 -0
- package/docs/MARKETPLACE-SUBMISSION.md +366 -0
- package/docs/MIGRATION.md +246 -0
- package/docs/PLUGIN-SETUP.md +956 -0
- package/docs/PROBLEMS-SOLVED.md +662 -0
- package/docs/PUBLISHING.md +546 -0
- package/docs/README.md +83 -0
- package/docs/TEST-REPORT.md +289 -0
- package/hooks/README.md +321 -0
- package/hooks/pre-commit.sh +187 -0
- package/integrations/skill-detector.js +90 -0
- package/orchestrator/index.js +234 -0
- package/package.json +36 -4
- package/scripts/install.js +173 -0
- package/skills/design-execute/SKILL.md +423 -0
- package/skills/design-ideate/SKILL.md +400 -0
- package/skills/design-iterate/SKILL.md +425 -0
- package/skills/design-plan/SKILL.md +437 -0
- package/skills/design-review/SKILL.md +484 -0
- package/skills/design-setup/SKILL.md +455 -0
- package/skills/project-context/SKILL.md +274 -0
- package/templates/CLAUDE.md.tmpl +148 -0
- package/templates/DESIGN.md.tmpl +299 -0
- package/templates/MDDI-PRINCIPLES.md +135 -0
- package/templates/design-system/component-library.html +1163 -0
- package/templates/design-system/components.css +470 -0
- package/templates/design-system/design-tokens.json +377 -0
- package/templates/design-system/tokens.css +129 -0
- package/test-output/test-button.html +21 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "designverse-harness",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"displayName": "Designverse Harness",
|
|
5
|
+
"description": "MDDI design workflow orchestrator - from setup to critique",
|
|
6
|
+
"repository": "https://github.com/lamjingxuan/MDDI-Designverse",
|
|
7
|
+
"skills": [
|
|
8
|
+
"./skills/project-context",
|
|
9
|
+
"./skills/design-setup",
|
|
10
|
+
"./skills/design-plan",
|
|
11
|
+
"./skills/design-ideate",
|
|
12
|
+
"./skills/design-execute",
|
|
13
|
+
"./skills/design-review",
|
|
14
|
+
"./skills/design-iterate"
|
|
15
|
+
],
|
|
16
|
+
"author": {
|
|
17
|
+
"name": "Lam Jing Xuan",
|
|
18
|
+
"url": "https://github.com/lamjingxuan"
|
|
19
|
+
}
|
|
20
|
+
}
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 MDDI Design Team
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,594 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Designverse Harness
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**MDDI design workflow orchestrator** - from setup to critique
|
|
4
|
+
|
|
5
|
+
An intelligent AI harness that guides you through the complete design process: project setup, design system configuration, planning, ideation, execution, and quality review with automatic git integration.
|
|
6
|
+
|
|
7
|
+
[](https://www.npmjs.com/package/@mddidesign/designverse-harness)
|
|
8
|
+
[](https://opensource.org/licenses/MIT)
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## Features
|
|
13
|
+
|
|
14
|
+
- **Invisible Orchestration** - Just describe what you want, it routes you automatically
|
|
15
|
+
- **shadcn/ui Design System** - 40+ components with light/dark mode
|
|
16
|
+
- **4-Critic Review Panel** - Blind evaluation across craft, UX, tokens, and opportunities
|
|
17
|
+
- **Auto-Fix Iteration** - Automatically fixes common issues (colors, contrast, banned chars)
|
|
18
|
+
- **Git Integration** - Pre-commit hook runs design review automatically
|
|
19
|
+
- **MCQ Workflows** - Guided setup through multiple-choice questions
|
|
20
|
+
- **Smart Dependencies** - Auto-installs required skills, detects optional enhancements
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## What It Does
|
|
25
|
+
|
|
26
|
+
Designverse Harness orchestrates your design workflow with **7 skills**:
|
|
27
|
+
|
|
28
|
+
| Skill | Purpose | When It Runs |
|
|
29
|
+
|-------|---------|--------------|
|
|
30
|
+
| **Project Context** | Set up CLAUDE.md and DESIGN.md via 6 MCQ questions | First time, or `/project-context` |
|
|
31
|
+
| **Design Setup** | Configure design system (shadcn-based) with brand | Missing design-system/, or `/design-setup` |
|
|
32
|
+
| **Design Plan** | Guide PRD creation, check alignment with decisions | Before building, or `/design-plan` |
|
|
33
|
+
| **Design Ideate** | Generate 3 divergent design directions | Optional exploration, or `/design-ideate` |
|
|
34
|
+
| **Design Execute** | Build UI with design system tokens | Build intent, or `/design-execute` |
|
|
35
|
+
| **Design Review** | 4-critic blind panel (craft, UX, tokens, opportunity) | On commit, or `/design-review` |
|
|
36
|
+
| **Design Iterate** | Auto-fix + guided improvements based on review | After review, or `/design-iterate` |
|
|
37
|
+
|
|
38
|
+
**The orchestrator listens invisibly** - just describe what you want to build, and it routes you to the right skill automatically.
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
## Installation
|
|
43
|
+
|
|
44
|
+
### Via npm (Recommended)
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
# Step 1: Install the package
|
|
48
|
+
npm install -g designverse-harness
|
|
49
|
+
|
|
50
|
+
# Step 2: Register with Claude Code
|
|
51
|
+
claude plugin install $(npm root -g)/designverse-harness
|
|
52
|
+
|
|
53
|
+
# Step 3: (Optional) Install dependency skills
|
|
54
|
+
npx skills add arnabbagxd/brand-building-skills
|
|
55
|
+
npx skills add mattpocock/skills --skill=grilling
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### Verify Installation
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
# Check skills available
|
|
62
|
+
claude skill list | grep -E "project-context|design-"
|
|
63
|
+
|
|
64
|
+
# Should see all 7 skills:
|
|
65
|
+
# - project-context
|
|
66
|
+
# - design-setup
|
|
67
|
+
# - design-plan
|
|
68
|
+
# - design-ideate
|
|
69
|
+
# - design-execute
|
|
70
|
+
# - design-review
|
|
71
|
+
# - design-iterate
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### Usage
|
|
75
|
+
|
|
76
|
+
**Automatic mode** (orchestrator routes you):
|
|
77
|
+
```
|
|
78
|
+
"I want to build a dashboard"
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
**Direct mode** (use slash commands):
|
|
82
|
+
```bash
|
|
83
|
+
/project-context # Set up project
|
|
84
|
+
/design-setup # Configure design system
|
|
85
|
+
/design-plan # Create PRD
|
|
86
|
+
/design-ideate # Generate 3 directions
|
|
87
|
+
/design-execute # Build UI
|
|
88
|
+
/design-review # Run 4-critic review
|
|
89
|
+
/design-iterate # Fix and improve
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
---
|
|
93
|
+
|
|
94
|
+
## Requirements
|
|
95
|
+
|
|
96
|
+
- **Node.js** 18.0.0 or higher
|
|
97
|
+
- **Claude Code** CLI or IDE extension
|
|
98
|
+
- **Git** (for pre-commit hook integration)
|
|
99
|
+
- SSH keys configured (for commit signing, if required by your repo)
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
## Quick Start
|
|
104
|
+
|
|
105
|
+
### 1. Automatic Mode (Invisible Routing)
|
|
106
|
+
|
|
107
|
+
Just describe what you want to build - the orchestrator detects your intent and routes you automatically:
|
|
108
|
+
|
|
109
|
+
```plaintext
|
|
110
|
+
You: "I want to build a campaign planning dashboard"
|
|
111
|
+
|
|
112
|
+
Harness: [Detects missing CLAUDE.md]
|
|
113
|
+
"Let me help you set up the project first."
|
|
114
|
+
[Asks 6 MCQ questions about your product]
|
|
115
|
+
|
|
116
|
+
You: [Answers questions: SaaS app, marketing managers, etc.]
|
|
117
|
+
|
|
118
|
+
Harness: Generated CLAUDE.md and DESIGN.md
|
|
119
|
+
"Now let's set up your design system."
|
|
120
|
+
[Asks 4 brand questions]
|
|
121
|
+
|
|
122
|
+
You: [Choose: Professional, Blue/neutral palette, Inter font]
|
|
123
|
+
|
|
124
|
+
Harness: Customized shadcn design system with your brand
|
|
125
|
+
"Let's plan what you're building."
|
|
126
|
+
[Guides PRD creation, optional grilling]
|
|
127
|
+
|
|
128
|
+
You: "I'm ready to build"
|
|
129
|
+
|
|
130
|
+
Harness: "Would you like to explore 3 design directions first?"
|
|
131
|
+
|
|
132
|
+
You: "Yes"
|
|
133
|
+
|
|
134
|
+
Harness: [Generates 3 HTML mockups: Direction 1 (wizard),
|
|
135
|
+
Direction 2 (single page), Direction 3 (dashboard)]
|
|
136
|
+
|
|
137
|
+
Scores: 8.2, 8.7, 7.5
|
|
138
|
+
Recommends: Direction 2
|
|
139
|
+
|
|
140
|
+
You: "Let's go with Direction 2"
|
|
141
|
+
|
|
142
|
+
Harness: [Builds production-quality HTML/CSS]
|
|
143
|
+
prototypes/campaign-planner/input-form.html
|
|
144
|
+
|
|
145
|
+
Uses: .btn, .input, .card, CSS variables
|
|
146
|
+
Accessibility: WCAG AA compliant
|
|
147
|
+
|
|
148
|
+
You: git add prototypes/ && git commit -m "Add campaign planner"
|
|
149
|
+
|
|
150
|
+
Harness: [Pre-commit hook runs automatically]
|
|
151
|
+
|
|
152
|
+
Running 4-critic design review...
|
|
153
|
+
|
|
154
|
+
Critic A (Craft): 8.5/10
|
|
155
|
+
Critic B (UX): 8.8/10
|
|
156
|
+
Critic C (Tokens): 9.0/10
|
|
157
|
+
Critic D (Opportunity): [2 suggestions]
|
|
158
|
+
|
|
159
|
+
Final Score: 8.7/10
|
|
160
|
+
Hard Gates: 5/5 passing
|
|
161
|
+
|
|
162
|
+
Review passed! Proceeding with commit...
|
|
163
|
+
|
|
164
|
+
[Commit succeeds]
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
### 2. Direct Mode (Power Users)
|
|
168
|
+
|
|
169
|
+
Skip steps or run specific skills directly:
|
|
170
|
+
|
|
171
|
+
```bash
|
|
172
|
+
# Run skills individually
|
|
173
|
+
/project-context # Set up project context
|
|
174
|
+
/design-setup # Configure design system
|
|
175
|
+
/design-plan # Create PRD (with optional grilling)
|
|
176
|
+
/design-ideate # Generate 3 design directions
|
|
177
|
+
/design-execute # Build the UI
|
|
178
|
+
/design-review # Run 4-critic review manually
|
|
179
|
+
/design-iterate # Fix issues from review
|
|
180
|
+
|
|
181
|
+
# Or just describe intent
|
|
182
|
+
"setup my project" → routes to /project-context
|
|
183
|
+
"build a login page" → routes to /design-execute
|
|
184
|
+
"review this design" → routes to /design-review
|
|
185
|
+
"improve the issues" → routes to /design-iterate
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
### 3. Git Integration
|
|
189
|
+
|
|
190
|
+
The pre-commit hook automatically reviews your designs on commit:
|
|
191
|
+
|
|
192
|
+
```bash
|
|
193
|
+
# Make changes
|
|
194
|
+
vim prototypes/dashboard/overview.html
|
|
195
|
+
|
|
196
|
+
# Stage and commit
|
|
197
|
+
git add prototypes/
|
|
198
|
+
git commit -m "Add dashboard overview"
|
|
199
|
+
|
|
200
|
+
# Hook triggers automatically:
|
|
201
|
+
# ✓ Checks 5 hard gates (contrast, targets, banned chars, etc.)
|
|
202
|
+
# ✓ Runs 4-critic review
|
|
203
|
+
# ✓ Blocks commit if score < 8.0 or gates fail
|
|
204
|
+
# ✓ Shows actionable feedback
|
|
205
|
+
|
|
206
|
+
# If blocked, iterate:
|
|
207
|
+
/design-iterate
|
|
208
|
+
|
|
209
|
+
# Re-commit when ready
|
|
210
|
+
git commit -m "Add dashboard overview"
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
---
|
|
214
|
+
|
|
215
|
+
## Architecture
|
|
216
|
+
|
|
217
|
+
```
|
|
218
|
+
designverse-harness/
|
|
219
|
+
├── orchestrator/ # Invisible router (auto-detects intent)
|
|
220
|
+
├── skills/ # 7 workflow skills
|
|
221
|
+
│ ├── project-context/ # CLAUDE.md + DESIGN.md setup
|
|
222
|
+
│ ├── design-setup/ # Design system configuration
|
|
223
|
+
│ ├── design-plan/ # PRD guidance + grilling
|
|
224
|
+
│ ├── design-ideate/ # 3-direction exploration
|
|
225
|
+
│ ├── design-execute/ # UI building
|
|
226
|
+
│ ├── design-review/ # 4-critic blind panel
|
|
227
|
+
│ └── design-iterate/ # Improvement loop
|
|
228
|
+
├── templates/ # File templates (generated on-demand)
|
|
229
|
+
│ ├── CLAUDE.md.tmpl
|
|
230
|
+
│ ├── DESIGN.md.tmpl
|
|
231
|
+
│ └── design-system/
|
|
232
|
+
│ ├── tokens.css
|
|
233
|
+
│ ├── design-tokens.json
|
|
234
|
+
│ ├── components.css
|
|
235
|
+
│ └── component-library.html
|
|
236
|
+
├── integrations/ # Optional skill detection
|
|
237
|
+
└── scripts/ # Installation helpers
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
---
|
|
241
|
+
|
|
242
|
+
## What Gets Generated
|
|
243
|
+
|
|
244
|
+
When you use the harness, it creates these files **in your project**:
|
|
245
|
+
|
|
246
|
+
```
|
|
247
|
+
your-project/
|
|
248
|
+
├── CLAUDE.md # Project context and goals
|
|
249
|
+
├── DESIGN.md # Design principles and Always/Never rules
|
|
250
|
+
├── design-system/
|
|
251
|
+
│ ├── tokens.css # CSS variables (customized shadcn Slate theme)
|
|
252
|
+
│ ├── design-tokens.json # Machine-readable token hierarchy
|
|
253
|
+
│ ├── components.css # 40+ component styles (@apply patterns)
|
|
254
|
+
│ └── component-library.html # Visual reference with all variants
|
|
255
|
+
├── docs/
|
|
256
|
+
│ └── prd/
|
|
257
|
+
│ └── [feature]-prd.md # PRDs with grilling feedback
|
|
258
|
+
├── decisions/ # Design decisions (if tracked)
|
|
259
|
+
├── prototypes/
|
|
260
|
+
│ ├── ideation/
|
|
261
|
+
│ │ └── [feature]-direction-N.html # 3 explorations from ideate
|
|
262
|
+
│ └── [feature]/
|
|
263
|
+
│ └── [screen].html # Production prototypes
|
|
264
|
+
└── .claude/
|
|
265
|
+
└── scorecards/
|
|
266
|
+
└── [timestamp]-scorecard.md # Design review results
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
### File Descriptions
|
|
270
|
+
|
|
271
|
+
| File | Purpose | Generated By |
|
|
272
|
+
|------|---------|--------------|
|
|
273
|
+
| `CLAUDE.md` | Project context, users, constraints | `/project-context` |
|
|
274
|
+
| `DESIGN.md` | Design principles, brand, Always/Never rules | `/project-context`, `/design-setup` |
|
|
275
|
+
| `design-system/` | Complete shadcn-based design system | `/design-setup` |
|
|
276
|
+
| `docs/prd/*.md` | Feature requirements with grilling | `/design-plan` |
|
|
277
|
+
| `prototypes/ideation/` | 3 design directions (scored) | `/design-ideate` |
|
|
278
|
+
| `prototypes/[feature]/` | Production HTML/CSS prototypes | `/design-execute` |
|
|
279
|
+
| `.claude/scorecards/` | 4-critic review results | `/design-review` |
|
|
280
|
+
|
|
281
|
+
---
|
|
282
|
+
|
|
283
|
+
## Dependencies
|
|
284
|
+
|
|
285
|
+
### Required (Auto-Installed)
|
|
286
|
+
|
|
287
|
+
The install script automatically sets up:
|
|
288
|
+
|
|
289
|
+
- **brand-building-skills** (arnabbagxd) - Brand discovery MCQs for `/design-setup`
|
|
290
|
+
- **grilling** (mattpocock) - Adversarial PRD review for `/design-plan`
|
|
291
|
+
|
|
292
|
+
### Optional (Detected & Enhanced)
|
|
293
|
+
|
|
294
|
+
Install these for enhanced capabilities:
|
|
295
|
+
|
|
296
|
+
```bash
|
|
297
|
+
npm install -g @impeccable/skills # Layout optimization and polish
|
|
298
|
+
npx skills add jakubkrehel/skills # Additional design enhancements
|
|
299
|
+
```
|
|
300
|
+
|
|
301
|
+
**Smart Detection:** The harness uses `skill-detector.js` to check if these are installed. If available, they enhance the output. If not, it works with graceful fallbacks.
|
|
302
|
+
|
|
303
|
+
### What Each Does
|
|
304
|
+
|
|
305
|
+
| Skill | Used In | Enhances |
|
|
306
|
+
|-------|---------|----------|
|
|
307
|
+
| `brand-building-skills` | `/design-setup` | Guided brand discovery |
|
|
308
|
+
| `grilling` | `/design-plan` | Adversarial PRD review |
|
|
309
|
+
| `@impeccable/skills` | `/design-execute` | Layout optimization |
|
|
310
|
+
| `jakubkrehel/skills` | `/design-execute` | Design polish |
|
|
311
|
+
|
|
312
|
+
---
|
|
313
|
+
|
|
314
|
+
## Pre-Commit Hook
|
|
315
|
+
|
|
316
|
+
The harness automatically installs a git pre-commit hook that:
|
|
317
|
+
|
|
318
|
+
1. **Detects design file commits** (HTML, CSS, JS, JSX, TSX, TS)
|
|
319
|
+
2. **Runs `/design-review` automatically**
|
|
320
|
+
3. **Checks 5 hard gates:**
|
|
321
|
+
- Text contrast fails WCAG AA (< 4.5:1)
|
|
322
|
+
- Interactive targets < 44px
|
|
323
|
+
- Banned characters (curly quotes, em dashes, ellipsis)
|
|
324
|
+
- Byte-identical light/dark modes
|
|
325
|
+
- Placeholder copy (Lorem ipsum, TODO, TBD)
|
|
326
|
+
4. **Blocks commit** if score < 8.0 or any hard gate fails
|
|
327
|
+
5. **Shows actionable feedback** with fix suggestions
|
|
328
|
+
|
|
329
|
+
### Usage
|
|
330
|
+
|
|
331
|
+
```bash
|
|
332
|
+
# Normal workflow - hook runs automatically
|
|
333
|
+
git add prototypes/dashboard.html
|
|
334
|
+
git commit -m "Add dashboard"
|
|
335
|
+
|
|
336
|
+
# If review fails:
|
|
337
|
+
/design-iterate # Auto-fix issues
|
|
338
|
+
git commit -m "Add dashboard" # Try again
|
|
339
|
+
|
|
340
|
+
# Bypass hook (not recommended)
|
|
341
|
+
git commit --no-verify -m "WIP: skip review"
|
|
342
|
+
```
|
|
343
|
+
|
|
344
|
+
### Documentation
|
|
345
|
+
|
|
346
|
+
Full hook documentation: [`hooks/README.md`](hooks/README.md)
|
|
347
|
+
|
|
348
|
+
---
|
|
349
|
+
|
|
350
|
+
## Design System (shadcn/ui)
|
|
351
|
+
|
|
352
|
+
The harness uses **shadcn/ui** as the base design system with the **Slate theme**:
|
|
353
|
+
|
|
354
|
+
- **40+ components** - Button, Input, Card, Badge, Table, Dialog, Tabs, etc.
|
|
355
|
+
- **CSS Variables** - HSL format, semantic naming (`--primary`, `--background`)
|
|
356
|
+
- **Light & Dark Mode** - Automatic switching via `.dark` class
|
|
357
|
+
- **Customizable** - `/design-setup` tweaks colors and typography for your brand
|
|
358
|
+
- **Accessible** - WCAG AA compliant by default
|
|
359
|
+
|
|
360
|
+
### Example Component Usage
|
|
361
|
+
|
|
362
|
+
```html
|
|
363
|
+
<!DOCTYPE html>
|
|
364
|
+
<html lang="en">
|
|
365
|
+
<head>
|
|
366
|
+
<link rel="stylesheet" href="design-system/tokens.css">
|
|
367
|
+
<link rel="stylesheet" href="design-system/components.css">
|
|
368
|
+
</head>
|
|
369
|
+
<body class="bg-background text-foreground">
|
|
370
|
+
|
|
371
|
+
<button class="btn btn-primary">Primary Action</button>
|
|
372
|
+
|
|
373
|
+
<div class="card p-6">
|
|
374
|
+
<h2 class="text-xl font-bold mb-4">Card Title</h2>
|
|
375
|
+
<p class="text-muted-foreground">Card content</p>
|
|
376
|
+
</div>
|
|
377
|
+
|
|
378
|
+
<input type="text" class="input" placeholder="Enter text">
|
|
379
|
+
|
|
380
|
+
</body>
|
|
381
|
+
</html>
|
|
382
|
+
```
|
|
383
|
+
|
|
384
|
+
Components are fully documented in `design-system/component-library.html`.
|
|
385
|
+
|
|
386
|
+
---
|
|
387
|
+
|
|
388
|
+
## Design Review (4-Critic Panel)
|
|
389
|
+
|
|
390
|
+
The design review uses a **blind panel** approach - 4 critics evaluate independently:
|
|
391
|
+
|
|
392
|
+
| Critic | Focus | Weight | What They Check |
|
|
393
|
+
|--------|-------|--------|-----------------|
|
|
394
|
+
| **Critic A** | Craft & Brand | 35% | Visual consistency, brand alignment, polish |
|
|
395
|
+
| **Critic B** | UX & Accessibility | 40% | Usability, WCAG compliance, interaction patterns |
|
|
396
|
+
| **Critic C** | Tokens & Code | 25% | Design system usage, hardcoded values, technical quality |
|
|
397
|
+
| **Critic D** | Opportunity | Not scored | Generative suggestions, "what if" ideas |
|
|
398
|
+
|
|
399
|
+
### Scoring
|
|
400
|
+
|
|
401
|
+
- **0-5:** Fails basic requirements
|
|
402
|
+
- **6-7:** Functional but needs polish
|
|
403
|
+
- **8-9:** Would ship as-is
|
|
404
|
+
- **10:** Exceptional, reference-quality
|
|
405
|
+
|
|
406
|
+
**Target:** 8.0+ to pass pre-commit hook
|
|
407
|
+
|
|
408
|
+
### Hard Gates (Blocking)
|
|
409
|
+
|
|
410
|
+
These MUST pass for commit to proceed:
|
|
411
|
+
1. Text contrast ≥ 4.5:1 (WCAG AA)
|
|
412
|
+
2. Interactive targets ≥ 44px
|
|
413
|
+
3. No banned characters in copy
|
|
414
|
+
4. Light/dark modes are different (not byte-identical)
|
|
415
|
+
5. No placeholder copy
|
|
416
|
+
|
|
417
|
+
---
|
|
418
|
+
|
|
419
|
+
## Iteration Loop
|
|
420
|
+
|
|
421
|
+
After review, `/design-iterate` automatically:
|
|
422
|
+
|
|
423
|
+
1. **Categorizes issues** - Auto-fixable vs. guided vs. manual
|
|
424
|
+
2. **Auto-fixes:**
|
|
425
|
+
- Hardcoded colors → CSS variables
|
|
426
|
+
- Banned characters → Allowed alternatives
|
|
427
|
+
- Missing alt text → Descriptive alt
|
|
428
|
+
3. **Guides manual fixes:**
|
|
429
|
+
- Contrast issues → Shows passing color options
|
|
430
|
+
- Missing content → Asks user for real text
|
|
431
|
+
4. **Re-runs review** - Checks improvements
|
|
432
|
+
5. **Loops until pass** - Max 5 iterations per run
|
|
433
|
+
|
|
434
|
+
### Example Flow
|
|
435
|
+
|
|
436
|
+
```bash
|
|
437
|
+
# First review
|
|
438
|
+
Score: 6.2/10
|
|
439
|
+
Hard gates: 3/5 failing
|
|
440
|
+
|
|
441
|
+
# Iterate
|
|
442
|
+
/design-iterate
|
|
443
|
+
Fixed 12 hardcoded colors
|
|
444
|
+
Fixed 3 banned characters
|
|
445
|
+
Contrast issue: Choose fix [1/2/3]
|
|
446
|
+
You: 1
|
|
447
|
+
Applied
|
|
448
|
+
|
|
449
|
+
# Re-review
|
|
450
|
+
Score: 7.8/10
|
|
451
|
+
Hard gates: 5/5 passing
|
|
452
|
+
|
|
453
|
+
# Iterate again
|
|
454
|
+
/design-iterate
|
|
455
|
+
Added focus indicators
|
|
456
|
+
Manual: 2 alignment issues
|
|
457
|
+
|
|
458
|
+
# User fixes manually, iterates
|
|
459
|
+
/design-iterate
|
|
460
|
+
Score: 8.3/10 PASSED
|
|
461
|
+
```
|
|
462
|
+
|
|
463
|
+
---
|
|
464
|
+
|
|
465
|
+
## Development
|
|
466
|
+
|
|
467
|
+
### Local Setup
|
|
468
|
+
|
|
469
|
+
```bash
|
|
470
|
+
# Clone repo
|
|
471
|
+
git clone https://github.com/YOUR_USERNAME/designverse-harness.git
|
|
472
|
+
cd design-repo
|
|
473
|
+
|
|
474
|
+
# Install dependencies
|
|
475
|
+
npm install
|
|
476
|
+
|
|
477
|
+
# Link for local testing
|
|
478
|
+
npm link
|
|
479
|
+
|
|
480
|
+
# Test in a project
|
|
481
|
+
cd ~/test-project
|
|
482
|
+
/plugin install designverse-harness # or use linked version
|
|
483
|
+
```
|
|
484
|
+
|
|
485
|
+
### Project Structure
|
|
486
|
+
|
|
487
|
+
```
|
|
488
|
+
designverse-harness/
|
|
489
|
+
├── orchestrator/
|
|
490
|
+
│ └── index.js # Invisible router (intent detection)
|
|
491
|
+
├── skills/
|
|
492
|
+
│ ├── project-context/ # MCQ setup workflow
|
|
493
|
+
│ ├── design-setup/ # Brand customization
|
|
494
|
+
│ ├── design-plan/ # PRD guidance + grilling
|
|
495
|
+
│ ├── design-ideate/ # 3-direction exploration
|
|
496
|
+
│ ├── design-execute/ # UI building
|
|
497
|
+
│ ├── design-review/ # 4-critic blind panel
|
|
498
|
+
│ └── design-iterate/ # Auto-fix + iteration loop
|
|
499
|
+
├── templates/
|
|
500
|
+
│ ├── CLAUDE.md.tmpl # Project context template
|
|
501
|
+
│ ├── DESIGN.md.tmpl # Design guidelines template
|
|
502
|
+
│ └── design-system/ # shadcn Slate theme
|
|
503
|
+
│ ├── tokens.css
|
|
504
|
+
│ ├── components.css
|
|
505
|
+
│ ├── design-tokens.json
|
|
506
|
+
│ └── component-library.html
|
|
507
|
+
├── hooks/
|
|
508
|
+
│ ├── pre-commit.sh # Git hook for auto-review
|
|
509
|
+
│ └── README.md # Hook documentation
|
|
510
|
+
├── integrations/
|
|
511
|
+
│ └── skill-detector.js # Optional skill detection
|
|
512
|
+
├── scripts/
|
|
513
|
+
│ └── install.js # Post-install setup
|
|
514
|
+
├── package.json # npm manifest
|
|
515
|
+
└── plugin.json # Claude plugin manifest
|
|
516
|
+
```
|
|
517
|
+
|
|
518
|
+
### Testing
|
|
519
|
+
|
|
520
|
+
Run the test suite:
|
|
521
|
+
|
|
522
|
+
```bash
|
|
523
|
+
# Create test prototype
|
|
524
|
+
mkdir -p test-output
|
|
525
|
+
cat > test-output/test.html << 'EOF'
|
|
526
|
+
<!DOCTYPE html>
|
|
527
|
+
<html lang="en">
|
|
528
|
+
<head>
|
|
529
|
+
<link rel="stylesheet" href="../templates/design-system/tokens.css">
|
|
530
|
+
<link rel="stylesheet" href="../templates/design-system/components.css">
|
|
531
|
+
</head>
|
|
532
|
+
<body class="bg-background text-foreground p-8">
|
|
533
|
+
<button class="btn btn-primary">Test</button>
|
|
534
|
+
</body>
|
|
535
|
+
</html>
|
|
536
|
+
EOF
|
|
537
|
+
|
|
538
|
+
# Test review
|
|
539
|
+
/design-review
|
|
540
|
+
|
|
541
|
+
# Check scorecard
|
|
542
|
+
cat .claude/scorecards/latest.md
|
|
543
|
+
```
|
|
544
|
+
|
|
545
|
+
See [`TEST-REPORT.md`](TEST-REPORT.md) for full test coverage.
|
|
546
|
+
|
|
547
|
+
---
|
|
548
|
+
|
|
549
|
+
## License
|
|
550
|
+
|
|
551
|
+
MIT License
|
|
552
|
+
|
|
553
|
+
Copyright (c) 2026 MDDI Design Team
|
|
554
|
+
|
|
555
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
556
|
+
|
|
557
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
558
|
+
|
|
559
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
560
|
+
|
|
561
|
+
---
|
|
562
|
+
|
|
563
|
+
## Documentation
|
|
564
|
+
|
|
565
|
+
- **[How It Works](docs/HOW-IT-WORKS.md)** - Architecture deep dive
|
|
566
|
+
- **[Plugin Setup](docs/PLUGIN-SETUP.md)** - Installation and config
|
|
567
|
+
- **[Problems Solved](docs/PROBLEMS-SOLVED.md)** - 10 problems addressed
|
|
568
|
+
- **[Publishing Guide](docs/PUBLISHING.md)** - npm and marketplace
|
|
569
|
+
- **[Test Report](docs/TEST-REPORT.md)** - Test coverage
|
|
570
|
+
- **[Hook Guide](hooks/README.md)** - Pre-commit hook docs
|
|
571
|
+
- **[All Documentation](docs/)** - Complete docs index
|
|
572
|
+
|
|
573
|
+
## Support
|
|
574
|
+
|
|
575
|
+
- **Issues:** https://github.com/mddidesign/designverse-harness/issues
|
|
576
|
+
- **Documentation:** [`docs/`](docs/)
|
|
577
|
+
- **Skills:** Individual skill files in [`skills/`](skills/)
|
|
578
|
+
|
|
579
|
+
---
|
|
580
|
+
|
|
581
|
+
## Roadmap
|
|
582
|
+
|
|
583
|
+
- Figma import support (Path A)
|
|
584
|
+
- Additional design system themes (Material, Tailwind UI)
|
|
585
|
+
- VS Code extension
|
|
586
|
+
- Collaborative review mode
|
|
587
|
+
- Design token sync with Figma Variables
|
|
588
|
+
- Animation/motion review criteria
|
|
589
|
+
|
|
590
|
+
---
|
|
591
|
+
|
|
592
|
+
**Built by MDDI Design Team**
|
|
593
|
+
|
|
594
|
+
*Powered by Claude Code and shadcn/ui*
|
|
Binary file
|