bmad-method 6.0.0-alpha.4 → 6.0.0-alpha.5
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/commands/bmad/bmm/agents/architect.md +0 -1
- package/.claude/commands/bmad/bmm/agents/sm.md +1 -1
- package/.claude/commands/bmad/bmm/agents/tech-writer.md +82 -0
- package/.claude/commands/bmad/bmm/workflows/README.md +1 -1
- package/.claude/commands/bmad/bmm/workflows/epic-tech-context.md +15 -0
- package/.claude/commands/bmad/core/workflows/README.md +10 -0
- package/.claude/settings.local.json +4 -8
- package/CHANGELOG.md +305 -0
- package/README.md +88 -39
- package/bmad/_cfg/agent-manifest.csv +2 -1
- package/bmad/_cfg/agents/bmm-tech-writer.customize.yaml +42 -0
- package/bmad/_cfg/files-manifest.csv +40 -62
- package/bmad/_cfg/ides/claude-code.yaml +1 -1
- package/bmad/_cfg/manifest.yaml +4 -3
- package/bmad/_cfg/task-manifest.csv +4 -1
- package/bmad/_cfg/tool-manifest.csv +1 -0
- package/bmad/_cfg/workflow-manifest.csv +3 -1
- package/bmad/bmb/config.yaml +2 -2
- package/bmad/bmb/workflows/audit-workflow/instructions.md +1 -1
- package/bmad/bmm/README.md +79 -120
- package/bmad/bmm/README.md.bak +169 -0
- package/bmad/bmm/agents/analyst.md.bak +67 -0
- package/bmad/bmm/agents/architect.md +0 -1
- package/bmad/bmm/agents/architect.md.bak +73 -0
- package/bmad/bmm/agents/dev.md.bak +69 -0
- package/bmad/bmm/agents/pm.md.bak +76 -0
- package/bmad/bmm/agents/sm.md +1 -1
- package/bmad/bmm/agents/sm.md.bak +85 -0
- package/bmad/bmm/agents/tea.md.bak +72 -0
- package/bmad/bmm/agents/tech-writer.md +82 -0
- package/bmad/bmm/agents/ux-designer.md.bak +71 -0
- package/bmad/bmm/config.yaml +2 -2
- package/bmad/bmm/docs/README.md +235 -0
- package/bmad/bmm/docs/agents-guide.md +1057 -0
- package/bmad/bmm/docs/brownfield-guide.md +471 -972
- package/bmad/bmm/docs/enterprise-agentic-development.md +680 -0
- package/bmad/bmm/docs/faq.md +589 -0
- package/bmad/bmm/docs/glossary.md +321 -0
- package/bmad/bmm/docs/party-mode.md +224 -0
- package/bmad/bmm/docs/quick-spec-flow.md +64 -57
- package/bmad/bmm/docs/quick-start.md +72 -47
- package/bmad/bmm/docs/scale-adaptive-system.md +332 -778
- package/bmad/bmm/docs/troubleshooting.md +680 -0
- package/bmad/bmm/{workflows/3-solutioning/architecture/README.md → docs/workflow-architecture-reference.md} +130 -77
- package/bmad/bmm/{workflows/document-project/README.md → docs/workflow-document-project-reference.md} +45 -2
- package/bmad/bmm/docs/workflows-analysis.md +670 -0
- package/bmad/bmm/docs/workflows-implementation.md +1758 -0
- package/bmad/bmm/docs/workflows-planning.md +1086 -0
- package/bmad/bmm/docs/workflows-solutioning.md +726 -0
- package/bmad/bmm/tasks/daily-standup.xml +1 -1
- package/bmad/bmm/workflows/2-plan-workflows/tech-spec/workflow.yaml.bak +60 -0
- package/bmad/bmm/workflows/4-implementation/epic-tech-context/workflow.yaml +1 -1
- package/bmad/bmm/workflows/techdoc/documentation-standards.md +2 -1
- package/bmad/bmm/workflows/techdoc/documentation-standards.md.bak +238 -0
- package/bmad/bmm/workflows/workflow-status/init/instructions.md +623 -242
- package/bmad/bmm/workflows/workflow-status/init/workflow.yaml.bak +27 -0
- package/bmad/bmm/workflows/workflow-status/paths/enterprise-brownfield.yaml +120 -0
- package/bmad/bmm/workflows/workflow-status/paths/enterprise-greenfield.yaml +108 -0
- package/{src/modules/bmm/workflows/workflow-status/paths/brownfield-level-3.yaml → bmad/bmm/workflows/workflow-status/paths/method-brownfield.yaml} +33 -31
- package/{src/modules/bmm/workflows/workflow-status/paths/greenfield-level-2.yaml → bmad/bmm/workflows/workflow-status/paths/method-greenfield.yaml} +31 -21
- package/{src/modules/bmm/workflows/workflow-status/paths/brownfield-level-1.yaml → bmad/bmm/workflows/workflow-status/paths/quick-flow-brownfield.yaml} +18 -18
- package/bmad/bmm/workflows/workflow-status/paths/{greenfield-level-1.yaml → quick-flow-greenfield.yaml} +16 -18
- package/bmad/bmm/workflows/workflow-status/workflow-status-template.yaml +4 -4
- package/bmad/cis/agents/brainstorming-coach.md.bak +62 -0
- package/bmad/cis/agents/creative-problem-solver.md.bak +62 -0
- package/bmad/cis/agents/design-thinking-coach.md.bak +62 -0
- package/bmad/cis/agents/innovation-strategist.md.bak +62 -0
- package/bmad/cis/agents/storyteller.md.bak +59 -0
- package/bmad/cis/config.yaml +2 -2
- package/bmad/core/agents/bmad-master.md.bak +15 -13
- package/bmad/core/config.yaml +2 -2
- package/bmad/core/tasks/workflow.xml +1 -11
- package/package.json +1 -1
- package/src/core/tasks/workflow.xml +1 -11
- package/src/modules/bmb/workflows/audit-workflow/instructions.md +1 -1
- package/src/modules/bmm/README.md +1 -1
- package/src/modules/bmm/agents/architect.agent.yaml +0 -4
- package/src/modules/bmm/agents/game-dev.agent.yaml +8 -12
- package/src/modules/bmm/agents/sm.agent.yaml +1 -1
- package/src/modules/bmm/agents/{paige.agent.yaml → tech-writer.agent.yaml} +4 -4
- package/src/modules/bmm/docs/README.md +9 -9
- package/src/modules/bmm/docs/agents-guide.md +46 -98
- package/src/modules/bmm/docs/brownfield-guide.md +211 -90
- package/src/modules/bmm/docs/enterprise-agentic-development.md +380 -740
- package/src/modules/bmm/docs/faq.md +10 -10
- package/src/modules/bmm/docs/glossary.md +36 -42
- package/src/modules/bmm/docs/party-mode.md +110 -1122
- package/src/modules/bmm/docs/quick-spec-flow.md +33 -33
- package/src/modules/bmm/docs/quick-start.md +29 -29
- package/src/modules/bmm/docs/scale-adaptive-system.md +303 -453
- package/src/modules/bmm/docs/troubleshooting.md +1 -1
- package/src/modules/bmm/docs/workflows-implementation.md +20 -21
- package/src/modules/bmm/docs/workflows-solutioning.md +1 -1
- package/src/modules/bmm/tasks/daily-standup.xml +1 -1
- package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/instructions.md +1 -19
- package/src/modules/bmm/workflows/2-plan-workflows/prd/checklist.md +10 -9
- package/src/modules/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/epics-template.md +23 -34
- package/src/modules/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/instructions.md +105 -331
- package/src/modules/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/workflow.yaml +23 -11
- package/src/modules/bmm/workflows/2-plan-workflows/prd/instructions.md +23 -38
- package/src/modules/bmm/workflows/2-plan-workflows/prd/workflow.yaml +2 -2
- package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/epics-template.md +38 -16
- package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/instructions.md +1 -19
- package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/user-story-template.md +35 -32
- package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/workflow.yaml +2 -2
- package/src/modules/bmm/workflows/3-solutioning/architecture/instructions.md +7 -18
- package/src/modules/bmm/workflows/3-solutioning/solutioning-gate-check/instructions.md +1 -18
- package/src/modules/bmm/workflows/3-solutioning/solutioning-gate-check/workflow.yaml +6 -6
- package/src/modules/bmm/workflows/4-implementation/epic-tech-context/workflow.yaml +1 -1
- package/src/modules/bmm/workflows/techdoc/documentation-standards.md +1 -1
- package/src/modules/bmm/workflows/workflow-status/init/instructions.md +623 -242
- package/src/modules/bmm/workflows/workflow-status/paths/enterprise-brownfield.yaml +120 -0
- package/src/modules/bmm/workflows/workflow-status/paths/enterprise-greenfield.yaml +108 -0
- package/{bmad/bmm/workflows/workflow-status/paths/brownfield-level-3.yaml → src/modules/bmm/workflows/workflow-status/paths/method-brownfield.yaml} +33 -31
- package/{bmad/bmm/workflows/workflow-status/paths/greenfield-level-2.yaml → src/modules/bmm/workflows/workflow-status/paths/method-greenfield.yaml} +31 -21
- package/{bmad/bmm/workflows/workflow-status/paths/brownfield-level-1.yaml → src/modules/bmm/workflows/workflow-status/paths/quick-flow-brownfield.yaml} +18 -18
- package/src/modules/bmm/workflows/workflow-status/paths/{greenfield-level-1.yaml → quick-flow-greenfield.yaml} +16 -18
- package/src/modules/bmm/workflows/workflow-status/workflow-status-template.yaml +4 -4
- package/bmad/bmm/tasks/retrospective.xml +0 -104
- package/bmad/bmm/testarch/README.md +0 -311
- package/bmad/bmm/workflows/1-analysis/brainstorm-project/README.md +0 -113
- package/bmad/bmm/workflows/1-analysis/product-brief/README.md +0 -180
- package/bmad/bmm/workflows/1-analysis/research/README.md +0 -454
- package/bmad/bmm/workflows/2-plan-workflows/README.md +0 -258
- package/bmad/bmm/workflows/3-solutioning/README.md +0 -1
- package/bmad/bmm/workflows/3-solutioning/solutioning-gate-check/README.md +0 -177
- package/bmad/bmm/workflows/4-implementation/README.md +0 -221
- package/bmad/bmm/workflows/4-implementation/code-review/README.md +0 -69
- package/bmad/bmm/workflows/4-implementation/correct-course/README.md +0 -73
- package/bmad/bmm/workflows/4-implementation/create-story/README.md +0 -146
- package/bmad/bmm/workflows/4-implementation/dev-story/README.md +0 -206
- package/bmad/bmm/workflows/4-implementation/epic-tech-context/README.md +0 -195
- package/bmad/bmm/workflows/4-implementation/retrospective/README.md +0 -77
- package/bmad/bmm/workflows/4-implementation/sprint-planning/README.md +0 -156
- package/bmad/bmm/workflows/4-implementation/story-context/README.md +0 -234
- package/bmad/bmm/workflows/README.md +0 -256
- package/bmad/bmm/workflows/document-project/templates/README.md +0 -38
- package/bmad/bmm/workflows/testarch/README.md +0 -26
- package/bmad/bmm/workflows/testarch/atdd/README.md +0 -672
- package/bmad/bmm/workflows/testarch/automate/README.md +0 -869
- package/bmad/bmm/workflows/testarch/ci/README.md +0 -493
- package/bmad/bmm/workflows/testarch/framework/README.md +0 -340
- package/bmad/bmm/workflows/testarch/nfr-assess/README.md +0 -469
- package/bmad/bmm/workflows/testarch/test-design/README.md +0 -493
- package/bmad/bmm/workflows/testarch/test-review/README.md +0 -775
- package/bmad/bmm/workflows/testarch/trace/README.md +0 -802
- package/bmad/bmm/workflows/workflow-status/README.md +0 -260
- package/bmad/bmm/workflows/workflow-status/paths/brownfield-level-0.yaml +0 -54
- package/bmad/bmm/workflows/workflow-status/paths/brownfield-level-2.yaml +0 -76
- package/bmad/bmm/workflows/workflow-status/paths/brownfield-level-4.yaml +0 -88
- package/bmad/bmm/workflows/workflow-status/paths/greenfield-level-0.yaml +0 -45
- package/bmad/bmm/workflows/workflow-status/paths/greenfield-level-3.yaml +0 -73
- package/bmad/bmm/workflows/workflow-status/paths/greenfield-level-4.yaml +0 -75
- package/src/modules/bmm/docs/brownfield-guide.md.backup +0 -1324
- package/src/modules/bmm/docs/workflows-testing.md +0 -1572
- package/src/modules/bmm/workflows/workflow-status/paths/brownfield-level-0.yaml +0 -54
- package/src/modules/bmm/workflows/workflow-status/paths/brownfield-level-2.yaml +0 -76
- package/src/modules/bmm/workflows/workflow-status/paths/brownfield-level-4.yaml +0 -88
- package/src/modules/bmm/workflows/workflow-status/paths/greenfield-level-0.yaml +0 -45
- package/src/modules/bmm/workflows/workflow-status/paths/greenfield-level-3.yaml +0 -73
- package/src/modules/bmm/workflows/workflow-status/paths/greenfield-level-4.yaml +0 -75
- /package/bmad/bmm/agents/{paige.md → paige.md.bak} +0 -0
|
@@ -35,21 +35,21 @@ Brownfield projects involve working within existing codebases rather than starti
|
|
|
35
35
|
|
|
36
36
|
## Getting Started
|
|
37
37
|
|
|
38
|
-
### Understanding
|
|
38
|
+
### Understanding Planning Tracks
|
|
39
39
|
|
|
40
|
-
For complete
|
|
40
|
+
For complete track details, see [Scale Adaptive System](./scale-adaptive-system.md).
|
|
41
41
|
|
|
42
|
-
**Brownfield
|
|
42
|
+
**Brownfield tracks at a glance:**
|
|
43
43
|
|
|
44
|
-
|
|
|
45
|
-
|
|
|
46
|
-
| **
|
|
47
|
-
| **
|
|
48
|
-
| **
|
|
49
|
-
| **3** | Complex integration | 12-40 | Review existing architecture first |
|
|
50
|
-
| **4** | Enterprise expansion | 40+ | Full system documentation required |
|
|
44
|
+
| Track | Scope | Typical Stories | Key Difference |
|
|
45
|
+
| --------------------- | -------------------------- | --------------- | ----------------------------------------------- |
|
|
46
|
+
| **Quick Flow** | Bug fixes, small features | 1-15 | Must understand affected code and patterns |
|
|
47
|
+
| **BMad Method** | Feature sets, integrations | 10-50+ | Integrate with existing architecture |
|
|
48
|
+
| **Enterprise Method** | Enterprise expansions | 30+ | Full system documentation + compliance required |
|
|
51
49
|
|
|
52
|
-
|
|
50
|
+
**Note:** Story counts are guidance, not definitions. Tracks are chosen based on planning needs.
|
|
51
|
+
|
|
52
|
+
### Track Selection for Brownfield
|
|
53
53
|
|
|
54
54
|
When you run `workflow-init`, it handles brownfield intelligently:
|
|
55
55
|
|
|
@@ -69,45 +69,105 @@ When you run `workflow-init`, it handles brownfield intelligently:
|
|
|
69
69
|
|
|
70
70
|
**Step 3: Analyzes your description**
|
|
71
71
|
|
|
72
|
-
- Keywords: "fix" →
|
|
73
|
-
-
|
|
74
|
-
- Confirms suggested
|
|
72
|
+
- Keywords: "fix", "bug" → Quick Flow, "dashboard", "platform" → BMad Method, "enterprise", "multi-tenant" → Enterprise Method
|
|
73
|
+
- Complexity assessment
|
|
74
|
+
- Confirms suggested track with you
|
|
75
75
|
|
|
76
76
|
**Key Principle:** System asks about YOUR current work first, uses old artifacts as context only.
|
|
77
77
|
|
|
78
|
-
**Example: Old
|
|
78
|
+
**Example: Old Complex PRD, New Simple Work**
|
|
79
79
|
|
|
80
80
|
```
|
|
81
|
-
System: "Found PRD.md (
|
|
81
|
+
System: "Found PRD.md (BMad Method track, 30 stories, 6 months old)"
|
|
82
82
|
System: "Is this work in progress or previous effort?"
|
|
83
83
|
You: "Previous effort - I'm just fixing a bug now"
|
|
84
84
|
System: "Tell me about your current work"
|
|
85
85
|
You: "Update payment method enums"
|
|
86
|
-
System: "
|
|
86
|
+
System: "Quick Flow track (tech-spec approach). Correct?"
|
|
87
87
|
You: "Yes"
|
|
88
|
-
✅ Creates
|
|
88
|
+
✅ Creates Quick Flow workflow
|
|
89
89
|
```
|
|
90
90
|
|
|
91
91
|
---
|
|
92
92
|
|
|
93
93
|
## Phase 0: Documentation (Critical First Step)
|
|
94
94
|
|
|
95
|
-
🚨 **For brownfield projects: Always ensure adequate documentation before planning**
|
|
95
|
+
🚨 **For brownfield projects: Always ensure adequate AI-usable documentation before planning**
|
|
96
|
+
|
|
97
|
+
### Default Recommendation: Run document-project
|
|
98
|
+
|
|
99
|
+
**Best practice:** Run `document-project` workflow unless you have **confirmed, trusted, AI-optimized documentation**.
|
|
100
|
+
|
|
101
|
+
### Why Document-Project is Almost Always the Right Choice
|
|
102
|
+
|
|
103
|
+
Existing documentation often has quality issues that break AI workflows:
|
|
104
|
+
|
|
105
|
+
**Common Problems:**
|
|
106
|
+
|
|
107
|
+
- **Too Much Information (TMI):** Massive markdown files with 10s or 100s of level 2 sections
|
|
108
|
+
- **Out of Date:** Documentation hasn't been updated with recent code changes
|
|
109
|
+
- **Wrong Format:** Written for humans, not AI agents (lacks structure, index, clear patterns)
|
|
110
|
+
- **Incomplete Coverage:** Missing critical architecture, patterns, or setup info
|
|
111
|
+
- **Inconsistent Quality:** Some areas documented well, others not at all
|
|
112
|
+
|
|
113
|
+
**Impact on AI Agents:**
|
|
114
|
+
|
|
115
|
+
- AI agents hit token limits reading massive files
|
|
116
|
+
- Outdated docs cause hallucinations (agent thinks old patterns still apply)
|
|
117
|
+
- Missing structure means agents can't find relevant information
|
|
118
|
+
- Incomplete coverage leads to incorrect assumptions
|
|
119
|
+
|
|
120
|
+
### Documentation Decision Tree
|
|
121
|
+
|
|
122
|
+
**Step 1: Assess Existing Documentation Quality**
|
|
123
|
+
|
|
124
|
+
Ask yourself:
|
|
125
|
+
|
|
126
|
+
- ✅ Is it **current** (updated in last 30 days)?
|
|
127
|
+
- ✅ Is it **AI-optimized** (structured with index.md, clear sections, <500 lines per file)?
|
|
128
|
+
- ✅ Is it **comprehensive** (architecture, patterns, setup all documented)?
|
|
129
|
+
- ✅ Do you **trust** it completely for AI agent consumption?
|
|
96
130
|
|
|
97
|
-
|
|
131
|
+
**If ANY answer is NO → Run `document-project`**
|
|
98
132
|
|
|
99
|
-
|
|
100
|
-
| -------- | --------------------------- | -------------------- | -------- | ------ |
|
|
101
|
-
| **A** | No documentation | Run document-project | Workflow | 10-30m |
|
|
102
|
-
| **B** | Docs exist, no index.md | Run index-docs | Task | 2-5m |
|
|
103
|
-
| **C** | Complete docs with index.md | Skip Phase 0 | - | 0m |
|
|
133
|
+
**Step 2: Check for Massive Documents**
|
|
104
134
|
|
|
105
|
-
|
|
135
|
+
If you have documentation but files are huge (>500 lines, 10+ level 2 sections):
|
|
106
136
|
|
|
107
|
-
**Run
|
|
137
|
+
1. **First:** Run `shard-doc` tool to split large files:
|
|
108
138
|
|
|
109
|
-
|
|
110
|
-
|
|
139
|
+
```bash
|
|
140
|
+
# Load BMad Master or any agent
|
|
141
|
+
bmad/core/tools/shard-doc.xml --input docs/massive-doc.md
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
- Splits on level 2 sections by default
|
|
145
|
+
- Creates organized, manageable files
|
|
146
|
+
- Preserves content integrity
|
|
147
|
+
|
|
148
|
+
2. **Then:** Run `index-docs` task to create navigation:
|
|
149
|
+
|
|
150
|
+
```bash
|
|
151
|
+
bmad/core/tasks/index-docs.xml --directory ./docs
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
3. **Finally:** Validate quality - if sharded docs still seem incomplete/outdated → Run `document-project`
|
|
155
|
+
|
|
156
|
+
### Four Real-World Scenarios
|
|
157
|
+
|
|
158
|
+
| Scenario | You Have | Action | Why |
|
|
159
|
+
| -------- | ------------------------------------------ | -------------------------- | --------------------------------------- |
|
|
160
|
+
| **A** | No documentation | `document-project` | Only option - generate from scratch |
|
|
161
|
+
| **B** | Docs exist but massive/outdated/incomplete | `document-project` | Safer to regenerate than trust bad docs |
|
|
162
|
+
| **C** | Good docs but no structure | `shard-doc` → `index-docs` | Structure existing content for AI |
|
|
163
|
+
| **D** | Confirmed AI-optimized docs with index.md | Skip Phase 0 | Rare - only if you're 100% confident |
|
|
164
|
+
|
|
165
|
+
### Scenario A: No Documentation (Most Common)
|
|
166
|
+
|
|
167
|
+
**Action: Run document-project workflow**
|
|
168
|
+
|
|
169
|
+
1. Load Analyst or Technical Writer (Paige) agent
|
|
170
|
+
2. Run `*document-project`
|
|
111
171
|
3. Choose scan level:
|
|
112
172
|
- **Quick** (2-5min): Pattern analysis, no source reading
|
|
113
173
|
- **Deep** (10-30min): Reads critical paths - **Recommended**
|
|
@@ -119,35 +179,91 @@ You: "Yes"
|
|
|
119
179
|
- `docs/project-overview.md` - Executive summary
|
|
120
180
|
- `docs/architecture.md` - Architecture analysis
|
|
121
181
|
- `docs/source-tree-analysis.md` - Directory structure
|
|
122
|
-
- Additional files based on project type
|
|
182
|
+
- Additional files based on project type (API, web app, etc.)
|
|
183
|
+
|
|
184
|
+
### Scenario B: Docs Exist But Quality Unknown/Poor (Very Common)
|
|
185
|
+
|
|
186
|
+
**Action: Run document-project workflow (regenerate)**
|
|
187
|
+
|
|
188
|
+
Even if `docs/` folder exists, if you're unsure about quality → **regenerate**.
|
|
123
189
|
|
|
124
|
-
|
|
190
|
+
**Why regenerate instead of index?**
|
|
125
191
|
|
|
126
|
-
|
|
192
|
+
- Outdated docs → AI makes wrong assumptions
|
|
193
|
+
- Incomplete docs → AI invents missing information
|
|
194
|
+
- TMI docs → AI hits token limits, misses key info
|
|
195
|
+
- Human-focused docs → Missing AI-critical structure
|
|
127
196
|
|
|
128
|
-
|
|
129
|
-
2. Load task: `bmad/core/tasks/index-docs.xml`
|
|
130
|
-
3. Specify docs directory (e.g., `./docs`)
|
|
131
|
-
4. Task generates `index.md` from existing docs
|
|
197
|
+
**document-project** will:
|
|
132
198
|
|
|
133
|
-
|
|
199
|
+
- Scan actual codebase (source of truth)
|
|
200
|
+
- Generate fresh, accurate documentation
|
|
201
|
+
- Structure properly for AI consumption
|
|
202
|
+
- Include only relevant, current information
|
|
134
203
|
|
|
135
|
-
### Scenario C:
|
|
204
|
+
### Scenario C: Good Docs But Needs Structure
|
|
136
205
|
|
|
137
|
-
|
|
206
|
+
**Action: Shard massive files, then index**
|
|
207
|
+
|
|
208
|
+
If you have **good, current documentation** but it's in massive files:
|
|
209
|
+
|
|
210
|
+
**Step 1: Shard large documents**
|
|
211
|
+
|
|
212
|
+
```bash
|
|
213
|
+
# For each massive doc (>500 lines or 10+ level 2 sections)
|
|
214
|
+
bmad/core/tools/shard-doc.xml \
|
|
215
|
+
--input docs/api-documentation.md \
|
|
216
|
+
--output docs/api/ \
|
|
217
|
+
--level 2 # Split on ## headers (default)
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
**Step 2: Generate index**
|
|
221
|
+
|
|
222
|
+
```bash
|
|
223
|
+
bmad/core/tasks/index-docs.xml --directory ./docs
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
**Step 3: Validate**
|
|
227
|
+
|
|
228
|
+
- Review generated `docs/index.md`
|
|
229
|
+
- Check that sharded files are <500 lines each
|
|
230
|
+
- Verify content is current and accurate
|
|
231
|
+
- **If anything seems off → Run document-project instead**
|
|
232
|
+
|
|
233
|
+
### Scenario D: Confirmed AI-Optimized Documentation (Rare)
|
|
234
|
+
|
|
235
|
+
**Action: Skip Phase 0**
|
|
236
|
+
|
|
237
|
+
Only skip if ALL conditions met:
|
|
238
|
+
|
|
239
|
+
- ✅ `docs/index.md` exists and is comprehensive
|
|
240
|
+
- ✅ Documentation updated within last 30 days
|
|
241
|
+
- ✅ All doc files <500 lines with clear structure
|
|
242
|
+
- ✅ Covers architecture, patterns, setup, API surface
|
|
243
|
+
- ✅ You personally verified quality for AI consumption
|
|
244
|
+
- ✅ Previous AI agents used it successfully
|
|
245
|
+
|
|
246
|
+
**If unsure → Run document-project** (costs 10-30 minutes, saves hours of confusion)
|
|
138
247
|
|
|
139
248
|
### Why document-project is Critical
|
|
140
249
|
|
|
141
|
-
Without
|
|
250
|
+
Without AI-optimized documentation, workflows fail:
|
|
251
|
+
|
|
252
|
+
- **tech-spec** (Quick Flow) can't auto-detect stack/patterns → Makes wrong assumptions
|
|
253
|
+
- **PRD** (BMad Method) can't reference existing code → Designs incompatible features
|
|
254
|
+
- **architecture** can't build on existing structure → Suggests conflicting patterns
|
|
255
|
+
- **story-context** can't inject existing patterns → Dev agent rewrites working code
|
|
256
|
+
- **dev-story** invents implementations → Breaks existing integrations
|
|
257
|
+
|
|
258
|
+
### Key Principle
|
|
142
259
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
- **story-context** can't inject pattern-specific guidance
|
|
260
|
+
**When in doubt, run document-project.**
|
|
261
|
+
|
|
262
|
+
It's better to spend 10-30 minutes generating fresh, accurate docs than to waste hours debugging AI agents working from bad documentation.
|
|
147
263
|
|
|
148
264
|
---
|
|
149
265
|
|
|
150
|
-
## Workflow Phases by
|
|
266
|
+
## Workflow Phases by Track
|
|
151
267
|
|
|
152
268
|
### Phase 1: Analysis (Optional)
|
|
153
269
|
|
|
@@ -155,7 +271,7 @@ Without it, workflows lack context:
|
|
|
155
271
|
|
|
156
272
|
- `brainstorm-project` - Solution exploration
|
|
157
273
|
- `research` - Technical/market research
|
|
158
|
-
- `product-brief` - Strategic planning
|
|
274
|
+
- `product-brief` - Strategic planning (BMad Method/Enterprise tracks only)
|
|
159
275
|
|
|
160
276
|
**When to use:** Complex features, technical decisions, strategic additions
|
|
161
277
|
|
|
@@ -165,24 +281,24 @@ See [Workflows Guide](../workflows/README.md) for details.
|
|
|
165
281
|
|
|
166
282
|
### Phase 2: Planning (Required)
|
|
167
283
|
|
|
168
|
-
**Planning approach adapts by
|
|
284
|
+
**Planning approach adapts by track:**
|
|
169
285
|
|
|
170
|
-
**
|
|
286
|
+
**Quick Flow:** Use `tech-spec` workflow
|
|
171
287
|
|
|
172
288
|
- Creates tech-spec.md
|
|
173
289
|
- Auto-detects existing stack (brownfield)
|
|
174
290
|
- Confirms conventions with you
|
|
175
291
|
- Generates implementation-ready stories
|
|
176
292
|
|
|
177
|
-
**
|
|
293
|
+
**BMad Method/Enterprise:** Use `prd` workflow
|
|
178
294
|
|
|
179
|
-
- Creates PRD.md +
|
|
295
|
+
- Creates PRD.md + epic breakdown
|
|
180
296
|
- References existing architecture
|
|
181
297
|
- Plans integration points
|
|
182
298
|
|
|
183
|
-
**Brownfield-specific:** See [Scale Adaptive System](./scale-adaptive-system.md) for complete workflow paths by
|
|
299
|
+
**Brownfield-specific:** See [Scale Adaptive System](./scale-adaptive-system.md) for complete workflow paths by track.
|
|
184
300
|
|
|
185
|
-
### Phase 3: Solutioning (
|
|
301
|
+
### Phase 3: Solutioning (BMad Method/Enterprise Only)
|
|
186
302
|
|
|
187
303
|
**Critical for brownfield:**
|
|
188
304
|
|
|
@@ -193,12 +309,10 @@ See [Workflows Guide](../workflows/README.md) for details.
|
|
|
193
309
|
|
|
194
310
|
**Workflows:**
|
|
195
311
|
|
|
196
|
-
- `architecture
|
|
197
|
-
- `
|
|
198
|
-
- `create-architecture` - Extend architecture docs (Level 2-4)
|
|
199
|
-
- `solutioning-gate-check` - Validate before implementation (Level 3-4)
|
|
312
|
+
- `create-architecture` - Extend architecture docs (BMad Method/Enterprise)
|
|
313
|
+
- `solutioning-gate-check` - Validate before implementation (BMad Method/Enterprise)
|
|
200
314
|
|
|
201
|
-
### Phase 4: Implementation (All
|
|
315
|
+
### Phase 4: Implementation (All Tracks)
|
|
202
316
|
|
|
203
317
|
**Sprint-based development through story iteration:**
|
|
204
318
|
|
|
@@ -307,10 +421,12 @@ Document in tech-spec/architecture:
|
|
|
307
421
|
|
|
308
422
|
## Common Scenarios
|
|
309
423
|
|
|
310
|
-
### Scenario 1: Bug Fix (
|
|
424
|
+
### Scenario 1: Bug Fix (Quick Flow)
|
|
311
425
|
|
|
312
426
|
**Situation:** Authentication token expiration causing logout issues
|
|
313
427
|
|
|
428
|
+
**Track:** Quick Flow
|
|
429
|
+
|
|
314
430
|
**Workflow:**
|
|
315
431
|
|
|
316
432
|
1. **Document:** Skip if auth system documented, else run `document-project` (Quick scan)
|
|
@@ -326,10 +442,12 @@ Document in tech-spec/architecture:
|
|
|
326
442
|
|
|
327
443
|
---
|
|
328
444
|
|
|
329
|
-
### Scenario 2: Small Feature (
|
|
445
|
+
### Scenario 2: Small Feature (Quick Flow)
|
|
330
446
|
|
|
331
447
|
**Situation:** Add "forgot password" to existing auth system
|
|
332
448
|
|
|
449
|
+
**Track:** Quick Flow
|
|
450
|
+
|
|
333
451
|
**Workflow:**
|
|
334
452
|
|
|
335
453
|
1. **Document:** Run `document-project` (Deep scan of auth module if not documented)
|
|
@@ -346,37 +464,40 @@ Document in tech-spec/architecture:
|
|
|
346
464
|
|
|
347
465
|
---
|
|
348
466
|
|
|
349
|
-
### Scenario 3: Feature Set (
|
|
467
|
+
### Scenario 3: Feature Set (BMad Method)
|
|
350
468
|
|
|
351
469
|
**Situation:** Add user dashboard with analytics, preferences, activity
|
|
352
470
|
|
|
471
|
+
**Track:** BMad Method
|
|
472
|
+
|
|
353
473
|
**Workflow:**
|
|
354
474
|
|
|
355
475
|
1. **Document:** Run `document-project` (Deep scan) - Critical for understanding existing UI patterns
|
|
356
476
|
2. **Analyze:** Load Analyst → `research` (if evaluating analytics libraries)
|
|
357
477
|
3. **Plan:** Load PM → `prd`
|
|
358
|
-
4. **
|
|
478
|
+
4. **Solution:** Load Architect → `create-architecture` → `solutioning-gate-check`
|
|
479
|
+
5. **Implement:** Sprint-based (10-15 stories)
|
|
359
480
|
- Load SM → `sprint-planning`
|
|
360
481
|
- Per epic: `epic-tech-context` → stories
|
|
361
482
|
- Load DEV → `dev-story` per story
|
|
362
|
-
|
|
483
|
+
6. **Review:** Per story completion
|
|
363
484
|
|
|
364
485
|
**Time:** 1-2 weeks
|
|
365
486
|
|
|
366
487
|
---
|
|
367
488
|
|
|
368
|
-
### Scenario 4: Complex Integration (
|
|
489
|
+
### Scenario 4: Complex Integration (BMad Method)
|
|
369
490
|
|
|
370
491
|
**Situation:** Add real-time collaboration to document editor
|
|
371
492
|
|
|
493
|
+
**Track:** BMad Method
|
|
494
|
+
|
|
372
495
|
**Workflow:**
|
|
373
496
|
|
|
374
497
|
1. **Document:** Run `document-project` (Exhaustive if not documented) - **Mandatory**
|
|
375
498
|
2. **Analyze:** Load Analyst → `research` (WebSocket vs WebRTC vs CRDT)
|
|
376
499
|
3. **Plan:** Load PM → `prd`
|
|
377
500
|
4. **Solution:**
|
|
378
|
-
- Load Architect → `architecture-review` (understand existing editor)
|
|
379
|
-
- Load Architect → `integration-planning` (WebSocket integration strategy)
|
|
380
501
|
- Load Architect → `create-architecture` (extend for real-time layer)
|
|
381
502
|
- Load Architect → `solutioning-gate-check`
|
|
382
503
|
5. **Implement:** Sprint-based (20-30 stories)
|
|
@@ -385,10 +506,12 @@ Document in tech-spec/architecture:
|
|
|
385
506
|
|
|
386
507
|
---
|
|
387
508
|
|
|
388
|
-
### Scenario 5: Enterprise Expansion (
|
|
509
|
+
### Scenario 5: Enterprise Expansion (Enterprise Method)
|
|
389
510
|
|
|
390
511
|
**Situation:** Add multi-tenancy to single-tenant SaaS platform
|
|
391
512
|
|
|
513
|
+
**Track:** Enterprise Method
|
|
514
|
+
|
|
392
515
|
**Workflow:**
|
|
393
516
|
|
|
394
517
|
1. **Document:** Run `document-project` (Exhaustive) - **Mandatory**
|
|
@@ -398,7 +521,7 @@ Document in tech-spec/architecture:
|
|
|
398
521
|
- `product-brief` - Strategic document
|
|
399
522
|
3. **Plan:** Load PM → `prd` (comprehensive)
|
|
400
523
|
4. **Solution:**
|
|
401
|
-
- `architecture
|
|
524
|
+
- `create-architecture` - Full system architecture
|
|
402
525
|
- `integration-planning` - Phased migration strategy
|
|
403
526
|
- `create-architecture` - Multi-tenancy architecture
|
|
404
527
|
- `validate-architecture` - External review
|
|
@@ -456,7 +579,7 @@ For complete troubleshooting, see [Troubleshooting Guide](./troubleshooting.md).
|
|
|
456
579
|
- Which existing modules to modify
|
|
457
580
|
- What APIs/services to integrate with
|
|
458
581
|
- Data flow between new and existing code
|
|
459
|
-
4.
|
|
582
|
+
4. Review architecture document for integration guidance
|
|
460
583
|
|
|
461
584
|
### Existing Tests Breaking
|
|
462
585
|
|
|
@@ -504,21 +627,19 @@ document-project # Create comprehensive docs (10-30min)
|
|
|
504
627
|
# Analyst agent:
|
|
505
628
|
brainstorm-project # Explore solutions
|
|
506
629
|
research # Gather data
|
|
507
|
-
product-brief # Strategic planning
|
|
630
|
+
product-brief # Strategic planning (BMad Method/Enterprise only)
|
|
508
631
|
|
|
509
632
|
# Phase 2: Planning (Required)
|
|
510
633
|
# PM agent:
|
|
511
|
-
tech-spec #
|
|
512
|
-
prd #
|
|
634
|
+
tech-spec # Quick Flow track
|
|
635
|
+
prd # BMad Method/Enterprise tracks
|
|
513
636
|
|
|
514
|
-
# Phase 3: Solutioning (
|
|
637
|
+
# Phase 3: Solutioning (BMad Method/Enterprise)
|
|
515
638
|
# Architect agent:
|
|
516
|
-
architecture
|
|
517
|
-
|
|
518
|
-
create-architecture # Extend architecture (L2-4)
|
|
519
|
-
solutioning-gate-check # Final approval (L3-4)
|
|
639
|
+
create-architecture # Extend architecture
|
|
640
|
+
solutioning-gate-check # Final validation
|
|
520
641
|
|
|
521
|
-
# Phase 4: Implementation (All
|
|
642
|
+
# Phase 4: Implementation (All Tracks)
|
|
522
643
|
# SM agent:
|
|
523
644
|
sprint-planning # Initialize tracking
|
|
524
645
|
epic-tech-context # Epic context
|
|
@@ -545,17 +666,17 @@ correct-course # If issues
|
|
|
545
666
|
|
|
546
667
|
**Phase 1-3 Tracking:**
|
|
547
668
|
|
|
548
|
-
- `docs/bmm-workflow-status.
|
|
669
|
+
- `docs/bmm-workflow-status.yaml` - Progress tracker
|
|
549
670
|
|
|
550
671
|
**Phase 2 Planning:**
|
|
551
672
|
|
|
552
|
-
- `docs/tech-spec.md` (
|
|
553
|
-
- `docs/PRD.md` (
|
|
554
|
-
-
|
|
673
|
+
- `docs/tech-spec.md` (Quick Flow track)
|
|
674
|
+
- `docs/PRD.md` (BMad Method/Enterprise tracks)
|
|
675
|
+
- Epic breakdown
|
|
555
676
|
|
|
556
677
|
**Phase 3 Architecture:**
|
|
557
678
|
|
|
558
|
-
- `docs/architecture.md` (
|
|
679
|
+
- `docs/architecture.md` (BMad Method/Enterprise tracks)
|
|
559
680
|
|
|
560
681
|
**Phase 4 Implementation:**
|
|
561
682
|
|
|
@@ -573,13 +694,13 @@ flowchart TD
|
|
|
573
694
|
|
|
574
695
|
START --> CHECK
|
|
575
696
|
CHECK -->|No| DOC[document-project<br/>Deep scan]
|
|
576
|
-
CHECK -->|Yes|
|
|
697
|
+
CHECK -->|Yes| TRACK{What Track?}
|
|
577
698
|
|
|
578
|
-
DOC -->
|
|
699
|
+
DOC --> TRACK
|
|
579
700
|
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
701
|
+
TRACK -->|Quick Flow| TS[tech-spec]
|
|
702
|
+
TRACK -->|BMad Method| PRD[prd → architecture]
|
|
703
|
+
TRACK -->|Enterprise| PRD2[prd → arch + security/devops]
|
|
583
704
|
|
|
584
705
|
TS --> IMPL[Phase 4<br/>Implementation]
|
|
585
706
|
PRD --> IMPL
|
|
@@ -600,7 +721,7 @@ flowchart TD
|
|
|
600
721
|
2. ✅ **Use fresh chats for complex workflows** - Prevents hallucinations
|
|
601
722
|
3. ✅ **Verify files exist before workflows** - Check PRD, epics, stories present
|
|
602
723
|
4. ✅ **Read agent menu first** - Confirm agent has the workflow
|
|
603
|
-
5. ✅ **Start with
|
|
724
|
+
5. ✅ **Start with simpler track if unsure** - Easy to upgrade (Quick Flow → BMad Method)
|
|
604
725
|
6. ✅ **Keep status files updated** - Manual updates when needed
|
|
605
726
|
7. ✅ **Run retrospectives after epics** - Catch issues early
|
|
606
727
|
8. ✅ **Follow phase sequence** - Don't skip required phases
|
|
@@ -609,8 +730,8 @@ flowchart TD
|
|
|
609
730
|
|
|
610
731
|
## Related Documentation
|
|
611
732
|
|
|
612
|
-
- **[Scale Adaptive System](./scale-adaptive-system.md)** - Understanding
|
|
613
|
-
- **[Quick Spec Flow](./quick-spec-flow.md)** - Fast-track for
|
|
733
|
+
- **[Scale Adaptive System](./scale-adaptive-system.md)** - Understanding tracks and complexity
|
|
734
|
+
- **[Quick Spec Flow](./quick-spec-flow.md)** - Fast-track for Quick Flow
|
|
614
735
|
- **[Quick Start Guide](./quick-start.md)** - Getting started with BMM
|
|
615
736
|
- **[Glossary](./glossary.md)** - Key terminology
|
|
616
737
|
- **[FAQ](./faq.md)** - Common questions
|