@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,185 @@
1
+ # Brainstorm: {Topic}
2
+
3
+ **Date:** {timestamp}
4
+ **Status:** IN_PROGRESS | COMPLETE
5
+ **Facilitator:** Dominion Flow
6
+
7
+ ---
8
+
9
+ ## Problem Statement
10
+
11
+ {Single paragraph describing what we're trying to solve}
12
+
13
+ ---
14
+
15
+ ## Clarifying Questions & Answers
16
+
17
+ | Question | Answer |
18
+ |----------|--------|
19
+ | What is the primary use case? | {answer} |
20
+ | What systems does this interact with? | {answer} |
21
+ | What are the non-negotiables? | {answer} |
22
+ | What does success look like? | {answer} |
23
+
24
+ ---
25
+
26
+ ## Problem Decomposition
27
+
28
+ ### Core Challenge
29
+ {One sentence}
30
+
31
+ ### Sub-Problems
32
+ 1. **{Sub-problem 1}**
33
+ - Why it matters:
34
+ - Complexity: Low | Medium | High
35
+
36
+ 2. **{Sub-problem 2}**
37
+ - Why it matters:
38
+ - Complexity: Low | Medium | High
39
+
40
+ 3. **{Sub-problem 3}**
41
+ - Why it matters:
42
+ - Complexity: Low | Medium | High
43
+
44
+ ### Dependencies
45
+ - {dependency relationships}
46
+
47
+ ### Risk Areas
48
+ - {highest uncertainty}
49
+ - {most likely to change}
50
+
51
+ ---
52
+
53
+ ## Alternative Approaches
54
+
55
+ ### Approach A: {Name}
56
+
57
+ **Summary:** {One-line}
58
+
59
+ **How it works:**
60
+ {2-3 sentences}
61
+
62
+ **Pros:**
63
+ -
64
+ -
65
+ -
66
+
67
+ **Cons:**
68
+ -
69
+ -
70
+
71
+ **Best when:** {scenario}
72
+
73
+ **Complexity:** Low | Medium | High
74
+
75
+ **Skills Match:** @skills-library/{path}
76
+
77
+ ---
78
+
79
+ ### Approach B: {Name}
80
+
81
+ **Summary:** {One-line}
82
+
83
+ **How it works:**
84
+ {2-3 sentences}
85
+
86
+ **Pros:**
87
+ -
88
+ -
89
+ -
90
+
91
+ **Cons:**
92
+ -
93
+ -
94
+
95
+ **Best when:** {scenario}
96
+
97
+ **Complexity:** Low | Medium | High
98
+
99
+ **Skills Match:** @skills-library/{path}
100
+
101
+ ---
102
+
103
+ ### Approach C: {Name}
104
+
105
+ **Summary:** {One-line}
106
+
107
+ **How it works:**
108
+ {2-3 sentences}
109
+
110
+ **Pros:**
111
+ -
112
+ -
113
+ -
114
+
115
+ **Cons:**
116
+ -
117
+ -
118
+
119
+ **Best when:** {scenario}
120
+
121
+ **Complexity:** Low | Medium | High
122
+
123
+ **Skills Match:** @skills-library/{path}
124
+
125
+ ---
126
+
127
+ ## Trade-off Analysis
128
+
129
+ | Criteria | Weight | A | B | C |
130
+ |----------|--------|---|---|---|
131
+ | Simplicity | 3 | | | |
132
+ | Performance | 2 | | | |
133
+ | Maintainability | 3 | | | |
134
+ | Time to Implement | 2 | | | |
135
+ | Scalability | 2 | | | |
136
+ | **Weighted Total** | | | | |
137
+
138
+ ---
139
+
140
+ ## Recommendation
141
+
142
+ ### Recommended: Approach {X}
143
+
144
+ **Why:**
145
+ {2-3 sentences}
146
+
147
+ **Key factors:**
148
+ 1.
149
+ 2.
150
+ 3.
151
+
152
+ ### Implementation Sketch
153
+
154
+ ```
155
+ {High-level diagram or flow}
156
+ ```
157
+
158
+ ### First Steps
159
+ 1.
160
+ 2.
161
+ 3.
162
+
163
+ ### Open Questions
164
+ -
165
+ -
166
+
167
+ ---
168
+
169
+ ## Decision Record
170
+
171
+ | Decision | Rationale | Alternatives |
172
+ |----------|-----------|--------------|
173
+ | {decision} | {why} | {what else considered} |
174
+
175
+ ---
176
+
177
+ ## Next Steps
178
+
179
+ - [ ] Review with stakeholders
180
+ - [ ] Create plan: `/fire-2-plan`
181
+ - [ ] Begin implementation
182
+
183
+ ---
184
+
185
+ *Brainstorm facilitated by Dominion Flow*
@@ -0,0 +1,92 @@
1
+ # Project State
2
+
3
+ ## Project Reference
4
+ - **Project:** {project_name}
5
+ - **Core value:** {core_value}
6
+ - **Current focus:** Phase {current_phase} - {phase_name}
7
+ - **Milestone:** v{milestone_version} [{milestone_status}]
8
+
9
+ ## Current Position
10
+ - **Phase:** {current_phase} of {total_phases}
11
+ - **Breath:** {current_wave}
12
+ - **Status:** {status}
13
+ - **Last activity:** {last_activity_date} - {last_activity_description}
14
+ - **Progress:** [{progress_bar}] {progress_percent}%
15
+
16
+ ## Dominion Flow Progress Tracking
17
+ ### Phase Status
18
+ | Phase | Name | Status | Plans | Completed |
19
+ |-------|------|--------|-------|-----------|
20
+ {phase_status_rows}
21
+
22
+ ### Recent Completions
23
+ {recent_completions}
24
+
25
+ ## WARRIOR Integration
26
+ - **Skills Applied:** {total_skills_applied} total
27
+ {skills_applied_list}
28
+
29
+ - **Honesty Checkpoints:** {honesty_checkpoint_count} (agents admitted gaps, researched, proceeded)
30
+ - **Validation Status:** Phase {last_validated_phase} passed {validation_score}/70 checks
31
+
32
+ ## Performance Metrics
33
+ ### Time Tracking
34
+ - **Session start:** {session_start}
35
+ - **Total time this phase:** {phase_time}
36
+ - **Average plan duration:** {avg_plan_duration}
37
+
38
+ ### Quality Metrics
39
+ - **Test coverage:** {test_coverage}%
40
+ - **Lint errors:** {lint_errors}
41
+ - **Build status:** {build_status}
42
+
43
+ ## Accumulated Context
44
+
45
+ ### Skills Library Usage
46
+ - **Most used:** {most_used_skill_category} ({most_used_count} applications)
47
+ - **Recent:** {recent_skill} (Phase {recent_skill_phase})
48
+ - **Categories applied:** {categories_applied}
49
+
50
+ ### Decisions
51
+ > Full decision log: `.planning/DECISION_LOG.md` (v3.2 enhancement)
52
+ > Quick reference of recent decisions below; see log for full rationale and options considered.
53
+
54
+ | Date | Decision | Rationale | Phase |
55
+ |------|----------|-----------|-------|
56
+ {decisions_rows}
57
+
58
+ ### Assumptions Health
59
+ > Full registry: `.planning/ASSUMPTIONS.md`
60
+
61
+ | Status | Count |
62
+ |--------|-------|
63
+ | Validated | {validated_count} |
64
+ | Unvalidated | {unvalidated_count} |
65
+ | Invalidated | {invalidated_count} |
66
+
67
+ ### Blockers & Issues
68
+ {blockers_list}
69
+
70
+ ## Session Continuity
71
+ - **Last session:** {last_session_timestamp}
72
+ - **Stopped at:** {stopped_at_description}
73
+ - **Resume file:** .planning/WARRIOR-HANDOFF.md
74
+ - **Next:** {next_action}
75
+
76
+ ## Quick Resume Commands
77
+ ```bash
78
+ # Check current status
79
+ /fire-dashboard
80
+
81
+ # Resume work
82
+ /fire-6-resume
83
+
84
+ # Continue execution
85
+ /fire-3-execute {current_phase}
86
+
87
+ # View skills applied
88
+ /fire-analytics --project
89
+ ```
90
+
91
+ ---
92
+ *Last updated: {last_updated}*
@@ -0,0 +1,159 @@
1
+ ---
2
+ # Dominion Flow Frontmatter (machine-readable)
3
+ project: {project_name}
4
+ phase: {phase_number}-{phase_name}
5
+ plan: {plan_number}
6
+ subsystem: {subsystem}
7
+ duration: "{duration_minutes} min"
8
+ start_time: "{start_time_iso}"
9
+ end_time: "{end_time_iso}"
10
+
11
+ # Skills & Quality (WARRIOR integration)
12
+ skills_applied:
13
+ {skills_applied_yaml}
14
+ honesty_checkpoints:
15
+ {honesty_checkpoints_yaml}
16
+ validation_score: {validation_passed}/{validation_total}
17
+
18
+ # Dominion Flow Execution Metadata
19
+ requires: [{requires}]
20
+ provides: [{provides}]
21
+ affects: [{affects}]
22
+ tech_stack_added: [{tech_stack_added}]
23
+ patterns_established: [{patterns_established}]
24
+ key_files:
25
+ created:
26
+ {files_created_yaml}
27
+ modified:
28
+ {files_modified_yaml}
29
+ key_decisions:
30
+ {key_decisions_yaml}
31
+ ---
32
+
33
+ # Power Handoff: Plan {phase_number}-{plan_number}
34
+
35
+ ## Quick Summary
36
+ {quick_summary}
37
+
38
+ ---
39
+
40
+ ## Dominion Flow Accomplishments
41
+
42
+ ### Task Commits
43
+ | Task | Description | Commit | Status |
44
+ |------|-------------|--------|--------|
45
+ {task_commits_rows}
46
+
47
+ ### Files Created/Modified
48
+ **Created ({files_created_count} files):**
49
+ {files_created_list}
50
+
51
+ **Modified ({files_modified_count} files):**
52
+ {files_modified_list}
53
+
54
+ ### Decisions Made
55
+ {decisions_made_list}
56
+
57
+ ---
58
+
59
+ ## Skills Applied (WARRIOR)
60
+
61
+ {skills_applied_details}
62
+
63
+ ---
64
+
65
+ ## WARRIOR 7-Step Handoff
66
+
67
+ ### W - Work Completed
68
+ {work_completed}
69
+
70
+ ### A - Assessment
71
+ {assessment}
72
+
73
+ ### R - Resources
74
+ **Environment Variables Required:**
75
+ ```bash
76
+ {env_vars}
77
+ ```
78
+
79
+ **Database Tables:**
80
+ {database_tables}
81
+
82
+ **External Services:**
83
+ {external_services}
84
+
85
+ **Credentials/Access:**
86
+ {credentials_access}
87
+
88
+ ### R - Readiness
89
+ **Ready For:**
90
+ {ready_for}
91
+
92
+ **Blocked On:** {blocked_on}
93
+
94
+ **Next Steps:**
95
+ {next_steps}
96
+
97
+ ### I - Issues
98
+ **Current Issues:**
99
+ {current_issues}
100
+
101
+ **Known Limitations (Deferred):**
102
+ {known_limitations}
103
+
104
+ ### O - Outlook
105
+ **Next Session Should:**
106
+ {next_session_should}
107
+
108
+ **After This Phase:**
109
+ {after_this_phase}
110
+
111
+ ### R - References
112
+ **Skills Used:**
113
+ {skills_used_list}
114
+
115
+ **Commits:**
116
+ {commits_list}
117
+
118
+ **Related Work:**
119
+ {related_work}
120
+
121
+ **External Resources:**
122
+ {external_resources}
123
+
124
+ ---
125
+
126
+ ## Metrics
127
+
128
+ | Metric | Value |
129
+ |--------|-------|
130
+ | Execution Time | {duration_minutes} min |
131
+ | Files Created | {files_created_count} |
132
+ | Files Modified | {files_modified_count} |
133
+ | Tests Added | {tests_added_count} |
134
+ | Test Coverage | {test_coverage}% |
135
+ | Validation Score | {validation_passed}/{validation_total} |
136
+ | Skills Applied | {skills_count} |
137
+
138
+ ---
139
+
140
+ ## Resume Instructions
141
+
142
+ To continue this work in a new session:
143
+
144
+ ```bash
145
+ # 1. Read this handoff (auto-injected by SessionStart hook)
146
+ # 2. Check current state
147
+ /fire-dashboard
148
+
149
+ # 3. Resume work
150
+ /fire-6-resume
151
+
152
+ # 4. Or continue specific phase
153
+ /fire-3-execute {next_phase}
154
+ ```
155
+
156
+ ---
157
+
158
+ *Handoff created: {handoff_timestamp}*
159
+ *Session ID: {session_id}*
@@ -0,0 +1,67 @@
1
+ # Metrics Template
2
+
3
+ > **Origin:** NEW for Dominion Flow v2.0 - Metrics collection for trend analysis.
4
+
5
+ Template for metrics frontmatter in RECORD.md files and aggregation in CONSCIENCE.md.
6
+
7
+ ---
8
+
9
+ ## Per-Plan Metrics (in RECORD.md frontmatter)
10
+
11
+ ```yaml
12
+ metrics:
13
+ duration_minutes: 12
14
+ tasks_completed: 4
15
+ tasks_blocked: 0
16
+ files_created: 3
17
+ files_modified: 5
18
+ lines_added: 245
19
+ lines_removed: 30
20
+ tests_added: 6
21
+ test_coverage_delta: "+3%"
22
+ skills_applied: 2
23
+ honesty_checkpoints: 1
24
+ commits: 4
25
+ blocker_count: 0
26
+ ```
27
+
28
+ ---
29
+
30
+ ## Per-Phase Metrics (in CONSCIENCE.md)
31
+
32
+ ```markdown
33
+ ## Phase Metrics
34
+ | Phase | Plans | Duration | Avg/Plan | Trend | Bottleneck |
35
+ |-------|-------|----------|----------|-------|------------|
36
+ | 01 | 3 | 30m | 10m | - | None |
37
+ | 02 | 4 | 45m | 11m | +10% | None |
38
+ | 03 | 6 | 72m | 12m | +9% | Plan 05 |
39
+ ```
40
+
41
+ ---
42
+
43
+ ## Trend Dashboard (in CONSCIENCE.md)
44
+
45
+ ```markdown
46
+ ## Trends (Last 5 Phases)
47
+ | Metric | P1 | P2 | P3 | P4 | P5 | Trend |
48
+ |--------|----|----|----|----|-----|-------|
49
+ | Avg Duration | 10m | 11m | 12m | 10m | 11m | Stable |
50
+ | Pass Rate | 100% | 100% | 100% | 100% | 100% | Stable |
51
+ | Skill Reuse | 20% | 25% | 30% | 35% | 40% | Improving |
52
+ | Blocker Rate | 10% | 5% | 0% | 0% | 0% | Improving |
53
+
54
+ Trajectory: POSITIVE
55
+ ```
56
+
57
+ ---
58
+
59
+ ## Bottleneck Flags
60
+
61
+ | Flag | Trigger | Suggestion |
62
+ |------|---------|------------|
63
+ | SLOW | Duration > 2x average | Break into smaller plans |
64
+ | BLOCKED | >20% tasks blocked | Review dependencies |
65
+ | QUALITY | Failed verification | Better must-haves |
66
+ | CRITICAL_PATH | Blocks 2+ plans | Prioritize this plan |
67
+ | COMPLEXITY | Lines > 3x average | Split into sub-plans |
@@ -0,0 +1,142 @@
1
+ # Phase Prompt Template (Dominion Flow Enhanced)
2
+
3
+ > **Origin:** Ported from Dominion Flow `phase-prompt.md` with SDLC quality gates.
4
+
5
+ Template for `.planning/phases/XX-name/{phase}-{plan}-BLUEPRINT.md`
6
+
7
+ ---
8
+
9
+ ## File Template
10
+
11
+ ```markdown
12
+ ---
13
+ phase: XX-name
14
+ plan: NN
15
+ type: execute|tdd
16
+ breath: N
17
+ depends_on: []
18
+ files_modified: []
19
+ autonomous: true|false
20
+ user_setup: []
21
+ must_haves:
22
+ truths: []
23
+ artifacts: []
24
+ key_links: []
25
+ skills_to_apply: []
26
+ assumptions: []
27
+ risk_level: low|medium|high
28
+ warrior_validation:
29
+ code_quality: true
30
+ security: false
31
+ performance: false
32
+ testing: true
33
+ ---
34
+
35
+ <objective>
36
+ [What this plan accomplishes]
37
+ Purpose: [Why this matters]
38
+ Output: [What artifacts will be created]
39
+ </objective>
40
+
41
+ <execution_context>
42
+ @~/.claude/plugins/dominion-flow/templates/summary.md
43
+ </execution_context>
44
+
45
+ <honesty_precheck>
46
+ **What I know:**
47
+ - [Facts confirmed about this domain/technology]
48
+
49
+ **What I'm uncertain about:**
50
+ - [Areas where research or skills lookup may be needed]
51
+
52
+ **Skills to reference:**
53
+ - [Relevant skills-library entries]
54
+
55
+ **Assumptions being made:**
56
+ - [VALIDATED: confirmed fact]
57
+ - [UNVALIDATED: assumption to verify]
58
+ </honesty_precheck>
59
+
60
+ <context>
61
+ @.planning/PROJECT.md
62
+ @.planning/VISION.md
63
+ @.planning/CONSCIENCE.md
64
+ @.planning/BLOCKERS.md
65
+ [Relevant source files]
66
+ </context>
67
+
68
+ <tasks>
69
+
70
+ <task type="auto">
71
+ <name>Task 1: [Action-oriented name]</name>
72
+ <files>path/to/file.ext</files>
73
+ <skills>[skill-library reference if applicable]</skills>
74
+ <action>[Specific implementation]</action>
75
+ <verify>[Command or check]</verify>
76
+ <done>[Acceptance criteria]</done>
77
+ </task>
78
+
79
+ <task type="checkpoint:human-verify" gate="blocking">
80
+ <what-built>[What needs verification]</what-built>
81
+ <how-to-verify>[Exact steps]</how-to-verify>
82
+ <resume-signal>Type "approved" or describe issues</resume-signal>
83
+ </task>
84
+
85
+ </tasks>
86
+
87
+ <verification>
88
+ ### Test Requirements
89
+ - [ ] [Test command]
90
+ - [ ] Build passes
91
+ - [ ] No new warnings
92
+
93
+ ### WARRIOR Quality Gates
94
+ - [ ] Code builds without errors
95
+ - [ ] Tests pass (existing + new)
96
+ - [ ] No regressions
97
+ </verification>
98
+
99
+ <success_criteria>
100
+ - All tasks completed
101
+ - All verification checks pass
102
+ - WARRIOR validation gates passed
103
+ </success_criteria>
104
+ ```
105
+
106
+ ---
107
+
108
+ ## Frontmatter Fields
109
+
110
+ | Field | Required | Purpose |
111
+ |-------|----------|---------|
112
+ | `phase` | Yes | Phase identifier |
113
+ | `plan` | Yes | Plan number within phase |
114
+ | `type` | Yes | `execute` or `tdd` |
115
+ | `breath` | Yes | Execution breath (pre-computed) |
116
+ | `depends_on` | Yes | Plan IDs this requires |
117
+ | `files_modified` | Yes | Files this plan touches |
118
+ | `autonomous` | Yes | `true` if no checkpoints |
119
+ | `must_haves` | Yes | Goal-backward verification |
120
+ | `skills_to_apply` | No | Skills-library references |
121
+ | `assumptions` | No | Key assumptions |
122
+ | `risk_level` | No | Verification depth (default: low) |
123
+
124
+ ---
125
+
126
+ ## Scope Guidance
127
+
128
+ - 2-3 tasks per plan, ~50% context max
129
+ - Prefer vertical slices (User: model+API+UI) over horizontal layers
130
+ - Split by risk level (high-risk separate from low-risk)
131
+ - TDD candidates get separate plans
132
+
133
+ ---
134
+
135
+ ## Task Types
136
+
137
+ | Type | Use For | Autonomy |
138
+ |------|---------|----------|
139
+ | `auto` | Everything Claude can do | Fully autonomous |
140
+ | `checkpoint:human-verify` | Visual/functional checks | Pauses for user |
141
+ | `checkpoint:decision` | Implementation choices | Pauses for user |
142
+ | `checkpoint:human-action` | Unavoidable manual steps | Pauses for user |