@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,476 @@
1
+ ---
2
+ description: Orient on an existing project - understand what's here and what's next
3
+ ---
4
+
5
+ # /fire-0-orient
6
+
7
+ > First contact with an existing project
8
+
9
+ ---
10
+
11
+ ## Purpose
12
+
13
+ When an AI agent joins an existing project with no prior handoff, this command scans the codebase and project state to understand:
14
+ 1. What is this project?
15
+ 2. What's the current state?
16
+ 3. What should happen next?
17
+
18
+ This is the "new agent orientation" - like a new employee's first day understanding the codebase.
19
+
20
+ ---
21
+
22
+ ## Arguments
23
+
24
+ ```yaml
25
+ arguments:
26
+ --deep:
27
+ required: false
28
+ type: boolean
29
+ default: false
30
+ description: "Perform deep codebase analysis (takes longer)"
31
+
32
+ --scan-only:
33
+ required: false
34
+ type: boolean
35
+ default: false
36
+ description: "Only scan, don't recommend next action"
37
+
38
+ --output:
39
+ required: false
40
+ type: string
41
+ description: "Save orientation report to file"
42
+ ```
43
+
44
+ ---
45
+
46
+ ## When to Use
47
+
48
+ ```
49
+ ┌─────────────────────────────────────────────────────────────────────────────┐
50
+ │ USE /fire-0-orient WHEN: │
51
+ ├─────────────────────────────────────────────────────────────────────────────┤
52
+ │ │
53
+ │ ✓ You're a NEW agent on this project │
54
+ │ ✓ No WARRIOR handoff file exists │
55
+ │ ✓ User says "let's get started" or "what's next" │
56
+ │ ✓ You're unsure what state the project is in │
57
+ │ ✓ Context was reset/compacted and you need to re-orient │
58
+ │ │
59
+ ├─────────────────────────────────────────────────────────────────────────────┤
60
+ │ DON'T USE WHEN: │
61
+ ├─────────────────────────────────────────────────────────────────────────────┤
62
+ │ │
63
+ │ ✗ Starting a NEW project → use /fire-1-new │
64
+ │ ✗ Handoff file exists → use /fire-6-resume │
65
+ │ ✗ You already understand the project │
66
+ │ │
67
+ └─────────────────────────────────────────────────────────────────────────────┘
68
+ ```
69
+
70
+ ---
71
+
72
+ ## Process
73
+
74
+ ### Step 1: State Discovery
75
+
76
+ ```
77
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
78
+ DOMINION FLOW â–º ORIENTATION
79
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
80
+
81
+ â—† Scanning for project state...
82
+ ```
83
+
84
+ **Check for existing state files:**
85
+
86
+ ```bash
87
+ # Priority order for state discovery
88
+ STATE_FILES=(
89
+ ".planning/CONSCIENCE.md" # Dominion Flow state
90
+ ".planning/VISION.md" # Project roadmap
91
+ ".claude/*.local.md" # Sabbath Rest session files
92
+ "C:/Users/FirstName/.claude/warrior-handoffs/*.md" # WARRIOR handoffs
93
+ "PROJECT.md" # Dominion Flow project file
94
+ "README.md" # Standard readme
95
+ "package.json" # Node.js project info
96
+ ".git" # Git history
97
+ )
98
+ ```
99
+
100
+ **Discovery Results:**
101
+ ```
102
+ â—† State Discovery Results
103
+
104
+ .planning/ directory: {EXISTS | NOT FOUND}
105
+ CONSCIENCE.md: {EXISTS | NOT FOUND}
106
+ VISION.md: {EXISTS | NOT FOUND}
107
+ Sabbath Rest files: {count} found
108
+ WARRIOR handoffs: {count} found
109
+ Git repository: {YES | NO}
110
+ ```
111
+
112
+ ### Step 2: Codebase Analysis
113
+
114
+ If `--deep` flag or no CONSCIENCE.md found:
115
+
116
+ ```
117
+ â—† Analyzing codebase structure...
118
+ ```
119
+
120
+ **Detect Project Type:**
121
+ ```
122
+ Analysis Points:
123
+ ├── Language/Framework: {detected from files}
124
+ ├── Package Manager: {npm/yarn/pnpm/pip/etc}
125
+ ├── Build System: {webpack/vite/tsc/etc}
126
+ ├── Database: {postgres/mongo/prisma/etc}
127
+ ├── Test Framework: {jest/vitest/pytest/etc}
128
+ └── Deployment: {vercel/docker/etc}
129
+ ```
130
+
131
+ **Scan for Patterns:**
132
+ ```bash
133
+ # Look for common patterns
134
+ grep -r "TODO\|FIXME\|HACK" --include="*.ts" --include="*.tsx" | head -10
135
+ git log --oneline -10 # Recent activity
136
+ git status # Uncommitted changes
137
+ ```
138
+
139
+ ### Step 3: Handoff Check
140
+
141
+ **Search for recent handoffs:**
142
+ ```
143
+ â—† Checking for session handoffs...
144
+
145
+ Location: C:/Users/FirstName/.claude/warrior-handoffs/
146
+
147
+ Recent Handoffs Found:
148
+ ├── {filename} - {date} - {project}
149
+ ├── {filename} - {date} - {project}
150
+ └── {filename} - {date} - {project}
151
+ ```
152
+
153
+ **If handoff matches this project:**
154
+ ```
155
+ ┌─────────────────────────────────────────────────────────────────────────────┐
156
+ │ HANDOFF FOUND │
157
+ ├─────────────────────────────────────────────────────────────────────────────┤
158
+ │ │
159
+ │ A WARRIOR handoff exists for this project: │
160
+ │ {filename} │
161
+ │ Created: {date} │
162
+ │ │
163
+ │ RECOMMENDATION: Use /fire-6-resume to load full context │
164
+ │ │
165
+ └─────────────────────────────────────────────────────────────────────────────┘
166
+ ```
167
+
168
+ ### Step 4: State Assessment
169
+
170
+ Based on discovery, determine project state:
171
+
172
+ ```
173
+ ┌─────────────────────────────────────────────────────────────────────────────┐
174
+ │ PROJECT STATE ASSESSMENT │
175
+ ├─────────────────────────────────────────────────────────────────────────────┤
176
+ │ │
177
+ │ Project: {name from package.json or directory} │
178
+ │ Type: {detected type} │
179
+ │ Tech Stack: {detected stack} │
180
+ │ │
181
+ │ Dominion Flow Status: │
182
+ │ ├── Initialized: {YES/NO} │
183
+ │ ├── Current Phase: {N of M / NOT SET} │
184
+ │ ├── Phase Status: {planning/executing/verifying/complete} │
185
+ │ └── Last Activity: {date from CONSCIENCE.md or git} │
186
+ │ │
187
+ │ Sabbath Rest (Session State): │
188
+ │ ├── dominion-flow.local.md: {status} │
189
+ │ ├── fire-debugger.local.md: {status} │
190
+ │ └── [other .local.md files] │
191
+ │ │
192
+ │ Code Health: │
193
+ │ ├── Uncommitted Changes: {count files} │
194
+ │ ├── TODOs/FIXMEs: {count} │
195
+ │ └── Recent Commits: {last commit message} │
196
+ │ │
197
+ └─────────────────────────────────────────────────────────────────────────────┘
198
+ ```
199
+
200
+ ### Step 4.5: Security Baseline Scan (v5.0)
201
+
202
+ > **Defense basis:** OWASP ASI04 (Supply Chain Vulnerabilities)
203
+ > — First contact with a project is the ideal time to establish a security baseline.
204
+
205
+ **On first orientation, scan the project's trust surface:**
206
+
207
+ ```
208
+ SECURITY BASELINE SCAN
209
+ Scanning project trust surface...
210
+
211
+ Skills library: {N files scanned} ... {CLEAN | N findings}
212
+ Plugin commands: {N files scanned} ... {CLEAN | N findings}
213
+ Plugin hooks: {N files scanned} ... {CLEAN | N findings}
214
+ MCP tool descriptions: {N checked} ... {CLEAN | N findings}
215
+
216
+ Verdict: {CLEAN | REVIEW NEEDED}
217
+ ```
218
+
219
+ **What to scan:**
220
+ 1. All `.md` files in the project's skills library (if it has one)
221
+ 2. All plugin commands and hooks in `~/.claude/plugins/*/`
222
+ 3. Any `.claude/` config files in the project root
223
+ 4. MCP tool descriptions currently loaded
224
+
225
+ **Apply quick scan (Layers 1-5) from `security/agent-security-scanner.md`:**
226
+ - Layer 1: Invisible Unicode characters
227
+ - Layer 2: Prompt injection signatures
228
+ - Layer 3: Credential harvesting patterns
229
+ - Layer 4: PII collection indicators
230
+ - Layer 5: Tool poisoning markers
231
+
232
+ **If CLEAN:** Display one-line summary in the State Assessment box and continue.
233
+
234
+ **If findings detected:**
235
+ ```
236
+ Use AskUserQuestion:
237
+ header: "Security"
238
+ question: "Security baseline found {N} issues in this project. Review before continuing?"
239
+ options:
240
+ - "Show details" - Display all findings with context
241
+ - "Full scan" - Run /fire-security-scan --all-plugins --deep --report
242
+ - "Continue anyway" - Accept risk and proceed to recommendation
243
+ ```
244
+
245
+ **Why on orient:** A new agent joining a project is the most vulnerable moment — it has no prior context to judge what's legitimate. Scanning before trusting anything is like checking the locks before sleeping in a new house.
246
+
247
+ ### Step 5: Generate Recommendation
248
+
249
+ Based on assessment, recommend next action:
250
+
251
+ **Scenario A: Dominion Flow Not Initialized**
252
+ ```
253
+ ╔══════════════════════════════════════════════════════════════════════════════╗
254
+ â•‘ RECOMMENDATION: Initialize Dominion Flow â•‘
255
+ ╠══════════════════════════════════════════════════════════════════════════════╣
256
+ â•‘ â•‘
257
+ â•‘ This project exists but Dominion Flow is not set up. â•‘
258
+ â•‘ â•‘
259
+ â•‘ Detected: â•‘
260
+ ║ ├── {tech stack} ║
261
+ ║ ├── {project type} ║
262
+ ║ └── {code state} ║
263
+ â•‘ â•‘
264
+ â•‘ Options: â•‘
265
+ â•‘ â•‘
266
+ â•‘ A) Initialize Dominion Flow for this project: â•‘
267
+ ║ → /fire-1-new ║
268
+ â•‘ Creates: .planning/, CONSCIENCE.md, VISION.md â•‘
269
+ â•‘ â•‘
270
+ â•‘ B) Work without Dominion Flow (ad-hoc): â•‘
271
+ ║ → Just ask what you need ║
272
+ â•‘ No structured workflow tracking â•‘
273
+ â•‘ â•‘
274
+ ╚══════════════════════════════════════════════════════════════════════════════╝
275
+ ```
276
+
277
+ **Scenario B: Dominion Flow Initialized, Phase In Progress**
278
+ ```
279
+ ╔══════════════════════════════════════════════════════════════════════════════╗
280
+ â•‘ RECOMMENDATION: Continue Phase Execution â•‘
281
+ ╠══════════════════════════════════════════════════════════════════════════════╣
282
+ â•‘ â•‘
283
+ â•‘ Project: {name} â•‘
284
+ â•‘ Current: Phase {N} - {name} â•‘
285
+ â•‘ Status: {status} â•‘
286
+ â•‘ â•‘
287
+ â•‘ From CONSCIENCE.md: â•‘
288
+ â•‘ {relevant excerpt} â•‘
289
+ â•‘ â•‘
290
+ â•‘ Options: â•‘
291
+ â•‘ â•‘
292
+ â•‘ A) View detailed status: â•‘
293
+ ║ → /fire-dashboard ║
294
+ â•‘ â•‘
295
+ â•‘ B) Continue execution: â•‘
296
+ ║ → /fire-3-execute {N} ║
297
+ â•‘ â•‘
298
+ â•‘ C) Verify what's done: â•‘
299
+ ║ → /fire-4-verify {N} ║
300
+ â•‘ â•‘
301
+ ╚══════════════════════════════════════════════════════════════════════════════╝
302
+ ```
303
+
304
+ **Scenario C: Phase Complete, Ready for Next**
305
+ ```
306
+ ╔══════════════════════════════════════════════════════════════════════════════╗
307
+ â•‘ RECOMMENDATION: Plan Next Phase â•‘
308
+ ╠══════════════════════════════════════════════════════════════════════════════╣
309
+ â•‘ â•‘
310
+ â•‘ Project: {name} â•‘
311
+ â•‘ Completed: Phase {N-1} - {name} â•‘
312
+ â•‘ Next: Phase {N} - {name} â•‘
313
+ â•‘ â•‘
314
+ â•‘ Options: â•‘
315
+ â•‘ â•‘
316
+ â•‘ A) Discuss phase requirements first: â•‘
317
+ ║ → /fire-1a-discuss {N} ║
318
+ â•‘ Gather context before planning â•‘
319
+ â•‘ â•‘
320
+ â•‘ B) Go straight to planning: â•‘
321
+ ║ → /fire-2-plan {N} ║
322
+ â•‘ Create execution plan â•‘
323
+ â•‘ â•‘
324
+ ╚══════════════════════════════════════════════════════════════════════════════╝
325
+ ```
326
+
327
+ **Scenario D: Handoff Found**
328
+ ```
329
+ ╔══════════════════════════════════════════════════════════════════════════════╗
330
+ â•‘ RECOMMENDATION: Resume from Handoff â•‘
331
+ ╠══════════════════════════════════════════════════════════════════════════════╣
332
+ â•‘ â•‘
333
+ â•‘ A WARRIOR handoff was found for this project: â•‘
334
+ â•‘ {handoff filename} â•‘
335
+ â•‘ Created: {date} â•‘
336
+ â•‘ â•‘
337
+ â•‘ The handoff contains full context from the previous session. â•‘
338
+ â•‘ â•‘
339
+ â•‘ Action: â•‘
340
+ ║ → /fire-6-resume ║
341
+ â•‘ â•‘
342
+ ╚══════════════════════════════════════════════════════════════════════════════╝
343
+ ```
344
+
345
+ ### Step 6: Sabbath Rest
346
+
347
+ > *Like humans need sleep to reset, AI agents need state files to resume after context resets.*
348
+
349
+ **Create/Update:** `.claude/dominion-flow.local.md`
350
+
351
+ ```markdown
352
+ ---
353
+ last_session: {timestamp}
354
+ command: "orient"
355
+ status: complete
356
+ project_state: {initialized | not_initialized | in_progress | handoff_found}
357
+ recommendation: "{recommended command}"
358
+ ---
359
+
360
+ # Orientation Session State
361
+
362
+ ## Last Orientation
363
+ - Date: {timestamp}
364
+ - Project: {name}
365
+ - Result: {summary}
366
+
367
+ ## Detected State
368
+ - Dominion Flow: {initialized | not initialized}
369
+ - Current Phase: {N or N/A}
370
+ - Handoff: {found | not found}
371
+
372
+ ## Recommendation Given
373
+ {recommended action}
374
+ ```
375
+
376
+ ---
377
+
378
+ ## Output Format
379
+
380
+ ### Full Orientation Report
381
+
382
+ ```
383
+ ╔══════════════════════════════════════════════════════════════════════════════╗
384
+ â•‘ DOMINION FLOW â–º ORIENTATION COMPLETE â•‘
385
+ ╠══════════════════════════════════════════════════════════════════════════════╣
386
+ â•‘ â•‘
387
+ â•‘ Project: {name} â•‘
388
+ â•‘ Location: {path} â•‘
389
+ â•‘ Scanned: {timestamp} â•‘
390
+ â•‘ â•‘
391
+ ╠══════════════════════════════════════════════════════════════════════════════╣
392
+ â•‘ PROJECT UNDERSTANDING â•‘
393
+ ├──────────────────────────────────────────────────────────────────────────────┤
394
+ â•‘ â•‘
395
+ â•‘ Type: {project type} â•‘
396
+ â•‘ Stack: {tech stack} â•‘
397
+ â•‘ Status: {active | stale | new} â•‘
398
+ â•‘ â•‘
399
+ â•‘ Description: â•‘
400
+ â•‘ {from README or package.json description} â•‘
401
+ â•‘ â•‘
402
+ ╠══════════════════════════════════════════════════════════════════════════════╣
403
+ â•‘ DOMINION FLOW STATE â•‘
404
+ ├──────────────────────────────────────────────────────────────────────────────┤
405
+ â•‘ â•‘
406
+ â•‘ Initialized: {YES/NO} â•‘
407
+ â•‘ Phase: {N of M} â•‘
408
+ â•‘ Status: {planning | executing | verifying | complete} â•‘
409
+ â•‘ Last Activity: {date} â•‘
410
+ â•‘ â•‘
411
+ â•‘ Sabbath Rest Files: â•‘
412
+ â•‘ {list of .local.md files found} â•‘
413
+ â•‘ â•‘
414
+ â•‘ WARRIOR Handoffs: â•‘
415
+ â•‘ {list of relevant handoffs} â•‘
416
+ â•‘ â•‘
417
+ ╠══════════════════════════════════════════════════════════════════════════════╣
418
+ â•‘ RECOMMENDATION â•‘
419
+ ├──────────────────────────────────────────────────────────────────────────────┤
420
+ â•‘ â•‘
421
+ â•‘ {recommendation based on state} â•‘
422
+ â•‘ â•‘
423
+ â•‘ Suggested Command: {command} â•‘
424
+ â•‘ â•‘
425
+ ╚══════════════════════════════════════════════════════════════════════════════╝
426
+ ```
427
+
428
+ ---
429
+
430
+ ## Routing Logic
431
+
432
+ ```
433
+ START
434
+ │
435
+ ├─► Check WARRIOR handoffs
436
+ │ ├─► Found for this project → RECOMMEND /fire-6-resume
437
+ │ └─► Not found → Continue
438
+ │
439
+ ├─► Check .planning/CONSCIENCE.md
440
+ │ ├─► Not found → RECOMMEND /fire-1-new
441
+ │ └─► Found → Continue
442
+ │
443
+ ├─► Parse CONSCIENCE.md for current phase
444
+ │ ├─► Phase in progress → RECOMMEND /fire-3-execute or /fire-dashboard
445
+ │ ├─► Phase complete → RECOMMEND /fire-2-plan (next) or /fire-1a-discuss
446
+ │ └─► All phases done → RECOMMEND new milestone
447
+ │
448
+ └─► END with recommendation
449
+ ```
450
+
451
+ ---
452
+
453
+ ## Related Commands
454
+
455
+ - `/fire-1-new` - Initialize Dominion Flow for new projects
456
+ - `/fire-6-resume` - Resume from WARRIOR handoff
457
+ - `/fire-dashboard` - View detailed project status
458
+ - `/fire-1a-discuss` - Gather context before planning
459
+
460
+ ---
461
+
462
+ ## Examples
463
+
464
+ ```bash
465
+ # Quick orientation
466
+ /fire-0-orient
467
+
468
+ # Deep analysis of unfamiliar codebase
469
+ /fire-0-orient --deep
470
+
471
+ # Just scan, don't recommend
472
+ /fire-0-orient --scan-only
473
+
474
+ # Save report to file
475
+ /fire-0-orient --output orientation-report.md
476
+ ```