@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,460 @@
1
+ ---
2
+ description: Deep validation before claiming work is complete
3
+ ---
4
+
5
+ # /fire-double-check
6
+
7
+ > Verify before you claim victory
8
+
9
+ ---
10
+
11
+ ## Purpose
12
+
13
+ A rigorous validation command inspired by superpowers:verification-before-completion. Prevents false completion claims by requiring evidence-based verification. Integrates with WARRIOR honesty protocols to ensure claims match reality.
14
+
15
+ ---
16
+
17
+ ## Arguments
18
+
19
+ ```yaml
20
+ arguments:
21
+ target:
22
+ required: false
23
+ type: string
24
+ description: "What to verify - defaults to current work"
25
+ examples:
26
+ - "/fire-double-check" # Verify current work
27
+ - "/fire-double-check 'login feature'"
28
+ - "/fire-double-check phase 2"
29
+ - "/fire-double-check PR#45"
30
+
31
+ optional_flags:
32
+ --deep: "Run extended verification including edge cases"
33
+ --fast: "Quick sanity check only (not recommended)"
34
+ --focus: "Specific area: tests, security, types, build"
35
+ --fix: "Attempt to fix issues found (default: report only)"
36
+ ```
37
+
38
+ ---
39
+
40
+ ## Core Principle
41
+
42
+ **EVIDENCE BEFORE ASSERTION**
43
+
44
+ ```
45
+ ┌─────────────────────────────────────────────────────────────────┐
46
+ │ │
47
+ │ ✗ WRONG: "The tests pass" → then run tests │
48
+ │ ✓ RIGHT: Run tests → "The tests pass (output: 45/45)" │
49
+ │ │
50
+ │ ✗ WRONG: "I fixed the bug" → hope it works │
51
+ │ ✓ RIGHT: Reproduce → fix → verify fix → "Bug fixed (proof)" │
52
+ │ │
53
+ └─────────────────────────────────────────────────────────────────┘
54
+ ```
55
+
56
+ ---
57
+
58
+ ## Process
59
+
60
+ ### Step 1: Identify Claims
61
+
62
+ ```
63
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
64
+ DOMINION FLOW ► DOUBLE CHECK
65
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
66
+
67
+ Target: {target or "Current Work"}
68
+ Mode: Evidence-Based Verification
69
+ ```
70
+
71
+ **Analyze what's being claimed:**
72
+ ```markdown
73
+ ## Claims to Verify
74
+
75
+ Based on context, the following claims need verification:
76
+
77
+ | # | Implicit Claim | Evidence Required |
78
+ |---|----------------|-------------------|
79
+ | 1 | Code compiles | Build output |
80
+ | 2 | Tests pass | Test runner output |
81
+ | 3 | Feature works | Demo or test |
82
+ | 4 | No regressions | Full test suite |
83
+ | 5 | Types are correct | TypeScript output |
84
+ ```
85
+
86
+ ### Step 2: Execute Verification Commands
87
+
88
+ **Run ALL verification commands and capture output:**
89
+
90
+ ```bash
91
+ # Claim 1: Code compiles
92
+ echo "=== BUILD CHECK ==="
93
+ npm run build 2>&1
94
+ BUILD_EXIT=$?
95
+
96
+ # Claim 2: Tests pass
97
+ echo "=== TEST CHECK ==="
98
+ npm run test 2>&1
99
+ TEST_EXIT=$?
100
+
101
+ # Claim 3: Types correct
102
+ echo "=== TYPE CHECK ==="
103
+ npm run typecheck 2>&1
104
+ TYPE_EXIT=$?
105
+
106
+ # Claim 4: Lint passes
107
+ echo "=== LINT CHECK ==="
108
+ npm run lint 2>&1
109
+ LINT_EXIT=$?
110
+ ```
111
+
112
+ ### Step 3: Analyze Results
113
+
114
+ ```markdown
115
+ ## Verification Results
116
+
117
+ ### Build Check
118
+ **Command:** `npm run build`
119
+ **Exit Code:** {0 | non-zero}
120
+ **Output:**
121
+ ```
122
+ {actual output}
123
+ ```
124
+ **Verdict:** PASS | FAIL
125
+
126
+ ---
127
+
128
+ ### Test Check
129
+ **Command:** `npm run test`
130
+ **Exit Code:** {0 | non-zero}
131
+ **Output:**
132
+ ```
133
+ {actual output showing pass/fail count}
134
+ ```
135
+ **Verdict:** PASS | FAIL ({X}/{Y} tests)
136
+
137
+ ---
138
+
139
+ ### Type Check
140
+ **Command:** `npm run typecheck`
141
+ **Exit Code:** {0 | non-zero}
142
+ **Output:**
143
+ ```
144
+ {actual output}
145
+ ```
146
+ **Verdict:** PASS | FAIL ({X} errors)
147
+
148
+ ---
149
+
150
+ ### Lint Check
151
+ **Command:** `npm run lint`
152
+ **Exit Code:** {0 | non-zero}
153
+ **Output:**
154
+ ```
155
+ {actual output}
156
+ ```
157
+ **Verdict:** PASS | FAIL ({X} warnings, {Y} errors)
158
+ ```
159
+
160
+ ### Step 4: Deep Verification (if --deep or specific feature)
161
+
162
+ **For features/bug fixes, verify the actual behavior:**
163
+
164
+ ```markdown
165
+ ## Feature Verification
166
+
167
+ ### Claim: "User can log in with valid credentials"
168
+
169
+ **Test Steps:**
170
+ 1. Start the application
171
+ 2. Navigate to /login
172
+ 3. Enter valid credentials
173
+ 4. Click login button
174
+ 5. Verify redirect to dashboard
175
+
176
+ **Evidence:**
177
+ ```bash
178
+ # API test
179
+ curl -X POST http://localhost:3000/api/auth/login \
180
+ -H "Content-Type: application/json" \
181
+ -d '{"email":"test@example.com","password":"testpass123"}' \
182
+ -w "\n%{http_code}"
183
+ ```
184
+
185
+ **Output:**
186
+ ```json
187
+ {"token":"eyJ...","user":{"id":1,"email":"test@example.com"}}
188
+ 200
189
+ ```
190
+
191
+ **Verdict:** PASS - Login returns token and 200 status
192
+ ```
193
+
194
+ ### Step 5: Honesty Protocol Check
195
+
196
+ **MANDATORY: Answer before claiming complete.**
197
+
198
+ ```markdown
199
+ ## Honesty Check
200
+
201
+ ### Question 1: Did I actually run these commands?
202
+ - [x] Yes, all commands were executed in this session
203
+ - [ ] No, I assumed based on previous runs
204
+
205
+ ### Question 2: Am I interpreting the output honestly?
206
+ - [x] The output clearly shows success/failure
207
+ - [ ] The output is ambiguous, I'm making assumptions
208
+
209
+ ### Question 3: Are there things I'm NOT checking?
210
+ - [ ] No, I've verified everything needed
211
+ - [x] Yes, I haven't verified: {list what's unchecked}
212
+
213
+ ### Question 4: Would a skeptic be convinced?
214
+ - [x] Yes, the evidence is clear
215
+ - [ ] No, more verification needed
216
+ ```
217
+
218
+ ### Step 6: Generate Verification Report
219
+
220
+ ```markdown
221
+ ## Double-Check Summary
222
+
223
+ | Check | Command | Result | Evidence |
224
+ |-------|---------|--------|----------|
225
+ | Build | `npm run build` | PASS | Exit 0 |
226
+ | Tests | `npm run test` | PASS | 45/45 |
227
+ | Types | `npm run typecheck` | PASS | 0 errors |
228
+ | Lint | `npm run lint` | PASS | 0 errors |
229
+ | Feature | Manual/API test | PASS | HTTP 200 |
230
+
231
+ ### Overall Verdict
232
+
233
+ **STATUS:** VERIFIED | ISSUES FOUND | CANNOT VERIFY
234
+
235
+ ### Confidence Level
236
+
237
+ Based on evidence gathered:
238
+ - **High Confidence:** All automated checks pass, feature verified
239
+ - **Medium Confidence:** Automated checks pass, manual verification partial
240
+ - **Low Confidence:** Some checks skipped or failing
241
+ ```
242
+
243
+ ---
244
+
245
+ ## Output Display
246
+
247
+ ### All Checks Pass
248
+
249
+ ```
250
+ ╔══════════════════════════════════════════════════════════════════════════════╗
251
+ ║ ✓ DOUBLE-CHECK PASSED ║
252
+ ╠══════════════════════════════════════════════════════════════════════════════╣
253
+ ║ ║
254
+ ║ All verification checks passed with evidence: ║
255
+ ║ ║
256
+ ║ ✓ Build Exit 0, no errors ║
257
+ ║ ✓ Tests 45/45 passing (92% coverage) ║
258
+ ║ ✓ Types 0 TypeScript errors ║
259
+ ║ ✓ Lint 0 errors, 0 warnings ║
260
+ ║ ✓ Feature Login returns 200 with token ║
261
+ ║ ║
262
+ ║ Confidence: HIGH ║
263
+ ║ ║
264
+ ║ You may now claim this work is complete. ║
265
+ ║ ║
266
+ ╚══════════════════════════════════════════════════════════════════════════════╝
267
+ ```
268
+
269
+ ### Issues Found
270
+
271
+ ```
272
+ ╔══════════════════════════════════════════════════════════════════════════════╗
273
+ ║ ✗ DOUBLE-CHECK FAILED ║
274
+ ╠══════════════════════════════════════════════════════════════════════════════╣
275
+ ║ ║
276
+ ║ Issues found that must be resolved: ║
277
+ ║ ║
278
+ ║ ✓ Build Exit 0, no errors ║
279
+ ║ ✗ Tests 42/45 passing (3 FAILING) ║
280
+ ║ ✓ Types 0 TypeScript errors ║
281
+ ║ ⚠ Lint 0 errors, 12 warnings ║
282
+ ║ ║
283
+ ║ Failing Tests: ║
284
+ ║ - auth.test.ts: "should reject invalid password" ║
285
+ ║ - auth.test.ts: "should rate limit after 5 attempts" ║
286
+ ║ - user.test.ts: "should return 404 for missing user" ║
287
+ ║ ║
288
+ ║ DO NOT claim complete until these are fixed. ║
289
+ ║ ║
290
+ ╠══════════════════════════════════════════════════════════════════════════════╣
291
+ ║ NEXT STEPS ║
292
+ ├──────────────────────────────────────────────────────────────────────────────┤
293
+ ║ ║
294
+ ║ → Fix the 3 failing tests ║
295
+ ║ → Address lint warnings (optional but recommended) ║
296
+ ║ → Run `/fire-double-check` again ║
297
+ ║ ║
298
+ ╚══════════════════════════════════════════════════════════════════════════════╝
299
+ ```
300
+
301
+ ---
302
+
303
+ ## Integration with Dominion Flow
304
+
305
+ ### Before Claiming Done
306
+ ```bash
307
+ # After implementing feature
308
+ /fire-double-check
309
+ # Only proceed if VERIFIED
310
+ ```
311
+
312
+ ### Before Verification Phase
313
+ ```bash
314
+ /fire-3-execute 2
315
+ # ... execution completes ...
316
+ /fire-double-check phase 2
317
+ # Then
318
+ /fire-4-verify 2
319
+ ```
320
+
321
+ ### Before Commit
322
+ ```bash
323
+ /fire-double-check --focus tests,types
324
+ # If passes, safe to commit
325
+ ```
326
+
327
+ ### Before PR
328
+ ```bash
329
+ /fire-double-check --deep
330
+ # Comprehensive check before review request
331
+ ```
332
+
333
+ ---
334
+
335
+ ## What Gets Checked
336
+
337
+ ### Standard Checks (Always Run)
338
+
339
+ | Check | Command | What It Verifies |
340
+ |-------|---------|------------------|
341
+ | Build | `npm run build` | Code compiles |
342
+ | Tests | `npm run test` | Tests pass |
343
+ | Types | `npm run typecheck` | Type safety |
344
+ | Lint | `npm run lint` | Code style |
345
+
346
+ ### Deep Checks (--deep flag)
347
+
348
+ | Check | Command | What It Verifies |
349
+ |-------|---------|------------------|
350
+ | Coverage | `npm run test:coverage` | Test coverage threshold |
351
+ | Security | `npm audit` | Known vulnerabilities |
352
+ | E2E | `npm run test:e2e` | End-to-end flows |
353
+ | Performance | `npm run test:perf` | Performance benchmarks |
354
+
355
+ ### Focus Checks (--focus flag)
356
+
357
+ ```bash
358
+ --focus tests # Only test-related checks
359
+ --focus security # Only security checks
360
+ --focus types # Only TypeScript checks
361
+ --focus build # Only build checks
362
+ ```
363
+
364
+ ---
365
+
366
+ ## Anti-Patterns Blocked
367
+
368
+ | Anti-Pattern | How Double-Check Prevents |
369
+ |--------------|---------------------------|
370
+ | "Tests pass" without running | Commands executed and output captured |
371
+ | "Fixed the bug" without verification | Requires reproduction + verification |
372
+ | Claiming done with failing tests | Exit codes checked, failures reported |
373
+ | Ignoring warnings | Warnings counted and displayed |
374
+ | Skipping checks to save time | All checks required, no skip option |
375
+
376
+ ---
377
+
378
+ ## Sabbath Rest
379
+
380
+ > *Like humans need sleep to reset, AI agents need state files to resume after context resets.*
381
+
382
+ ### Update CONSCIENCE.md After Verification
383
+
384
+ **MANDATORY:** Record verification results in CONSCIENCE.md:
385
+
386
+ ```markdown
387
+ ## Verification History
388
+ | Date | Target | Result | Evidence File |
389
+ |------|--------|--------|---------------|
390
+ | {timestamp} | {target} | VERIFIED/ISSUES | .planning/verifications/{file}.md |
391
+
392
+ ## Last Verification
393
+ - **Target:** {what was verified}
394
+ - **Result:** {VERIFIED | ISSUES FOUND}
395
+ - **Confidence:** {HIGH | MEDIUM | LOW}
396
+ - **Checks:** Build ✓ Tests ✓ Types ✓ Lint ✓
397
+ ```
398
+
399
+ ### Save Verification Report
400
+
401
+ **Create:** `.planning/verifications/{target}-{timestamp}.md`
402
+
403
+ Contains full evidence capture for audit trail.
404
+
405
+ ### Session State (for interrupted verifications)
406
+
407
+ **Create/Update:** `.claude/fire-double-check.local.md`
408
+
409
+ ```markdown
410
+ ---
411
+ last_run: {timestamp}
412
+ target: "{target}"
413
+ status: {in_progress | complete}
414
+ result: {VERIFIED | ISSUES_FOUND | null}
415
+ ---
416
+
417
+ # Double-Check Session State
418
+
419
+ ## Current Verification
420
+ - Target: {target}
421
+ - Started: {timestamp}
422
+ - Checks Completed: [build, test, ...]
423
+ - Checks Remaining: [...]
424
+
425
+ ## Results Cache
426
+ | Check | Status | Output Hash |
427
+ |-------|--------|-------------|
428
+ | build | PASS | {hash} |
429
+ | test | PASS | {hash} |
430
+ ```
431
+
432
+ This ensures:
433
+ - Verification results persist in project history
434
+ - Interrupted verifications can resume
435
+ - Audit trail for compliance
436
+
437
+ ---
438
+
439
+ ## Success Criteria
440
+
441
+ ### Required Outputs
442
+ - [ ] All verification commands executed
443
+ - [ ] Output captured and displayed
444
+ - [ ] Clear PASS/FAIL verdict per check
445
+ - [ ] Overall status determined
446
+ - [ ] Confidence level stated
447
+
448
+ ### Verification Complete When
449
+ - All standard checks pass
450
+ - Honesty protocol questions answered
451
+ - Evidence supports the claims being made
452
+
453
+ ---
454
+
455
+ ## References
456
+
457
+ - **Inspiration:** superpowers:verification-before-completion
458
+ - **Protocol:** `@references/honesty-protocols.md`
459
+ - **Checklist:** `@references/validation-checklist.md`
460
+ - **Brand:** `@references/ui-brand.md`
@@ -0,0 +1,182 @@
1
+ ---
2
+ description: Execute a single plan with segment-based routing, per-task atomic commits, and test enforcement
3
+ ---
4
+
5
+ # /fire-execute-plan
6
+
7
+ > Execute one BLUEPRINT.md with intelligent segmentation, atomic commits per task, and enforced test gates.
8
+
9
+ ---
10
+
11
+ ## Arguments
12
+
13
+ ```yaml
14
+ arguments:
15
+ plan_id:
16
+ required: false
17
+ type: string
18
+ description: "Plan ID (e.g., 03-02). If omitted, auto-detects next unexecuted plan."
19
+
20
+ optional_flags:
21
+ --continue: "Resume from .continue-here.md"
22
+ --branch: "Custom feature branch name"
23
+ --no-branch: "Execute on current branch"
24
+ --dry-run: "Parse segments without executing"
25
+ --main-only: "Force all segments to main context"
26
+ ```
27
+
28
+ ---
29
+
30
+ ## Process
31
+
32
+ ### Step 1: Load Project State
33
+
34
+ ```
35
+ +---------------------------------------------------------------+
36
+ | DOMINION FLOW >>> PLAN EXECUTION |
37
+ +---------------------------------------------------------------+
38
+ ```
39
+
40
+ Load CONSCIENCE.md: current phase, accumulated decisions, blockers/concerns.
41
+
42
+ ### Step 2: Identify Plan
43
+
44
+ If plan_id provided: locate directly. If omitted: find first BLUEPRINT.md without matching RECORD.md.
45
+
46
+ ### Step 3: Create Feature Branch
47
+
48
+ Unless `--no-branch`:
49
+ ```bash
50
+ git checkout -b "feat/${PHASE}-${PLAN}-${PLAN_NAME_SLUG}"
51
+ ```
52
+
53
+ ### Step 4: Parse Segments and Select Execution Mode
54
+
55
+ **Parse segments** based on checkpoints:
56
+
57
+ | Pattern | Condition | Segment Strategy |
58
+ |---------|-----------|-----------------|
59
+ | A - Autonomous | No checkpoints | Single executor, entire plan |
60
+ | B - Segmented | Verify-only checkpoints | Executor per segment, main for checkpoints |
61
+ | C - Decision-Dependent | Decision/action checkpoints | All in main context |
62
+
63
+ **Auto-select execution mode** (see `@references/execution-mode-intelligence.md`):
64
+
65
+ ```
66
+ auto_tasks = tasks where type == "auto"
67
+ checkpoint_tasks = tasks where type starts with "checkpoint:"
68
+ specialties = detect_specialties(auto_tasks)
69
+
70
+ IF checkpoint_tasks has "checkpoint:decision":
71
+ MODE = SEQUENTIAL
72
+ REASON: "Decision checkpoint requires user interaction"
73
+
74
+ ELIF auto_tasks.count >= 3 AND tasks_are_independent(auto_tasks)
75
+ AND plan.risk_level != "high":
76
+ MODE = SWARM
77
+ REASON: "3+ independent tasks — Team Lead delegates to specialists"
78
+ TEAM: compose from detected specialties (backend/frontend/test)
79
+
80
+ ELIF auto_tasks.count >= 2 AND tasks_are_independent(auto_tasks):
81
+ MODE = SUBAGENT
82
+ REASON: "2 independent segments — parallel subagent execution"
83
+
84
+ ELIF plan.risk_level == "high":
85
+ MODE = SEQUENTIAL
86
+ REASON: "High-risk plan — careful serial execution"
87
+
88
+ ELSE:
89
+ MODE = SEQUENTIAL (default)
90
+ ```
91
+
92
+ **Display:**
93
+ ```
94
+ +---------------------------------------------------------------+
95
+ | PLAN EXECUTION MODE: [SWARM/SUBAGENT/SEQUENTIAL] |
96
+ +---------------------------------------------------------------+
97
+ | Plan: {phase}-{plan} | Tasks: {N} | Risk: {level} |
98
+ | Segments: {pattern A/B/C} |
99
+ | Rationale: {why this mode} |
100
+ | |
101
+ | [If SWARM:] Team: Backend + Frontend + Test specialists |
102
+ +-----------------------------------------------------------------+
103
+ ```
104
+
105
+ ### Step 5: Execute Segments with Per-Task Commits
106
+
107
+ **Per-Task Atomic Commit Protocol:**
108
+
109
+ 1. Complete task and verify
110
+ 2. Stage ONLY task-related files (never `git add .`)
111
+ 3. Commit: `{type}({phase}-{plan}): {task description}`
112
+ 4. Record commit hash for SUMMARY
113
+
114
+ **Deviation Rules:**
115
+ - Rule 1 - Auto-fix bugs
116
+ - Rule 2 - Auto-add missing critical (error handling, validation, auth)
117
+ - Rule 3 - Auto-fix blockers (missing dep, wrong types)
118
+ - Rule 4 - ASK about architectural changes (new table, schema change)
119
+
120
+ ### Step 6: Test Enforcement After Each Segment
121
+
122
+ ```bash
123
+ npm test || yarn test || pytest || go test ./...
124
+ ```
125
+
126
+ If tests fail:
127
+ - Option A: Auto-fix (attempt 2x, then manual)
128
+ - Option B: Skip (tracked in SUMMARY)
129
+ - Option C: Stop execution
130
+
131
+ ### Step 7: Generate RECORD.md
132
+
133
+ Create `.planning/phases/XX-name/{phase}-{plan}-RECORD.md` using `templates/summary.md` format.
134
+
135
+ Include: task commits table, deviations, test results, decisions, metrics frontmatter.
136
+
137
+ ### Step 8: Update Planning Artifacts
138
+
139
+ - CONSCIENCE.md: position, progress, decisions
140
+ - VISION.md: plan count
141
+ - BLOCKERS.md: any new blockers
142
+
143
+ ### Step 9: Commit Metadata
144
+
145
+ ```bash
146
+ git add .planning/phases/XX-name/{phase}-{plan}-RECORD.md
147
+ git add .planning/CONSCIENCE.md .planning/VISION.md
148
+ git commit -m "docs({phase}-{plan}): complete {plan-name}
149
+
150
+ Tasks completed: {N}/{N}
151
+ SUMMARY: .planning/phases/XX-name/{phase}-{plan}-RECORD.md"
152
+ ```
153
+
154
+ ### Step 10: Route Next Action
155
+
156
+ | Condition | Next Action |
157
+ |-----------|------------|
158
+ | More plans in phase | `/fire-execute-plan` for next plan |
159
+ | Phase complete | `/fire-verify-uat {phase}` |
160
+ | Phase verified | `/fire-transition` |
161
+
162
+ ---
163
+
164
+ ## Success Criteria
165
+
166
+ - [ ] Plan identified and loaded
167
+ - [ ] Feature branch created (unless --no-branch)
168
+ - [ ] Each task committed atomically
169
+ - [ ] Tests passed after each segment
170
+ - [ ] RECORD.md created with metrics
171
+ - [ ] CONSCIENCE.md and VISION.md updated
172
+ - [ ] User knows next action
173
+
174
+ ---
175
+
176
+ ## References
177
+
178
+ - **Execution Mode:** `@references/execution-mode-intelligence.md`
179
+ - **Protocol:** `@references/honesty-protocols.md`
180
+ - **Testing:** `@references/testing-enforcement.md`
181
+ - **Git:** `@references/git-integration.md`
182
+ - **Checkpoints:** `@references/checkpoints.md`