@dedesfr/prompter 0.8.12 → 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/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.12');
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.12",
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",
@@ -1,6 +1,6 @@
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. Use for new pages, redesigns, component design, or design audits.
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
@@ -11,23 +11,21 @@ Act as a senior UI/UX designer. Make opinionated design decisions based on proje
11
11
 
12
12
  ## Critical Rules (Read First)
13
13
 
14
- These are the most commonly violated rules internalize before proceeding:
14
+ The failure modes to internalize full context lives in the Workflow section below:
15
15
 
16
- 1. **Diagnose redesigns yourself** — never ask "what feels wrong?" Analyze the page, surface 3–4 findings, then build the low-fi. Users can't answer design questions in design vocabulary.
17
- 2. **Low-fi before high-fi, always** — get layout approval in grayscale before applying color, type, or polish. Never skip to high-fi.
18
- 3. **Preview before real code** — never write to the actual codebase until the user approves the preview direction.
19
- 4. **Tailwind CDN in previews, always** — even if the project uses shadcn/Material/etc. Previews are disposable; don't entangle them with the build system.
20
- 5. **Section comments required** every major HTML block needs `<!-- Section: Name -->` so users can give spatial feedback without knowing HTML.
21
- 6. **Default one variant** build one recommended design, then offer: *"I can show 1–2 alternatives if you want to compare."* Don't push a menu upfront.
22
- 7. **Always include a recommendation** every choice you present must name a preferred option with a one-line reason.
23
- 8. **Don't delete `.preview/`** — user keeps these as reference. Never auto-clean.
24
- 9. **Tell user to verify in browser** — do not attempt to run the dev server yourself.
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.
25
23
 
26
24
  ---
27
25
 
28
26
  ## Workflow
29
27
 
30
- `Step 0: Read context → Step 1: Discovery → Step 2: Low-fi preview → [approval] → Step 3: High-fi → [approval] → Step 4: Implement → Step 5: Iterate`
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`
31
29
 
32
30
  ---
33
31
 
@@ -42,11 +40,28 @@ Before designing, silently gather — do not ask the user:
42
40
 
43
41
  ---
44
42
 
45
- ## Step 1: Discovery
43
+ ## Step 1: Decide Mock vs. Edit
44
+
45
+ Before discovery, decide the path. **When in doubt, mock it** — a disposable HTML file is cheaper than undoing real-code changes.
46
+
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
52
+
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
+
59
+ ---
60
+
61
+ ## Step 2: Discovery
46
62
 
47
63
  ### New designs
48
- 1. Ask: *"What is this for?"* — page/feature, audience, goal
49
- 2. Ask one optional: *"Any vibe or reference in mind? (totally optional)"* — proceed regardless
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.
50
65
 
51
66
  ### Redesigns and audits
52
67
  Do NOT ask open-ended questions. Most users cannot articulate design problems.
@@ -54,14 +69,14 @@ Do NOT ask open-ended questions. Most users cannot articulate design problems.
54
69
  1. Silently analyze the existing page — read the code or screenshot
55
70
  2. Present a short diagnostic (3–4 bullets, plain language):
56
71
  ```
57
- Here's what I noticed before I start:
72
+ Here's what I noticed:
58
73
  - Weak hierarchy — CTA competes with secondary content
59
74
  - Inconsistent spacing — no clear scale
60
75
  - Low contrast on the action button (likely fails WCAG AA)
61
76
  - Font sizes too uniform — headlines don't feel distinct
62
77
  ```
63
- 3. Ask one soft optional: *"Anything to keep, or a vibe/reference in mind? (I'll proceed either way)"*
64
- 4. Build the low-fi immediately with or without their answer
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.
65
80
 
66
81
  ### Never ask:
67
82
  - "What feels wrong?" — diagnose it yourself
@@ -72,7 +87,7 @@ Do NOT ask open-ended questions. Most users cannot articulate design problems.
72
87
 
73
88
  ---
74
89
 
75
- ## Step 2: Preview (REQUIRED Before Any Real Code)
90
+ ## Step 3: Preview (REQUIRED Before Any Real Code)
76
91
 
77
92
  ### File structure
78
93
  ```
@@ -84,7 +99,7 @@ Do NOT ask open-ended questions. Most users cannot articulate design problems.
84
99
  ```
85
100
 
86
101
  - Files must be standalone, openable with `file://`
87
- - Add `.preview/` to `.gitignore` if not ignored (ask first if repo tracks it)
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`.
88
103
 
89
104
  ### CSS in previews
90
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.
@@ -94,6 +109,7 @@ Always use Tailwind CDN (`<script src="https://cdn.tailwindcss.com"></script>`),
94
109
  - System font only — no custom typography
95
110
  - No shadows, gradients, or decorative effects
96
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.
97
113
  - File: `<feature>-lowfi.html`
98
114
 
99
115
  Present, wait for layout approval before proceeding.
@@ -103,6 +119,9 @@ Present, wait for layout approval before proceeding.
103
119
  - Add hover/focus states, responsive breakpoints
104
120
  - File: `<feature>-v1.html`
105
121
 
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.
124
+
106
125
  ### Variations
107
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.
108
127
 
@@ -122,25 +141,7 @@ Does the layout work? I can adjust any section before moving to high-fi.
122
141
 
123
142
  ---
124
143
 
125
- ## Step 3: Mock vs. Edit
126
-
127
- ### Build a preview when:
128
- - New page or feature
129
- - Major redesign
130
- - Multiple directions are plausible
131
- - User is non-technical and needs to see before reacting
132
-
133
- ### Edit real code directly when:
134
- - Small tweak (color, spacing, copy)
135
- - Fixing a specific bug the user pointed at
136
- - Adding one element to an already-approved layout
137
- - User is a developer who asked for a specific change
138
-
139
- **When in doubt — mock it.** A disposable HTML file costs little; undoing rejected real-code changes costs more.
140
-
141
- ---
142
-
143
- ## Step 4: Implementation (After Preview Approved)
144
+ ## Step 5: Implementation (After Preview Approved)
144
145
 
145
146
  ### Order
146
147
  1. Layout structure and spacing
@@ -168,7 +169,7 @@ When done: tell the user to open the page in their browser to verify.
168
169
 
169
170
  ---
170
171
 
171
- ## Step 5: Iteration
172
+ ## Step 6: Iteration
172
173
 
173
174
  | User says | You do |
174
175
  |---|---|
package/src/cli/index.ts CHANGED
@@ -18,7 +18,7 @@ const program = new Command();
18
18
  program
19
19
  .name('prompter')
20
20
  .description('Enhance prompts directly in your AI coding workflow')
21
- .version('0.8.12');
21
+ .version('0.8.13');
22
22
 
23
23
  program
24
24
  .command('init')