@thierrynakoa/fire-flow 10.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (215) hide show
  1. package/.claude-plugin/plugin.json +64 -0
  2. package/ARCHITECTURE-DIAGRAM.md +440 -0
  3. package/COMMAND-REFERENCE.md +172 -0
  4. package/DOMINION-FLOW-OVERVIEW.md +421 -0
  5. package/LICENSE +21 -0
  6. package/QUICK-START.md +351 -0
  7. package/README.md +398 -0
  8. package/TROUBLESHOOTING.md +264 -0
  9. package/agents/fire-codebase-mapper.md +484 -0
  10. package/agents/fire-debugger.md +535 -0
  11. package/agents/fire-executor.md +949 -0
  12. package/agents/fire-fact-checker.md +276 -0
  13. package/agents/fire-learncoding-explainer.md +237 -0
  14. package/agents/fire-learncoding-walker.md +147 -0
  15. package/agents/fire-planner.md +675 -0
  16. package/agents/fire-project-researcher.md +155 -0
  17. package/agents/fire-research-synthesizer.md +166 -0
  18. package/agents/fire-researcher.md +723 -0
  19. package/agents/fire-reviewer.md +499 -0
  20. package/agents/fire-roadmapper.md +203 -0
  21. package/agents/fire-verifier.md +880 -0
  22. package/bin/cli.js +208 -0
  23. package/commands/fire-0-orient.md +476 -0
  24. package/commands/fire-1-new.md +281 -0
  25. package/commands/fire-1a-discuss.md +455 -0
  26. package/commands/fire-2-plan.md +527 -0
  27. package/commands/fire-3-execute.md +1303 -0
  28. package/commands/fire-4-verify.md +845 -0
  29. package/commands/fire-5-handoff.md +515 -0
  30. package/commands/fire-6-resume.md +501 -0
  31. package/commands/fire-7-review.md +409 -0
  32. package/commands/fire-add-new-skill.md +598 -0
  33. package/commands/fire-analytics.md +499 -0
  34. package/commands/fire-assumptions.md +78 -0
  35. package/commands/fire-autonomous.md +528 -0
  36. package/commands/fire-brainstorm.md +413 -0
  37. package/commands/fire-complete-milestone.md +270 -0
  38. package/commands/fire-dashboard.md +375 -0
  39. package/commands/fire-debug.md +663 -0
  40. package/commands/fire-discover.md +616 -0
  41. package/commands/fire-double-check.md +460 -0
  42. package/commands/fire-execute-plan.md +182 -0
  43. package/commands/fire-learncoding.md +242 -0
  44. package/commands/fire-loop-resume.md +272 -0
  45. package/commands/fire-loop-stop.md +198 -0
  46. package/commands/fire-loop.md +1168 -0
  47. package/commands/fire-map-codebase.md +313 -0
  48. package/commands/fire-new-milestone.md +356 -0
  49. package/commands/fire-reflect.md +235 -0
  50. package/commands/fire-research.md +246 -0
  51. package/commands/fire-search.md +330 -0
  52. package/commands/fire-security-audit-repo.md +293 -0
  53. package/commands/fire-security-scan.md +484 -0
  54. package/commands/fire-session-summary.md +252 -0
  55. package/commands/fire-skills-diff.md +506 -0
  56. package/commands/fire-skills-history.md +388 -0
  57. package/commands/fire-skills-rollback.md +408 -0
  58. package/commands/fire-skills-sync.md +470 -0
  59. package/commands/fire-test.md +520 -0
  60. package/commands/fire-todos.md +335 -0
  61. package/commands/fire-transition.md +186 -0
  62. package/commands/fire-update.md +312 -0
  63. package/commands/fire-verify-uat.md +146 -0
  64. package/commands/fire-vuln-scan.md +493 -0
  65. package/hooks/hooks.json +16 -0
  66. package/hooks/run-hook.cmd +69 -0
  67. package/hooks/run-hook.sh +8 -0
  68. package/hooks/run-session-end.cmd +49 -0
  69. package/hooks/run-session-end.sh +7 -0
  70. package/hooks/session-end.sh +90 -0
  71. package/hooks/session-start.sh +111 -0
  72. package/package.json +52 -0
  73. package/plugin.json +7 -0
  74. package/references/auto-skill-extraction.md +136 -0
  75. package/references/behavioral-directives.md +365 -0
  76. package/references/blocker-tracking.md +155 -0
  77. package/references/checkpoints.md +165 -0
  78. package/references/circuit-breaker.md +410 -0
  79. package/references/context-engineering.md +587 -0
  80. package/references/decision-time-guidance.md +289 -0
  81. package/references/error-classification.md +326 -0
  82. package/references/execution-mode-intelligence.md +242 -0
  83. package/references/git-integration.md +217 -0
  84. package/references/honesty-protocols.md +304 -0
  85. package/references/integration-architecture.md +470 -0
  86. package/references/issue-to-pr-pipeline.md +150 -0
  87. package/references/metrics-and-trends.md +234 -0
  88. package/references/playwright-e2e-testing.md +326 -0
  89. package/references/questioning.md +125 -0
  90. package/references/research-improvements.md +110 -0
  91. package/references/skills-usage-guide.md +429 -0
  92. package/references/tdd.md +131 -0
  93. package/references/testing-enforcement.md +192 -0
  94. package/references/ui-brand.md +383 -0
  95. package/references/validation-checklist.md +456 -0
  96. package/references/verification-patterns.md +187 -0
  97. package/references/warrior-principles.md +173 -0
  98. package/skills-library/SKILLS-INDEX.md +588 -0
  99. package/skills-library/_general/frontend/html-visual-reports.md +292 -0
  100. package/skills-library/_general/methodology/debug-swarm-researcher-escape-hatch.md +240 -0
  101. package/skills-library/_general/methodology/learncoding-agentic-pattern.md +114 -0
  102. package/skills-library/_general/methodology/shell-autonomous-loop-fixplan.md +238 -0
  103. package/skills-library/basics/api-rest-basics.md +162 -0
  104. package/skills-library/basics/env-variables.md +96 -0
  105. package/skills-library/basics/error-handling-basics.md +125 -0
  106. package/skills-library/basics/git-commit-conventions.md +106 -0
  107. package/skills-library/basics/readme-template.md +108 -0
  108. package/skills-library/common-tasks/async-await-patterns.md +157 -0
  109. package/skills-library/common-tasks/auth-jwt-basics.md +164 -0
  110. package/skills-library/common-tasks/database-schema-design.md +166 -0
  111. package/skills-library/common-tasks/file-upload-basics.md +166 -0
  112. package/skills-library/common-tasks/form-validation.md +159 -0
  113. package/skills-library/debugging/FAILURE_TAXONOMY_CLASSIFICATION.md +117 -0
  114. package/skills-library/debugging/THREE_AGENT_HYPOTHESIS_DEBUGGING.md +86 -0
  115. package/skills-library/methodology/BREATH_BASED_PARALLEL_EXECUTION.md +678 -0
  116. package/skills-library/methodology/CONFIDENCE_GATED_EXECUTION.md +243 -0
  117. package/skills-library/methodology/EVIDENCE_BASED_VALIDATION.md +308 -0
  118. package/skills-library/methodology/MULTI_PERSPECTIVE_CODE_REVIEW.md +330 -0
  119. package/skills-library/methodology/PATH_VERIFICATION_GATE.md +211 -0
  120. package/skills-library/methodology/REFLEXION_MEMORY_PATTERN.md +183 -0
  121. package/skills-library/methodology/RESEARCH_BACKED_WORKFLOW_UPGRADE.md +263 -0
  122. package/skills-library/methodology/SABBATH_REST_PATTERN.md +267 -0
  123. package/skills-library/methodology/STONE_AND_SCAFFOLD.md +220 -0
  124. package/skills-library/performance/cache-augmented-generation.md +172 -0
  125. package/skills-library/quality-safety/debugging-steps.md +147 -0
  126. package/skills-library/quality-safety/deployment-checklist.md +155 -0
  127. package/skills-library/quality-safety/security-checklist.md +204 -0
  128. package/skills-library/quality-safety/testing-basics.md +180 -0
  129. package/skills-library/security/agent-security-scanner.md +445 -0
  130. package/skills-library/specialists/api-architecture/api-designer.md +49 -0
  131. package/skills-library/specialists/api-architecture/graphql-architect.md +49 -0
  132. package/skills-library/specialists/api-architecture/mcp-developer.md +51 -0
  133. package/skills-library/specialists/api-architecture/microservices-architect.md +50 -0
  134. package/skills-library/specialists/api-architecture/websocket-engineer.md +48 -0
  135. package/skills-library/specialists/backend/django-expert.md +52 -0
  136. package/skills-library/specialists/backend/fastapi-expert.md +52 -0
  137. package/skills-library/specialists/backend/laravel-specialist.md +52 -0
  138. package/skills-library/specialists/backend/nestjs-expert.md +51 -0
  139. package/skills-library/specialists/backend/rails-expert.md +53 -0
  140. package/skills-library/specialists/backend/spring-boot-engineer.md +56 -0
  141. package/skills-library/specialists/data-ml/fine-tuning-expert.md +48 -0
  142. package/skills-library/specialists/data-ml/ml-pipeline.md +47 -0
  143. package/skills-library/specialists/data-ml/pandas-pro.md +47 -0
  144. package/skills-library/specialists/data-ml/rag-architect.md +51 -0
  145. package/skills-library/specialists/data-ml/spark-engineer.md +47 -0
  146. package/skills-library/specialists/frontend/angular-architect.md +52 -0
  147. package/skills-library/specialists/frontend/flutter-expert.md +51 -0
  148. package/skills-library/specialists/frontend/nextjs-developer.md +54 -0
  149. package/skills-library/specialists/frontend/react-native-expert.md +50 -0
  150. package/skills-library/specialists/frontend/vue-expert.md +51 -0
  151. package/skills-library/specialists/infrastructure/chaos-engineer.md +74 -0
  152. package/skills-library/specialists/infrastructure/cloud-architect.md +70 -0
  153. package/skills-library/specialists/infrastructure/database-optimizer.md +64 -0
  154. package/skills-library/specialists/infrastructure/devops-engineer.md +70 -0
  155. package/skills-library/specialists/infrastructure/kubernetes-specialist.md +52 -0
  156. package/skills-library/specialists/infrastructure/monitoring-expert.md +70 -0
  157. package/skills-library/specialists/infrastructure/sre-engineer.md +70 -0
  158. package/skills-library/specialists/infrastructure/terraform-engineer.md +51 -0
  159. package/skills-library/specialists/languages/cpp-pro.md +74 -0
  160. package/skills-library/specialists/languages/csharp-developer.md +69 -0
  161. package/skills-library/specialists/languages/dotnet-core-expert.md +54 -0
  162. package/skills-library/specialists/languages/golang-pro.md +51 -0
  163. package/skills-library/specialists/languages/java-architect.md +49 -0
  164. package/skills-library/specialists/languages/javascript-pro.md +68 -0
  165. package/skills-library/specialists/languages/kotlin-specialist.md +68 -0
  166. package/skills-library/specialists/languages/php-pro.md +49 -0
  167. package/skills-library/specialists/languages/python-pro.md +52 -0
  168. package/skills-library/specialists/languages/react-expert.md +51 -0
  169. package/skills-library/specialists/languages/rust-engineer.md +50 -0
  170. package/skills-library/specialists/languages/sql-pro.md +56 -0
  171. package/skills-library/specialists/languages/swift-expert.md +69 -0
  172. package/skills-library/specialists/languages/typescript-pro.md +51 -0
  173. package/skills-library/specialists/platform/atlassian-mcp.md +52 -0
  174. package/skills-library/specialists/platform/embedded-systems.md +53 -0
  175. package/skills-library/specialists/platform/game-developer.md +53 -0
  176. package/skills-library/specialists/platform/salesforce-developer.md +53 -0
  177. package/skills-library/specialists/platform/shopify-expert.md +49 -0
  178. package/skills-library/specialists/platform/wordpress-pro.md +49 -0
  179. package/skills-library/specialists/quality/code-documenter.md +51 -0
  180. package/skills-library/specialists/quality/code-reviewer.md +67 -0
  181. package/skills-library/specialists/quality/debugging-wizard.md +51 -0
  182. package/skills-library/specialists/quality/fullstack-guardian.md +51 -0
  183. package/skills-library/specialists/quality/legacy-modernizer.md +50 -0
  184. package/skills-library/specialists/quality/playwright-expert.md +65 -0
  185. package/skills-library/specialists/quality/spec-miner.md +56 -0
  186. package/skills-library/specialists/quality/test-master.md +65 -0
  187. package/skills-library/specialists/security/secure-code-guardian.md +55 -0
  188. package/skills-library/specialists/security/security-reviewer.md +53 -0
  189. package/skills-library/specialists/workflow/architecture-designer.md +53 -0
  190. package/skills-library/specialists/workflow/cli-developer.md +70 -0
  191. package/skills-library/specialists/workflow/feature-forge.md +65 -0
  192. package/skills-library/specialists/workflow/prompt-engineer.md +54 -0
  193. package/skills-library/specialists/workflow/the-fool.md +62 -0
  194. package/templates/ASSUMPTIONS.md +125 -0
  195. package/templates/BLOCKERS.md +73 -0
  196. package/templates/DECISION_LOG.md +116 -0
  197. package/templates/UAT.md +96 -0
  198. package/templates/blueprint.md +94 -0
  199. package/templates/brainstorm.md +185 -0
  200. package/templates/conscience.md +92 -0
  201. package/templates/fire-handoff.md +159 -0
  202. package/templates/metrics.md +67 -0
  203. package/templates/phase-prompt.md +142 -0
  204. package/templates/record.md +131 -0
  205. package/templates/review-report.md +117 -0
  206. package/templates/skills-index.md +157 -0
  207. package/templates/verification.md +149 -0
  208. package/templates/vision.md +79 -0
  209. package/validation-config.yml +793 -0
  210. package/version.json +7 -0
  211. package/workflows/execute-phase.md +732 -0
  212. package/workflows/handoff-session.md +678 -0
  213. package/workflows/new-project.md +578 -0
  214. package/workflows/plan-phase.md +592 -0
  215. package/workflows/verify-phase.md +874 -0
