specsmd 0.0.0-dev.9 → 0.0.0-dev.90

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 (146) hide show
  1. package/README.md +190 -224
  2. package/bin/cli.js +28 -1
  3. package/flows/aidlc/commands/construction-agent.md +5 -1
  4. package/flows/aidlc/commands/inception-agent.md +4 -0
  5. package/flows/aidlc/commands/master-agent.md +4 -0
  6. package/flows/aidlc/commands/operations-agent.md +4 -0
  7. package/flows/aidlc/memory-bank.yaml +2 -1
  8. package/{scripts/artifact-validator.js → flows/aidlc/scripts/artifact-validator.cjs} +3 -3
  9. package/{scripts/bolt-complete.js → flows/aidlc/scripts/bolt-complete.cjs} +36 -5
  10. package/{scripts/status-integrity.js → flows/aidlc/scripts/status-integrity.cjs} +5 -5
  11. package/flows/aidlc/skills/construction/bolt-list.md +1 -1
  12. package/flows/aidlc/skills/construction/bolt-start.md +3 -3
  13. package/flows/aidlc/skills/construction/bolt-status.md +1 -1
  14. package/flows/aidlc/skills/construction/prototype-apply.md +311 -0
  15. package/flows/aidlc/skills/inception/vibe-to-spec.md +410 -0
  16. package/flows/aidlc/skills/master/analyze-context.md +1 -1
  17. package/flows/aidlc/templates/construction/bolt-template.md +2 -2
  18. package/flows/aidlc/templates/construction/bolt-types/ddd-construction-bolt.md +73 -11
  19. package/flows/aidlc/templates/standards/decision-index-template.md +32 -0
  20. package/flows/fire/README.md +19 -0
  21. package/flows/fire/agents/builder/agent.md +260 -0
  22. package/flows/fire/agents/builder/skills/code-review/SKILL.md +257 -0
  23. package/flows/fire/agents/builder/skills/code-review/references/auto-fix-rules.md +218 -0
  24. package/flows/fire/agents/builder/skills/code-review/references/review-categories.md +154 -0
  25. package/flows/fire/agents/builder/skills/code-review/templates/review-report.md.hbs +120 -0
  26. package/flows/fire/agents/builder/skills/run-execute/SKILL.md +714 -0
  27. package/flows/fire/agents/builder/skills/run-execute/scripts/complete-run.cjs +800 -0
  28. package/flows/fire/agents/builder/skills/run-execute/scripts/init-run.cjs +500 -0
  29. package/flows/fire/agents/builder/skills/run-execute/scripts/update-checkpoint.cjs +254 -0
  30. package/flows/fire/agents/builder/skills/run-execute/scripts/update-phase.cjs +250 -0
  31. package/flows/fire/agents/builder/skills/run-execute/templates/plan.md.hbs +61 -0
  32. package/flows/fire/agents/builder/skills/run-execute/templates/test-report.md.hbs +81 -0
  33. package/flows/fire/agents/builder/skills/run-plan/SKILL.md +378 -0
  34. package/flows/fire/agents/builder/skills/run-status/SKILL.md +96 -0
  35. package/flows/fire/agents/builder/skills/walkthrough-generate/SKILL.md +267 -0
  36. package/flows/fire/agents/builder/skills/walkthrough-generate/templates/walkthrough.md.hbs +176 -0
  37. package/flows/fire/agents/orchestrator/agent.md +144 -0
  38. package/flows/fire/agents/orchestrator/skills/project-init/SKILL.md +226 -0
  39. package/flows/fire/agents/orchestrator/skills/project-init/templates/coding-standards.md.hbs +149 -0
  40. package/flows/fire/agents/orchestrator/skills/project-init/templates/constitution.md.hbs +43 -0
  41. package/flows/fire/agents/orchestrator/skills/project-init/templates/system-architecture.md.hbs +101 -0
  42. package/flows/fire/agents/orchestrator/skills/project-init/templates/tech-stack.md.hbs +136 -0
  43. package/flows/fire/agents/orchestrator/skills/project-init/templates/testing-standards.md.hbs +94 -0
  44. package/flows/fire/agents/orchestrator/skills/route/SKILL.md +146 -0
  45. package/flows/fire/agents/orchestrator/skills/status/SKILL.md +696 -0
  46. package/flows/fire/agents/planner/agent.md +143 -0
  47. package/flows/fire/agents/planner/skills/design-doc-generate/SKILL.md +156 -0
  48. package/flows/fire/agents/planner/skills/design-doc-generate/templates/design.md.hbs +124 -0
  49. package/flows/fire/agents/planner/skills/intent-capture/SKILL.md +125 -0
  50. package/flows/fire/agents/planner/skills/intent-capture/templates/brief.md.hbs +40 -0
  51. package/flows/fire/agents/planner/skills/work-item-decompose/SKILL.md +166 -0
  52. package/flows/fire/agents/planner/skills/work-item-decompose/templates/work-item.md.hbs +40 -0
  53. package/flows/fire/commands/fire-builder.md +56 -0
  54. package/flows/fire/commands/fire-planner.md +48 -0
  55. package/flows/fire/commands/fire.md +46 -0
  56. package/flows/fire/memory-bank.yaml +240 -0
  57. package/flows/fire/quick-start.md +146 -0
  58. package/flows/ideation/README.md +35 -0
  59. package/flows/ideation/agents/orchestrator/agent.md +103 -0
  60. package/flows/ideation/agents/orchestrator/skills/flame/SKILL.md +132 -0
  61. package/flows/ideation/agents/orchestrator/skills/flame/references/evaluation-criteria.md +81 -0
  62. package/flows/ideation/agents/orchestrator/skills/flame/references/six-hats-method.md +87 -0
  63. package/flows/ideation/agents/orchestrator/skills/flame/templates/flame-report.md.hbs +81 -0
  64. package/flows/ideation/agents/orchestrator/skills/forge/SKILL.md +153 -0
  65. package/flows/ideation/agents/orchestrator/skills/forge/references/disney-method.md +94 -0
  66. package/flows/ideation/agents/orchestrator/skills/forge/references/pitch-framework.md +87 -0
  67. package/flows/ideation/agents/orchestrator/skills/forge/templates/concept-brief.md.hbs +83 -0
  68. package/flows/ideation/agents/orchestrator/skills/spark/SKILL.md +152 -0
  69. package/flows/ideation/agents/orchestrator/skills/spark/references/anti-bias.md +43 -0
  70. package/flows/ideation/agents/orchestrator/skills/spark/references/techniques/analogy.md +60 -0
  71. package/flows/ideation/agents/orchestrator/skills/spark/references/techniques/first-principles.md +56 -0
  72. package/flows/ideation/agents/orchestrator/skills/spark/references/techniques/index.yaml +76 -0
  73. package/flows/ideation/agents/orchestrator/skills/spark/references/techniques/inversion.md +52 -0
  74. package/flows/ideation/agents/orchestrator/skills/spark/references/techniques/questorming.md +57 -0
  75. package/flows/ideation/agents/orchestrator/skills/spark/references/techniques/random-word.md +35 -0
  76. package/flows/ideation/agents/orchestrator/skills/spark/references/techniques/scamper.md +67 -0
  77. package/flows/ideation/agents/orchestrator/skills/spark/references/techniques/what-if.md +55 -0
  78. package/flows/ideation/agents/orchestrator/skills/spark/templates/spark-bank.md.hbs +72 -0
  79. package/flows/ideation/commands/flame.md +43 -0
  80. package/flows/ideation/commands/forge.md +43 -0
  81. package/flows/ideation/commands/ideation.md +51 -0
  82. package/flows/ideation/commands/spark.md +43 -0
  83. package/flows/ideation/memory-bank.yaml +177 -0
  84. package/flows/ideation/quick-start.md +84 -0
  85. package/flows/ideation/shared/protocols/anti-bias.md +79 -0
  86. package/flows/ideation/shared/protocols/deep-thinking.md +92 -0
  87. package/flows/ideation/shared/protocols/diverge-converge.md +72 -0
  88. package/flows/ideation/shared/protocols/interaction-adaptation.md +88 -0
  89. package/flows/simple/README.md +190 -0
  90. package/flows/simple/agents/agent.md +404 -0
  91. package/flows/simple/commands/agent.md +60 -0
  92. package/flows/simple/context-config.yaml +34 -0
  93. package/flows/simple/memory-bank.yaml +66 -0
  94. package/flows/simple/quick-start.md +231 -0
  95. package/flows/simple/skills/design.md +96 -0
  96. package/flows/simple/skills/execute.md +190 -0
  97. package/flows/simple/skills/requirements.md +94 -0
  98. package/flows/simple/skills/tasks.md +136 -0
  99. package/flows/simple/templates/design-template.md +138 -0
  100. package/flows/simple/templates/requirements-template.md +85 -0
  101. package/flows/simple/templates/tasks-template.md +104 -0
  102. package/lib/analytics/tracker.js +6 -2
  103. package/lib/constants.js +25 -8
  104. package/lib/dashboard/aidlc/parser.js +581 -0
  105. package/lib/dashboard/fire/model.js +382 -0
  106. package/lib/dashboard/fire/parser.js +470 -0
  107. package/lib/dashboard/flow-detect.js +86 -0
  108. package/lib/dashboard/git/changes.js +362 -0
  109. package/lib/dashboard/git/worktrees.js +248 -0
  110. package/lib/dashboard/index.js +709 -0
  111. package/lib/dashboard/runtime/watch-runtime.js +122 -0
  112. package/lib/dashboard/simple/parser.js +293 -0
  113. package/lib/dashboard/tui/app.js +1675 -0
  114. package/lib/dashboard/tui/components/error-banner.js +35 -0
  115. package/lib/dashboard/tui/components/header.js +60 -0
  116. package/lib/dashboard/tui/components/help-footer.js +15 -0
  117. package/lib/dashboard/tui/components/stats-strip.js +35 -0
  118. package/lib/dashboard/tui/file-entries.js +383 -0
  119. package/lib/dashboard/tui/flow-builders.js +991 -0
  120. package/lib/dashboard/tui/git-builders.js +218 -0
  121. package/lib/dashboard/tui/helpers.js +236 -0
  122. package/lib/dashboard/tui/overlays.js +242 -0
  123. package/lib/dashboard/tui/preview.js +220 -0
  124. package/lib/dashboard/tui/renderer.js +76 -0
  125. package/lib/dashboard/tui/row-builders.js +797 -0
  126. package/lib/dashboard/tui/sections.js +45 -0
  127. package/lib/dashboard/tui/store.js +44 -0
  128. package/lib/dashboard/tui/views/overview-view.js +61 -0
  129. package/lib/dashboard/tui/views/runs-view.js +93 -0
  130. package/lib/dashboard/tui/worktree-builders.js +229 -0
  131. package/lib/dashboard/web/extension-adapter.js +726 -0
  132. package/lib/dashboard/web/public/app.js +9 -0
  133. package/lib/dashboard/web/public/index.html +14 -0
  134. package/lib/dashboard/web/public/styles.css +36 -0
  135. package/lib/dashboard/web/public/webview-bundle.js +7596 -0
  136. package/lib/dashboard/web/server.js +376 -0
  137. package/lib/dashboard/web/snapshot.js +299 -0
  138. package/lib/installer.js +19 -15
  139. package/lib/installers/CodexInstaller.js +72 -1
  140. package/lib/installers/KiroInstaller.js +55 -0
  141. package/lib/installers/OpenCodeInstaller.js +9 -1
  142. package/lib/installers/ToolInstaller.js +4 -1
  143. package/lib/installers/WindsurfInstaller.js +0 -54
  144. package/package.json +15 -55
  145. package/scripts/check-webview-bundle-sync.cjs +38 -0
  146. package/scripts/sync-webview-bundle.cjs +19 -0
