@dedesfr/prompter 0.8.11 → 0.8.13
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/CHANGELOG.md +11 -0
- package/dist/cli/index.js +1 -1
- package/package.json +2 -2
- package/skills/ui-ux-pro-v2/SKILL.md +113 -258
- package/src/cli/index.ts +1 -1
- package/skills/mcp-builder copy/LICENSE.txt +0 -202
- package/skills/mcp-builder copy/SKILL.md +0 -236
- package/skills/mcp-builder copy/reference/evaluation.md +0 -602
- package/skills/mcp-builder copy/reference/mcp_best_practices.md +0 -249
- package/skills/mcp-builder copy/reference/node_mcp_server.md +0 -970
- package/skills/mcp-builder copy/reference/python_mcp_server.md +0 -719
- package/skills/mcp-builder copy/scripts/connections.py +0 -151
- package/skills/mcp-builder copy/scripts/evaluation.py +0 -373
- package/skills/mcp-builder copy/scripts/example_evaluation.xml +0 -22
- package/skills/mcp-builder copy/scripts/requirements.txt +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## [0.8.12] - 2026-04-22
|
|
4
|
+
|
|
5
|
+
### 🔄 Changed
|
|
6
|
+
- **ui-ux-pro-v2 Skill**: Refactored and streamlined workflow for better clarity
|
|
7
|
+
- Simplified multi-step process into concise, actionable implementation stages
|
|
8
|
+
- Improved guidance for "Mock vs. Edit" decisions and browser verification
|
|
9
|
+
- Condensed design principles and iteration rules for faster execution
|
|
10
|
+
|
|
11
|
+
### 🗑️ Removed
|
|
12
|
+
- **Redundant Skill Directory**: Deleted accidental `mcp-builder copy/` folder and its contents
|
|
13
|
+
|
|
3
14
|
## [0.8.11] - 2026-04-22
|
|
4
15
|
|
|
5
16
|
### ✨ Added
|
package/dist/cli/index.js
CHANGED
|
@@ -16,7 +16,7 @@ const program = new Command();
|
|
|
16
16
|
program
|
|
17
17
|
.name('prompter')
|
|
18
18
|
.description('Enhance prompts directly in your AI coding workflow')
|
|
19
|
-
.version('0.8.
|
|
19
|
+
.version('0.8.13');
|
|
20
20
|
program
|
|
21
21
|
.command('init')
|
|
22
22
|
.description('Initialize Prompter in your project')
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dedesfr/prompter",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.13",
|
|
4
4
|
"description": "Enhance prompts directly in your AI coding workflow",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -51,4 +51,4 @@
|
|
|
51
51
|
"typescript": "^5.7.3",
|
|
52
52
|
"vitest": "^2.1.8"
|
|
53
53
|
}
|
|
54
|
-
}
|
|
54
|
+
}
|
|
@@ -1,339 +1,194 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: ui-ux-pro-v2
|
|
3
|
-
description: Design and revise UI/UX like a senior designer. Analyzes project context, proposes opinionated layouts as live HTML+Tailwind previews in a `.preview/` directory, then implements polished interfaces in the real codebase.
|
|
3
|
+
description: Design and revise UI/UX like a senior designer. Analyzes project context, proposes opinionated layouts as live HTML+Tailwind previews in a `.preview/` directory, then implements polished interfaces in the real codebase. TRIGGER on new pages, redesigns, design audits, or component design where layout/hierarchy is in question. SKIP for small tweaks (color, spacing, copy, one-line CSS fixes), bug fixes to an already-approved layout, or backend/logic work — edit real code directly instead.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# UI UX Pro v2
|
|
7
7
|
|
|
8
|
-
Act as a senior UI/UX designer. Make opinionated design decisions based on project context. Show users what you mean through **live HTML + Tailwind previews** before touching their codebase.
|
|
8
|
+
Act as a senior UI/UX designer. Make opinionated design decisions based on project context. Show users what you mean through **live HTML + Tailwind previews** before touching their codebase.
|
|
9
9
|
|
|
10
10
|
---
|
|
11
11
|
|
|
12
|
-
##
|
|
12
|
+
## Critical Rules (Read First)
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
The failure modes to internalize — full context lives in the Workflow section below:
|
|
15
|
+
|
|
16
|
+
1. **Diagnose redesigns yourself** — never ask "what feels wrong?" Surface findings, then yield for the user's reply before building.
|
|
17
|
+
2. **Low-fi before high-fi; preview before real code.** No skipping tiers.
|
|
18
|
+
3. **Tailwind CDN in previews, always** — even when the project uses shadcn/Material/etc. Previews stay disposable.
|
|
19
|
+
4. **Section comments required** — every major HTML block gets `<!-- Section: Name -->` so users can give spatial feedback without reading code.
|
|
20
|
+
5. **Default one variant with a stated recommendation.** Offer alternatives only if asked.
|
|
21
|
+
6. **Never auto-delete `.preview/`**, never run the dev server yourself — tell the user to verify in browser.
|
|
22
|
+
7. **Mobile, tablet, desktop from Pass 1.** A layout that breaks on mobile is not done.
|
|
20
23
|
|
|
21
24
|
---
|
|
22
25
|
|
|
23
|
-
##
|
|
26
|
+
## Workflow
|
|
24
27
|
|
|
25
|
-
|
|
28
|
+
`Step 0: Read context → Step 1: Decide mock vs. edit → Step 2: Discovery → Step 3: Low-fi → [approval] → Step 4: High-fi → [approval] → Step 5: Implement → Step 6: Iterate`
|
|
26
29
|
|
|
27
|
-
|
|
28
|
-
2. Detect the CSS system:
|
|
29
|
-
- **Tailwind** (look for `tailwind.config.*`, `@tailwind` directives)
|
|
30
|
-
- **Component library** (shadcn, Radix, Material, Chakra, Mantine, etc.)
|
|
31
|
-
- **Vanilla CSS / CSS modules / CSS-in-JS**
|
|
32
|
-
3. Scan for design tokens: CSS variables, theme files, color palettes, font stacks
|
|
33
|
-
4. Note the frontend framework (React, Vue, Svelte, Next, Laravel Blade, etc.)
|
|
30
|
+
---
|
|
34
31
|
|
|
35
|
-
|
|
32
|
+
## Step 0: Read Project Context (Silent)
|
|
36
33
|
|
|
37
|
-
|
|
34
|
+
Before designing, silently gather — do not ask the user:
|
|
38
35
|
|
|
39
|
-
|
|
36
|
+
- Read `AGENTS.md` and `CLAUDE.md` for tech stack and conventions
|
|
37
|
+
- Detect CSS system: Tailwind, shadcn/Radix/Material/Chakra, vanilla CSS, CSS-in-JS
|
|
38
|
+
- Scan for design tokens: CSS variables, theme files, color palettes, font stacks
|
|
39
|
+
- Note the frontend framework: React, Vue, Svelte, Next, Laravel Blade, etc.
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
---
|
|
42
42
|
|
|
43
|
-
|
|
44
|
-
1. **What is this for?** — Page/feature, audience, goal
|
|
45
|
-
2. **Any references?** — Sites or apps they like the feel of (optional)
|
|
43
|
+
## Step 1: Decide Mock vs. Edit
|
|
46
44
|
|
|
47
|
-
|
|
48
|
-
1. **What feels wrong?** — Specific pain points
|
|
49
|
-
2. **What should stay?** — Elements to preserve
|
|
45
|
+
Before discovery, decide the path. **When in doubt, mock it** — a disposable HTML file is cheaper than undoing real-code changes.
|
|
50
46
|
|
|
51
|
-
###
|
|
52
|
-
|
|
47
|
+
### Build a preview (continue to Step 2):
|
|
48
|
+
- New page or feature
|
|
49
|
+
- Major redesign
|
|
50
|
+
- Multiple directions are plausible
|
|
51
|
+
- User is non-technical and needs to see before reacting
|
|
53
52
|
|
|
54
|
-
###
|
|
55
|
-
-
|
|
56
|
-
-
|
|
57
|
-
-
|
|
53
|
+
### Edit real code directly (skip to Step 5):
|
|
54
|
+
- Small tweak (color, spacing, copy)
|
|
55
|
+
- Fixing a specific bug the user pointed at
|
|
56
|
+
- Adding one element to an already-approved layout
|
|
57
|
+
- Developer user asking for a specific change
|
|
58
58
|
|
|
59
59
|
---
|
|
60
60
|
|
|
61
|
-
## Step 2:
|
|
61
|
+
## Step 2: Discovery
|
|
62
|
+
|
|
63
|
+
### New designs
|
|
64
|
+
Ask one combined question: *"What is this for — page/feature, audience, and goal? Any vibe or reference is optional."* Proceed regardless of whether they give a vibe.
|
|
65
|
+
|
|
66
|
+
### Redesigns and audits
|
|
67
|
+
Do NOT ask open-ended questions. Most users cannot articulate design problems.
|
|
68
|
+
|
|
69
|
+
1. Silently analyze the existing page — read the code or screenshot
|
|
70
|
+
2. Present a short diagnostic (3–4 bullets, plain language):
|
|
71
|
+
```
|
|
72
|
+
Here's what I noticed:
|
|
73
|
+
- Weak hierarchy — CTA competes with secondary content
|
|
74
|
+
- Inconsistent spacing — no clear scale
|
|
75
|
+
- Low contrast on the action button (likely fails WCAG AA)
|
|
76
|
+
- Font sizes too uniform — headlines don't feel distinct
|
|
77
|
+
```
|
|
78
|
+
3. Ask: *"Anything to keep, or a vibe/reference in mind? Say go and I'll start the low-fi."*
|
|
79
|
+
4. **Yield to the user here.** End your turn after the diagnostic + question. Do not continue into preview construction in the same turn.
|
|
80
|
+
|
|
81
|
+
### Never ask:
|
|
82
|
+
- "What feels wrong?" — diagnose it yourself
|
|
83
|
+
- "What should stay?" — infer from the existing design
|
|
84
|
+
- "Which direction resonates?" — you pick
|
|
85
|
+
- "What color scheme?" — derive from brand or propose one
|
|
86
|
+
- Multiple-choice aesthetic menus — overwhelming for non-designers
|
|
62
87
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
### Preview Directory
|
|
88
|
+
---
|
|
66
89
|
|
|
67
|
-
|
|
90
|
+
## Step 3: Preview (REQUIRED Before Any Real Code)
|
|
68
91
|
|
|
92
|
+
### File structure
|
|
69
93
|
```
|
|
70
94
|
.preview/
|
|
71
|
-
├──
|
|
72
|
-
├──
|
|
73
|
-
├──
|
|
74
|
-
|
|
75
|
-
└── hero-v3.html # High-fi variation 3 (optional)
|
|
95
|
+
├── <feature>-lowfi.html # Pass 1: grayscale layout
|
|
96
|
+
├── <feature>-v1.html # Pass 2: high-fi (recommended)
|
|
97
|
+
├── <feature>-v2.html # Optional variation
|
|
98
|
+
└── variations.html # Hub if multiple variants exist
|
|
76
99
|
```
|
|
77
100
|
|
|
78
|
-
|
|
79
|
-
-
|
|
80
|
-
- Add `.preview/` to `.gitignore` if not already ignored (ask first if repo tracks it).
|
|
81
|
-
- Each file must be standalone and openable with `file://` or a simple static server.
|
|
82
|
-
|
|
83
|
-
### Stack Decision — Which CSS to Use in the Mock
|
|
84
|
-
|
|
85
|
-
**Always use plain Tailwind via CDN in the preview, even if the project uses shadcn/Radix/Material.**
|
|
86
|
-
|
|
87
|
-
Reasoning:
|
|
88
|
-
- **Efficiency** — no build step, no dependency wiring, instant preview
|
|
89
|
-
- **Isolation** — the mock stays disposable; not entangled with the real design system
|
|
90
|
-
- **Portability** — user can open the file without running their dev server
|
|
91
|
-
|
|
92
|
-
Exceptions:
|
|
93
|
-
- If the project uses **custom CSS variables or brand tokens**, inline them in a `<style>` block in the mock so colors/fonts match
|
|
94
|
-
- If the project has **no CSS system at all**, still use Tailwind CDN — it's the fastest way to produce a quality mock
|
|
95
|
-
|
|
96
|
-
The real implementation (Step 4) uses the project's actual design system (shadcn components, Material, etc.). The mock uses plain Tailwind. Keep this separation clear.
|
|
97
|
-
|
|
98
|
-
### Preview HTML Template
|
|
99
|
-
|
|
100
|
-
```html
|
|
101
|
-
<!doctype html>
|
|
102
|
-
<html lang="en">
|
|
103
|
-
<head>
|
|
104
|
-
<meta charset="utf-8" />
|
|
105
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
106
|
-
<title>Preview — [Feature Name]</title>
|
|
107
|
-
<script src="https://cdn.tailwindcss.com"></script>
|
|
108
|
-
<style>
|
|
109
|
-
/* Inline project brand tokens here if they exist */
|
|
110
|
-
:root {
|
|
111
|
-
--brand: #0ea5e9;
|
|
112
|
-
--brand-fg: #ffffff;
|
|
113
|
-
}
|
|
114
|
-
body { font-family: ui-sans-serif, system-ui, sans-serif; }
|
|
115
|
-
</style>
|
|
116
|
-
</head>
|
|
117
|
-
<body class="bg-gray-50 text-gray-900">
|
|
118
|
-
<!-- Section: Header -->
|
|
119
|
-
<header class="...">...</header>
|
|
120
|
-
|
|
121
|
-
<!-- Section: Hero -->
|
|
122
|
-
<section class="...">...</section>
|
|
123
|
-
|
|
124
|
-
<!-- Section: Features -->
|
|
125
|
-
<section class="...">...</section>
|
|
126
|
-
|
|
127
|
-
<!-- Section: Footer -->
|
|
128
|
-
<footer class="...">...</footer>
|
|
129
|
-
</body>
|
|
130
|
-
</html>
|
|
131
|
-
```
|
|
101
|
+
- Files must be standalone, openable with `file://`
|
|
102
|
+
- Add `.preview/` to `.gitignore` if not ignored (ask first if repo tracks it). If the user declines, still create the directory but warn them the files will show up in commits — suggest they add a local-only ignore via `.git/info/exclude`.
|
|
132
103
|
|
|
133
|
-
###
|
|
104
|
+
### CSS in previews
|
|
105
|
+
Always use Tailwind CDN (`<script src="https://cdn.tailwindcss.com"></script>`), even if the project uses shadcn/Material. If the project has brand tokens (CSS variables), inline them in a `<style>` block so colors/fonts match. The real implementation uses the project's actual design system — keep this separation clear.
|
|
134
106
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
**Pass 1: Low-fi** (grayscale, structural)
|
|
140
|
-
- No brand colors, only grays and neutrals
|
|
141
|
-
- System font only
|
|
107
|
+
### Pass 1: Low-fi (grayscale, structural)
|
|
108
|
+
- Grays and neutrals only — no brand colors
|
|
109
|
+
- System font only — no custom typography
|
|
142
110
|
- No shadows, gradients, or decorative effects
|
|
143
111
|
- Focus: layout, hierarchy, spacing, content flow
|
|
112
|
+
- **Include basic responsive behavior** — at minimum, the layout must not break on mobile. Use Tailwind responsive prefixes (`sm:`, `md:`, `lg:`) from the start.
|
|
144
113
|
- File: `<feature>-lowfi.html`
|
|
145
114
|
|
|
146
|
-
Present
|
|
115
|
+
Present, wait for layout approval before proceeding.
|
|
147
116
|
|
|
148
|
-
|
|
117
|
+
### Pass 2: High-fi (after low-fi is approved)
|
|
149
118
|
- Apply brand colors, typography, shadows, borders
|
|
150
|
-
- Add
|
|
151
|
-
-
|
|
152
|
-
- File: `<feature>-v1.html` (+ optional `-v2.html`, `-v3.html` for variations)
|
|
153
|
-
|
|
154
|
-
Move to Pass 2 only after the user confirms the low-fi structure.
|
|
155
|
-
|
|
156
|
-
### Variations (Optional, Max 3)
|
|
157
|
-
|
|
158
|
-
When the design direction is genuinely ambiguous, produce up to **3 variations** in the high-fi pass. Each in its own file. Create a `variations.html` hub that iframes or links to all three side-by-side for comparison:
|
|
159
|
-
|
|
160
|
-
```html
|
|
161
|
-
<!-- variations.html -->
|
|
162
|
-
<div class="grid grid-cols-1 lg:grid-cols-3 gap-4 p-4">
|
|
163
|
-
<div>
|
|
164
|
-
<h3 class="font-semibold mb-2">V1 — Minimal ⭐ Recommended</h3>
|
|
165
|
-
<iframe src="./hero-v1.html" class="w-full h-[600px] border rounded"></iframe>
|
|
166
|
-
<p class="text-sm text-gray-600 mt-2">Best because [reason].</p>
|
|
167
|
-
</div>
|
|
168
|
-
<div>
|
|
169
|
-
<h3 class="font-semibold mb-2">V2 — Bold</h3>
|
|
170
|
-
<iframe src="./hero-v2.html" class="w-full h-[600px] border rounded"></iframe>
|
|
171
|
-
<p class="text-sm text-gray-600 mt-2">Better if [scenario].</p>
|
|
172
|
-
</div>
|
|
173
|
-
<div>
|
|
174
|
-
<h3 class="font-semibold mb-2">V3 — Editorial</h3>
|
|
175
|
-
<iframe src="./hero-v3.html" class="w-full h-[600px] border rounded"></iframe>
|
|
176
|
-
<p class="text-sm text-gray-600 mt-2">Better if [scenario].</p>
|
|
177
|
-
</div>
|
|
178
|
-
</div>
|
|
179
|
-
```
|
|
180
|
-
|
|
181
|
-
Always mark one as **Recommended** with a one-line reason.
|
|
119
|
+
- Add hover/focus states, responsive breakpoints
|
|
120
|
+
- File: `<feature>-v1.html`
|
|
182
121
|
|
|
183
122
|
### Delegating to `frontend-design` Skill
|
|
123
|
+
If the `frontend-design` skill is available in the session, delegate the actual HTML markup construction to it — pass your layout decisions, section structure, and brand tokens, let it produce the markup. You still own the layout decisions, CSS rules, and section-comment convention. If not available, build the markup yourself.
|
|
184
124
|
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
### Presenting the Proposal
|
|
188
|
-
|
|
189
|
-
Structure your message as:
|
|
125
|
+
### Variations
|
|
126
|
+
Default to one. Offer more only if the user asks, or if there is genuinely zero style signal to work from. Max 3. When building multiple, create a `variations.html` hub that links or iframes all variants side-by-side. Always mark one as **Recommended ⭐** with a one-line reason.
|
|
190
127
|
|
|
128
|
+
### Proposal message format
|
|
191
129
|
```
|
|
192
130
|
## Design Proposal: [Feature Name]
|
|
193
131
|
|
|
194
132
|
**Approach:** [1-2 sentences on direction and why]
|
|
195
|
-
|
|
196
133
|
**Preview:** `.preview/<feature>-lowfi.html` (open in browser)
|
|
197
134
|
|
|
198
135
|
### Key Decisions
|
|
199
136
|
- [Decision]: [rationale]
|
|
200
|
-
- [Decision]: [rationale]
|
|
201
|
-
|
|
202
|
-
This is a throwaway mock — once you approve the direction I'll build
|
|
203
|
-
it properly in your codebase using [shadcn / Material / your design system].
|
|
204
137
|
|
|
138
|
+
This is a throwaway mock — once approved I'll build it in your codebase using [design system].
|
|
205
139
|
Does the layout work? I can adjust any section before moving to high-fi.
|
|
206
140
|
```
|
|
207
141
|
|
|
208
142
|
---
|
|
209
143
|
|
|
210
|
-
## Step
|
|
211
|
-
|
|
212
|
-
Not every request needs a standalone mock. Decide up front:
|
|
213
|
-
|
|
214
|
-
### Mock first (build in `.preview/`)
|
|
215
|
-
- New page or feature from scratch
|
|
216
|
-
- Major redesign of an existing page
|
|
217
|
-
- Multiple directions are plausible and you want the user to see them
|
|
218
|
-
- User is non-technical and needs to see before they can react
|
|
219
|
-
|
|
220
|
-
### Edit real code directly
|
|
221
|
-
- Small tweaks to an existing component (color, spacing, copy)
|
|
222
|
-
- Fixing a specific usability bug the user pointed at
|
|
223
|
-
- Adding a single element to an already-approved layout
|
|
224
|
-
- User is a developer who asked for a specific change
|
|
225
|
-
|
|
226
|
-
### When in doubt — mock it
|
|
227
|
-
The cost of a disposable HTML file is low. The cost of the user rejecting a real-code change and you having to undo it is higher.
|
|
228
|
-
|
|
229
|
-
---
|
|
230
|
-
|
|
231
|
-
## Step 4: Design Analysis (For Existing Projects)
|
|
232
|
-
|
|
233
|
-
When auditing existing code, analyze yourself and present findings organized by impact.
|
|
234
|
-
|
|
235
|
-
### What to Evaluate
|
|
236
|
-
1. **Visual hierarchy** — Is important content visually dominant?
|
|
237
|
-
2. **Consistency** — Are spacing, colors, components systematic?
|
|
238
|
-
3. **Usability** — Contrast (WCAG AA minimum), touch targets (44px+), form labels, affordances
|
|
239
|
-
4. **Responsiveness** — Does it work across breakpoints?
|
|
240
|
-
5. **Interaction quality** — Transitions, loading/error/empty states
|
|
241
|
-
6. **Dark mode** — If the project supports it, does this feature work in both themes?
|
|
144
|
+
## Step 5: Implementation (After Preview Approved)
|
|
242
145
|
|
|
243
|
-
###
|
|
146
|
+
### Order
|
|
147
|
+
1. Layout structure and spacing
|
|
148
|
+
2. Typography and color
|
|
149
|
+
3. Component details — use the project's design system (shadcn, Material, etc.)
|
|
150
|
+
4. Interaction states — hover, focus, loading, error, empty
|
|
151
|
+
5. Responsive breakpoints
|
|
152
|
+
6. Dark mode — if the project supports theming
|
|
244
153
|
|
|
245
|
-
|
|
154
|
+
Check in after each chunk: *"Layout done — moving to typography, or want to adjust anything?"*
|
|
155
|
+
When done: tell the user to open the page in their browser to verify.
|
|
246
156
|
|
|
247
|
-
|
|
248
|
-
.preview/audit/
|
|
249
|
-
├── nav-before.html
|
|
250
|
-
├── nav-after.html
|
|
251
|
-
└── index.html # Side-by-side comparison
|
|
252
|
-
```
|
|
253
|
-
|
|
254
|
-
Don't just list problems — show the fix in HTML the user can open.
|
|
255
|
-
|
|
256
|
-
---
|
|
257
|
-
|
|
258
|
-
## Step 5: Implementation (Real Codebase)
|
|
259
|
-
|
|
260
|
-
Once the preview is approved, implement in the project's actual stack.
|
|
261
|
-
|
|
262
|
-
### Order of Implementation
|
|
263
|
-
1. **Layout structure and spacing** — Get the bones right first
|
|
264
|
-
2. **Typography and color** — Apply the visual language
|
|
265
|
-
3. **Component details** — Buttons, forms, cards (use the project's design system — shadcn, Material, etc.)
|
|
266
|
-
4. **Interaction states** — Hover, focus, loading, error, empty
|
|
267
|
-
5. **Responsive adaptations** — Mobile/tablet breakpoints
|
|
268
|
-
6. **Dark mode** — If the project supports theming, verify both modes
|
|
269
|
-
|
|
270
|
-
After each chunk, check in: "Layout is done — moving to typography next, or want to adjust anything?"
|
|
271
|
-
|
|
272
|
-
### Browser Verification
|
|
273
|
-
|
|
274
|
-
For UI changes, start the dev server and verify in a browser before reporting the task complete. Test the golden path and at least one edge case. If you cannot run the dev server, say so explicitly — do not claim the work is done based on a successful build or passing type check.
|
|
275
|
-
|
|
276
|
-
### Implementation Rules
|
|
277
|
-
|
|
278
|
-
Follow the anti-pattern catalog in [design-principles.md](references/design-principles.md):
|
|
157
|
+
### Rules (see [design-principles.md](references/design-principles.md) for full catalog)
|
|
279
158
|
- No gratuitous gradients, glassmorphism, or trend effects without purpose
|
|
280
|
-
- Intentional border-radius
|
|
159
|
+
- Intentional border-radius — not `rounded-full` on everything
|
|
281
160
|
- Typography does 80% of the work
|
|
282
|
-
- Color
|
|
283
|
-
-
|
|
161
|
+
- Color: 1–2 primaries, 1 accent, rest neutrals
|
|
162
|
+
- Transitions: 150–200ms for small elements, 300–400ms for layout shifts
|
|
284
163
|
- Whitespace creates hierarchy
|
|
285
164
|
|
|
286
|
-
### Adapting
|
|
165
|
+
### Adapting existing design
|
|
287
166
|
- Preserve brand colors, fonts, recognizable patterns
|
|
288
167
|
- Use existing CSS variables and design tokens
|
|
289
|
-
-
|
|
290
|
-
- Flag when a user request conflicts with their design system; recommend the best path
|
|
168
|
+
- Flag conflicts between the user's request and their design system; recommend the best path
|
|
291
169
|
|
|
292
170
|
---
|
|
293
171
|
|
|
294
172
|
## Step 6: Iteration
|
|
295
173
|
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
1. Make the decision yourself based on best practices
|
|
304
|
-
2. Explain your reasoning in plain language
|
|
305
|
-
3. Build the preview
|
|
306
|
-
4. Say: "This is what I'd recommend. If something feels off once you see it, tell me and I'll adjust."
|
|
307
|
-
|
|
308
|
-
---
|
|
309
|
-
|
|
310
|
-
## Handling Options — The Recommendation Rule
|
|
311
|
-
|
|
312
|
-
**Every time you present a choice, you MUST include a recommendation.**
|
|
313
|
-
|
|
314
|
-
For HTML previews with variations, render all variations but mark one as recommended in the hub file and in your message. Never present more than 3 variations at once.
|
|
315
|
-
|
|
316
|
-
---
|
|
317
|
-
|
|
318
|
-
## Skill Level Adaptation
|
|
319
|
-
|
|
320
|
-
Infer from how the user communicates. Never ask.
|
|
321
|
-
|
|
322
|
-
- **Non-designer**: Make all decisions, explain plainly, previews are essential, give complete code. Skip jargon.
|
|
323
|
-
- **Some design sense**: Focus on trade-offs, provide code with brief rationale.
|
|
324
|
-
- **Designer/developer**: Be concise, engage as a peer, previews can be lighter.
|
|
174
|
+
| User says | You do |
|
|
175
|
+
|---|---|
|
|
176
|
+
| "I like it but…" | Targeted tweak in preview, preserve what works |
|
|
177
|
+
| "It's not what I imagined" | Revise preview before touching real code |
|
|
178
|
+
| "Can you try…" | Update preview, re-present |
|
|
179
|
+
| "Perfect!" | Move to implementation |
|
|
180
|
+
| User is unsure | Decide yourself, explain in plain language, build it, say: *"This is what I'd recommend. Tell me if something feels off."* |
|
|
325
181
|
|
|
326
182
|
---
|
|
327
183
|
|
|
328
184
|
## Edge Cases
|
|
329
185
|
|
|
330
|
-
- **No existing design
|
|
331
|
-
- **Screenshot input
|
|
332
|
-
- **Design system conflict
|
|
333
|
-
- **Accessibility
|
|
334
|
-
- **Performance
|
|
335
|
-
- **Dark mode
|
|
336
|
-
- **No browser access**: If you can't run the dev server to verify, say so — don't claim success from a passing build alone.
|
|
186
|
+
- **No existing design** — derive from project type and stack, propose a cohesive starting point
|
|
187
|
+
- **Screenshot input** — analyze visually, recreate as HTML preview to confirm understanding before implementing
|
|
188
|
+
- **Design system conflict** — flag it, recommend extending the system vs. one-off, explain trade-off
|
|
189
|
+
- **Accessibility** — always meet WCAG AA; if a request fails it, explain and offer an accessible alternative
|
|
190
|
+
- **Performance** — flag heavy animations, large images, complex CSS; suggest alternatives
|
|
191
|
+
- **Dark mode** — if the project supports theming, include a dark-mode variant (toggle or separate file)
|
|
337
192
|
|
|
338
193
|
---
|
|
339
194
|
|