@@ -0,0 +1,455 @@
1
+ ---
2
+ description: Gather implementation context through adaptive questioning before planning
3
+ ---
4
+
5
+ # /fire-1a-discuss
6
+
7
+ > Think before you plan
8
+
9
+ ---
10
+
11
+ ## Purpose
12
+
13
+ Extract implementation decisions through focused conversation BEFORE planning begins. You are a thinking partner, not an interviewer. The user is the visionary - you are the builder.
14
+
15
+ This command creates MEMORY.md with decisions that guide research and planning, ensuring downstream agents can act without asking the user again.
16
+
17
+ ---
18
+
19
+ ## Arguments
20
+
21
+ ```yaml
22
+ arguments:
23
+ phase:
24
+ required: true
25
+ type: integer
26
+ description: "Phase number to discuss"
27
+ example: "/fire-1a-discuss 3"
28
+
29
+ --quick:
30
+ required: false
31
+ type: boolean
32
+ default: false
33
+ description: "Abbreviated discussion (2 questions per area)"
34
+
35
+ --areas:
36
+ required: false
37
+ type: string
38
+ description: "Comma-separated areas to focus on"
39
+ example: '--areas "layout,behavior"'
40
+
41
+ --skip-existing:
42
+ required: false
43
+ type: boolean
44
+ default: false
45
+ description: "Skip if MEMORY.md already exists"
46
+ ```
47
+
48
+ ---
49
+
50
+ ## Philosophy
51
+
52
+ ```
53
+ ┌─────────────────────────────────────────────────────────────────────────────┐
54
+ │ USER = VISIONARY CLAUDE = BUILDER │
55
+ ├─────────────────────────────────────────────────────────────────────────────┤
56
+ │ │
57
+ │ User knows: Claude figures out: │
58
+ │ ├── How they imagine it working ├── Codebase patterns │
59
+ │ ├── What it should look/feel like ├── Technical risks │
60
+ │ ├── What's essential vs nice-to-have ├── Implementation approach │
61
+ │ └── Specific behaviors in mind └── Success metrics │
62
+ │ │
63
+ │ ASK about vision and choices. DON'T ASK about technical details. │
64
+ │ │
65
+ └─────────────────────────────────────────────────────────────────────────────┘
66
+ ```
67
+
68
+ **Scope Guardrail:** The phase boundary comes from VISION.md and is FIXED. Discussion clarifies HOW to implement what's scoped, never WHETHER to add new capabilities.
69
+
70
+ ---
71
+
72
+ ## Process
73
+
74
+ ### Step 1: Validate Phase
75
+
76
+ ```
77
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
78
+ DOMINION FLOW ► DISCUSS PHASE {N}
79
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
80
+ ```
81
+
82
+ **Load and validate:**
83
+ - Read `.planning/VISION.md`
84
+ - Find phase entry
85
+ - Extract: number, name, description, status
86
+
87
+ **If phase not found:**
88
+ ```
89
+ Phase {N} not found in roadmap.
90
+
91
+ Use /fire-dashboard to see available phases.
92
+ ```
93
+
94
+ ### Step 2: Check Existing Context
95
+
96
+ ```bash
97
+ # Check for existing MEMORY.md
98
+ ls .planning/phases/{N}-*/MEMORY.md 2>/dev/null
99
+ ```
100
+
101
+ **If exists:**
102
+ Use AskUserQuestion:
103
+ - header: "Existing context"
104
+ - question: "Phase {N} already has context. What do you want to do?"
105
+ - options:
106
+ - "Update it" - Review and revise existing context
107
+ - "View it" - Show me what's there
108
+ - "Skip" - Use existing context as-is
109
+
110
+ ### Step 2.5: Independence Analysis (v10.0)
111
+
112
+ When multiple features, components, or sub-phases exist within this phase, analyze their dependency relationships.
113
+
114
+ **For each pair of deliverables:**
115
+
116
+ | Check | If Yes | Action |
117
+ |-------|--------|--------|
118
+ | Shared database table? | DEPENDENCY | Define schema first, serialize |
119
+ | Shared API endpoint? | DEPENDENCY | Define contract first |
120
+ | Shared UI component? | SOFT DEPENDENCY | Build shared component in breath 1 |
121
+ | Shared config key? | WEAK | Define config schema, parallelize |
122
+ | No shared state? | INDEPENDENT | Can run in same breath (parallel) |
123
+
124
+ **Output:** Independence matrix added to MEMORY.md:
125
+
126
+ ```
127
+ Independence Analysis:
128
+ Component A ↔ Component B: INDEPENDENT (parallel OK)
129
+ Component A ↔ Component C: DEPENDS (shared DB table)
130
+ Component B ↔ Component C: INDEPENDENT (parallel OK)
131
+
132
+ Recommended breath grouping:
133
+ Breath 1: A + B (parallel)
134
+ Breath 2: C (after A, needs shared table)
135
+ ```
136
+
137
+ This feeds directly into breath grouping in fire-2-plan and fire-3-execute.
138
+
139
+ ### Step 3: Identify Gray Areas
140
+
141
+ Analyze the phase to identify implementation decisions worth discussing.
142
+
143
+ **Domain Analysis:**
144
+ ```
145
+ What kind of thing is being built?
146
+
147
+ ├── Something users SEE → visual presentation, interactions, states
148
+ ├── Something users CALL → interface contracts, responses, errors
149
+ ├── Something users RUN → invocation, output, behavior modes
150
+ ├── Something users READ → structure, tone, depth, flow
151
+ └── Something being ORGANIZED → criteria, grouping, exceptions
152
+ ```
153
+
154
+ **Generate Phase-Specific Gray Areas:**
155
+
156
+ Don't use generic labels. Generate concrete decisions:
157
+
158
+ ```
159
+ Phase: "User authentication"
160
+ → Session handling, Error responses, Multi-device policy, Recovery flow
161
+
162
+ Phase: "Organize photo library"
163
+ → Grouping criteria, Duplicate handling, Naming convention, Folder structure
164
+
165
+ Phase: "CLI for database backups"
166
+ → Output format, Flag design, Progress reporting, Error recovery
167
+
168
+ Phase: "API documentation"
169
+ → Structure/navigation, Code examples depth, Versioning approach
170
+ ```
171
+
172
+ ### Step 3.5: Plan Specificity Gate (v10.0)
173
+
174
+ Before presenting gray areas, validate that captured decisions reach FILE-LEVEL specificity.
175
+
176
+ **Specificity Checklist (must score 8/10 to proceed):**
177
+
178
+ | # | Check | Example |
179
+ |---|-------|---------|
180
+ | 1 | File paths listed for every new file | `src/components/Graph/GraphCanvas.tsx` |
181
+ | 2 | Technology stack locked (no TBD) | `@xyflow/react v12, dagre for layout` |
182
+ | 3 | Data models with field names + types | `StudyPlan { id, title, steps[], progress }` |
183
+ | 4 | API routes with method + path + shape | `GET /api/passage-guide/:ref → { sections[] }` |
184
+ | 5 | Component hierarchy mapped | `App → MainLayout → BibleViewer → VerseDisplay` |
185
+ | 6 | Dependencies listed with versions | `piper-tts>=1.2.0, edge-tts>=6.1.0` |
186
+ | 7 | Config structure defined | `tts.backend: "piper" \| "edge"` |
187
+ | 8 | Port numbers / URLs specified | `Port 3101, Qdrant at localhost:6335` |
188
+ | 9 | Build/run commands documented | `npm run dev → localhost:5180` |
189
+ | 10 | Open questions explicitly listed | `"TBD: Piper voice selection"` |
190
+
191
+ **IF score < 8:**
192
+ Generate follow-up questions for each unchecked item.
193
+ Loop back to Step 3 with refined gray areas.
194
+
195
+ **IF score >= 8:**
196
+ Proceed to Step 4 with high-specificity plan.
197
+
198
+ ### Step 4: Present Gray Areas
199
+
200
+ ```
201
+ Phase {N}: {Name}
202
+ Domain: {What this phase delivers}
203
+
204
+ We'll clarify HOW to implement this.
205
+ (New capabilities belong in other phases.)
206
+ ```
207
+
208
+ **Use AskUserQuestion (multiSelect: true):**
209
+ - header: "Discuss"
210
+ - question: "Which areas do you want to discuss for {phase name}?"
211
+ - options: 3-4 phase-specific gray areas
212
+
213
+ **Example for "Post Feed" phase:**
214
+ ```
215
+ [ ] Layout style — Cards vs list vs timeline? Information density?
216
+ [ ] Loading behavior — Infinite scroll or pagination? Pull to refresh?
217
+ [ ] Content ordering — Chronological, algorithmic, or user choice?
218
+ [ ] Post metadata — What info per post? Timestamps, reactions, author?
219
+ ```
220
+
221
+ ### Step 5: Discuss Selected Areas
222
+
223
+ For each selected area, conduct focused discussion.
224
+
225
+ **Philosophy: 4 questions, then check.**
226
+
227
+ ```
228
+ ┌─────────────────────────────────────────────────────────────────────────────┐
229
+ │ DISCUSSING: {Area Name} │
230
+ ├─────────────────────────────────────────────────────────────────────────────┤
231
+ │ │
232
+ │ Question 1 of 4 │
233
+ │ │
234
+ │ {Specific decision question} │
235
+ │ │
236
+ │ Options: │
237
+ │ A) {Concrete choice 1} │
238
+ │ B) {Concrete choice 2} │
239
+ │ C) You decide (Claude's discretion) │
240
+ │ │
241
+ └─────────────────────────────────────────────────────────────────────────────┘
242
+ ```
243
+
244
+ **After 4 questions per area:**
245
+ - header: "{Area}"
246
+ - question: "More questions about {area}, or move to next?"
247
+ - options: "More questions" / "Next area"
248
+
249
+ **Scope Creep Handling:**
250
+ ```
251
+ "{Feature} sounds like a new capability — that belongs in its own phase.
252
+ I'll note it as a deferred idea.
253
+
254
+ Back to {current area}: {return to current question}"
255
+ ```
256
+
257
+ Track deferred ideas internally.
258
+
259
+ ### Step 6: Write MEMORY.md
260
+
261
+ **Location:** `.planning/phases/{N}-{name}/{N}-MEMORY.md`
262
+
263
+ ```markdown
264
+ # Phase {N}: {Name} - Context
265
+
266
+ **Gathered:** {date}
267
+ **Status:** Ready for planning
268
+
269
+ ## Phase Boundary
270
+
271
+ {Clear statement of what this phase delivers — the scope anchor}
272
+
273
+ ## Implementation Decisions
274
+
275
+ ### {Category 1 that was discussed}
276
+ - {Decision or preference captured}
277
+ - {Another decision if applicable}
278
+
279
+ ### {Category 2 that was discussed}
280
+ - {Decision or preference captured}
281
+
282
+ ### Claude's Discretion
283
+ {Areas where user said "you decide" — note that Claude has flexibility here}
284
+
285
+ ## Specific Ideas
286
+
287
+ {Any particular references, examples, or "I want it like X" moments}
288
+
289
+ {If none: "No specific requirements — open to standard approaches"}
290
+
291
+ ## Deferred Ideas
292
+
293
+ {Ideas that came up but belong in other phases}
294
+
295
+ {If none: "None — discussion stayed within phase scope"}
296
+
297
+ ---
298
+
299
+ *Phase: {N}-{name}*
300
+ *Context gathered: {date}*
301
+ ```
302
+
303
+ ### Step 7: Confirm and Route
304
+
305
+ ```
306
+ ╔══════════════════════════════════════════════════════════════════════════════╗
307
+ ║ ✓ CONTEXT CAPTURED ║
308
+ ╠══════════════════════════════════════════════════════════════════════════════╣
309
+ ║ ║
310
+ ║ Created: .planning/phases/{N}-{name}/{N}-MEMORY.md ║
311
+ ║ ║
312
+ ║ Decisions Captured: ║
313
+ ║ ├── {Category 1}: {key decision} ║
314
+ ║ ├── {Category 2}: {key decision} ║
315
+ ║ └── Claude's Discretion: {areas} ║
316
+ ║ ║
317
+ ║ {If deferred ideas exist:} ║
318
+ ║ Noted for Later: ║
319
+ ║ └── {Deferred idea} — future phase ║
320
+ ║ ║
321
+ ╠══════════════════════════════════════════════════════════════════════════════╣
322
+ ║ NEXT UP ║
323
+ ├──────────────────────────────────────────────────────────────────────────────┤
324
+ ║ ║
325
+ ║ Phase {N}: {Name} ║
326
+ ║ ║
327
+ ║ → /fire-2-plan {N} ║
328
+ ║ ║
329
+ ║ Also available: ║
330
+ ║ • /fire-2-plan {N} --skip-research — plan without research ║
331
+ ║ • Review/edit MEMORY.md before continuing ║
332
+ ║ ║
333
+ ╚══════════════════════════════════════════════════════════════════════════════╝
334
+ ```
335
+
336
+ ### Step 8: Sabbath Rest
337
+
338
+ > *Like humans need sleep to reset, AI agents need state files to resume after context resets.*
339
+
340
+ **Create/Update:** `.claude/dominion-flow.local.md`
341
+
342
+ ```markdown
343
+ ---
344
+ last_session: {timestamp}
345
+ command: "discuss"
346
+ phase: {N}
347
+ status: complete
348
+ context_file: ".planning/phases/{N}-{name}/{N}-MEMORY.md"
349
+ ---
350
+
351
+ # Discussion Session State
352
+
353
+ ## Last Discussion
354
+ - Phase: {N} - {name}
355
+ - Date: {timestamp}
356
+ - Areas Discussed: {list}
357
+
358
+ ## Decisions Captured
359
+ - {key decision 1}
360
+ - {key decision 2}
361
+
362
+ ## Deferred Ideas
363
+ - {idea 1} (noted for future phase)
364
+
365
+ ## Resume Point
366
+ If interrupted, context file location: {path}
367
+ Next step: /fire-2-plan {N}
368
+ ```
369
+
370
+ **Update CONSCIENCE.md:**
371
+
372
+ ```markdown
373
+ ## Phase {N} Status
374
+ - **Discussion:** Complete
375
+ - **Context:** .planning/phases/{N}-{name}/{N}-MEMORY.md
376
+ - **Ready for:** Planning
377
+ ```
378
+
379
+ ---
380
+
381
+ ## Downstream Awareness
382
+
383
+ **MEMORY.md feeds into:**
384
+
385
+ 1. **fire-researcher** - Reads MEMORY.md to know WHAT to research
386
+ - "User wants card-based layout" → researcher investigates card patterns
387
+ - "Infinite scroll decided" → researcher looks into virtualization
388
+
389
+ 2. **fire-planner** - Reads MEMORY.md to know WHAT decisions are locked
390
+ - "Pull-to-refresh on mobile" → planner includes in task specs
391
+ - "Claude's Discretion: loading skeleton" → planner can decide approach
392
+
393
+ **Your job:** Capture decisions clearly enough that downstream agents can act without asking the user again.
394
+
395
+ ---
396
+
397
+ ## Question Design Guidelines
398
+
399
+ **Good Questions (Concrete):**
400
+ ```
401
+ "Cards, list, or timeline layout?"
402
+ "Infinite scroll or pagination?"
403
+ "Show timestamps as relative or absolute?"
404
+ ```
405
+
406
+ **Bad Questions (Abstract):**
407
+ ```
408
+ "What's your preference for Option A vs B?"
409
+ "How should we handle the UI?"
410
+ "What do you think about the approach?"
411
+ ```
412
+
413
+ **Always Include "You Decide" Option:**
414
+ When reasonable, let user delegate to Claude's judgment.
415
+
416
+ ---
417
+
418
+ ## Related Commands
419
+
420
+ - `/fire-0-orient` - Understand project state first
421
+ - `/fire-2-plan` - Create execution plan (after discussion)
422
+ - `/fire-brainstorm` - Ideation for features (before discussion)
423
+ - `/fire-dashboard` - View project status
424
+
425
+ ---
426
+
427
+ ## Examples
428
+
429
+ ```bash
430
+ # Discuss phase 3 before planning
431
+ /fire-1a-discuss 3
432
+
433
+ # Quick discussion (2 questions per area)
434
+ /fire-1a-discuss 5 --quick
435
+
436
+ # Focus on specific areas only
437
+ /fire-1a-discuss 2 --areas "layout,behavior"
438
+
439
+ # Skip if already discussed
440
+ /fire-1a-discuss 4 --skip-existing
441
+ ```
442
+
443
+ ---
444
+
445
+ ## Success Criteria
446
+
447
+ - [ ] Phase validated against roadmap
448
+ - [ ] Gray areas identified through intelligent analysis
449
+ - [ ] User selected which areas to discuss
450
+ - [ ] Each selected area explored until satisfied
451
+ - [ ] Scope creep redirected to deferred ideas
452
+ - [ ] MEMORY.md captures actual decisions, not vague vision
453
+ - [ ] Deferred ideas preserved for future phases
454
+ - [ ] User knows next steps
455
+ - [ ] Sabbath Rest state file updated