@@ -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
+ ```
@@ -53,7 +53,7 @@ For recent/active intents:
53
53
  Check `schema.bolts` directory:
54
54
 
55
55
  - Are there bolt instance files?
56
- - What is their status? (planned, in-progress, completed)
56
+ - What is their status? (planned, in-progress, complete)
57
57
  - What stage are in-progress bolts at?
58
58
 
59
59
  ### 5. Determine Phase
@@ -67,7 +67,7 @@ Before creating a bolt, verify ALL required fields are present:
67
67
  | `unit` | **YES** | Parent unit ID |
68
68
  | `intent` | **YES** | Parent intent ID |
69
69
  | `type` | **YES** | Bolt type (`ddd-construction-bolt` or `simple-construction-bolt`) |
70
- | `status` | **YES** | Current status (`planned`, `in-progress`, `completed`, `blocked`) |
70
+ | `status` | **YES** | Current status (`planned`, `in-progress`, `complete`, `blocked`) |
71
71
  | `stories` | **YES** | Array of story IDs included in this bolt |
72
72
  | `created` | **YES** | Creation timestamp |
73
73
  | `requires_bolts` | **YES** | Array of bolt IDs this depends on (can be empty `[]`) |
@@ -134,7 +134,7 @@ Before creating a bolt, verify ALL required fields are present:
134
134
 
135
135
  - **planned**: Bolt created, not started
136
136
  - **in-progress**: Currently being executed
137
- - **completed**: All stages done
137
+ - **complete**: All stages done
138
138
  - **blocked**: Cannot proceed due to dependency
139
139
 
140
140
  ---
@@ -272,6 +272,7 @@ Suggest an ADR when you identify:
272
272
  3 - **Identify ADR-worthy decisions**: Create decision list
273
273
  4 - **Present opportunities to user**: Get user selection
274
274
  5 - **Create ADR documents**: Generate selected ADRs
275
+ 6 - **Update decision index**: Add entries to `memory-bank/standards/decision-index.md`
275
276
 
276
277
  **Artifact**: `adr-{number}-{slug}.md` (zero or more)
277
278
  **Template**: `.specsmd/aidlc/templates/construction/bolt-types/ddd-construction-bolt/adr-template.md`
@@ -282,7 +283,8 @@ Suggest an ADR when you identify:
282
283
  1. Review stories, domain model, and technical design
283
284
  2. Compare against loaded project standards
284
285
  3. If decision-worthy patterns detected, present opportunities to user
285
- 4. Handle user response and proceed to checkpoint
286
+ 4. Handle user response (create selected ADRs or skip)
287
+ 5. Update decision index (if ADRs created) and proceed to checkpoint
286
288
 
287
289
  **Step 3 Output Format**:
288
290
 
@@ -299,10 +301,36 @@ Would you like to create ADRs for any of these? (Enter numbers, "all", or "skip"
299
301
 
300
302
  **Step 4 Decision Handling**:
301
303
 
302
- - **User selects numbers or "all"** → Generate ADRs using template, then proceed to checkpoint
304
+ - **User selects numbers or "all"** → Generate ADRs using template, then update decision index
303
305
  - **User selects "skip"** → Proceed to checkpoint with "No ADRs created"
304
306
  - **No ADR opportunities identified** → Auto-proceed to checkpoint with "No ADR-worthy decisions found"
305
307
 
308
+ **Step 5 Decision Index Update**:
309
+
310
+ For each ADR created, add an entry to `memory-bank/standards/decision-index.md`:
311
+
312
+ 1. If `decision-index.md` doesn't exist, create it from template: `.specsmd/aidlc/templates/standards/decision-index-template.md`
313
+ 2. Add entry for each ADR in the following format:
314
+
315
+ ```markdown
316
+ ### ADR-{n}: {title}
317
+ - **Status**: {status from ADR frontmatter}
318
+ - **Date**: {YYYY-MM-DD from ADR created timestamp}
319
+ - **Bolt**: {bolt-id} ({unit-name})
320
+ - **Path**: `bolts/{bolt-id}/adr-{n}-{slug}.md`
321
+ - **Summary**: {First sentence from Context section}. {First sentence from Decision section}.
322
+ - **Read when**: {Generate guidance based on the ADR's domain - describe scenarios when agents should read this ADR}
323
+ ```
324
+
325
+ Update frontmatter: increment `total_decisions`, update `last_updated` timestamp
326
+
327
+ **"Read when" Guidance Examples**:
328
+
329
+ - "Working on authentication flows or session management"
330
+ - "Implementing caching strategies or data persistence patterns"
331
+ - "Designing API contracts or integration points"
332
+ - "Handling error cases or implementing retry logic"
333
+
306
334
  **Example ADR**:
307
335
 
308
336
  ```markdown
@@ -330,6 +358,7 @@ Implement CQRS pattern with separate read models for task queries.
330
358
  - [ ] Project standards compared
331
359
  - [ ] User presented with ADR opportunities (if any)
332
360
  - [ ] Selected ADRs created (or explicitly skipped)
361
+ - [ ] Decision index updated (if ADRs were created)
333
362
 
334
363
  **Important**: Do not force ADRs. Only suggest when there's genuine value. Simple bolts with straightforward decisions don't need ADRs.
335
364
 
@@ -495,6 +524,37 @@ status: in-progress
495
524
 
496
525
  ## Bolt Context Loading
497
526
 
527
+ ### Prior Decision Lookup (All Stages)
528
+
529
+ **Before starting any stage**, scan the decision index for relevant prior ADRs:
530
+
531
+ 1. Read `memory-bank/standards/decision-index.md` (if it exists)
532
+ 2. Match the current bolt's domain/scope against "Read when" fields
533
+ 3. Load full ADRs for any matching entries
534
+ 4. Consider these decisions as constraints or guidance for the current work
535
+
536
+ **Example**: If working on a bolt for "user-service" and the decision index contains:
537
+
538
+ ```text
539
+ ### ADR-001: Use JWT for Authentication
540
+ - **Read when**: Working on authentication flows or user services
541
+ ```
542
+
543
+ → Load and consider `ADR-001` before starting design work.
544
+
545
+ **Present relevant ADRs to user** at bolt start:
546
+
547
+ ```text
548
+ ## Relevant Prior Decisions
549
+
550
+ Found {n} ADR(s) that may apply to this bolt:
551
+ - ADR-001: Use JWT for Authentication → [View](bolts/001-auth-service/adr-001-jwt-auth.md)
552
+
553
+ These decisions may constrain or guide your approach. Proceed? (y/n)
554
+ ```
555
+
556
+ ### Bolt Folder Artifacts (Stages 4-5)
557
+
498
558
  For stages that build on previous work (Stage 4: Implement, Stage 5: Test), load all artifacts from the bolt folder:
499
559
 
500
560
  **Location**: `memory-bank/bolts/{bolt-id}/`
@@ -515,14 +575,16 @@ This ensures the implementation and test stages have full context from earlier d
515
575
  1. **Load bolt instance** from path defined by `schema.bolts`
516
576
  2. **Read `bolt_type` field** (e.g., `ddd-construction-bolt`)
517
577
  3. **Load this definition** from `.specsmd/aidlc/templates/construction/bolt-types/`
518
- 4. **Check `current_stage`** in bolt instance
519
- 5. **Load bolt folder artifacts** if stage requires previous context (see Bolt Context Loading)
520
- 6. **Execute stage** following activities defined here
521
- 7. **Create artifacts** using templates
522
- 8. **⛔ STOP and present completion summary** - DO NOT continue automatically
523
- 9. **Wait for user confirmation** - user must explicitly approve (e.g., "continue", "proceed", "next")
524
- 10. **Only after approval**: Update bolt state and advance to next stage
525
-
526
- **⛔ CRITICAL**: Steps 8-9 are MANDATORY. Never skip the human checkpoint. Never auto-advance.
578
+ 4. **Scan decision index** for relevant prior ADRs (see Prior Decision Lookup)
579
+ 5. **Present relevant ADRs** to user if any found, get confirmation to proceed
580
+ 6. **Check `current_stage`** in bolt instance
581
+ 7. **Load bolt folder artifacts** if stage requires previous context (see Bolt Folder Artifacts)
582
+ 8. **Execute stage** following activities defined here
583
+ 9. **Create artifacts** using templates
584
+ 10. **⛔ STOP and present completion summary** - DO NOT continue automatically
585
+ 11. **Wait for user confirmation** - user must explicitly approve (e.g., "continue", "proceed", "next")
586
+ 12. **Only after approval**: Update bolt state and advance to next stage
587
+
588
+ **⛔ CRITICAL**: Steps 10-11 are MANDATORY. Never skip the human checkpoint. Never auto-advance.
527
589
 
528
590
  The Construction Agent is **bolt-type agnostic** - it reads stages from this file and executes them.
@@ -0,0 +1,32 @@
1
+ ---
2
+ last_updated: {YYYY-MM-DDTHH:MM:SSZ}
3
+ total_decisions: 0
4
+ ---
5
+
6
+ # Decision Index
7
+
8
+ This index tracks all Architecture Decision Records (ADRs) created during Construction bolts.
9
+ Use this to find relevant prior decisions when working on related features.
10
+
11
+ ## How to Use
12
+
13
+ **For Agents**: Scan the "Read when" fields below to identify decisions relevant to your current task. Before implementing new features, check if existing ADRs constrain or guide your approach. Load the full ADR for matching entries.
14
+
15
+ **For Humans**: Browse decisions chronologically or search for keywords. Each entry links to the full ADR with complete context, alternatives considered, and consequences.
16
+
17
+ ---
18
+
19
+ ## Decisions
20
+
21
+ <!-- Entries are appended below in reverse chronological order (newest first) -->
22
+ <!-- Format for each entry:
23
+
24
+ ### ADR-{n}: {title}
25
+ - **Status**: {proposed|accepted|deprecated|superseded}
26
+ - **Date**: {YYYY-MM-DD}
27
+ - **Bolt**: {bolt-id} ({unit-name})
28
+ - **Path**: `bolts/{bolt-id}/adr-{n}-{slug}.md`
29
+ - **Summary**: {First sentence from Context}. {First sentence from Decision}.
30
+ - **Read when**: {Agent guidance - domain keywords and scenarios when this ADR is relevant}
31
+
32
+ -->
@@ -0,0 +1,19 @@
1
+ # FIRE Flow
2
+
3
+ **Fast Intent-Run Engineering** — A simplified AI-native development methodology.
4
+
5
+ For getting started, see [quick-start.md](./quick-start.md).
6
+
7
+ ## Summary
8
+
9
+ - **Hierarchy**: Intent → Work Item → Run
10
+ - **Checkpoints**: 0-2 (adaptive based on complexity)
11
+ - **Agents**: Orchestrator, Planner, Builder
12
+
13
+ ## Commands
14
+
15
+ | Command | Purpose |
16
+ |---------|---------|
17
+ | `/specsmd-fire` | Main entry point (orchestrator) |
18
+ | `/specsmd-fire-planner` | Planning and decomposition |
19
+ | `/specsmd-fire-builder` | Execution and walkthroughs |