@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,335 @@
1
+ ---
2
+ description: Capture, list, and manage todos during work sessions
3
+ ---
4
+
5
+ # /fire-todos
6
+
7
+ > Capture ideas and tasks during sessions, list pending todos, and select work
8
+
9
+ ---
10
+
11
+ ## Purpose
12
+
13
+ Quick task capture and review system for ideas, issues, and tasks that surface during Dominion Flow sessions. Enables "thought -> capture -> continue" flow without losing context or derailing current work.
14
+
15
+ **Commands:**
16
+ - `/fire-todos add [description]` - Capture a new todo
17
+ - `/fire-todos list [area]` - List pending todos
18
+ - `/fire-todos` (no args) - List all pending todos
19
+
20
+ ---
21
+
22
+ ## Arguments
23
+
24
+ ```yaml
25
+ arguments:
26
+ action:
27
+ required: false
28
+ type: string
29
+ enum: [add, list]
30
+ default: list
31
+ description: "Action to perform"
32
+
33
+ description:
34
+ required: false
35
+ type: string
36
+ description: "For 'add': description of the todo. For 'list': optional area filter"
37
+
38
+ examples:
39
+ - "/fire-todos" - List all pending todos
40
+ - "/fire-todos add Fix auth token refresh" - Add a new todo
41
+ - "/fire-todos list api" - List todos in 'api' area
42
+ ```
43
+
44
+ ---
45
+
46
+ ## Process: Add Todo
47
+
48
+ ### Step 1: Ensure Directory
49
+
50
+ ```bash
51
+ mkdir -p .planning/todos/pending .planning/todos/done
52
+ ```
53
+
54
+ ### Step 2: Check Existing Areas
55
+
56
+ ```bash
57
+ ls .planning/todos/pending/*.md 2>/dev/null | xargs -I {} grep "^area:" {} 2>/dev/null | cut -d' ' -f2 | sort -u
58
+ ```
59
+
60
+ Note existing areas for consistency.
61
+
62
+ ### Step 3: Extract Content
63
+
64
+ **With arguments:** Use as the title/focus.
65
+ - `/fire-todos add Fix auth token refresh` -> title = "Fix auth token refresh"
66
+
67
+ **Without arguments:** Analyze recent conversation to extract:
68
+ - The specific problem, idea, or task discussed
69
+ - Relevant file paths mentioned
70
+ - Technical details (error messages, line numbers)
71
+
72
+ Formulate:
73
+ - `title`: 3-10 word descriptive title (action verb preferred)
74
+ - `problem`: What's wrong or why this is needed
75
+ - `solution`: Approach hints or "TBD" if just an idea
76
+ - `files`: Relevant paths from conversation
77
+
78
+ ### Step 4: Infer Area
79
+
80
+ | Path pattern | Area |
81
+ |--------------|------|
82
+ | `src/api/*`, `api/*` | `api` |
83
+ | `src/components/*`, `src/ui/*` | `ui` |
84
+ | `src/auth/*`, `auth/*` | `auth` |
85
+ | `src/db/*`, `database/*` | `database` |
86
+ | `tests/*`, `__tests__/*` | `testing` |
87
+ | `docs/*` | `docs` |
88
+ | `.planning/*` | `planning` |
89
+ | `scripts/*`, `bin/*` | `tooling` |
90
+ | No files or unclear | `general` |
91
+
92
+ ### Step 5: Check Duplicates
93
+
94
+ ```bash
95
+ grep -l -i "[key words from title]" .planning/todos/pending/*.md 2>/dev/null
96
+ ```
97
+
98
+ If potential duplicate found:
99
+
100
+ Use AskUserQuestion:
101
+ - header: "Duplicate?"
102
+ - question: "Similar todo exists: [title]. What would you like to do?"
103
+ - options:
104
+ - "Skip" - Keep existing todo
105
+ - "Replace" - Update existing with new context
106
+ - "Add anyway" - Create as separate todo
107
+
108
+ ### Step 6: Create File
109
+
110
+ ```bash
111
+ timestamp=$(date "+%Y-%m-%dT%H:%M")
112
+ date_prefix=$(date "+%Y-%m-%d")
113
+ ```
114
+
115
+ Write to `.planning/todos/pending/${date_prefix}-${slug}.md`:
116
+
117
+ ```markdown
118
+ ---
119
+ created: [timestamp]
120
+ title: [title]
121
+ area: [area]
122
+ files:
123
+ - [file:lines]
124
+ ---
125
+
126
+ ## Problem
127
+
128
+ [problem description - enough context for future Claude to understand weeks later]
129
+
130
+ ## Solution
131
+
132
+ [approach hints or "TBD"]
133
+ ```
134
+
135
+ ### Step 7: Commit
136
+
137
+ ```bash
138
+ git add .planning/todos/pending/[filename]
139
+ [ -f .planning/CONSCIENCE.md ] && git add .planning/CONSCIENCE.md
140
+ git commit -m "$(cat <<'EOF'
141
+ docs: capture todo - [title]
142
+
143
+ Area: [area]
144
+ EOF
145
+ )"
146
+ ```
147
+
148
+ ### Step 8: Confirm
149
+
150
+ ```
151
+ Todo saved: .planning/todos/pending/[filename]
152
+
153
+ [title]
154
+ Area: [area]
155
+ Files: [count] referenced
156
+
157
+ ---
158
+
159
+ Would you like to:
160
+ 1. Continue with current work
161
+ 2. Add another todo
162
+ 3. View all todos (/fire-todos list)
163
+ ```
164
+
165
+ ---
166
+
167
+ ## Process: List Todos
168
+
169
+ ### Step 1: Check Exist
170
+
171
+ ```bash
172
+ TODO_COUNT=$(ls .planning/todos/pending/*.md 2>/dev/null | wc -l | tr -d ' ')
173
+ ```
174
+
175
+ If count is 0:
176
+ ```
177
+ No pending todos.
178
+
179
+ Todos are captured during work sessions with /fire-todos add.
180
+
181
+ ---
182
+
183
+ Would you like to:
184
+ 1. Continue with current phase (/fire-dashboard)
185
+ 2. Add a todo now (/fire-todos add)
186
+ ```
187
+
188
+ ### Step 2: Parse Filter
189
+
190
+ - `/fire-todos list` -> show all
191
+ - `/fire-todos list api` -> filter to area:api only
192
+
193
+ ### Step 3: List Todos
194
+
195
+ ```bash
196
+ for file in .planning/todos/pending/*.md; do
197
+ created=$(grep "^created:" "$file" | cut -d' ' -f2)
198
+ title=$(grep "^title:" "$file" | cut -d':' -f2- | xargs)
199
+ area=$(grep "^area:" "$file" | cut -d' ' -f2)
200
+ echo "$created|$title|$area|$file"
201
+ done | sort
202
+ ```
203
+
204
+ Display as numbered list:
205
+
206
+ ```
207
+ Pending Todos:
208
+
209
+ 1. Add auth token refresh (api, 2d ago)
210
+ 2. Fix modal z-index issue (ui, 1d ago)
211
+ 3. Refactor database connection pool (database, 5h ago)
212
+
213
+ ---
214
+
215
+ Reply with a number to view details, or:
216
+ - `/fire-todos list [area]` to filter by area
217
+ - `q` to exit
218
+ ```
219
+
220
+ ### Step 4: Handle Selection
221
+
222
+ Wait for user to reply with a number.
223
+
224
+ Load selected todo and display full context:
225
+
226
+ ```
227
+ ## [title]
228
+
229
+ **Area:** [area]
230
+ **Created:** [date] ([relative time] ago)
231
+ **Files:** [list or "None"]
232
+
233
+ ### Problem
234
+ [problem section content]
235
+
236
+ ### Solution
237
+ [solution section content]
238
+ ```
239
+
240
+ ### Step 5: Offer Actions
241
+
242
+ **If todo maps to a roadmap phase:**
243
+
244
+ Use AskUserQuestion:
245
+ - header: "Action"
246
+ - question: "This todo relates to Phase [N]: [name]. What would you like to do?"
247
+ - options:
248
+ - "Work on it now" - Move to done, start working
249
+ - "Add to phase plan" - Include when planning Phase [N]
250
+ - "Brainstorm approach" - Think through before deciding
251
+ - "Put it back" - Return to list
252
+
253
+ **If no roadmap match:**
254
+
255
+ Use AskUserQuestion:
256
+ - header: "Action"
257
+ - question: "What would you like to do with this todo?"
258
+ - options:
259
+ - "Work on it now" - Move to done, start working
260
+ - "Create a phase" - Add phase with this scope
261
+ - "Brainstorm approach" - Think through before deciding
262
+ - "Put it back" - Return to list
263
+
264
+ ### Step 6: Execute Action
265
+
266
+ **Work on it now:**
267
+ ```bash
268
+ mv ".planning/todos/pending/[filename]" ".planning/todos/done/"
269
+ ```
270
+ Update CONSCIENCE.md. Present context. Begin work.
271
+
272
+ **Add to phase plan:**
273
+ Note todo reference in phase planning notes. Keep in pending.
274
+
275
+ **Create a phase:**
276
+ Route to: `/fire-add-phase [description from todo]`
277
+
278
+ **Brainstorm approach:**
279
+ Keep in pending. Start discussion about problem and approaches.
280
+
281
+ **Put it back:**
282
+ Return to list.
283
+
284
+ ---
285
+
286
+ ## Sabbath Rest - Context Persistence
287
+
288
+ After any todo action, update persistent state:
289
+
290
+ ```markdown
291
+ ## .claude/dominion-flow.local.md
292
+
293
+ ### Todos
294
+ - Pending: [count]
295
+ - Last added: [title] ({timestamp})
296
+ - Last action: [work|add|brainstorm]
297
+ ```
298
+
299
+ ---
300
+
301
+ ## Success Criteria
302
+
303
+ ### For Add
304
+ - [ ] Directory structure exists
305
+ - [ ] Todo file created with valid frontmatter
306
+ - [ ] Problem section has enough context
307
+ - [ ] No duplicates (checked and resolved)
308
+ - [ ] Area consistent with existing todos
309
+ - [ ] Committed to git
310
+
311
+ ### For List
312
+ - [ ] All pending todos listed with title, area, age
313
+ - [ ] Area filter applied if specified
314
+ - [ ] Selected todo's full context loaded
315
+ - [ ] Roadmap context checked for phase match
316
+ - [ ] Appropriate actions offered
317
+ - [ ] Selected action executed
318
+ - [ ] CONSCIENCE.md updated if todo count changed
319
+
320
+ ---
321
+
322
+ ## Anti-Patterns
323
+
324
+ - Don't delete todos - move to done/ when work begins
325
+ - Don't start work without moving to done/ first
326
+ - Don't create elaborate solution sections - captures ideas, not plans
327
+ - Don't create todos for work in current plan (that's deviation territory)
328
+
329
+ ---
330
+
331
+ ## References
332
+
333
+ - **Related:** `/fire-dashboard` - See project status including todo count
334
+ - **Related:** `/fire-2-plan` - Plan phase that may include todo work
335
+ - **Brand:** `@references/ui-brand.md`
@@ -0,0 +1,186 @@
1
+ ---
2
+ description: Complete phase transition with metrics collection, bottleneck detection, auto-skill extraction, and trend analysis
3
+ ---
4
+
5
+ # /fire-transition
6
+
7
+ > Phase completion ceremony: metrics, bottleneck report, skill extraction, trend update, and next phase routing.
8
+
9
+ ---
10
+
11
+ ## Arguments
12
+
13
+ ```yaml
14
+ arguments:
15
+ phase:
16
+ required: false
17
+ type: string
18
+ description: "Phase to transition from. Defaults to current phase."
19
+ ```
20
+
21
+ ---
22
+
23
+ ## Process
24
+
25
+ ### Step 1: Validate Phase Completion
26
+
27
+ ```
28
+ +---------------------------------------------------------------+
29
+ | DOMINION FLOW >>> PHASE TRANSITION |
30
+ +---------------------------------------------------------------+
31
+ ```
32
+
33
+ Check:
34
+ - [ ] All plans in phase have RECORD.md files
35
+ - [ ] UAT verification passed (or user override)
36
+ - [ ] No open P0 blockers in BLOCKERS.md
37
+ - [ ] No open P1 blockers without acknowledgment
38
+
39
+ If validation fails: present issues, offer fix or override.
40
+
41
+ ### Step 2: Collect Phase Metrics
42
+
43
+ Aggregate from all RECORD.md files in the phase:
44
+
45
+ ```yaml
46
+ Phase Metrics:
47
+ plans_completed: [N]
48
+ total_duration: [N]m
49
+ avg_plan_duration: [N]m
50
+ total_tasks: [N]
51
+ tasks_blocked: [N]
52
+ files_created: [N]
53
+ files_modified: [N]
54
+ lines_added: [N]
55
+ lines_removed: [N]
56
+ tests_added: [N]
57
+ skills_applied: [N]
58
+ honesty_checkpoints: [N]
59
+ total_commits: [N]
60
+ blocker_count: [N]
61
+ blocker_resolution_rate: [N]%
62
+ ```
63
+
64
+ ### Step 3: Bottleneck Detection
65
+
66
+ Run bottleneck detection algorithm (see `references/metrics-and-trends.md`):
67
+
68
+ | Rule | Condition | Flag |
69
+ |------|-----------|------|
70
+ | Slow Plan | Duration > 2x phase average | BOTTLENECK:SLOW |
71
+ | Blocked Plan | >20% tasks blocked | BOTTLENECK:BLOCKED |
72
+ | Failed Verification | >1 verification cycle | BOTTLENECK:QUALITY |
73
+ | Fan-Out Blocker | Blocks 2+ downstream plans | BOTTLENECK:CRITICAL_PATH |
74
+ | Complexity Spike | Lines > 3x average | BOTTLENECK:COMPLEXITY |
75
+
76
+ ```
77
+ +---------------------------------------------------------------+
78
+ | BOTTLENECK REPORT |
79
+ +---------------------------------------------------------------+
80
+ | |
81
+ | Flagged Plans: |
82
+ | | Plan | Flag | Duration | Suggestion | |
83
+ | |------|------|----------|------------| |
84
+ | | 03-05 | SLOW | 18m (avg: 12m) | Break into smaller plans | |
85
+ | |
86
+ | Phase Health: Speed 7/10, Quality 9/10, Efficiency 8/10 |
87
+ | Overall: 8/10 |
88
+ +-----------------------------------------------------------------+
89
+ ```
90
+
91
+ ### Step 4: Auto-Skill Extraction
92
+
93
+ Scan all RECORD.md and handoff files for skill candidates:
94
+
95
+ **Detection signals:**
96
+ 1. `/* SKILL: name */` markers in code
97
+ 2. Honesty checkpoints with research + high-confidence resolution
98
+ 3. Novel decisions with rationale
99
+ 4. Repeated file modification patterns across plans
100
+ 5. Bug fix patterns with root cause + prevention
101
+
102
+ For each candidate:
103
+ ```
104
+ Detected potential skill: [name]
105
+ Category: [category]
106
+ Source: [phase/plan]
107
+ Save to skills library? (y/n/edit)
108
+ ```
109
+
110
+ ### Step 5: Update Trend Analysis
111
+
112
+ Update CONSCIENCE.md trends table:
113
+
114
+ ```markdown
115
+ ## Trends (Last 5 Phases)
116
+ | Metric | P1 | P2 | P3 | P4 | P5 | Trend |
117
+ |--------|----|----|----|----|-----|-------|
118
+ | Avg Plan Duration | 11m | 12m | 9m | 10m | [new] | [calc] |
119
+ | Verification Pass Rate | 100% | 100% | 100% | 100% | [new] | [calc] |
120
+ | Skill Reuse | 20% | 25% | 30% | 35% | [new] | [calc] |
121
+ | Blocker Rate | 10% | 5% | 0% | 0% | [new] | [calc] |
122
+ ```
123
+
124
+ If negative trends detected for 3+ phases, display suggestions.
125
+
126
+ ### Step 6: Update CONSCIENCE.md
127
+
128
+ - Mark current phase as COMPLETE
129
+ - Update phase metrics table
130
+ - Add phase to completion history
131
+ - Set next phase as CURRENT
132
+ - Update progress percentage
133
+
134
+ ### Step 7: Update VISION.md
135
+
136
+ - Mark phase complete with date
137
+ - Update overall progress
138
+
139
+ ### Step 8: Merge Feature Branch
140
+
141
+ ```bash
142
+ # If on feature branch
143
+ git checkout develop
144
+ git merge feature/phase-XX-description
145
+ git push origin develop
146
+ git branch -d feature/phase-XX-description
147
+ ```
148
+
149
+ ### Step 9: Create WARRIOR Handoff
150
+
151
+ Generate phase completion handoff for session continuity:
152
+ - What was built
153
+ - Key decisions made
154
+ - Open blockers carried forward
155
+ - Skills extracted
156
+ - Next phase context
157
+
158
+ ### Step 10: Route Next Phase
159
+
160
+ | Condition | Next Action |
161
+ |-----------|------------|
162
+ | More phases in milestone | `/fire-2-plan` for next phase |
163
+ | Milestone complete | `/fire-complete-milestone` |
164
+ | User wants to pause | `/fire-5-handoff` |
165
+
166
+ ---
167
+
168
+ ## Success Criteria
169
+
170
+ - [ ] Phase validated (all plans complete, UAT passed)
171
+ - [ ] Metrics collected and aggregated
172
+ - [ ] Bottleneck report generated
173
+ - [ ] Skills extracted (if candidates found)
174
+ - [ ] Trends updated in CONSCIENCE.md
175
+ - [ ] Feature branch merged to develop
176
+ - [ ] Handoff created for continuity
177
+ - [ ] User knows next action
178
+
179
+ ---
180
+
181
+ ## References
182
+
183
+ - **Metrics:** `@references/metrics-and-trends.md`
184
+ - **Skills:** `@references/auto-skill-extraction.md`
185
+ - **Blockers:** `@references/blocker-tracking.md`
186
+ - **Git:** `@references/git-integration.md`