@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,470 @@
|
|
|
1
|
+
# Integration Architecture
|
|
2
|
+
|
|
3
|
+
> System design overview for Dominion Flow Architecture
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Architecture Diagram
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
┌─────────────────────────────────────────────────────────────────────────────┐
|
|
11
|
+
│ DOMINION FLOW PLUGIN │
|
|
12
|
+
├─────────────────────────────────────────────────────────────────────────────┤
|
|
13
|
+
│ │
|
|
14
|
+
│ ┌─────────────────────────────────────────────────────────────────────┐ │
|
|
15
|
+
│ │ DOMINION FLOW SHELL │ │
|
|
16
|
+
│ │ ┌──────────────────────────────────────────────────────────────┐ │ │
|
|
17
|
+
│ │ │ Commands Layer │ │ │
|
|
18
|
+
│ │ │ /fire-plan /fire-execute /fire-verify /fire-progress │ │ │
|
|
19
|
+
│ │ └──────────────────────────────────────────────────────────────┘ │ │
|
|
20
|
+
│ │ │ │ │
|
|
21
|
+
│ │ ▼ │ │
|
|
22
|
+
│ │ ┌──────────────────────────────────────────────────────────────┐ │ │
|
|
23
|
+
│ │ │ Workflow Orchestration │ │ │
|
|
24
|
+
│ │ │ • Phase management │ │ │
|
|
25
|
+
│ │ │ • Breath-based execution │ │ │
|
|
26
|
+
│ │ │ • Parallel agent spawning │ │ │
|
|
27
|
+
│ │ │ • Progress tracking │ │ │
|
|
28
|
+
│ │ └──────────────────────────────────────────────────────────────┘ │ │
|
|
29
|
+
│ │ │ │ │
|
|
30
|
+
│ │ ▼ │ │
|
|
31
|
+
│ │ ┌──────────────────────────────────────────────────────────────┐ │ │
|
|
32
|
+
│ │ │ State Management │ │ │
|
|
33
|
+
│ │ │ • CONSCIENCE.md (living memory) │ │ │
|
|
34
|
+
│ │ │ • VISION.md (phase planning) │ │ │
|
|
35
|
+
│ │ │ • BLUEPRINT.md (execution details) │ │ │
|
|
36
|
+
│ │ │ • RECORD.md (completion records) │ │ │
|
|
37
|
+
│ │ └──────────────────────────────────────────────────────────────┘ │ │
|
|
38
|
+
│ └─────────────────────────────────────────────────────────────────────┘ │
|
|
39
|
+
│ │ │
|
|
40
|
+
│ ▼ │
|
|
41
|
+
│ ┌─────────────────────────────────────────────────────────────────────┐ │
|
|
42
|
+
│ │ WARRIOR CORE │ │
|
|
43
|
+
│ │ ┌──────────────────────────────────────────────────────────────┐ │ │
|
|
44
|
+
│ │ │ Quality Enforcement │ │ │
|
|
45
|
+
│ │ │ • Validation checklist (60+ items) │ │ │
|
|
46
|
+
│ │ │ • Honesty protocols (3 questions) │ │ │
|
|
47
|
+
│ │ │ • Pre-commit checks │ │ │
|
|
48
|
+
│ │ │ • Production readiness gates │ │ │
|
|
49
|
+
│ │ └──────────────────────────────────────────────────────────────┘ │ │
|
|
50
|
+
│ │ │ │ │
|
|
51
|
+
│ │ ▼ │ │
|
|
52
|
+
│ │ ┌──────────────────────────────────────────────────────────────┐ │ │
|
|
53
|
+
│ │ │ Knowledge Layer │ │ │
|
|
54
|
+
│ │ │ • Skills library │ │ │
|
|
55
|
+
│ │ │ • Pattern references │ │ │
|
|
56
|
+
│ │ │ • Implementation guides │ │ │
|
|
57
|
+
│ │ │ • Domain expertise │ │ │
|
|
58
|
+
│ │ └──────────────────────────────────────────────────────────────┘ │ │
|
|
59
|
+
│ │ │ │ │
|
|
60
|
+
│ │ ▼ │ │
|
|
61
|
+
│ │ ┌──────────────────────────────────────────────────────────────┐ │ │
|
|
62
|
+
│ │ │ Session Continuity │ │ │
|
|
63
|
+
│ │ │ • WARRIOR handoffs │ │ │
|
|
64
|
+
│ │ │ • Context preservation │ │ │
|
|
65
|
+
│ │ │ • Knowledge transfer │ │ │
|
|
66
|
+
│ │ └──────────────────────────────────────────────────────────────┘ │ │
|
|
67
|
+
│ └─────────────────────────────────────────────────────────────────────┘ │
|
|
68
|
+
│ │ │
|
|
69
|
+
│ ▼ │
|
|
70
|
+
│ ┌─────────────────────────────────────────────────────────────────────┐ │
|
|
71
|
+
│ │ INTEGRATION LAYER │ │
|
|
72
|
+
│ │ │ │
|
|
73
|
+
│ │ ┌─────────┐ ┌─────────┐ ┌─────────┐ ┌─────────┐ │ │
|
|
74
|
+
│ │ │ Hooks │ │ Agents │ │Templates│ │ Tests │ │ │
|
|
75
|
+
│ │ └────┬────┘ └────┬────┘ └────┬────┘ └────┬────┘ │ │
|
|
76
|
+
│ │ │ │ │ │ │ │
|
|
77
|
+
│ │ └────────────┴────────────┴────────────┘ │ │
|
|
78
|
+
│ │ │ │ │
|
|
79
|
+
│ │ ▼ │ │
|
|
80
|
+
│ │ ┌────────────────────────────┐ │ │
|
|
81
|
+
│ │ │ Claude Code Runtime │ │ │
|
|
82
|
+
│ │ └────────────────────────────┘ │ │
|
|
83
|
+
│ └─────────────────────────────────────────────────────────────────────┘ │
|
|
84
|
+
│ │
|
|
85
|
+
└─────────────────────────────────────────────────────────────────────────────┘
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
|
|
90
|
+
## Integration Points
|
|
91
|
+
|
|
92
|
+
| Integration Point | Source | Target | Purpose |
|
|
93
|
+
|-------------------|--------|--------|---------|
|
|
94
|
+
| Command Dispatch | Commands | Workflow Orchestration | Route user commands to appropriate handlers |
|
|
95
|
+
| State Read/Write | Workflow Orchestration | State Management | Persist and retrieve workflow state |
|
|
96
|
+
| Quality Gates | Workflow Orchestration | Quality Enforcement | Enforce standards at checkpoints |
|
|
97
|
+
| Skill Lookup | Workflow Orchestration | Knowledge Layer | Find relevant patterns during planning |
|
|
98
|
+
| Context Restore | Session Start | Session Continuity | Load previous session context |
|
|
99
|
+
| Context Save | Session End | Session Continuity | Preserve context for next session |
|
|
100
|
+
| Hook Triggers | Claude Code Runtime | Hooks | Execute hooks on tool use events |
|
|
101
|
+
| Agent Spawning | Workflow Orchestration | Agents | Launch parallel execution agents |
|
|
102
|
+
| Template Loading | Commands | Templates | Load planning templates |
|
|
103
|
+
| Test Validation | Quality Enforcement | Tests | Run validation test suites |
|
|
104
|
+
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
## Data Flow
|
|
108
|
+
|
|
109
|
+
### Planning Flow
|
|
110
|
+
|
|
111
|
+
```
|
|
112
|
+
User Request
|
|
113
|
+
│
|
|
114
|
+
▼
|
|
115
|
+
┌─────────────────┐
|
|
116
|
+
│ /fire-plan │
|
|
117
|
+
└────────┬────────┘
|
|
118
|
+
│
|
|
119
|
+
▼
|
|
120
|
+
┌─────────────────┐ ┌─────────────────┐
|
|
121
|
+
│ Load CONSCIENCE.md │────▶│ Current Context │
|
|
122
|
+
└────────┬────────┘ └─────────────────┘
|
|
123
|
+
│
|
|
124
|
+
▼
|
|
125
|
+
┌─────────────────┐ ┌─────────────────┐
|
|
126
|
+
│ Search Skills │────▶│ Relevant Guides │
|
|
127
|
+
└────────┬────────┘ └─────────────────┘
|
|
128
|
+
│
|
|
129
|
+
▼
|
|
130
|
+
┌─────────────────┐ ┌─────────────────┐
|
|
131
|
+
│ Apply Honesty │────▶│ Knowledge Gaps │
|
|
132
|
+
│ Protocols │ │ Identified │
|
|
133
|
+
└────────┬────────┘ └─────────────────┘
|
|
134
|
+
│
|
|
135
|
+
▼
|
|
136
|
+
┌─────────────────┐
|
|
137
|
+
│ Generate BLUEPRINT.md│
|
|
138
|
+
└────────┬────────┘
|
|
139
|
+
│
|
|
140
|
+
▼
|
|
141
|
+
┌─────────────────┐
|
|
142
|
+
│ Update CONSCIENCE.md │
|
|
143
|
+
└─────────────────┘
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
### Execution Flow
|
|
147
|
+
|
|
148
|
+
```
|
|
149
|
+
BLUEPRINT.md
|
|
150
|
+
│
|
|
151
|
+
▼
|
|
152
|
+
┌─────────────────┐
|
|
153
|
+
│ /fire-execute │
|
|
154
|
+
└────────┬────────┘
|
|
155
|
+
│
|
|
156
|
+
▼
|
|
157
|
+
┌─────────────────┐
|
|
158
|
+
│ Parse Breaths │
|
|
159
|
+
└────────┬────────┘
|
|
160
|
+
│
|
|
161
|
+
├──────────────────────────────┐
|
|
162
|
+
▼ ▼
|
|
163
|
+
┌─────────────────┐ ┌─────────────────┐
|
|
164
|
+
│ Breath 1 Tasks │ │ Breath 1 Tasks │
|
|
165
|
+
│ (Agent 1) │ │ (Agent 2) │
|
|
166
|
+
└────────┬────────┘ └────────┬────────┘
|
|
167
|
+
│ │
|
|
168
|
+
└──────────┬─────────────────┘
|
|
169
|
+
▼
|
|
170
|
+
┌─────────────────┐
|
|
171
|
+
│ Breath Checkpoint │
|
|
172
|
+
│ (Quality Gate) │
|
|
173
|
+
└────────┬────────┘
|
|
174
|
+
│
|
|
175
|
+
▼
|
|
176
|
+
┌─────────────────┐
|
|
177
|
+
│ Update CONSCIENCE.md │
|
|
178
|
+
│ (Progress) │
|
|
179
|
+
└────────┬────────┘
|
|
180
|
+
│
|
|
181
|
+
▼
|
|
182
|
+
┌─────────────────┐
|
|
183
|
+
│ Next Breath... │
|
|
184
|
+
└─────────────────┘
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
### Verification Flow
|
|
188
|
+
|
|
189
|
+
```
|
|
190
|
+
Implementation Complete
|
|
191
|
+
│
|
|
192
|
+
▼
|
|
193
|
+
┌─────────────────────┐
|
|
194
|
+
│ /fire-verify │
|
|
195
|
+
└──────────┬──────────┘
|
|
196
|
+
│
|
|
197
|
+
▼
|
|
198
|
+
┌─────────────────────┐
|
|
199
|
+
│ Load Validation │
|
|
200
|
+
│ Checklist │
|
|
201
|
+
└──────────┬──────────┘
|
|
202
|
+
│
|
|
203
|
+
├────────────────┬────────────────┬────────────────┐
|
|
204
|
+
▼ ▼ ▼ ▼
|
|
205
|
+
┌──────────────┐ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐
|
|
206
|
+
│ Code Quality │ │ Security │ │ Performance │ │ Testing │
|
|
207
|
+
│ Checks │ │ Checks │ │ Checks │ │ Checks │
|
|
208
|
+
└──────┬───────┘ └──────┬───────┘ └──────┬───────┘ └──────┬───────┘
|
|
209
|
+
│ │ │ │
|
|
210
|
+
└─────────────────┴─────────────────┴─────────────────┘
|
|
211
|
+
│
|
|
212
|
+
▼
|
|
213
|
+
┌─────────────────────┐
|
|
214
|
+
│ Aggregate Results │
|
|
215
|
+
└──────────┬──────────┘
|
|
216
|
+
│
|
|
217
|
+
┌────────────┴────────────┐
|
|
218
|
+
▼ ▼
|
|
219
|
+
┌──────────────┐ ┌──────────────┐
|
|
220
|
+
│ ✓ All Pass │ │ ✗ Failures │
|
|
221
|
+
│ → RECORD.md │ │ → Fix Items │
|
|
222
|
+
└──────────────┘ └──────────────┘
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
---
|
|
226
|
+
|
|
227
|
+
## File Relationships
|
|
228
|
+
|
|
229
|
+
### Core State Files
|
|
230
|
+
|
|
231
|
+
```
|
|
232
|
+
.planning/
|
|
233
|
+
├── PROJECT.md # Project overview (rarely changes)
|
|
234
|
+
│ └── Referenced by: CONSCIENCE.md, VISION.md
|
|
235
|
+
│
|
|
236
|
+
├── CONSCIENCE.md # Living memory (frequently updated)
|
|
237
|
+
│ ├── Updated by: All commands
|
|
238
|
+
│ ├── Read by: All commands
|
|
239
|
+
│ └── Contains: Current context, progress, blockers
|
|
240
|
+
│
|
|
241
|
+
├── VISION.md # Phase definitions
|
|
242
|
+
│ ├── Updated by: /fire-plan
|
|
243
|
+
│ ├── Read by: /fire-execute, /fire-progress
|
|
244
|
+
│ └── Contains: All phases with status
|
|
245
|
+
│
|
|
246
|
+
└── phases/
|
|
247
|
+
└── NN-phase-name/
|
|
248
|
+
├── NN-01-BLUEPRINT.md # Execution plan
|
|
249
|
+
│ ├── Created by: /fire-plan
|
|
250
|
+
│ ├── Read by: /fire-execute
|
|
251
|
+
│ └── Contains: Tasks, breaths, dependencies
|
|
252
|
+
│
|
|
253
|
+
├── NN-01-RECORD.md # Completion record
|
|
254
|
+
│ ├── Created by: /fire-verify
|
|
255
|
+
│ ├── Read by: Future sessions
|
|
256
|
+
│ └── Contains: What was done, skills used
|
|
257
|
+
│
|
|
258
|
+
└── NN-01-EXECUTE.md # Execution log (optional)
|
|
259
|
+
├── Updated by: /fire-execute
|
|
260
|
+
└── Contains: Real-time progress
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
### Plugin Structure
|
|
264
|
+
|
|
265
|
+
```
|
|
266
|
+
dominion-flow/
|
|
267
|
+
├── .claude-plugin/
|
|
268
|
+
│ └── plugin.json # Plugin manifest
|
|
269
|
+
│
|
|
270
|
+
├── commands/
|
|
271
|
+
│ ├── power-plan.md # Planning command
|
|
272
|
+
│ ├── power-execute.md # Execution command
|
|
273
|
+
│ ├── power-verify.md # Verification command
|
|
274
|
+
│ ├── power-progress.md # Status command
|
|
275
|
+
│ ├── power-search.md # Skill search
|
|
276
|
+
│ └── power-contribute.md # Skill contribution
|
|
277
|
+
│
|
|
278
|
+
├── agents/
|
|
279
|
+
│ ├── planner.md # Planning agent
|
|
280
|
+
│ ├── executor.md # Execution agent
|
|
281
|
+
│ └── validator.md # Validation agent
|
|
282
|
+
│
|
|
283
|
+
├── hooks/
|
|
284
|
+
│ ├── hooks.json # Hook definitions
|
|
285
|
+
│ ├── pre-commit.sh # Pre-commit validation
|
|
286
|
+
│ └── session-start.sh # Context loading
|
|
287
|
+
│
|
|
288
|
+
├── templates/
|
|
289
|
+
│ ├── PLAN-TEMPLATE.md # Plan document template
|
|
290
|
+
│ ├── SUMMARY-TEMPLATE.md # Summary document template
|
|
291
|
+
│ └── STATE-TEMPLATE.md # State document template
|
|
292
|
+
│
|
|
293
|
+
├── skills-library/ # Knowledge base
|
|
294
|
+
│ ├── methodology/
|
|
295
|
+
│ ├── security/
|
|
296
|
+
│ ├── database/
|
|
297
|
+
│ └── ...
|
|
298
|
+
│
|
|
299
|
+
├── references/ # This documentation
|
|
300
|
+
│ ├── ui-brand.md
|
|
301
|
+
│ ├── honesty-protocols.md
|
|
302
|
+
│ ├── validation-checklist.md
|
|
303
|
+
│ ├── skills-usage-guide.md
|
|
304
|
+
│ └── integration-architecture.md
|
|
305
|
+
│
|
|
306
|
+
├── workflows/
|
|
307
|
+
│ ├── standard-feature.md # Standard feature workflow
|
|
308
|
+
│ ├── bug-fix.md # Bug fix workflow
|
|
309
|
+
│ └── refactoring.md # Refactoring workflow
|
|
310
|
+
│
|
|
311
|
+
└── tests/
|
|
312
|
+
├── command-tests/
|
|
313
|
+
└── integration-tests/
|
|
314
|
+
```
|
|
315
|
+
|
|
316
|
+
---
|
|
317
|
+
|
|
318
|
+
## Component Responsibilities
|
|
319
|
+
|
|
320
|
+
### DOMINION FLOW SHELL Components
|
|
321
|
+
|
|
322
|
+
| Component | Responsibility | Key Files |
|
|
323
|
+
|-----------|----------------|-----------|
|
|
324
|
+
| **Commands Layer** | Parse user input, route to handlers | `commands/*.md` |
|
|
325
|
+
| **Workflow Orchestration** | Manage phases, breaths, parallel execution | `workflows/*.md` |
|
|
326
|
+
| **State Management** | Read/write planning documents | Uses `.planning/` |
|
|
327
|
+
|
|
328
|
+
### WARRIOR Core Components
|
|
329
|
+
|
|
330
|
+
> For the full explanation of WARRIOR principles and the 7-step handoff, see `references/warrior-principles.md`.
|
|
331
|
+
|
|
332
|
+
| Component | Responsibility | Key Files |
|
|
333
|
+
|-----------|----------------|-----------|
|
|
334
|
+
| **Operating Principles** | Radical honesty, goal-backward verification, quality gates | `references/warrior-principles.md` |
|
|
335
|
+
| **Quality Enforcement** | Apply validation checklist, gates | `references/validation-checklist.md` |
|
|
336
|
+
| **Knowledge Layer** | Skills search, pattern matching | `skills-library/` |
|
|
337
|
+
| **Session Continuity** | Handoffs, context preservation | Hooks, CONSCIENCE.md |
|
|
338
|
+
|
|
339
|
+
### Integration Layer Components
|
|
340
|
+
|
|
341
|
+
| Component | Responsibility | Key Files |
|
|
342
|
+
|-----------|----------------|-----------|
|
|
343
|
+
| **Hooks** | Event-triggered actions | `hooks/` |
|
|
344
|
+
| **Agents** | Specialized execution agents | `agents/` |
|
|
345
|
+
| **Templates** | Document scaffolding | `templates/` |
|
|
346
|
+
| **Tests** | Validation test suites | `tests/` |
|
|
347
|
+
|
|
348
|
+
---
|
|
349
|
+
|
|
350
|
+
## Event Flow
|
|
351
|
+
|
|
352
|
+
### Session Start
|
|
353
|
+
|
|
354
|
+
```
|
|
355
|
+
1. Claude Code starts
|
|
356
|
+
2. SessionStart hook fires
|
|
357
|
+
3. Load most recent WARRIOR handoff
|
|
358
|
+
4. Read CONSCIENCE.md for current context
|
|
359
|
+
5. Display progress summary
|
|
360
|
+
6. Ready for commands
|
|
361
|
+
```
|
|
362
|
+
|
|
363
|
+
### Command Execution
|
|
364
|
+
|
|
365
|
+
```
|
|
366
|
+
1. User issues command (e.g., /fire-plan)
|
|
367
|
+
2. Command file loaded
|
|
368
|
+
3. Prerequisites checked (CONSCIENCE.md exists, etc.)
|
|
369
|
+
4. Command logic executes
|
|
370
|
+
5. State files updated
|
|
371
|
+
6. UI feedback displayed
|
|
372
|
+
7. Next action suggested
|
|
373
|
+
```
|
|
374
|
+
|
|
375
|
+
### Agent Spawning
|
|
376
|
+
|
|
377
|
+
```
|
|
378
|
+
1. /fire-execute determines parallel tasks
|
|
379
|
+
2. Breath definition parsed
|
|
380
|
+
3. For each parallel task:
|
|
381
|
+
a. Agent spawned with task context
|
|
382
|
+
b. Agent executes independently
|
|
383
|
+
c. Agent reports completion
|
|
384
|
+
4. Breath checkpoint reached
|
|
385
|
+
5. Quality gate applied
|
|
386
|
+
6. Next breath proceeds
|
|
387
|
+
```
|
|
388
|
+
|
|
389
|
+
### Session End
|
|
390
|
+
|
|
391
|
+
```
|
|
392
|
+
1. User signals end or context limit approaching
|
|
393
|
+
2. CONSCIENCE.md updated with current progress
|
|
394
|
+
3. WARRIOR handoff created
|
|
395
|
+
4. Handoff saved to warrior-handoffs/
|
|
396
|
+
5. Session terminates
|
|
397
|
+
```
|
|
398
|
+
|
|
399
|
+
---
|
|
400
|
+
|
|
401
|
+
## Extension Points
|
|
402
|
+
|
|
403
|
+
### Adding New Commands
|
|
404
|
+
|
|
405
|
+
1. Create `commands/new-command.md`
|
|
406
|
+
2. Define frontmatter (args, description)
|
|
407
|
+
3. Implement command logic
|
|
408
|
+
4. Add to relevant workflows
|
|
409
|
+
|
|
410
|
+
### Adding New Agents
|
|
411
|
+
|
|
412
|
+
1. Create `agents/new-agent.md`
|
|
413
|
+
2. Define agent role and capabilities
|
|
414
|
+
3. Set triggering conditions
|
|
415
|
+
4. Register in relevant commands
|
|
416
|
+
|
|
417
|
+
### Adding New Skills
|
|
418
|
+
|
|
419
|
+
1. Search existing skills first
|
|
420
|
+
2. Use `/fire-contribute` workflow
|
|
421
|
+
3. Follow skill template structure
|
|
422
|
+
4. Submit to skills library
|
|
423
|
+
|
|
424
|
+
### Adding New Hooks
|
|
425
|
+
|
|
426
|
+
1. Identify trigger event
|
|
427
|
+
2. Create hook script
|
|
428
|
+
3. Register in `hooks/hooks.json`
|
|
429
|
+
4. Test hook execution
|
|
430
|
+
|
|
431
|
+
---
|
|
432
|
+
|
|
433
|
+
## Dependency Graph
|
|
434
|
+
|
|
435
|
+
```
|
|
436
|
+
┌─────────────┐
|
|
437
|
+
│ Claude Code │
|
|
438
|
+
│ Runtime │
|
|
439
|
+
└──────┬──────┘
|
|
440
|
+
│
|
|
441
|
+
┌────────────┴────────────┐
|
|
442
|
+
▼ ▼
|
|
443
|
+
┌─────────────┐ ┌─────────────┐
|
|
444
|
+
│ Hooks │ │ Commands │
|
|
445
|
+
└──────┬──────┘ └──────┬──────┘
|
|
446
|
+
│ │
|
|
447
|
+
│ ┌──────────────────┤
|
|
448
|
+
│ ▼ ▼
|
|
449
|
+
│ ┌─────────────┐ ┌─────────────┐
|
|
450
|
+
│ │ Agents │ │ Workflows │
|
|
451
|
+
│ └──────┬──────┘ └──────┬──────┘
|
|
452
|
+
│ │ │
|
|
453
|
+
└─────────┼────────────────┘
|
|
454
|
+
│
|
|
455
|
+
┌─────────┴─────────┐
|
|
456
|
+
▼ ▼
|
|
457
|
+
┌─────────────┐ ┌─────────────┐
|
|
458
|
+
│ Templates │ │ Skills │
|
|
459
|
+
└─────────────┘ │ Library │
|
|
460
|
+
└─────────────┘
|
|
461
|
+
│
|
|
462
|
+
▼
|
|
463
|
+
┌─────────────┐
|
|
464
|
+
│ References │
|
|
465
|
+
└─────────────┘
|
|
466
|
+
```
|
|
467
|
+
|
|
468
|
+
---
|
|
469
|
+
|
|
470
|
+
*Architecture evolves. Keep this document updated as components change.*
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
# Issue-to-PR Automation Pipeline
|
|
2
|
+
|
|
3
|
+
> **Research basis (v10.0):** GitHub Copilot Workspace, Devin, Jules (Google) — automated
|
|
4
|
+
> issue analysis → branch creation → implementation → PR creation. Industry standard for
|
|
5
|
+
> AI coding agents in 2025-2026. Eliminates manual branch/PR ceremony overhead.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Overview
|
|
10
|
+
|
|
11
|
+
When given a GitHub issue URL or issue description, automatically execute the full
|
|
12
|
+
development lifecycle from analysis through PR creation. This pipeline connects
|
|
13
|
+
Dominion Flow's planning → execution → verification → handoff workflow to GitHub's
|
|
14
|
+
issue/PR system.
|
|
15
|
+
|
|
16
|
+
**Core principle:** The agent should handle the ceremony (branching, committing, PR creation)
|
|
17
|
+
so the developer focuses on the design decisions.
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Pipeline Steps
|
|
22
|
+
|
|
23
|
+
### Step 1: Issue Analysis
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
INPUT: GitHub issue URL or issue description
|
|
27
|
+
|
|
28
|
+
IF github_url provided:
|
|
29
|
+
# Use gh CLI to fetch issue details
|
|
30
|
+
gh issue view {number} --json title,body,labels,assignees,milestone
|
|
31
|
+
|
|
32
|
+
EXTRACT:
|
|
33
|
+
- Title: one-line summary
|
|
34
|
+
- Requirements: bullet points from issue body
|
|
35
|
+
- Labels: map to task type (bug→fix, enhancement→feat, etc.)
|
|
36
|
+
- Acceptance criteria: from issue body or derive from requirements
|
|
37
|
+
- Scope estimate: SIMPLE | MODERATE | COMPLEX (from difficulty router)
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### Step 2: Branch Creation
|
|
41
|
+
|
|
42
|
+
```
|
|
43
|
+
# Create feature branch from current base
|
|
44
|
+
branch_name = "{type}/{issue-number}-{slugified-title}"
|
|
45
|
+
Examples:
|
|
46
|
+
fix/42-login-timeout
|
|
47
|
+
feat/123-dark-mode
|
|
48
|
+
refactor/87-auth-middleware
|
|
49
|
+
|
|
50
|
+
git checkout -b {branch_name}
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### Step 3: Planning (Delegate to /fire-2-plan)
|
|
54
|
+
|
|
55
|
+
```
|
|
56
|
+
# Auto-generate plan from issue requirements
|
|
57
|
+
/fire-2-plan {issue_number} --from-issue
|
|
58
|
+
|
|
59
|
+
# Plan should reference:
|
|
60
|
+
- Issue URL as source
|
|
61
|
+
- Acceptance criteria as must-haves
|
|
62
|
+
- Labels as task type hints
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### Step 4: Execution (Delegate to /fire-3-execute)
|
|
66
|
+
|
|
67
|
+
```
|
|
68
|
+
# Execute the plan
|
|
69
|
+
/fire-3-execute {phase} --auto-continue
|
|
70
|
+
|
|
71
|
+
# On completion, all commits are on the feature branch
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### Step 5: PR Creation
|
|
75
|
+
|
|
76
|
+
```
|
|
77
|
+
# Push branch
|
|
78
|
+
git push -u origin {branch_name}
|
|
79
|
+
|
|
80
|
+
# Create PR with structured body
|
|
81
|
+
gh pr create \
|
|
82
|
+
--title "{type}: {issue title}" \
|
|
83
|
+
--body "$(cat <<'EOF'
|
|
84
|
+
## Summary
|
|
85
|
+
{1-3 bullet points from plan accomplishments}
|
|
86
|
+
|
|
87
|
+
## Changes
|
|
88
|
+
{files created/modified list from handoff}
|
|
89
|
+
|
|
90
|
+
## Test Plan
|
|
91
|
+
{verification results from fire-4-verify}
|
|
92
|
+
|
|
93
|
+
## Issue
|
|
94
|
+
Closes #{issue_number}
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
Generated by Dominion Flow v10.0
|
|
98
|
+
EOF
|
|
99
|
+
)"
|
|
100
|
+
|
|
101
|
+
# Link PR to issue
|
|
102
|
+
gh issue comment {issue_number} --body "PR created: #{pr_number}"
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
## Integration with Dominion Flow Commands
|
|
108
|
+
|
|
109
|
+
| Command | Role in Pipeline |
|
|
110
|
+
|---------|-----------------|
|
|
111
|
+
| `/fire-2-plan` | Generates BLUEPRINT from issue requirements |
|
|
112
|
+
| `/fire-3-execute` | Implements the plan on feature branch |
|
|
113
|
+
| `/fire-4-verify` | Validates implementation meets acceptance criteria |
|
|
114
|
+
| `/fire-5-handoff` | Creates handoff with PR link and issue reference |
|
|
115
|
+
|
|
116
|
+
---
|
|
117
|
+
|
|
118
|
+
## Usage
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
# Full pipeline from issue URL
|
|
122
|
+
/fire-issue-to-pr https://github.com/owner/repo/issues/42
|
|
123
|
+
|
|
124
|
+
# From issue number (assumes current repo)
|
|
125
|
+
/fire-issue-to-pr 42
|
|
126
|
+
|
|
127
|
+
# Scan-only (analyze issue, create plan, don't implement)
|
|
128
|
+
/fire-issue-to-pr 42 --plan-only
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
---
|
|
132
|
+
|
|
133
|
+
## Safety Checks
|
|
134
|
+
|
|
135
|
+
1. **Before branching:** Verify clean working directory (`git status`)
|
|
136
|
+
2. **Before pushing:** Run full verification (`/fire-4-verify`)
|
|
137
|
+
3. **Before PR:** Check branch is ahead of base (`git log base..HEAD`)
|
|
138
|
+
4. **PR body:** Always include "Closes #N" for automatic issue closing
|
|
139
|
+
5. **Labels:** Copy relevant labels from issue to PR
|
|
140
|
+
|
|
141
|
+
---
|
|
142
|
+
|
|
143
|
+
## References
|
|
144
|
+
|
|
145
|
+
- **Copilot Workspace:** GitHub's issue-to-PR pipeline (2025)
|
|
146
|
+
- **Devin:** Cognition's autonomous issue resolution (2025-2026)
|
|
147
|
+
- **Jules:** Google's issue-to-PR agent (2026)
|
|
148
|
+
- **Related:** `commands/fire-2-plan.md` — plan generation
|
|
149
|
+
- **Related:** `commands/fire-3-execute.md` — plan execution
|
|
150
|
+
- **Related:** `commands/fire-4-verify.md` — verification
|