specsmd 0.1.7 → 0.1.9

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.
Files changed (58) hide show
  1. package/flows/aidlc/skills/construction/prototype-apply.md +311 -0
  2. package/flows/aidlc/skills/inception/vibe-to-spec.md +410 -0
  3. package/flows/aidlc/templates/construction/bolt-types/ddd-construction-bolt.md +1 -1
  4. package/flows/fire/README.md +19 -0
  5. package/flows/fire/agents/builder/agent.md +254 -0
  6. package/flows/fire/agents/builder/skills/code-review/SKILL.md +257 -0
  7. package/flows/fire/agents/builder/skills/code-review/references/auto-fix-rules.md +218 -0
  8. package/flows/fire/agents/builder/skills/code-review/references/review-categories.md +154 -0
  9. package/flows/fire/agents/builder/skills/code-review/templates/review-report.md.hbs +120 -0
  10. package/flows/fire/agents/builder/skills/run-execute/SKILL.md +571 -0
  11. package/flows/fire/agents/builder/skills/run-execute/scripts/complete-run.js +549 -0
  12. package/flows/fire/agents/builder/skills/run-execute/scripts/init-run.js +454 -0
  13. package/flows/fire/agents/builder/skills/run-execute/templates/plan.md.hbs +61 -0
  14. package/flows/fire/agents/builder/skills/run-execute/templates/test-report.md.hbs +81 -0
  15. package/flows/fire/agents/builder/skills/run-plan/SKILL.md +377 -0
  16. package/flows/fire/agents/builder/skills/run-status/SKILL.md +96 -0
  17. package/flows/fire/agents/builder/skills/walkthrough-generate/SKILL.md +141 -0
  18. package/flows/fire/agents/builder/skills/walkthrough-generate/scripts/render-walkthrough.ts +755 -0
  19. package/flows/fire/agents/builder/skills/walkthrough-generate/templates/walkthrough.md.hbs +77 -0
  20. package/flows/fire/agents/orchestrator/agent.md +130 -0
  21. package/flows/fire/agents/orchestrator/skills/project-init/SKILL.md +226 -0
  22. package/flows/fire/agents/orchestrator/skills/project-init/templates/coding-standards.md.hbs +149 -0
  23. package/flows/fire/agents/orchestrator/skills/project-init/templates/constitution.md.hbs +43 -0
  24. package/flows/fire/agents/orchestrator/skills/project-init/templates/system-architecture.md.hbs +101 -0
  25. package/flows/fire/agents/orchestrator/skills/project-init/templates/tech-stack.md.hbs +136 -0
  26. package/flows/fire/agents/orchestrator/skills/project-init/templates/testing-standards.md.hbs +94 -0
  27. package/flows/fire/agents/orchestrator/skills/project-migrate/SKILL.md +234 -0
  28. package/flows/fire/agents/orchestrator/skills/route/SKILL.md +146 -0
  29. package/flows/fire/agents/orchestrator/skills/status/SKILL.md +102 -0
  30. package/flows/fire/agents/planner/agent.md +143 -0
  31. package/flows/fire/agents/planner/skills/design-doc-generate/SKILL.md +156 -0
  32. package/flows/fire/agents/planner/skills/design-doc-generate/templates/design.md.hbs +124 -0
  33. package/flows/fire/agents/planner/skills/intent-capture/SKILL.md +125 -0
  34. package/flows/fire/agents/planner/skills/intent-capture/templates/brief.md.hbs +40 -0
  35. package/flows/fire/agents/planner/skills/work-item-decompose/SKILL.md +166 -0
  36. package/flows/fire/agents/planner/skills/work-item-decompose/templates/work-item.md.hbs +40 -0
  37. package/flows/fire/commands/fire-builder.md +56 -0
  38. package/flows/fire/commands/fire-planner.md +48 -0
  39. package/flows/fire/commands/fire.md +46 -0
  40. package/flows/fire/memory-bank.yaml +223 -0
  41. package/flows/fire/quick-start.md +134 -0
  42. package/flows/simple/README.md +190 -0
  43. package/flows/simple/agents/agent.md +404 -0
  44. package/flows/simple/commands/agent.md +60 -0
  45. package/flows/simple/context-config.yaml +34 -0
  46. package/flows/simple/memory-bank.yaml +66 -0
  47. package/flows/simple/quick-start.md +231 -0
  48. package/flows/simple/skills/design.md +96 -0
  49. package/flows/simple/skills/execute.md +190 -0
  50. package/flows/simple/skills/requirements.md +94 -0
  51. package/flows/simple/skills/tasks.md +136 -0
  52. package/flows/simple/templates/design-template.md +138 -0
  53. package/flows/simple/templates/requirements-template.md +85 -0
  54. package/flows/simple/templates/tasks-template.md +104 -0
  55. package/lib/constants.js +17 -8
  56. package/lib/installer.js +2 -1
  57. package/lib/installers/KiroInstaller.js +55 -0
  58. package/package.json +3 -52
