@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,313 @@
1
+ ---
2
+ description: Analyze codebase with parallel mapper agents to produce structured documentation
3
+ ---
4
+
5
+ # /fire-map-codebase
6
+
7
+ > Analyze existing codebase using parallel agents to produce structured codebase documents
8
+
9
+ ---
10
+
11
+ ## Purpose
12
+
13
+ Analyze existing codebase using parallel fire-codebase-mapper agents to produce structured codebase documents. Each mapper agent explores a focus area and **writes documents directly** to `.planning/codebase/`. The orchestrator only receives confirmations, keeping context usage minimal.
14
+
15
+ **Output:** `.planning/codebase/` folder with 7 structured documents about the codebase state.
16
+
17
+ ---
18
+
19
+ ## Arguments
20
+
21
+ ```yaml
22
+ arguments:
23
+ focus_area:
24
+ required: false
25
+ type: string
26
+ description: "Optional area to focus mapping on (e.g., 'api', 'auth', 'database')"
27
+ example: "/fire-map-codebase auth"
28
+ ```
29
+
30
+ ---
31
+
32
+ ## When to Use
33
+
34
+ **Use /fire-map-codebase for:**
35
+ - Brownfield projects before initialization (understand existing code first)
36
+ - Refreshing codebase map after significant changes
37
+ - Onboarding to an unfamiliar codebase
38
+ - Before major refactoring (understand current state)
39
+ - When CONSCIENCE.md references outdated codebase info
40
+ - Before `/fire-0-orient` when joining existing project
41
+
42
+ **Skip /fire-map-codebase for:**
43
+ - Greenfield projects with no code yet (nothing to map)
44
+ - Trivial codebases (<5 files)
45
+
46
+ ---
47
+
48
+ ## Process
49
+
50
+ ### Step 1: Check Existing Map
51
+
52
+ ```bash
53
+ ls .planning/codebase/*.md 2>/dev/null | wc -l
54
+ ```
55
+
56
+ **If codebase documents exist:**
57
+
58
+ Use AskUserQuestion:
59
+ - header: "Existing Map"
60
+ - question: "Codebase map already exists. What would you like to do?"
61
+ - options:
62
+ - "Refresh all (Recommended)" - Re-analyze entire codebase
63
+ - "Refresh specific area" - Only update one focus area
64
+ - "Skip" - Keep existing map
65
+
66
+ ### Step 2: Create Directory Structure
67
+
68
+ ```bash
69
+ mkdir -p .planning/codebase
70
+ ```
71
+
72
+ ### Step 3: Display Spawning Banner
73
+
74
+ ```
75
+ +------------------------------------------------------------------------------+
76
+ | FIRE MAP CODEBASE |
77
+ +------------------------------------------------------------------------------+
78
+ | |
79
+ | Spawning 4 parallel mapper agents... |
80
+ | |
81
+ | -> Agent 1: Tech focus (STACK.md, INTEGRATIONS.md) |
82
+ | -> Agent 2: Architecture focus (ARCHITECTURE.md, STRUCTURE.md) |
83
+ | -> Agent 3: Quality focus (CONVENTIONS.md, TESTING.md) |
84
+ | -> Agent 4: Concerns focus (CONCERNS.md) |
85
+ | |
86
+ | Focus area: {focus_area or "entire codebase"} |
87
+ | |
88
+ +------------------------------------------------------------------------------+
89
+ ```
90
+
91
+ ### Step 4: Spawn Parallel Mapper Agents
92
+
93
+ **Agent 1: Tech Focus**
94
+ ```
95
+ Task(prompt="
96
+ <focus>tech</focus>
97
+ <area>{focus_area or 'all'}</area>
98
+
99
+ <instructions>
100
+ Analyze the codebase for technology stack and integrations.
101
+
102
+ Write these files:
103
+ 1. .planning/codebase/STACK.md
104
+ - Languages and versions
105
+ - Frameworks and libraries
106
+ - Build tools and bundlers
107
+ - Runtime environments
108
+
109
+ 2. .planning/codebase/INTEGRATIONS.md
110
+ - External APIs consumed
111
+ - Third-party services
112
+ - Database connections
113
+ - Message queues / event systems
114
+
115
+ Use template structure. Write files directly.
116
+ Return: 'TECH MAPPING COMPLETE' with line counts.
117
+ </instructions>
118
+ ", subagent_type="fire-codebase-mapper", description="Map tech stack")
119
+ ```
120
+
121
+ **Agent 2: Architecture Focus**
122
+ ```
123
+ Task(prompt="
124
+ <focus>arch</focus>
125
+ <area>{focus_area or 'all'}</area>
126
+
127
+ <instructions>
128
+ Analyze the codebase for architecture and structure.
129
+
130
+ Write these files:
131
+ 1. .planning/codebase/ARCHITECTURE.md
132
+ - System architecture overview
133
+ - Component boundaries
134
+ - Data flow patterns
135
+ - Key abstractions
136
+
137
+ 2. .planning/codebase/STRUCTURE.md
138
+ - Directory organization
139
+ - Module boundaries
140
+ - Entry points
141
+ - Configuration locations
142
+
143
+ Use template structure. Write files directly.
144
+ Return: 'ARCH MAPPING COMPLETE' with line counts.
145
+ </instructions>
146
+ ", subagent_type="fire-codebase-mapper", description="Map architecture")
147
+ ```
148
+
149
+ **Agent 3: Quality Focus**
150
+ ```
151
+ Task(prompt="
152
+ <focus>quality</focus>
153
+ <area>{focus_area or 'all'}</area>
154
+
155
+ <instructions>
156
+ Analyze the codebase for conventions and testing.
157
+
158
+ Write these files:
159
+ 1. .planning/codebase/CONVENTIONS.md
160
+ - Naming conventions
161
+ - Code style patterns
162
+ - Error handling patterns
163
+ - Logging patterns
164
+
165
+ 2. .planning/codebase/TESTING.md
166
+ - Test framework(s)
167
+ - Test organization
168
+ - Coverage areas
169
+ - Testing patterns
170
+
171
+ Use template structure. Write files directly.
172
+ Return: 'QUALITY MAPPING COMPLETE' with line counts.
173
+ </instructions>
174
+ ", subagent_type="fire-codebase-mapper", description="Map quality patterns")
175
+ ```
176
+
177
+ **Agent 4: Concerns Focus**
178
+ ```
179
+ Task(prompt="
180
+ <focus>concerns</focus>
181
+ <area>{focus_area or 'all'}</area>
182
+
183
+ <instructions>
184
+ Analyze the codebase for technical debt and concerns.
185
+
186
+ Write this file:
187
+ 1. .planning/codebase/CONCERNS.md
188
+ - Technical debt identified
189
+ - Security considerations
190
+ - Performance bottlenecks
191
+ - Maintainability issues
192
+ - Missing documentation
193
+ - Deprecated patterns
194
+
195
+ Use template structure. Write file directly.
196
+ Return: 'CONCERNS MAPPING COMPLETE' with line counts.
197
+ </instructions>
198
+ ", subagent_type="fire-codebase-mapper", description="Map concerns")
199
+ ```
200
+
201
+ ### Step 5: Verify Completion
202
+
203
+ Wait for all 4 agents. Verify all 7 documents exist:
204
+
205
+ ```bash
206
+ for doc in STACK INTEGRATIONS ARCHITECTURE STRUCTURE CONVENTIONS TESTING CONCERNS; do
207
+ [ -f ".planning/codebase/${doc}.md" ] && echo "OK: ${doc}.md" || echo "MISSING: ${doc}.md"
208
+ done
209
+ ```
210
+
211
+ Count lines in each document.
212
+
213
+ ### Step 6: Commit Codebase Map
214
+
215
+ ```bash
216
+ git add .planning/codebase/
217
+ git commit -m "$(cat <<'EOF'
218
+ docs: map codebase structure
219
+
220
+ Generated 7 codebase documents:
221
+ - STACK.md: Technology stack
222
+ - INTEGRATIONS.md: External integrations
223
+ - ARCHITECTURE.md: System architecture
224
+ - STRUCTURE.md: Directory organization
225
+ - CONVENTIONS.md: Code conventions
226
+ - TESTING.md: Test patterns
227
+ - CONCERNS.md: Technical debt
228
+
229
+ Focus: {focus_area or 'entire codebase'}
230
+ EOF
231
+ )"
232
+ ```
233
+
234
+ ### Step 7: Sabbath Rest - Context Persistence
235
+
236
+ Update persistent state:
237
+
238
+ ```markdown
239
+ ## .claude/dominion-flow.local.md
240
+
241
+ ### Codebase Map
242
+ - Generated: {timestamp}
243
+ - Focus: {focus_area or 'entire codebase'}
244
+ - Documents: 7
245
+ - Location: .planning/codebase/
246
+ ```
247
+
248
+ ---
249
+
250
+ ## Output Documents
251
+
252
+ | Document | Contents |
253
+ |----------|----------|
254
+ | `STACK.md` | Languages, frameworks, dependencies, build tools |
255
+ | `INTEGRATIONS.md` | External APIs, services, databases, queues |
256
+ | `ARCHITECTURE.md` | System design, components, data flow |
257
+ | `STRUCTURE.md` | Directory layout, modules, entry points |
258
+ | `CONVENTIONS.md` | Code style, patterns, naming |
259
+ | `TESTING.md` | Test framework, organization, coverage |
260
+ | `CONCERNS.md` | Tech debt, security, performance issues |
261
+
262
+ ---
263
+
264
+ ## Completion Display
265
+
266
+ ```
267
+ +------------------------------------------------------------------------------+
268
+ | CODEBASE MAPPING COMPLETE |
269
+ +------------------------------------------------------------------------------+
270
+ | |
271
+ | Documents created in .planning/codebase/: |
272
+ | |
273
+ | STACK.md {lines} lines - Technology stack |
274
+ | INTEGRATIONS.md {lines} lines - External integrations |
275
+ | ARCHITECTURE.md {lines} lines - System architecture |
276
+ | STRUCTURE.md {lines} lines - Directory organization |
277
+ | CONVENTIONS.md {lines} lines - Code conventions |
278
+ | TESTING.md {lines} lines - Test patterns |
279
+ | CONCERNS.md {lines} lines - Technical debt |
280
+ | |
281
+ | Commit: {hash} |
282
+ | |
283
+ +------------------------------------------------------------------------------+
284
+ | NEXT UP |
285
+ +------------------------------------------------------------------------------+
286
+ | |
287
+ | -> Run `/fire-1-new` to initialize project with this context |
288
+ | -> Or run `/fire-0-orient` if joining an existing project |
289
+ | -> Or run `/fire-2-plan` to start planning with codebase knowledge |
290
+ | |
291
+ +------------------------------------------------------------------------------+
292
+ ```
293
+
294
+ ---
295
+
296
+ ## Success Criteria
297
+
298
+ - [ ] `.planning/codebase/` directory created
299
+ - [ ] All 7 codebase documents written by mapper agents
300
+ - [ ] Documents follow template structure
301
+ - [ ] Parallel agents completed without errors
302
+ - [ ] Changes committed to git
303
+ - [ ] Sabbath Rest state updated
304
+ - [ ] User knows next steps
305
+
306
+ ---
307
+
308
+ ## References
309
+
310
+ - **Agent:** Uses `fire-codebase-mapper` agent (parallel exploration)
311
+ - **Related:** `/fire-0-orient` - Uses codebase map for orientation
312
+ - **Related:** `/fire-1-new` - Uses codebase map for project initialization
313
+ - **Brand:** `@references/ui-brand.md`
@@ -0,0 +1,356 @@
1
+ ---
2
+ description: Start a new milestone cycle with questioning, research, requirements, and roadmap
3
+ ---
4
+
5
+ # /fire-new-milestone
6
+
7
+ > Start a new milestone through unified flow: questioning -> research -> requirements -> roadmap
8
+
9
+ ---
10
+
11
+ ## Purpose
12
+
13
+ Start a new milestone for an existing project. This is the brownfield equivalent of `/fire-1-new`. The project exists, PROJECT.md has history. This command gathers "what's next" and takes you through the full cycle.
14
+
15
+ **Creates/Updates:**
16
+ - `.planning/PROJECT.md` - Updated with new milestone goals
17
+ - `.planning/research/` - Domain research (optional)
18
+ - `.planning/REQUIREMENTS.md` - Scoped requirements
19
+ - `.planning/VISION.md` - Phase structure
20
+ - `.planning/CONSCIENCE.md` - Updated project memory
21
+
22
+ **After this command:** Run `/fire-2-plan [N]` to start execution.
23
+
24
+ ---
25
+
26
+ ## Arguments
27
+
28
+ ```yaml
29
+ arguments:
30
+ milestone_name:
31
+ required: false
32
+ type: string
33
+ description: "Optional milestone name (e.g., 'v1.1 Notifications')"
34
+ example: "/fire-new-milestone v1.1 Notifications"
35
+ ```
36
+
37
+ ---
38
+
39
+ ## Process
40
+
41
+ ### Phase 1: Validate Project
42
+
43
+ **MANDATORY FGTAT STEP - Execute these checks before ANY user interaction:**
44
+
45
+ ```bash
46
+ [ -f .planning/PROJECT.md ] || { echo "ERROR: No PROJECT.md. Run /fire-1-new first."; exit 1; }
47
+ ```
48
+
49
+ Check for active milestone (VISION.md exists):
50
+
51
+ ```bash
52
+ [ -f .planning/VISION.md ] && echo "ACTIVE_MILESTONE" || echo "READY_FOR_NEW"
53
+ ```
54
+
55
+ **If ACTIVE_MILESTONE:**
56
+
57
+ Use AskUserQuestion:
58
+ - header: "Active Milestone"
59
+ - question: "A milestone is in progress. What would you like to do?"
60
+ - options:
61
+ - "Complete current first (Recommended)" - Run /fire-complete-milestone
62
+ - "Continue anyway" - Start new milestone (will archive current)
63
+
64
+ ### Phase 2: Present Context
65
+
66
+ Display banner:
67
+
68
+ ```
69
+ +------------------------------------------------------------------------------+
70
+ | DOMINION FLOW > NEW MILESTONE |
71
+ +------------------------------------------------------------------------------+
72
+ ```
73
+
74
+ Present what shipped:
75
+
76
+ ```
77
+ Last milestone: v[X.Y] [Name] (shipped [DATE])
78
+
79
+ Key accomplishments:
80
+ - [From MILESTONES.md]
81
+ - [From MILESTONES.md]
82
+
83
+ Validated requirements:
84
+ - [From PROJECT.md Validated section]
85
+
86
+ Pending todos:
87
+ - [From CONSCIENCE.md if any]
88
+ ```
89
+
90
+ ### Phase 3: Deep Questioning
91
+
92
+ Display banner:
93
+
94
+ ```
95
+ +------------------------------------------------------------------------------+
96
+ | DOMINION FLOW > QUESTIONING |
97
+ +------------------------------------------------------------------------------+
98
+ ```
99
+
100
+ **Open the conversation:**
101
+
102
+ Ask inline (freeform, NOT AskUserQuestion):
103
+
104
+ "What do you want to build next?"
105
+
106
+ Wait for response. This gives context for intelligent follow-up questions.
107
+
108
+ **Follow the thread:**
109
+
110
+ Based on their response, ask follow-up questions that dig deeper. Use AskUserQuestion with options that probe what they mentioned.
111
+
112
+ Keep following threads. Each answer opens new threads to explore:
113
+ - What excited them
114
+ - What problem sparked this
115
+ - What they mean by vague terms
116
+ - What it would actually look like
117
+ - What's already decided
118
+
119
+ **WARRIOR Enhancement - Honesty Protocol:**
120
+
121
+ Before finalizing understanding, acknowledge:
122
+ - What I understand clearly
123
+ - What I'm uncertain about
124
+ - What I'm assuming
125
+
126
+ **Decision gate:**
127
+
128
+ When ready, use AskUserQuestion:
129
+ - header: "Ready?"
130
+ - question: "I think I understand what you're after. Ready to update PROJECT.md?"
131
+ - options:
132
+ - "Update PROJECT.md" - Move forward
133
+ - "Keep exploring" - Share more / ask more
134
+
135
+ ### Phase 4: Determine Milestone Version
136
+
137
+ Parse last version from MILESTONES.md and suggest next:
138
+
139
+ Use AskUserQuestion:
140
+ - header: "Version"
141
+ - question: "What version is this milestone?"
142
+ - options:
143
+ - "v[X.Y+0.1] (patch)" - Minor update
144
+ - "v[X+1].0 (major)" - Major release
145
+ - "Custom" - I'll specify
146
+
147
+ ### Phase 5: Update PROJECT.md
148
+
149
+ Update `.planning/PROJECT.md` with new milestone section:
150
+
151
+ ```markdown
152
+ ## Current Milestone: v[X.Y] [Name]
153
+
154
+ **Goal:** [One sentence describing milestone focus]
155
+
156
+ **Target features:**
157
+ - [Feature 1]
158
+ - [Feature 2]
159
+ - [Feature 3]
160
+ ```
161
+
162
+ Commit:
163
+
164
+ ```bash
165
+ git add .planning/PROJECT.md
166
+ git commit -m "$(cat <<'EOF'
167
+ docs: start milestone v[X.Y] [Name]
168
+
169
+ [One-liner describing milestone focus]
170
+ EOF
171
+ )"
172
+ ```
173
+
174
+ ### Phase 6: Research Decision
175
+
176
+ Use AskUserQuestion:
177
+ - header: "Research"
178
+ - question: "Research the domain ecosystem before defining requirements?"
179
+ - options:
180
+ - "Research first (Recommended)" - Discover patterns, expected features
181
+ - "Skip research" - I know this domain well
182
+
183
+ **If "Research first":**
184
+
185
+ Display banner:
186
+ ```
187
+ +------------------------------------------------------------------------------+
188
+ | DOMINION FLOW > RESEARCHING |
189
+ +------------------------------------------------------------------------------+
190
+
191
+ Researching [domain] ecosystem...
192
+ ```
193
+
194
+ Spawn 4 parallel fire-project-researcher agents:
195
+ - Stack research
196
+ - Features research
197
+ - Architecture research
198
+ - Pitfalls research
199
+
200
+ After completion, spawn synthesizer to create RECORD.md.
201
+
202
+ **Adversarial Fact-Check (v11.0):**
203
+ After the synthesizer writes SYNTHESIS.md, spawn `fire-fact-checker`:
204
+ - Reads SYNTHESIS.md
205
+ - Independently attempts to disprove top findings
206
+ - Produces `.planning/research/CONTESTED-CLAIMS.md`
207
+ - Adjusts confidence levels based on adversarial verification
208
+ - Any CONTESTED findings are flagged for the roadmapper's risk assessment
209
+
210
+ ```
211
+ Spawning fire-fact-checker for adversarial verification...
212
+ ```
213
+
214
+ ### Phase 7: Define Requirements
215
+
216
+ Display banner:
217
+ ```
218
+ +------------------------------------------------------------------------------+
219
+ | DOMINION FLOW > DEFINING REQUIREMENTS |
220
+ +------------------------------------------------------------------------------+
221
+ ```
222
+
223
+ **If research exists:** Read FEATURES.md and present by category.
224
+
225
+ **If no research:** Gather requirements through conversation.
226
+
227
+ **Scope each category:**
228
+
229
+ For each category, use AskUserQuestion with multiSelect:
230
+ - header: "[Category name]"
231
+ - question: "Which [category] features are in this milestone?"
232
+ - options: [Feature list]
233
+
234
+ **Generate REQUIREMENTS.md:**
235
+
236
+ Create `.planning/REQUIREMENTS.md` with:
237
+ - v1 Requirements grouped by category (checkboxes, REQ-IDs)
238
+ - v2 Requirements (deferred)
239
+ - Out of Scope (explicit exclusions)
240
+ - Traceability section
241
+
242
+ Commit:
243
+
244
+ ```bash
245
+ git add .planning/REQUIREMENTS.md
246
+ git commit -m "$(cat <<'EOF'
247
+ docs: define v[X.Y] requirements
248
+
249
+ [X] requirements across [N] categories
250
+ [Y] requirements deferred to v2
251
+ EOF
252
+ )"
253
+ ```
254
+
255
+ ### Phase 8: Create Roadmap
256
+
257
+ Display banner:
258
+ ```
259
+ +------------------------------------------------------------------------------+
260
+ | DOMINION FLOW > CREATING ROADMAP |
261
+ +------------------------------------------------------------------------------+
262
+
263
+ Spawning roadmapper...
264
+ ```
265
+
266
+ Spawn fire-roadmapper agent with context:
267
+ - PROJECT.md
268
+ - REQUIREMENTS.md
269
+ - Research RECORD.md (if exists)
270
+ - Starting phase number
271
+
272
+ **Handle roadmapper return:**
273
+
274
+ **If `## ROADMAP CREATED`:**
275
+ - Present roadmap inline
276
+ - Ask for approval
277
+
278
+ **If approved:** Commit roadmap.
279
+
280
+ ### Phase 9: Sabbath Rest - Context Persistence
281
+
282
+ Update persistent state:
283
+
284
+ ```markdown
285
+ ## .claude/dominion-flow.local.md
286
+
287
+ ### Current Milestone
288
+ - Version: v[X.Y]
289
+ - Name: [Name]
290
+ - Phases: [count]
291
+ - Requirements: [count]
292
+ - Started: {timestamp}
293
+ - Status: Ready to plan
294
+ - Next: /fire-2-plan [first_phase]
295
+ ```
296
+
297
+ ---
298
+
299
+ ## Completion Display
300
+
301
+ ```
302
+ +------------------------------------------------------------------------------+
303
+ | DOMINION FLOW > MILESTONE INITIALIZED |
304
+ +------------------------------------------------------------------------------+
305
+ | |
306
+ | v[X.Y] [Name] |
307
+ | |
308
+ | | Artifact | Location | |
309
+ | |----------------|----------------------------- |
310
+ | | Project | .planning/PROJECT.md | |
311
+ | | Research | .planning/research/ | |
312
+ | | Requirements | .planning/REQUIREMENTS.md | |
313
+ | | Roadmap | .planning/VISION.md | |
314
+ | |
315
+ | [N] phases | [X] requirements | Ready to build |
316
+ | |
317
+ +------------------------------------------------------------------------------+
318
+ | NEXT UP |
319
+ +------------------------------------------------------------------------------+
320
+ | |
321
+ | Phase [N]: [Phase Name] - [Goal] |
322
+ | |
323
+ | -> Run `/fire-1a-discuss [N]` to gather context and clarify approach |
324
+ | -> Or run `/fire-2-plan [N]` to plan directly |
325
+ | |
326
+ | Tip: Run `/clear` first for fresh context window |
327
+ | |
328
+ +------------------------------------------------------------------------------+
329
+ ```
330
+
331
+ ---
332
+
333
+ ## Success Criteria
334
+
335
+ - [ ] Project validated (PROJECT.md exists)
336
+ - [ ] Previous milestone context presented
337
+ - [ ] Deep questioning completed (threads followed)
338
+ - [ ] Honesty protocol applied (acknowledged uncertainties)
339
+ - [ ] Milestone version determined
340
+ - [ ] PROJECT.md updated -> committed
341
+ - [ ] Research completed (if selected) -> committed
342
+ - [ ] REQUIREMENTS.md created with REQ-IDs -> committed
343
+ - [ ] VISION.md created -> committed
344
+ - [ ] Sabbath Rest state updated
345
+ - [ ] User knows next step is `/fire-2-plan [N]`
346
+
347
+ ---
348
+
349
+ ## References
350
+
351
+ - **Related:** `/fire-1-new` - Initialize new project (greenfield)
352
+ - **Related:** `/fire-complete-milestone` - Archive completed milestone
353
+ - **Related:** `/fire-1a-discuss` - Discuss phase before planning
354
+ - **Agent:** Uses `fire-roadmapper` for roadmap creation
355
+ - **Agent:** Uses `fire-project-researcher` for domain research
356
+ - **Brand:** `@references/ui-brand.md`