@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.
- package/.claude-plugin/plugin.json +64 -0
- package/ARCHITECTURE-DIAGRAM.md +440 -0
- package/COMMAND-REFERENCE.md +172 -0
- package/DOMINION-FLOW-OVERVIEW.md +421 -0
- package/LICENSE +21 -0
- package/QUICK-START.md +351 -0
- package/README.md +398 -0
- package/TROUBLESHOOTING.md +264 -0
- package/agents/fire-codebase-mapper.md +484 -0
- package/agents/fire-debugger.md +535 -0
- package/agents/fire-executor.md +949 -0
- package/agents/fire-fact-checker.md +276 -0
- package/agents/fire-learncoding-explainer.md +237 -0
- package/agents/fire-learncoding-walker.md +147 -0
- package/agents/fire-planner.md +675 -0
- package/agents/fire-project-researcher.md +155 -0
- package/agents/fire-research-synthesizer.md +166 -0
- package/agents/fire-researcher.md +723 -0
- package/agents/fire-reviewer.md +499 -0
- package/agents/fire-roadmapper.md +203 -0
- package/agents/fire-verifier.md +880 -0
- package/bin/cli.js +208 -0
- package/commands/fire-0-orient.md +476 -0
- package/commands/fire-1-new.md +281 -0
- package/commands/fire-1a-discuss.md +455 -0
- package/commands/fire-2-plan.md +527 -0
- package/commands/fire-3-execute.md +1303 -0
- package/commands/fire-4-verify.md +845 -0
- package/commands/fire-5-handoff.md +515 -0
- package/commands/fire-6-resume.md +501 -0
- package/commands/fire-7-review.md +409 -0
- package/commands/fire-add-new-skill.md +598 -0
- package/commands/fire-analytics.md +499 -0
- package/commands/fire-assumptions.md +78 -0
- package/commands/fire-autonomous.md +528 -0
- package/commands/fire-brainstorm.md +413 -0
- package/commands/fire-complete-milestone.md +270 -0
- package/commands/fire-dashboard.md +375 -0
- package/commands/fire-debug.md +663 -0
- package/commands/fire-discover.md +616 -0
- package/commands/fire-double-check.md +460 -0
- package/commands/fire-execute-plan.md +182 -0
- package/commands/fire-learncoding.md +242 -0
- package/commands/fire-loop-resume.md +272 -0
- package/commands/fire-loop-stop.md +198 -0
- package/commands/fire-loop.md +1168 -0
- package/commands/fire-map-codebase.md +313 -0
- package/commands/fire-new-milestone.md +356 -0
- package/commands/fire-reflect.md +235 -0
- package/commands/fire-research.md +246 -0
- package/commands/fire-search.md +330 -0
- package/commands/fire-security-audit-repo.md +293 -0
- package/commands/fire-security-scan.md +484 -0
- package/commands/fire-session-summary.md +252 -0
- package/commands/fire-skills-diff.md +506 -0
- package/commands/fire-skills-history.md +388 -0
- package/commands/fire-skills-rollback.md +408 -0
- package/commands/fire-skills-sync.md +470 -0
- package/commands/fire-test.md +520 -0
- package/commands/fire-todos.md +335 -0
- package/commands/fire-transition.md +186 -0
- package/commands/fire-update.md +312 -0
- package/commands/fire-verify-uat.md +146 -0
- package/commands/fire-vuln-scan.md +493 -0
- package/hooks/hooks.json +16 -0
- package/hooks/run-hook.cmd +69 -0
- package/hooks/run-hook.sh +8 -0
- package/hooks/run-session-end.cmd +49 -0
- package/hooks/run-session-end.sh +7 -0
- package/hooks/session-end.sh +90 -0
- package/hooks/session-start.sh +111 -0
- package/package.json +52 -0
- package/plugin.json +7 -0
- package/references/auto-skill-extraction.md +136 -0
- package/references/behavioral-directives.md +365 -0
- package/references/blocker-tracking.md +155 -0
- package/references/checkpoints.md +165 -0
- package/references/circuit-breaker.md +410 -0
- package/references/context-engineering.md +587 -0
- package/references/decision-time-guidance.md +289 -0
- package/references/error-classification.md +326 -0
- package/references/execution-mode-intelligence.md +242 -0
- package/references/git-integration.md +217 -0
- package/references/honesty-protocols.md +304 -0
- package/references/integration-architecture.md +470 -0
- package/references/issue-to-pr-pipeline.md +150 -0
- package/references/metrics-and-trends.md +234 -0
- package/references/playwright-e2e-testing.md +326 -0
- package/references/questioning.md +125 -0
- package/references/research-improvements.md +110 -0
- package/references/skills-usage-guide.md +429 -0
- package/references/tdd.md +131 -0
- package/references/testing-enforcement.md +192 -0
- package/references/ui-brand.md +383 -0
- package/references/validation-checklist.md +456 -0
- package/references/verification-patterns.md +187 -0
- package/references/warrior-principles.md +173 -0
- package/skills-library/SKILLS-INDEX.md +588 -0
- package/skills-library/_general/frontend/html-visual-reports.md +292 -0
- package/skills-library/_general/methodology/debug-swarm-researcher-escape-hatch.md +240 -0
- package/skills-library/_general/methodology/learncoding-agentic-pattern.md +114 -0
- package/skills-library/_general/methodology/shell-autonomous-loop-fixplan.md +238 -0
- package/skills-library/basics/api-rest-basics.md +162 -0
- package/skills-library/basics/env-variables.md +96 -0
- package/skills-library/basics/error-handling-basics.md +125 -0
- package/skills-library/basics/git-commit-conventions.md +106 -0
- package/skills-library/basics/readme-template.md +108 -0
- package/skills-library/common-tasks/async-await-patterns.md +157 -0
- package/skills-library/common-tasks/auth-jwt-basics.md +164 -0
- package/skills-library/common-tasks/database-schema-design.md +166 -0
- package/skills-library/common-tasks/file-upload-basics.md +166 -0
- package/skills-library/common-tasks/form-validation.md +159 -0
- package/skills-library/debugging/FAILURE_TAXONOMY_CLASSIFICATION.md +117 -0
- package/skills-library/debugging/THREE_AGENT_HYPOTHESIS_DEBUGGING.md +86 -0
- package/skills-library/methodology/BREATH_BASED_PARALLEL_EXECUTION.md +678 -0
- package/skills-library/methodology/CONFIDENCE_GATED_EXECUTION.md +243 -0
- package/skills-library/methodology/EVIDENCE_BASED_VALIDATION.md +308 -0
- package/skills-library/methodology/MULTI_PERSPECTIVE_CODE_REVIEW.md +330 -0
- package/skills-library/methodology/PATH_VERIFICATION_GATE.md +211 -0
- package/skills-library/methodology/REFLEXION_MEMORY_PATTERN.md +183 -0
- package/skills-library/methodology/RESEARCH_BACKED_WORKFLOW_UPGRADE.md +263 -0
- package/skills-library/methodology/SABBATH_REST_PATTERN.md +267 -0
- package/skills-library/methodology/STONE_AND_SCAFFOLD.md +220 -0
- package/skills-library/performance/cache-augmented-generation.md +172 -0
- package/skills-library/quality-safety/debugging-steps.md +147 -0
- package/skills-library/quality-safety/deployment-checklist.md +155 -0
- package/skills-library/quality-safety/security-checklist.md +204 -0
- package/skills-library/quality-safety/testing-basics.md +180 -0
- package/skills-library/security/agent-security-scanner.md +445 -0
- package/skills-library/specialists/api-architecture/api-designer.md +49 -0
- package/skills-library/specialists/api-architecture/graphql-architect.md +49 -0
- package/skills-library/specialists/api-architecture/mcp-developer.md +51 -0
- package/skills-library/specialists/api-architecture/microservices-architect.md +50 -0
- package/skills-library/specialists/api-architecture/websocket-engineer.md +48 -0
- package/skills-library/specialists/backend/django-expert.md +52 -0
- package/skills-library/specialists/backend/fastapi-expert.md +52 -0
- package/skills-library/specialists/backend/laravel-specialist.md +52 -0
- package/skills-library/specialists/backend/nestjs-expert.md +51 -0
- package/skills-library/specialists/backend/rails-expert.md +53 -0
- package/skills-library/specialists/backend/spring-boot-engineer.md +56 -0
- package/skills-library/specialists/data-ml/fine-tuning-expert.md +48 -0
- package/skills-library/specialists/data-ml/ml-pipeline.md +47 -0
- package/skills-library/specialists/data-ml/pandas-pro.md +47 -0
- package/skills-library/specialists/data-ml/rag-architect.md +51 -0
- package/skills-library/specialists/data-ml/spark-engineer.md +47 -0
- package/skills-library/specialists/frontend/angular-architect.md +52 -0
- package/skills-library/specialists/frontend/flutter-expert.md +51 -0
- package/skills-library/specialists/frontend/nextjs-developer.md +54 -0
- package/skills-library/specialists/frontend/react-native-expert.md +50 -0
- package/skills-library/specialists/frontend/vue-expert.md +51 -0
- package/skills-library/specialists/infrastructure/chaos-engineer.md +74 -0
- package/skills-library/specialists/infrastructure/cloud-architect.md +70 -0
- package/skills-library/specialists/infrastructure/database-optimizer.md +64 -0
- package/skills-library/specialists/infrastructure/devops-engineer.md +70 -0
- package/skills-library/specialists/infrastructure/kubernetes-specialist.md +52 -0
- package/skills-library/specialists/infrastructure/monitoring-expert.md +70 -0
- package/skills-library/specialists/infrastructure/sre-engineer.md +70 -0
- package/skills-library/specialists/infrastructure/terraform-engineer.md +51 -0
- package/skills-library/specialists/languages/cpp-pro.md +74 -0
- package/skills-library/specialists/languages/csharp-developer.md +69 -0
- package/skills-library/specialists/languages/dotnet-core-expert.md +54 -0
- package/skills-library/specialists/languages/golang-pro.md +51 -0
- package/skills-library/specialists/languages/java-architect.md +49 -0
- package/skills-library/specialists/languages/javascript-pro.md +68 -0
- package/skills-library/specialists/languages/kotlin-specialist.md +68 -0
- package/skills-library/specialists/languages/php-pro.md +49 -0
- package/skills-library/specialists/languages/python-pro.md +52 -0
- package/skills-library/specialists/languages/react-expert.md +51 -0
- package/skills-library/specialists/languages/rust-engineer.md +50 -0
- package/skills-library/specialists/languages/sql-pro.md +56 -0
- package/skills-library/specialists/languages/swift-expert.md +69 -0
- package/skills-library/specialists/languages/typescript-pro.md +51 -0
- package/skills-library/specialists/platform/atlassian-mcp.md +52 -0
- package/skills-library/specialists/platform/embedded-systems.md +53 -0
- package/skills-library/specialists/platform/game-developer.md +53 -0
- package/skills-library/specialists/platform/salesforce-developer.md +53 -0
- package/skills-library/specialists/platform/shopify-expert.md +49 -0
- package/skills-library/specialists/platform/wordpress-pro.md +49 -0
- package/skills-library/specialists/quality/code-documenter.md +51 -0
- package/skills-library/specialists/quality/code-reviewer.md +67 -0
- package/skills-library/specialists/quality/debugging-wizard.md +51 -0
- package/skills-library/specialists/quality/fullstack-guardian.md +51 -0
- package/skills-library/specialists/quality/legacy-modernizer.md +50 -0
- package/skills-library/specialists/quality/playwright-expert.md +65 -0
- package/skills-library/specialists/quality/spec-miner.md +56 -0
- package/skills-library/specialists/quality/test-master.md +65 -0
- package/skills-library/specialists/security/secure-code-guardian.md +55 -0
- package/skills-library/specialists/security/security-reviewer.md +53 -0
- package/skills-library/specialists/workflow/architecture-designer.md +53 -0
- package/skills-library/specialists/workflow/cli-developer.md +70 -0
- package/skills-library/specialists/workflow/feature-forge.md +65 -0
- package/skills-library/specialists/workflow/prompt-engineer.md +54 -0
- package/skills-library/specialists/workflow/the-fool.md +62 -0
- package/templates/ASSUMPTIONS.md +125 -0
- package/templates/BLOCKERS.md +73 -0
- package/templates/DECISION_LOG.md +116 -0
- package/templates/UAT.md +96 -0
- package/templates/blueprint.md +94 -0
- package/templates/brainstorm.md +185 -0
- package/templates/conscience.md +92 -0
- package/templates/fire-handoff.md +159 -0
- package/templates/metrics.md +67 -0
- package/templates/phase-prompt.md +142 -0
- package/templates/record.md +131 -0
- package/templates/review-report.md +117 -0
- package/templates/skills-index.md +157 -0
- package/templates/verification.md +149 -0
- package/templates/vision.md +79 -0
- package/validation-config.yml +793 -0
- package/version.json +7 -0
- package/workflows/execute-phase.md +732 -0
- package/workflows/handoff-session.md +678 -0
- package/workflows/new-project.md +578 -0
- package/workflows/plan-phase.md +592 -0
- package/workflows/verify-phase.md +874 -0
|
@@ -0,0 +1,592 @@
|
|
|
1
|
+
# Workflow: Phase Planning Orchestration
|
|
2
|
+
|
|
3
|
+
<purpose>
|
|
4
|
+
Create detailed execution plans for a specified phase by combining Dominion Flow's structured planning methodology with WARRIOR's skills library access, honesty protocols, and validation requirements. This workflow ensures plans are grounded in proven patterns and include comprehensive verification criteria before any code is written.
|
|
5
|
+
</purpose>
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
<core_principle>
|
|
10
|
+
**Plans must be honest about what we know and don't know.** Before creating any plan, agents must complete the 3-question honesty check. Plans based on false confidence lead to technical debt and rework. When in doubt, research first.
|
|
11
|
+
</core_principle>
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
<required_reading>
|
|
16
|
+
Before executing this workflow, load:
|
|
17
|
+
```markdown
|
|
18
|
+
@.planning/CONSCIENCE.md # Current project position
|
|
19
|
+
@.planning/VISION.md # Phase objectives and scope
|
|
20
|
+
@agents/fire-planner.md # Planner agent configuration
|
|
21
|
+
@agents/fire-researcher.md # Researcher agent configuration
|
|
22
|
+
@templates/plan.md # Plan template with WARRIOR fields
|
|
23
|
+
@references/honesty-protocols.md # 3-question honesty check
|
|
24
|
+
```
|
|
25
|
+
</required_reading>
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
<process>
|
|
30
|
+
|
|
31
|
+
## Step 1: Validate Environment and Arguments
|
|
32
|
+
|
|
33
|
+
**Purpose:** Ensure we have what we need before planning.
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
# Check required files exist
|
|
37
|
+
if [ ! -f ".planning/CONSCIENCE.md" ]; then
|
|
38
|
+
echo "ERROR: No .planning/CONSCIENCE.md found"
|
|
39
|
+
echo "Run /fire-1-new to initialize project first"
|
|
40
|
+
exit 1
|
|
41
|
+
fi
|
|
42
|
+
|
|
43
|
+
if [ ! -f ".planning/VISION.md" ]; then
|
|
44
|
+
echo "ERROR: No .planning/VISION.md found"
|
|
45
|
+
echo "Project structure incomplete"
|
|
46
|
+
exit 1
|
|
47
|
+
fi
|
|
48
|
+
|
|
49
|
+
# Parse phase number from arguments
|
|
50
|
+
PHASE_NUM=$1
|
|
51
|
+
|
|
52
|
+
# Validate phase exists in VISION.md
|
|
53
|
+
grep -q "Phase $PHASE_NUM:" .planning/VISION.md || {
|
|
54
|
+
echo "ERROR: Phase $PHASE_NUM not found in VISION.md"
|
|
55
|
+
exit 1
|
|
56
|
+
}
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
**Argument Validation:**
|
|
60
|
+
```yaml
|
|
61
|
+
required:
|
|
62
|
+
phase_number: integer (1-N where N is total phases)
|
|
63
|
+
|
|
64
|
+
optional:
|
|
65
|
+
--gaps: "Plan only for gaps identified in verification"
|
|
66
|
+
--research-first: "Force research phase before planning"
|
|
67
|
+
--skip-checker: "Skip plan-checker validation (not recommended)"
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## Step 2: Load Phase Context
|
|
73
|
+
|
|
74
|
+
**Purpose:** Understand what this phase needs to accomplish.
|
|
75
|
+
|
|
76
|
+
### Extract from CONSCIENCE.md
|
|
77
|
+
```markdown
|
|
78
|
+
Current Position:
|
|
79
|
+
- Phase: {current_phase} of {total_phases}
|
|
80
|
+
- Status: {status}
|
|
81
|
+
- Last activity: {description}
|
|
82
|
+
- Skills applied so far: {count}
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### Extract from VISION.md
|
|
86
|
+
```markdown
|
|
87
|
+
Phase {N}: {name}
|
|
88
|
+
- Objective: {objective}
|
|
89
|
+
- Estimated Duration: {duration}
|
|
90
|
+
- Dependencies: {list}
|
|
91
|
+
- Must-Haves: {list}
|
|
92
|
+
- Deliverables: {list}
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### Check Dependencies
|
|
96
|
+
```bash
|
|
97
|
+
# Verify previous phases are complete (if dependencies exist)
|
|
98
|
+
for dep in $DEPENDENCIES; do
|
|
99
|
+
if [ ! -f ".planning/phases/$dep-*/VERIFICATION.md" ]; then
|
|
100
|
+
echo "WARNING: Dependency $dep may not be complete"
|
|
101
|
+
fi
|
|
102
|
+
done
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
## Step 3: Execute Honesty Pre-Check
|
|
108
|
+
|
|
109
|
+
**Purpose:** Ensure planning is grounded in actual knowledge.
|
|
110
|
+
|
|
111
|
+
**MANDATORY: Complete before ANY planning begins.**
|
|
112
|
+
|
|
113
|
+
### Question 1: What do I know about implementing this phase?
|
|
114
|
+
|
|
115
|
+
```markdown
|
|
116
|
+
## Pre-Planning Honesty Check
|
|
117
|
+
|
|
118
|
+
### What I Know
|
|
119
|
+
**Technologies familiar with:**
|
|
120
|
+
- [List specific technologies from project tech stack]
|
|
121
|
+
- [Note experience level: expert/intermediate/beginner]
|
|
122
|
+
|
|
123
|
+
**Similar implementations:**
|
|
124
|
+
- [Reference similar patterns in this codebase]
|
|
125
|
+
- [Reference skills library patterns: /fire-search "[topic]"]
|
|
126
|
+
|
|
127
|
+
**Existing code to build on:**
|
|
128
|
+
- [Files that provide foundation]
|
|
129
|
+
- [Patterns to follow]
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
### Question 2: What don't I know?
|
|
133
|
+
|
|
134
|
+
```markdown
|
|
135
|
+
### What I Don't Know
|
|
136
|
+
**Unfamiliar technologies:**
|
|
137
|
+
- [Technology] - [Why it's needed, what to research]
|
|
138
|
+
|
|
139
|
+
**Unclear requirements:**
|
|
140
|
+
- [Requirement] - [What clarification needed]
|
|
141
|
+
|
|
142
|
+
**Unknown edge cases:**
|
|
143
|
+
- [Scenario] - [Needs investigation]
|
|
144
|
+
|
|
145
|
+
**Performance implications:**
|
|
146
|
+
- [Area] - [Needs benchmarking/research]
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
### Question 3: Am I tempted to fake or rush?
|
|
150
|
+
|
|
151
|
+
```markdown
|
|
152
|
+
### Temptation Check
|
|
153
|
+
- [ ] NOT tempted - confidence is grounded in evidence
|
|
154
|
+
- [ ] TEMPTED to skip research on: ___
|
|
155
|
+
- ACTION: Adding research task first
|
|
156
|
+
- [ ] TEMPTED to assume without verifying: ___
|
|
157
|
+
- ACTION: Adding verification step
|
|
158
|
+
- [ ] TEMPTED to copy without understanding: ___
|
|
159
|
+
- ACTION: Adding comprehension checkpoint
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
**Critical Decision Point:**
|
|
163
|
+
- If ANY temptation checked: Route to Step 4 (Research)
|
|
164
|
+
- If all clear: Skip to Step 5 (Planning)
|
|
165
|
+
|
|
166
|
+
---
|
|
167
|
+
|
|
168
|
+
## Step 4: Spawn fire-researcher (If Needed)
|
|
169
|
+
|
|
170
|
+
**Purpose:** Fill knowledge gaps before planning.
|
|
171
|
+
|
|
172
|
+
### Research Triggering Rules
|
|
173
|
+
|
|
174
|
+
Trigger research when:
|
|
175
|
+
1. `--research-first` flag provided
|
|
176
|
+
2. Honesty check reveals knowledge gaps
|
|
177
|
+
3. Phase involves unfamiliar technology
|
|
178
|
+
4. No existing `{N}-RESEARCH.md` file exists
|
|
179
|
+
5. Previous phase had verification gaps related to this phase
|
|
180
|
+
|
|
181
|
+
### Spawn fire-researcher Agent
|
|
182
|
+
|
|
183
|
+
```
|
|
184
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
185
|
+
DOMINION FLOW > PHASE {N} RESEARCH
|
|
186
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
**Agent Context Injection:**
|
|
190
|
+
```markdown
|
|
191
|
+
<research_request>
|
|
192
|
+
Phase: {N} - {name}
|
|
193
|
+
Objective: {objective from ROADMAP}
|
|
194
|
+
|
|
195
|
+
Knowledge Gaps to Fill:
|
|
196
|
+
{list from honesty check Question 2}
|
|
197
|
+
|
|
198
|
+
Technologies to Research:
|
|
199
|
+
{unfamiliar technologies identified}
|
|
200
|
+
|
|
201
|
+
Specific Questions:
|
|
202
|
+
1. {Question from honesty check}
|
|
203
|
+
2. {Question from honesty check}
|
|
204
|
+
</research_request>
|
|
205
|
+
|
|
206
|
+
<research_instructions>
|
|
207
|
+
1. Search skills library: `/fire-search "[topic]"`
|
|
208
|
+
2. Load relevant skills: Read skills-library/{category}/{skill}.md
|
|
209
|
+
3. If skills insufficient: WebSearch for current best practices
|
|
210
|
+
4. Document ALL findings in {N}-RESEARCH.md
|
|
211
|
+
5. Include code examples, not just theory
|
|
212
|
+
6. Note any remaining uncertainties
|
|
213
|
+
</research_instructions>
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
**Research Output:**
|
|
217
|
+
```bash
|
|
218
|
+
# Create research file
|
|
219
|
+
.planning/phases/{N}-{name}/{N}-RESEARCH.md
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
**Research Document Structure:**
|
|
223
|
+
```markdown
|
|
224
|
+
# Research: Phase {N} - {name}
|
|
225
|
+
|
|
226
|
+
## Questions Researched
|
|
227
|
+
1. {Question}: {Answer with source}
|
|
228
|
+
2. {Question}: {Answer with source}
|
|
229
|
+
|
|
230
|
+
## Skills Library Findings
|
|
231
|
+
### {skill-category/skill-name}
|
|
232
|
+
- **Relevance:** {why this helps}
|
|
233
|
+
- **Key Pattern:** {pattern to apply}
|
|
234
|
+
- **Code Example:** {from skill}
|
|
235
|
+
|
|
236
|
+
## External Research
|
|
237
|
+
### {Topic}
|
|
238
|
+
- **Source:** {URL or documentation}
|
|
239
|
+
- **Key Insight:** {what we learned}
|
|
240
|
+
- **Application:** {how to use in this phase}
|
|
241
|
+
|
|
242
|
+
## Remaining Uncertainties
|
|
243
|
+
- {Uncertainty} - {mitigation plan}
|
|
244
|
+
|
|
245
|
+
## Recommendations for Planning
|
|
246
|
+
1. {Recommendation}
|
|
247
|
+
2. {Recommendation}
|
|
248
|
+
|
|
249
|
+
---
|
|
250
|
+
*Researched: {timestamp}*
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
---
|
|
254
|
+
|
|
255
|
+
## Step 5: Spawn fire-planner Agent
|
|
256
|
+
|
|
257
|
+
**Purpose:** Create detailed execution plans based on phase requirements.
|
|
258
|
+
|
|
259
|
+
```
|
|
260
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
261
|
+
DOMINION FLOW > PHASE {N} PLANNING
|
|
262
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
263
|
+
|
|
264
|
+
Spawning fire-planner for Phase {N}...
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
**Agent Context Injection:**
|
|
268
|
+
```markdown
|
|
269
|
+
<skills_context>
|
|
270
|
+
You have access to 172 proven solutions in the skills library.
|
|
271
|
+
|
|
272
|
+
**Relevant skills for this phase (from research):**
|
|
273
|
+
@skills-library/{category-1}/
|
|
274
|
+
@skills-library/{category-2}/
|
|
275
|
+
|
|
276
|
+
**How to use:**
|
|
277
|
+
1. Reference applicable skills in plan frontmatter: skills_to_apply: [list]
|
|
278
|
+
2. Cite skills in task descriptions
|
|
279
|
+
3. Apply patterns from skills to implementation steps
|
|
280
|
+
</skills_context>
|
|
281
|
+
|
|
282
|
+
<phase_context>
|
|
283
|
+
Phase: {N} - {name}
|
|
284
|
+
Objective: {from ROADMAP}
|
|
285
|
+
Duration: {estimated}
|
|
286
|
+
Dependencies: {list}
|
|
287
|
+
Must-Haves: {from ROADMAP}
|
|
288
|
+
Deliverables: {from ROADMAP}
|
|
289
|
+
</phase_context>
|
|
290
|
+
|
|
291
|
+
<research_context>
|
|
292
|
+
{If {N}-RESEARCH.md exists, include its contents}
|
|
293
|
+
</research_context>
|
|
294
|
+
|
|
295
|
+
<honesty_reminder>
|
|
296
|
+
Your honesty check is documented. Plans must be grounded in what you know.
|
|
297
|
+
If uncertain about any task, document the uncertainty and add verification steps.
|
|
298
|
+
Do NOT plan tasks you cannot explain in detail.
|
|
299
|
+
</honesty_reminder>
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
### Plan Generation Rules
|
|
303
|
+
|
|
304
|
+
**How to split work into plans:**
|
|
305
|
+
1. **Logical boundaries:** Each plan should be a coherent unit of work
|
|
306
|
+
2. **Parallel opportunities:** Plans that can run in parallel go in the same breath
|
|
307
|
+
3. **Dependencies:** Plans depending on others go in later breaths
|
|
308
|
+
4. **Size:** Each plan should be 30-90 minutes of work
|
|
309
|
+
5. **Verification:** Each plan must have testable completion criteria
|
|
310
|
+
|
|
311
|
+
**Breath Assignment:**
|
|
312
|
+
- Breath 1: Foundation work, no dependencies
|
|
313
|
+
- Breath 2: Work depending on Breath 1
|
|
314
|
+
- Breath 3: Work depending on Breath 2
|
|
315
|
+
- etc.
|
|
316
|
+
|
|
317
|
+
### Plan Structure (Enhanced Frontmatter)
|
|
318
|
+
|
|
319
|
+
```markdown
|
|
320
|
+
---
|
|
321
|
+
# Dominion Flow Frontmatter
|
|
322
|
+
phase: {N}-{name}
|
|
323
|
+
plan: NN
|
|
324
|
+
breath: N
|
|
325
|
+
autonomous: true|false
|
|
326
|
+
depends_on: [list of plan IDs]
|
|
327
|
+
files_to_create: [list]
|
|
328
|
+
files_to_modify: [list]
|
|
329
|
+
|
|
330
|
+
# WARRIOR Skills Integration
|
|
331
|
+
skills_to_apply:
|
|
332
|
+
- "category/skill-name"
|
|
333
|
+
- "category/skill-name"
|
|
334
|
+
|
|
335
|
+
# WARRIOR Validation Requirements
|
|
336
|
+
validation_required:
|
|
337
|
+
- code-quality
|
|
338
|
+
- testing
|
|
339
|
+
- security
|
|
340
|
+
- performance
|
|
341
|
+
- documentation
|
|
342
|
+
|
|
343
|
+
# Must-Haves (Enhanced with WARRIOR)
|
|
344
|
+
must_haves:
|
|
345
|
+
truths:
|
|
346
|
+
- "Observable behavior statement 1"
|
|
347
|
+
- "Observable behavior statement 2"
|
|
348
|
+
artifacts:
|
|
349
|
+
- path: "file/path.ts"
|
|
350
|
+
exports: ["functionName"]
|
|
351
|
+
contains: ["pattern", "keyword"]
|
|
352
|
+
key_links:
|
|
353
|
+
- from: "component-a"
|
|
354
|
+
to: "component-b"
|
|
355
|
+
via: "integration-point"
|
|
356
|
+
warrior_validation:
|
|
357
|
+
- "Security check: No hardcoded credentials"
|
|
358
|
+
- "Performance check: Response time < 200ms"
|
|
359
|
+
- "Quality check: Test coverage > 80%"
|
|
360
|
+
---
|
|
361
|
+
|
|
362
|
+
# Plan {N}-NN: [Descriptive Name]
|
|
363
|
+
|
|
364
|
+
## Objective
|
|
365
|
+
[Clear statement of what this plan accomplishes]
|
|
366
|
+
|
|
367
|
+
## Context
|
|
368
|
+
@.planning/CONSCIENCE.md
|
|
369
|
+
@.planning/VISION.md
|
|
370
|
+
@.planning/phases/{N}-{name}/{N}-RESEARCH.md
|
|
371
|
+
|
|
372
|
+
## Pre-Planning Honesty Check
|
|
373
|
+
[Complete documentation from Step 3]
|
|
374
|
+
|
|
375
|
+
## Skills Applied
|
|
376
|
+
[List each skill with rationale for inclusion]
|
|
377
|
+
|
|
378
|
+
## Tasks
|
|
379
|
+
[Detailed task breakdown with verification per task]
|
|
380
|
+
|
|
381
|
+
## Verification
|
|
382
|
+
[Must-Haves + WARRIOR validation commands]
|
|
383
|
+
|
|
384
|
+
## Success Criteria
|
|
385
|
+
[Checklist of completion requirements]
|
|
386
|
+
```
|
|
387
|
+
|
|
388
|
+
---
|
|
389
|
+
|
|
390
|
+
## Step 6: Spawn plan-checker Agent
|
|
391
|
+
|
|
392
|
+
**Purpose:** Validate plans meet Dominion Flow standards before approval.
|
|
393
|
+
|
|
394
|
+
```
|
|
395
|
+
Spawning plan-checker to validate plans...
|
|
396
|
+
```
|
|
397
|
+
|
|
398
|
+
**Plan-Checker Validation Checklist:**
|
|
399
|
+
|
|
400
|
+
### Structural Checks
|
|
401
|
+
- [ ] Frontmatter complete (all required fields present)
|
|
402
|
+
- [ ] Breath assignment logical (dependencies in earlier breaths)
|
|
403
|
+
- [ ] Files to create/modify specified
|
|
404
|
+
- [ ] Autonomous flag appropriate for task complexity
|
|
405
|
+
|
|
406
|
+
### Skills Checks
|
|
407
|
+
- [ ] Referenced skills exist in library
|
|
408
|
+
- [ ] Skills are relevant to plan tasks
|
|
409
|
+
- [ ] Skill patterns are actually applied in tasks
|
|
410
|
+
|
|
411
|
+
### Must-Haves Checks
|
|
412
|
+
- [ ] Truths are observable and testable
|
|
413
|
+
- [ ] Artifacts have specific paths and exports
|
|
414
|
+
- [ ] Key links identify real integration points
|
|
415
|
+
- [ ] WARRIOR validation items are specific
|
|
416
|
+
|
|
417
|
+
### Task Checks
|
|
418
|
+
- [ ] Each task has clear action description
|
|
419
|
+
- [ ] Each task has specific steps (not vague)
|
|
420
|
+
- [ ] Each task has verification commands
|
|
421
|
+
- [ ] Each task has done criteria
|
|
422
|
+
- [ ] Checkpoint tasks clearly marked
|
|
423
|
+
|
|
424
|
+
### Quality Checks
|
|
425
|
+
- [ ] Honesty check is documented (not templated)
|
|
426
|
+
- [ ] Uncertainties are acknowledged
|
|
427
|
+
- [ ] Research is referenced where applicable
|
|
428
|
+
|
|
429
|
+
**If Validation Fails:**
|
|
430
|
+
```
|
|
431
|
+
┌─────────────────────────────────────────────────────────────────────────────┐
|
|
432
|
+
│ PLAN REVISION REQUIRED │
|
|
433
|
+
├─────────────────────────────────────────────────────────────────────────────┤
|
|
434
|
+
│ │
|
|
435
|
+
│ Plan {N}-{NN} failed validation: │
|
|
436
|
+
│ │
|
|
437
|
+
│ Issues: │
|
|
438
|
+
│ - Missing must_haves.truths │
|
|
439
|
+
│ - Task 3 has no verification command │
|
|
440
|
+
│ - Skill "api-patterns/xyz" not found in library │
|
|
441
|
+
│ │
|
|
442
|
+
│ Action: Revising plan... (attempt 1 of 3) │
|
|
443
|
+
│ │
|
|
444
|
+
└─────────────────────────────────────────────────────────────────────────────┘
|
|
445
|
+
```
|
|
446
|
+
|
|
447
|
+
**Maximum 3 revision cycles.** If still failing, flag for human review.
|
|
448
|
+
|
|
449
|
+
---
|
|
450
|
+
|
|
451
|
+
## Step 7: Create Phase Directory Structure
|
|
452
|
+
|
|
453
|
+
**Purpose:** Organize phase planning artifacts.
|
|
454
|
+
|
|
455
|
+
```bash
|
|
456
|
+
# Create phase directory
|
|
457
|
+
mkdir -p .planning/phases/{N}-{name}
|
|
458
|
+
|
|
459
|
+
# Save all generated files
|
|
460
|
+
# - {N}-RESEARCH.md (if research was done)
|
|
461
|
+
# - {N}-01-BLUEPRINT.md
|
|
462
|
+
# - {N}-02-BLUEPRINT.md
|
|
463
|
+
# - etc.
|
|
464
|
+
```
|
|
465
|
+
|
|
466
|
+
**Expected Structure:**
|
|
467
|
+
```
|
|
468
|
+
.planning/phases/{N}-{name}/
|
|
469
|
+
├── {N}-RESEARCH.md # If research was done
|
|
470
|
+
├── {N}-01-BLUEPRINT.md # Plan 1
|
|
471
|
+
├── {N}-02-BLUEPRINT.md # Plan 2
|
|
472
|
+
├── {N}-03-BLUEPRINT.md # Plan 3
|
|
473
|
+
└── ...
|
|
474
|
+
```
|
|
475
|
+
|
|
476
|
+
---
|
|
477
|
+
|
|
478
|
+
## Step 8: Update CONSCIENCE.md
|
|
479
|
+
|
|
480
|
+
**Purpose:** Reflect planning completion in project state.
|
|
481
|
+
|
|
482
|
+
```markdown
|
|
483
|
+
## Current Position
|
|
484
|
+
- **Phase:** {N} of {total}
|
|
485
|
+
- **Breath:** Ready
|
|
486
|
+
- **Status:** Ready to execute
|
|
487
|
+
- **Last activity:** {timestamp} - Phase {N} planning complete
|
|
488
|
+
- **Progress:** [##--------] {progress_percent}%
|
|
489
|
+
|
|
490
|
+
## Dominion Flow Progress Tracking
|
|
491
|
+
### Phase Status
|
|
492
|
+
| Phase | Name | Status | Plans | Completed |
|
|
493
|
+
|-------|------|--------|-------|-----------|
|
|
494
|
+
| {N} | {name} | Planned | {plan_count} | 0 |
|
|
495
|
+
|
|
496
|
+
## WARRIOR Integration
|
|
497
|
+
- **Skills identified for Phase {N}:** {skills_count}
|
|
498
|
+
- **Honesty checkpoint:** Planning complete, ready for execution
|
|
499
|
+
- **Research conducted:** {yes/no}
|
|
500
|
+
```
|
|
501
|
+
|
|
502
|
+
---
|
|
503
|
+
|
|
504
|
+
## Step 9: Display Completion Summary
|
|
505
|
+
|
|
506
|
+
**Purpose:** Confirm planning success and provide next steps.
|
|
507
|
+
|
|
508
|
+
```
|
|
509
|
+
╔══════════════════════════════════════════════════════════════════════════════╗
|
|
510
|
+
║ PHASE {N} PLANNING COMPLETE ║
|
|
511
|
+
╠══════════════════════════════════════════════════════════════════════════════╣
|
|
512
|
+
║ ║
|
|
513
|
+
║ Phase: {N} - {name} ║
|
|
514
|
+
║ Plans Created: {count} ║
|
|
515
|
+
║ Breaths: {wave_count} ║
|
|
516
|
+
║ Skills Identified: {skills_count} ║
|
|
517
|
+
║ ║
|
|
518
|
+
║ Plans: ║
|
|
519
|
+
║ {N}-01-BLUEPRINT.md (Breath 1) - {description} ║
|
|
520
|
+
║ {N}-02-BLUEPRINT.md (Breath 1) - {description} ║
|
|
521
|
+
║ {N}-03-BLUEPRINT.md (Breath 2) - {description} ║
|
|
522
|
+
║ ║
|
|
523
|
+
║ Research: {Yes, see {N}-RESEARCH.md | No research needed} ║
|
|
524
|
+
║ Plan-Checker: APPROVED ║
|
|
525
|
+
║ ║
|
|
526
|
+
╠══════════════════════════════════════════════════════════════════════════════╣
|
|
527
|
+
║ NEXT UP ║
|
|
528
|
+
├──────────────────────────────────────────────────────────────────────────────┤
|
|
529
|
+
║ ║
|
|
530
|
+
║ Run `/fire-3-execute {N}` to begin breath-based execution ║
|
|
531
|
+
║ Or review plans in .planning/phases/{N}-{name}/ ║
|
|
532
|
+
║ ║
|
|
533
|
+
╚══════════════════════════════════════════════════════════════════════════════╝
|
|
534
|
+
```
|
|
535
|
+
|
|
536
|
+
</process>
|
|
537
|
+
|
|
538
|
+
---
|
|
539
|
+
|
|
540
|
+
## Agent Spawning Summary
|
|
541
|
+
|
|
542
|
+
| Agent | When | Purpose |
|
|
543
|
+
|-------|------|---------|
|
|
544
|
+
| **fire-researcher** | Honesty check reveals gaps OR `--research-first` | Fill knowledge gaps before planning |
|
|
545
|
+
| **fire-planner** | Always | Create detailed execution plans |
|
|
546
|
+
| **plan-checker** | Always (unless `--skip-checker`) | Validate plans meet standards |
|
|
547
|
+
|
|
548
|
+
---
|
|
549
|
+
|
|
550
|
+
## Success Criteria
|
|
551
|
+
|
|
552
|
+
### Required Outputs
|
|
553
|
+
- [ ] `{N}-RESEARCH.md` created (if research needed)
|
|
554
|
+
- [ ] At least one `{N}-NN-BLUEPRINT.md` created
|
|
555
|
+
- [ ] All plans have valid frontmatter
|
|
556
|
+
- [ ] All plans reference applicable skills
|
|
557
|
+
- [ ] All plans include WARRIOR validation requirements
|
|
558
|
+
- [ ] All plans include Must-Haves (truths, artifacts, key_links)
|
|
559
|
+
- [ ] Plan-checker approved all plans
|
|
560
|
+
- [ ] CONSCIENCE.md updated with planning status
|
|
561
|
+
|
|
562
|
+
### Quality Checks
|
|
563
|
+
- [ ] Honesty check is genuine (not templated)
|
|
564
|
+
- [ ] Research addresses actual knowledge gaps
|
|
565
|
+
- [ ] Plans are specific enough to execute autonomously
|
|
566
|
+
- [ ] Verification commands are runnable
|
|
567
|
+
|
|
568
|
+
---
|
|
569
|
+
|
|
570
|
+
## Error Handling
|
|
571
|
+
|
|
572
|
+
### Phase Not Found
|
|
573
|
+
Display available phases, suggest checking VISION.md.
|
|
574
|
+
|
|
575
|
+
### Dependencies Not Met
|
|
576
|
+
Show dependency status, offer to plan anyway (with warning) or complete dependencies first.
|
|
577
|
+
|
|
578
|
+
### Plan-Checker Max Retries
|
|
579
|
+
After 3 failed revision attempts, save current state and request human review.
|
|
580
|
+
|
|
581
|
+
### Research Inconclusive
|
|
582
|
+
Document remaining uncertainties, add checkpoint tasks for human input during execution.
|
|
583
|
+
|
|
584
|
+
---
|
|
585
|
+
|
|
586
|
+
## References
|
|
587
|
+
|
|
588
|
+
- **Agent:** `@agents/fire-planner.md` - Planning agent with skills integration
|
|
589
|
+
- **Agent:** `@agents/fire-researcher.md` - Research agent with skills search
|
|
590
|
+
- **Template:** `@templates/plan.md` - Plan template with WARRIOR fields
|
|
591
|
+
- **Protocol:** `@references/honesty-protocols.md` - 3-question honesty check
|
|
592
|
+
- **Brand:** `@references/ui-brand.md` - Visual output standards
|