@@ -0,0 +1,311 @@
1
+ # Skill: Prototype Apply
2
+
3
+ ---
4
+
5
+ ## Goal
6
+
7
+ Apply a vibe-coded prototype's design and components to the real implementation during bolt execution. This skill bridges the gap between extracted prototype specifications and production code.
8
+
9
+ ---
10
+
11
+ ## When to Use
12
+
13
+ Use this skill when:
14
+
15
+ - A bolt references a prototype in its scope
16
+ - You need to implement UI that matches a prototype screenshot
17
+ - The design system from vibe-to-spec should be applied to code
18
+ - Visual acceptance criteria reference prototype screens
19
+
20
+ ---
21
+
22
+ ## Input
23
+
24
+ - **Required**: Bolt ID currently being executed
25
+ - **Required**: Prototype reference (path or name)
26
+ - **Optional**: Specific screen to implement
27
+ - **Optional**: Component to focus on
28
+
29
+ **Prerequisite**: The **vibe-to-spec** skill must have been run on this prototype during Inception.
30
+
31
+ ---
32
+
33
+ ## Process
34
+
35
+ ### Step 1: Load Prototype Context
36
+
37
+ Load all relevant prototype artifacts:
38
+
39
+ ```text
40
+ ## Loading Prototype Context
41
+
42
+ Prototype: {prototype-name}
43
+ Bolt: {bolt-id}
44
+
45
+ ### Available Artifacts
46
+ - [ ] design-system.md - {loaded/not found}
47
+ - [ ] component-catalog.md - {loaded/not found}
48
+ - [ ] screen-inventory.md - {loaded/not found}
49
+ - [ ] user-flows.md - {loaded/not found}
50
+
51
+ ### Bolt Scope Match
52
+ Matching prototype screens to bolt scope:
53
+ - {screen-1} → {story-1}
54
+ - {screen-2} → {story-2}
55
+ ```
56
+
57
+ ---
58
+
59
+ ### Step 2: Extract Implementation Requirements
60
+
61
+ From the prototype artifacts, extract what needs to be built:
62
+
63
+ ```markdown
64
+ ## Implementation Requirements
65
+
66
+ ### Screen: {screen-name}
67
+ **Prototype Source**: {screenshot-path}
68
+ **Target Location**: {src/path/to/component}
69
+
70
+ ### Design Tokens to Apply
71
+ ```typescript
72
+ // From prototype design-system.md
73
+ const tokens = {
74
+ colors: {
75
+ primary: '{hex}',
76
+ secondary: '{hex}',
77
+ background: '{hex}',
78
+ // ...
79
+ },
80
+ typography: {
81
+ fontFamily: '{font}',
82
+ // ...
83
+ },
84
+ spacing: {
85
+ xs: '{px}',
86
+ // ...
87
+ }
88
+ }
89
+ ```
90
+
91
+ ### Components to Implement
92
+
93
+ | Component | Prototype Ref | Target File | Status |
94
+ |-----------|---------------|-------------|--------|
95
+ | {Sidebar} | screen-2.png | Sidebar.tsx | pending |
96
+ | {ChatList} | screen-2.png | ChatList.tsx | pending |
97
+ | {MessageBubble} | screen-3.png | MessageBubble.tsx | pending |
98
+
99
+ ### Layout Structure
100
+
101
+ ```
102
+ {ASCII representation of layout from prototype}
103
+ ┌─────────────────────────────────────────┐
104
+ │ Header │
105
+ ├──────────┬──────────────────────────────┤
106
+ │ Sidebar │ Main Content │
107
+ │ │ │
108
+ │ │ │
109
+ ├──────────┴──────────────────────────────┤
110
+ │ Footer / Input Area │
111
+ └─────────────────────────────────────────┘
112
+ ```
113
+
114
+ ```
115
+
116
+ ---
117
+
118
+ ### Step 3: Map to Project Standards
119
+
120
+ Cross-reference with project standards:
121
+
122
+ ```markdown
123
+ ## Standards Alignment
124
+
125
+ ### Tech Stack Match
126
+ - **Prototype suggests**: {vanilla CSS / Tailwind / etc.}
127
+ - **Project standard**: {from tech-stack.md}
128
+ - **Action**: {adapt prototype to use project's styling approach}
129
+
130
+ ### Component Library Match
131
+ - **Prototype components**: {custom / Bootstrap / etc.}
132
+ - **Project standard**: {from tech-stack.md}
133
+ - **Action**: {map prototype components to project's component library}
134
+
135
+ ### Coding Standards
136
+ - **File naming**: {from coding-standards.md}
137
+ - **Component structure**: {from coding-standards.md}
138
+ ```
139
+
140
+ ---
141
+
142
+ ### Step 4: Generate Implementation Code
143
+
144
+ Generate code that matches the prototype while following project standards.
145
+
146
+ **IMPORTANT**: If the `/frontend-design` skill is available, invoke it for high-quality, production-grade frontend code that avoids generic AI aesthetics. The frontend-design skill specializes in creating distinctive, polished UI components.
147
+
148
+ **For each component**:
149
+
150
+ 1. **Analyze prototype visually** (use screenshot)
151
+ 2. **Extract structure from HTML** (if available)
152
+ 3. **Apply project's styling approach**
153
+ 4. **Ensure accessibility**
154
+ 5. **Add responsive behavior**
155
+
156
+ ```typescript
157
+ // Example output structure
158
+ /**
159
+ * Component: {ComponentName}
160
+ * Prototype: {screenshot-reference}
161
+ *
162
+ * Visual acceptance criteria:
163
+ * - {criterion from prototype}
164
+ * - {criterion from prototype}
165
+ */
166
+ export function ComponentName({ props }: Props) {
167
+ // Implementation matching prototype
168
+ }
169
+ ```
170
+
171
+ ---
172
+
173
+ ### Step 5: Visual Verification Checklist
174
+
175
+ Create a verification checklist comparing implementation to prototype:
176
+
177
+ ```markdown
178
+ ## Visual Verification: {screen-name}
179
+
180
+ ### Layout
181
+ - [ ] Overall structure matches prototype
182
+ - [ ] Spacing between elements is consistent
183
+ - [ ] Responsive breakpoints work correctly
184
+
185
+ ### Colors
186
+ - [ ] Primary color matches: {hex}
187
+ - [ ] Background color matches: {hex}
188
+ - [ ] Text colors match design system
189
+
190
+ ### Typography
191
+ - [ ] Font family applied correctly
192
+ - [ ] Font sizes match design system
193
+ - [ ] Font weights are correct
194
+
195
+ ### Components
196
+ - [ ] {Component-1} matches prototype
197
+ - [ ] {Component-2} matches prototype
198
+ - [ ] Interactive states (hover, focus, active) implemented
199
+
200
+ ### Interactions
201
+ - [ ] {Interaction-1} works as shown in flow
202
+ - [ ] {Interaction-2} works as shown in flow
203
+
204
+ ### Screenshots for Comparison
205
+ - Prototype: `{prototype-path}`
206
+ - Implementation: `{screenshot after implementation}`
207
+ ```
208
+
209
+ ---
210
+
211
+ ## Output
212
+
213
+ ### Implementation Summary
214
+
215
+ ```markdown
216
+ ## Prototype Applied: {screen-name}
217
+
218
+ ### Components Implemented
219
+ | Component | File | Lines | Status |
220
+ |-----------|------|-------|--------|
221
+ | {Sidebar} | src/components/Sidebar.tsx | 45-120 | complete |
222
+ | {ChatList} | src/components/ChatList.tsx | 1-80 | complete |
223
+
224
+ ### Design System Applied
225
+ - Color tokens: {n} applied
226
+ - Typography: {n} styles applied
227
+ - Spacing: {n} values applied
228
+
229
+ ### Deviations from Prototype
230
+ | Aspect | Prototype | Implementation | Reason |
231
+ |--------|-----------|----------------|--------|
232
+ | {color} | #xxx | #yyy | Project standard |
233
+ | {font} | Inter | system-ui | Performance |
234
+
235
+ ### Visual Verification
236
+ - [ ] Side-by-side comparison reviewed
237
+ - [ ] Responsive behavior verified
238
+ - [ ] Accessibility checked
239
+
240
+ ### Files Modified
241
+ - `{file-1}` - {description}
242
+ - `{file-2}` - {description}
243
+
244
+ ### Next Steps
245
+ 1 - Continue with next screen
246
+ 2 - Run visual regression tests
247
+ 3 - Review with stakeholder
248
+ ```
249
+
250
+ ---
251
+
252
+ ## Integration with Bolt Workflow
253
+
254
+ ### During DDD Construction Bolt
255
+
256
+ In the **Implement** stage:
257
+
258
+ 1. Load prototype context for relevant screens
259
+ 2. Generate components matching prototype
260
+ 3. Apply design system tokens
261
+ 4. Create visual verification checklist
262
+
263
+ ### During Simple Construction Bolt
264
+
265
+ In the **Implement** stage:
266
+
267
+ 1. Reference prototype for UI components
268
+ 2. Use extracted design tokens
269
+ 3. Follow component catalog structure
270
+
271
+ ---
272
+
273
+ ## Visual Diff Support
274
+
275
+ When available, use UI diff tools to compare:
276
+
277
+ ```text
278
+ ## Visual Diff Report
279
+
280
+ ### Screen: {screen-name}
281
+ - Prototype: {prototype-screenshot}
282
+ - Implementation: {current-screenshot}
283
+ - Diff: {highlighted differences}
284
+
285
+ ### Discrepancies Found
286
+ 1. {location}: {expected} vs {actual}
287
+ 2. {location}: {expected} vs {actual}
288
+
289
+ ### Action Required
290
+ - [ ] Fix discrepancy 1
291
+ - [ ] Fix discrepancy 2
292
+ - [ ] Accept as intentional deviation
293
+ ```
294
+
295
+ ---
296
+
297
+ ## Test Contract
298
+
299
+ ```yaml
300
+ input:
301
+ - Bolt ID with prototype reference
302
+ - Prototype artifacts from vibe-to-spec
303
+ output:
304
+ - Implementation code matching prototype
305
+ - Visual verification checklist
306
+ - Deviation documentation
307
+ integration:
308
+ - Works within bolt execution flow
309
+ - References design-system.md
310
+ - Follows project standards
311
+ ```
@@ -0,0 +1,410 @@
1
+ # Skill: Vibe to Spec
2
+
3
+ ---
4
+
5
+ ## Progress Display
6
+
7
+ Show at start of this skill:
8
+
9
+ ```text
10
+ ### Inception Progress
11
+ - [ ] Prototype analyzed ← current
12
+ - [ ] Design system extracted
13
+ - [ ] Components cataloged
14
+ - [ ] Requirements derived
15
+ - [ ] Ready for standard inception flow
16
+ ```
17
+
18
+ ---
19
+
20
+ ## Checkpoints in This Skill
21
+
22
+ | Checkpoint | Purpose | Wait For |
23
+ |------------|---------|----------|
24
+ | Checkpoint 1 | Prototype inventory review | User confirmation |
25
+ | Checkpoint 2 | Design system approval | User approval |
26
+ | Checkpoint 3 | Derived requirements review | User approval |
27
+
28
+ ---
29
+
30
+ ## Goal
31
+
32
+ Convert a vibe-coded prototype (screenshots, HTML exports, or design mockups) into formal specsmd artifacts that feed into the standard inception workflow.
33
+
34
+ ---
35
+
36
+ ## Input
37
+
38
+ - **Required**: Path to prototype folder (e.g., `proto/`, `mockups/`, `discovery/`)
39
+ - **Required**: `.specsmd/aidlc/memory-bank.yaml` - artifact schema
40
+ - **Optional**: Intent name to associate with (creates new if not provided)
41
+ - **Optional**: Existing design system to extend
42
+
43
+ **Supported Prototype Formats**:
44
+
45
+ - PNG/JPG screenshots
46
+ - HTML exports (with associated CSS/JS in `_files` folders)
47
+ - Figma exports
48
+ - PDF mockups
49
+
50
+ ---
51
+
52
+ ## Process
53
+
54
+ ### Step 1: Inventory Prototype Assets
55
+
56
+ Scan the prototype folder and catalog all assets:
57
+
58
+ ```text
59
+ ## Prototype Inventory
60
+
61
+ Scanning: {prototype-path}
62
+
63
+ ### Screenshots Found
64
+ - {filename}.png - {brief description based on visual analysis}
65
+ - ...
66
+
67
+ ### HTML Exports Found
68
+ - {filename}.html - {title or main heading}
69
+ - ...
70
+
71
+ ### Asset Folders
72
+ - {filename}_files/ - CSS, JS, images
73
+ - ...
74
+
75
+ Total: {n} screens identified
76
+ ```
77
+
78
+ **Checkpoint 1**: Present inventory for user confirmation.
79
+
80
+ ```text
81
+ I found {n} screens in your prototype. Here's what I see:
82
+
83
+ 1. {screen-1-description}
84
+ 2. {screen-2-description}
85
+ ...
86
+
87
+ Is this complete? Are there screens I'm missing or misinterpreting?
88
+ 1 - Yes, continue analysis
89
+ 2 - Let me clarify (provide corrections)
90
+ ```
91
+
92
+ **Wait for user response.**
93
+
94
+ ---
95
+
96
+ ### Step 2: Analyze Each Screen
97
+
98
+ For each screen, extract:
99
+
100
+ **Visual Analysis** (use image analysis capabilities):
101
+
102
+ - Layout structure (sidebar, main content, header, footer)
103
+ - Color palette (primary, secondary, accent, background)
104
+ - Typography (headings, body text, labels)
105
+ - Component patterns (buttons, inputs, cards, lists)
106
+ - Interactive elements (forms, menus, modals)
107
+
108
+ **HTML Analysis** (if available):
109
+
110
+ - Component structure from markup
111
+ - CSS classes and styling patterns
112
+ - JavaScript interactions
113
+
114
+ **Output per screen**:
115
+
116
+ ```markdown
117
+ ### Screen: {screen-name}
118
+ **Source**: {filename}
119
+ **Purpose**: {inferred purpose}
120
+
121
+ #### Layout
122
+ - Structure: {e.g., sidebar-main, header-content-footer}
123
+ - Responsive hints: {any visible breakpoint patterns}
124
+
125
+ #### Components Identified
126
+ - [ ] {component-1}: {description}
127
+ - [ ] {component-2}: {description}
128
+
129
+ #### Interactions
130
+ - {interaction-1}: {trigger} → {result}
131
+
132
+ #### Design Tokens
133
+ - Primary color: {hex}
134
+ - Text color: {hex}
135
+ - Background: {hex}
136
+ - Border radius: {px}
137
+ - Spacing unit: {px}
138
+ ```
139
+
140
+ ---
141
+
142
+ ### Step 3: Synthesize Design System
143
+
144
+ Combine analysis from all screens into a unified design system:
145
+
146
+ ```markdown
147
+ ## Design System: {prototype-name}
148
+
149
+ ### Color Palette
150
+ | Token | Value | Usage |
151
+ |-------|-------|-------|
152
+ | primary | {hex} | Buttons, links, accents |
153
+ | secondary | {hex} | Secondary actions |
154
+ | background | {hex} | Page background |
155
+ | surface | {hex} | Card backgrounds |
156
+ | text-primary | {hex} | Main text |
157
+ | text-secondary | {hex} | Muted text |
158
+ | border | {hex} | Borders, dividers |
159
+ | success | {hex} | Success states |
160
+ | error | {hex} | Error states |
161
+
162
+ ### Typography
163
+ | Element | Font | Size | Weight |
164
+ |---------|------|------|--------|
165
+ | h1 | {font} | {size} | {weight} |
166
+ | h2 | {font} | {size} | {weight} |
167
+ | body | {font} | {size} | {weight} |
168
+ | label | {font} | {size} | {weight} |
169
+ | caption | {font} | {size} | {weight} |
170
+
171
+ ### Spacing Scale
172
+ - xs: {px}
173
+ - sm: {px}
174
+ - md: {px}
175
+ - lg: {px}
176
+ - xl: {px}
177
+
178
+ ### Border Radius
179
+ - sm: {px}
180
+ - md: {px}
181
+ - lg: {px}
182
+ - full: 9999px
183
+
184
+ ### Shadows
185
+ - sm: {shadow}
186
+ - md: {shadow}
187
+ - lg: {shadow}
188
+
189
+ ### Component Patterns
190
+ {list of reusable patterns identified}
191
+ ```
192
+
193
+ **Checkpoint 2**: Present design system for approval.
194
+
195
+ ```text
196
+ ### Design System Review
197
+
198
+ I've extracted the following design system from your prototype:
199
+
200
+ {full design system}
201
+
202
+ Does this accurately capture your prototype's visual language?
203
+ 1 - Yes, continue to derive requirements
204
+ 2 - Need adjustments (specify what's wrong)
205
+ ```
206
+
207
+ **Wait for user response.**
208
+
209
+ ---
210
+
211
+ ### Step 4: Catalog Components
212
+
213
+ Create a component catalog from the prototype:
214
+
215
+ ```markdown
216
+ ## Component Catalog: {prototype-name}
217
+
218
+ ### Navigation Components
219
+ - **Sidebar**: {description, screens where found}
220
+ - **Header**: {description}
221
+ - **Breadcrumb**: {description}
222
+
223
+ ### Form Components
224
+ - **Text Input**: {variants, validation states}
225
+ - **Button**: {variants: primary, secondary, ghost}
226
+ - **Select/Dropdown**: {description}
227
+ - **Checkbox/Radio**: {description}
228
+
229
+ ### Display Components
230
+ - **Card**: {variants}
231
+ - **List**: {variants}
232
+ - **Table**: {if present}
233
+ - **Modal/Dialog**: {if present}
234
+
235
+ ### Feedback Components
236
+ - **Toast/Notification**: {if present}
237
+ - **Loading States**: {spinners, skeletons}
238
+ - **Empty States**: {if present}
239
+ - **Error States**: {if present}
240
+
241
+ ### Layout Components
242
+ - **Container**: {max-width, padding}
243
+ - **Grid**: {columns, gaps}
244
+ - **Stack**: {spacing patterns}
245
+ ```
246
+
247
+ ---
248
+
249
+ ### Step 5: Map User Flows
250
+
251
+ Identify user flows from screen sequences:
252
+
253
+ ```markdown
254
+ ## User Flows
255
+
256
+ ### Flow 1: {flow-name}
257
+ **Screens**: {screen-1} → {screen-2} → {screen-3}
258
+ **Goal**: {what user accomplishes}
259
+ **Steps**:
260
+ 1. User sees {screen-1}, {action}
261
+ 2. System shows {screen-2}
262
+ 3. User {action}
263
+ 4. System {result}
264
+
265
+ ### Flow 2: {flow-name}
266
+ ...
267
+ ```
268
+
269
+ ---
270
+
271
+ ### Step 6: Derive Requirements
272
+
273
+ Transform visual analysis into formal requirements:
274
+
275
+ ```markdown
276
+ ## Derived Requirements
277
+
278
+ ### Functional Requirements (from prototype)
279
+
280
+ #### FR-P1: {Component/Feature Name}
281
+ - **Source**: {screenshot reference}
282
+ - **Description**: {what it does based on visual}
283
+ - **Acceptance Criteria**:
284
+ - [ ] {visual criterion 1}
285
+ - [ ] {visual criterion 2}
286
+ - **Components**: {list of components needed}
287
+ - **Priority**: {inferred from prominence}
288
+
289
+ #### FR-P2: {Component/Feature Name}
290
+ ...
291
+
292
+ ### Non-Functional Requirements (inferred)
293
+
294
+ #### NFR-P1: Visual Consistency
295
+ - Design system must be applied consistently
296
+ - All components follow extracted patterns
297
+
298
+ #### NFR-P2: Responsive Design
299
+ - {any responsive hints from prototype}
300
+
301
+ ### Open Questions
302
+ - {things that aren't clear from prototype}
303
+ - {interactions that need clarification}
304
+ ```
305
+
306
+ **Checkpoint 3**: Present derived requirements.
307
+
308
+ ```text
309
+ ### Derived Requirements Review
310
+
311
+ Based on your prototype, I've derived these requirements:
312
+
313
+ {full requirements list}
314
+
315
+ ### Open Questions
316
+ {list of clarifications needed}
317
+
318
+ How should we proceed?
319
+ 1 - Requirements look good, create intent and continue inception
320
+ 2 - Need to adjust requirements
321
+ 3 - Answer open questions first
322
+ ```
323
+
324
+ **Wait for user response.**
325
+
326
+ ---
327
+
328
+ ## Output
329
+
330
+ ### Artifacts Created
331
+
332
+ Save to `memory-bank/prototypes/{prototype-name}/`:
333
+
334
+ 1. **screen-inventory.md** - Catalog of all screens
335
+ 2. **design-system.md** - Extracted design tokens and patterns
336
+ 3. **component-catalog.md** - Component inventory
337
+ 4. **user-flows.md** - Identified user flows
338
+ 5. **derived-requirements.md** - Requirements ready for inception
339
+
340
+ ### Summary Output
341
+
342
+ ```markdown
343
+ ## Vibe-to-Spec Complete: {prototype-name}
344
+
345
+ ### Prototype Analysis
346
+ - **Screens analyzed**: {n}
347
+ - **Components identified**: {n}
348
+ - **User flows mapped**: {n}
349
+ - **Requirements derived**: {n}
350
+
351
+ ### Artifacts Created
352
+ - `memory-bank/prototypes/{name}/screen-inventory.md`
353
+ - `memory-bank/prototypes/{name}/design-system.md`
354
+ - `memory-bank/prototypes/{name}/component-catalog.md`
355
+ - `memory-bank/prototypes/{name}/user-flows.md`
356
+ - `memory-bank/prototypes/{name}/derived-requirements.md`
357
+
358
+ ### Next Steps
359
+
360
+ 1 - **intent-create**: Create intent using derived requirements
361
+ 2 - **requirements**: Refine requirements with standard flow
362
+ 3 - **review**: Review all prototype artifacts
363
+
364
+ ### Suggested Next Step
365
+ → **intent-create** - Create intent "{suggested-name}" from prototype
366
+
367
+ **Type a number or press Enter for suggested action.**
368
+ ```
369
+
370
+ ---
371
+
372
+ ## Integration with Inception Flow
373
+
374
+ After vibe-to-spec completes:
375
+
376
+ 1. **intent-create** can reference `derived-requirements.md`
377
+ 2. **requirements** skill can import and refine FR-P* items
378
+ 3. **context** skill can use component catalog for system boundaries
379
+ 4. **units** skill can organize by identified flows
380
+ 5. **stories** skill can generate from user flow mapping
381
+
382
+ ---
383
+
384
+ ## Construction Phase Reference
385
+
386
+ When Construction Agent starts a bolt that references this prototype:
387
+
388
+ 1. Load `design-system.md` for styling decisions
389
+ 2. Reference `component-catalog.md` for component specs
390
+ 3. Use screenshots as visual acceptance criteria
391
+ 4. Apply extracted design tokens to implementation
392
+ 5. **Use frontend-design skill if available** - When implementing UI components, invoke the `/frontend-design` skill for high-quality, production-grade frontend code that avoids generic AI aesthetics
393
+
394
+ ---
395
+
396
+ ## Test Contract
397
+
398
+ ```yaml
399
+ input: Prototype folder with screenshots/HTML
400
+ output:
401
+ - screen-inventory.md
402
+ - design-system.md
403
+ - component-catalog.md
404
+ - user-flows.md
405
+ - derived-requirements.md
406
+ checkpoints: 3
407
+ - Checkpoint 1: Prototype inventory confirmed
408
+ - Checkpoint 2: Design system approved
409
+ - Checkpoint 3: Derived requirements approved
410
+ ```
@@ -322,7 +322,7 @@ For each ADR created, add an entry to `memory-bank/standards/decision-index.md`:
322
322
  - **Read when**: {Generate guidance based on the ADR's domain - describe scenarios when agents should read this ADR}
323
323
  ```
324
324
 
325
- 1. Update frontmatter: increment `total_decisions`, update `last_updated` timestamp
325
+ Update frontmatter: increment `total_decisions`, update `last_updated` timestamp
326
326
 
327
327
  **"Read when" Guidance Examples**:
328
328