bmad-method 6.0.0-alpha.4 → 6.0.0-alpha.6

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 (225) hide show
  1. package/.claude/agents/bmad-analysis/api-documenter.md +102 -0
  2. package/.claude/agents/bmad-analysis/codebase-analyzer.md +82 -0
  3. package/.claude/agents/bmad-analysis/data-analyst.md +101 -0
  4. package/.claude/agents/bmad-analysis/pattern-detector.md +84 -0
  5. package/.claude/agents/bmad-planning/dependency-mapper.md +83 -0
  6. package/.claude/agents/bmad-planning/epic-optimizer.md +81 -0
  7. package/.claude/agents/bmad-planning/requirements-analyst.md +61 -0
  8. package/.claude/agents/bmad-planning/technical-decisions-curator.md +168 -0
  9. package/.claude/agents/bmad-planning/trend-spotter.md +115 -0
  10. package/.claude/agents/bmad-planning/user-journey-mapper.md +123 -0
  11. package/.claude/agents/bmad-planning/user-researcher.md +72 -0
  12. package/.claude/agents/bmad-research/market-researcher.md +51 -0
  13. package/.claude/agents/bmad-research/tech-debt-auditor.md +106 -0
  14. package/.claude/agents/bmad-review/document-reviewer.md +102 -0
  15. package/.claude/agents/bmad-review/technical-evaluator.md +68 -0
  16. package/.claude/agents/bmad-review/test-coverage-analyzer.md +108 -0
  17. package/.claude/commands/bmad/bmm/agents/architect.md +0 -1
  18. package/.claude/commands/bmad/bmm/agents/sm.md +1 -1
  19. package/.claude/commands/bmad/bmm/agents/{paige.md → tech-writer.md} +3 -3
  20. package/.claude/commands/bmad/bmm/workflows/README.md +3 -3
  21. package/.claude/commands/bmad/bmm/workflows/epic-tech-context.md +15 -0
  22. package/.claude/commands/bmad/bmm/workflows/prd.md +1 -1
  23. package/.claude/commands/bmad/bmm/workflows/tech-spec.md +3 -3
  24. package/.claude/settings.local.json +3 -8
  25. package/CHANGELOG.md +305 -0
  26. package/CONTRIBUTING.md +1 -13
  27. package/README.md +88 -39
  28. package/bmad/_cfg/agent-manifest.csv +1 -6
  29. package/bmad/_cfg/files-manifest.csv +40 -114
  30. package/bmad/_cfg/ides/claude-code.yaml +4 -3
  31. package/bmad/_cfg/manifest.yaml +3 -4
  32. package/bmad/_cfg/task-manifest.csv +0 -1
  33. package/bmad/_cfg/workflow-manifest.csv +3 -7
  34. package/bmad/bmb/config.yaml +2 -2
  35. package/bmad/bmb/workflows/audit-workflow/instructions.md +1 -1
  36. package/bmad/bmm/README.md +79 -120
  37. package/bmad/bmm/agents/architect.md +0 -1
  38. package/bmad/bmm/agents/sm.md +1 -1
  39. package/bmad/bmm/agents/{paige.md → tech-writer.md} +3 -3
  40. package/bmad/bmm/config.yaml +4 -3
  41. package/bmad/bmm/tasks/daily-standup.xml +1 -1
  42. package/bmad/bmm/workflows/2-plan-workflows/create-ux-design/instructions.md +1 -19
  43. package/bmad/bmm/workflows/2-plan-workflows/prd/checklist.md +10 -9
  44. package/bmad/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/epics-template.md +23 -34
  45. package/bmad/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/instructions.md +105 -331
  46. package/bmad/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/workflow.yaml +23 -11
  47. package/bmad/bmm/workflows/2-plan-workflows/prd/instructions.md +23 -38
  48. package/bmad/bmm/workflows/2-plan-workflows/prd/workflow.yaml +1 -1
  49. package/bmad/bmm/workflows/2-plan-workflows/tech-spec/epics-template.md +38 -16
  50. package/bmad/bmm/workflows/2-plan-workflows/tech-spec/instructions.md +1 -19
  51. package/bmad/bmm/workflows/2-plan-workflows/tech-spec/user-story-template.md +35 -32
  52. package/bmad/bmm/workflows/2-plan-workflows/tech-spec/workflow.yaml +2 -2
  53. package/bmad/bmm/workflows/3-solutioning/architecture/instructions.md +7 -18
  54. package/bmad/bmm/workflows/3-solutioning/solutioning-gate-check/instructions.md +1 -18
  55. package/bmad/bmm/workflows/3-solutioning/solutioning-gate-check/workflow.yaml +6 -6
  56. package/bmad/bmm/workflows/4-implementation/epic-tech-context/workflow.yaml +1 -1
  57. package/bmad/bmm/workflows/techdoc/documentation-standards.md +26 -2
  58. package/bmad/bmm/workflows/testarch/atdd/atdd-checklist-template.md +2 -2
  59. package/bmad/bmm/workflows/workflow-status/init/instructions.md +623 -242
  60. package/bmad/bmm/workflows/workflow-status/paths/enterprise-brownfield.yaml +120 -0
  61. package/bmad/bmm/workflows/workflow-status/paths/enterprise-greenfield.yaml +108 -0
  62. package/bmad/bmm/workflows/workflow-status/paths/{brownfield-level-3.yaml → method-brownfield.yaml} +33 -31
  63. package/{src/modules/bmm/workflows/workflow-status/paths/greenfield-level-2.yaml → bmad/bmm/workflows/workflow-status/paths/method-greenfield.yaml} +31 -21
  64. package/bmad/bmm/workflows/workflow-status/paths/{brownfield-level-1.yaml → quick-flow-brownfield.yaml} +18 -18
  65. package/bmad/bmm/workflows/workflow-status/paths/{greenfield-level-1.yaml → quick-flow-greenfield.yaml} +16 -18
  66. package/bmad/bmm/workflows/workflow-status/workflow-status-template.yaml +4 -4
  67. package/bmad/core/config.yaml +2 -2
  68. package/bmad/core/tasks/workflow.xml +1 -11
  69. package/package.json +1 -1
  70. package/src/core/tasks/workflow.xml +1 -11
  71. package/src/modules/bmb/workflows/audit-workflow/instructions.md +1 -1
  72. package/src/modules/bmm/README.md +1 -1
  73. package/src/modules/bmm/_module-installer/install-config.yaml +5 -0
  74. package/src/modules/bmm/agents/architect.agent.yaml +0 -4
  75. package/src/modules/bmm/agents/game-dev.agent.yaml +8 -12
  76. package/src/modules/bmm/agents/sm.agent.yaml +1 -1
  77. package/src/modules/bmm/agents/{paige.agent.yaml → tech-writer.agent.yaml} +4 -4
  78. package/src/modules/bmm/docs/README.md +19 -18
  79. package/src/modules/bmm/docs/agents-guide.md +47 -99
  80. package/src/modules/bmm/docs/brownfield-guide.md +216 -96
  81. package/src/modules/bmm/docs/enterprise-agentic-development.md +380 -740
  82. package/src/modules/bmm/docs/faq.md +16 -16
  83. package/src/modules/bmm/docs/glossary.md +44 -50
  84. package/src/modules/bmm/docs/party-mode.md +110 -1122
  85. package/src/modules/bmm/docs/quick-spec-flow.md +36 -36
  86. package/src/modules/bmm/docs/quick-start.md +34 -34
  87. package/src/modules/bmm/docs/scale-adaptive-system.md +304 -454
  88. package/{bmad/bmm/testarch/README.md → src/modules/bmm/docs/test-architecture.md} +56 -38
  89. package/src/modules/bmm/docs/troubleshooting.md +7 -7
  90. package/src/modules/bmm/docs/workflows-analysis.md +64 -28
  91. package/src/modules/bmm/docs/workflows-implementation.md +196 -1671
  92. package/src/modules/bmm/docs/workflows-planning.md +74 -35
  93. package/src/modules/bmm/docs/workflows-solutioning.md +47 -17
  94. package/src/modules/bmm/tasks/daily-standup.xml +1 -1
  95. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/instructions.md +1 -19
  96. package/src/modules/bmm/workflows/2-plan-workflows/prd/checklist.md +10 -9
  97. package/src/modules/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/epics-template.md +23 -34
  98. package/src/modules/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/instructions.md +105 -331
  99. package/src/modules/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/workflow.yaml +23 -11
  100. package/src/modules/bmm/workflows/2-plan-workflows/prd/instructions.md +23 -38
  101. package/src/modules/bmm/workflows/2-plan-workflows/prd/workflow.yaml +2 -2
  102. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/epics-template.md +38 -16
  103. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/instructions.md +1 -19
  104. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/user-story-template.md +35 -32
  105. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/workflow.yaml +2 -2
  106. package/src/modules/bmm/workflows/3-solutioning/architecture/instructions.md +7 -18
  107. package/src/modules/bmm/workflows/3-solutioning/solutioning-gate-check/instructions.md +1 -18
  108. package/src/modules/bmm/workflows/3-solutioning/solutioning-gate-check/workflow.yaml +6 -6
  109. package/src/modules/bmm/workflows/4-implementation/epic-tech-context/workflow.yaml +1 -1
  110. package/src/modules/bmm/workflows/techdoc/documentation-standards.md +25 -2
  111. package/src/modules/bmm/workflows/testarch/atdd/atdd-checklist-template.md +2 -2
  112. package/src/modules/bmm/workflows/workflow-status/init/instructions.md +623 -242
  113. package/src/modules/bmm/workflows/workflow-status/paths/enterprise-brownfield.yaml +120 -0
  114. package/src/modules/bmm/workflows/workflow-status/paths/enterprise-greenfield.yaml +108 -0
  115. package/src/modules/bmm/workflows/workflow-status/paths/{brownfield-level-3.yaml → method-brownfield.yaml} +33 -31
  116. package/{bmad/bmm/workflows/workflow-status/paths/greenfield-level-2.yaml → src/modules/bmm/workflows/workflow-status/paths/method-greenfield.yaml} +31 -21
  117. package/src/modules/bmm/workflows/workflow-status/paths/{brownfield-level-1.yaml → quick-flow-brownfield.yaml} +18 -18
  118. package/src/modules/bmm/workflows/workflow-status/paths/{greenfield-level-1.yaml → quick-flow-greenfield.yaml} +16 -18
  119. package/src/modules/bmm/workflows/workflow-status/workflow-status-template.yaml +4 -4
  120. package/tools/cli/installers/lib/core/config-collector.js +39 -11
  121. package/tools/cli/installers/lib/core/ide-config-manager.js +3 -1
  122. package/tools/cli/installers/lib/core/installer.js +20 -9
  123. package/tools/cli/installers/lib/core/manifest-generator.js +3 -1
  124. package/tools/cli/installers/lib/core/manifest.js +6 -2
  125. package/tools/cli/installers/lib/modules/manager.js +6 -0
  126. package/tools/cli/lib/config.js +3 -1
  127. package/tools/cli/lib/ui.js +5 -5
  128. package/tools/cli/lib/yaml-format.js +2 -1
  129. package/tools/schema/agent.js +2 -0
  130. package/.claude/commands/bmad/bmm/workflows/tech-spec-sm.md +0 -15
  131. package/bmad/_cfg/agents/cis-brainstorming-coach.customize.yaml +0 -42
  132. package/bmad/_cfg/agents/cis-creative-problem-solver.customize.yaml +0 -42
  133. package/bmad/_cfg/agents/cis-design-thinking-coach.customize.yaml +0 -42
  134. package/bmad/_cfg/agents/cis-innovation-strategist.customize.yaml +0 -42
  135. package/bmad/_cfg/agents/cis-storyteller.customize.yaml +0 -42
  136. package/bmad/bmb/agents/bmad-builder.md.bak +0 -70
  137. package/bmad/bmb/workflows/audit-workflow/workflow.yaml.bak +0 -23
  138. package/bmad/bmb/workflows/create-module/workflow.yaml.bak +0 -42
  139. package/bmad/bmb/workflows/create-workflow/workflow-template/workflow.yaml.bak +0 -39
  140. package/bmad/bmb/workflows/create-workflow/workflow.yaml.bak +0 -40
  141. package/bmad/bmb/workflows/edit-agent/workflow.yaml.bak +0 -33
  142. package/bmad/bmb/workflows/edit-module/workflow.yaml.bak +0 -34
  143. package/bmad/bmb/workflows/edit-workflow/workflow.yaml.bak +0 -27
  144. package/bmad/bmb/workflows/module-brief/workflow.yaml.bak +0 -29
  145. package/bmad/bmb/workflows/redoc/workflow.yaml.bak +0 -32
  146. package/bmad/bmm/docs/brownfield-guide.md +0 -1260
  147. package/bmad/bmm/docs/quick-spec-flow.md +0 -645
  148. package/bmad/bmm/docs/quick-start.md +0 -341
  149. package/bmad/bmm/docs/scale-adaptive-system.md +0 -1045
  150. package/bmad/bmm/tasks/retrospective.xml +0 -104
  151. package/bmad/bmm/workflows/1-analysis/brainstorm-project/README.md +0 -113
  152. package/bmad/bmm/workflows/1-analysis/product-brief/README.md +0 -180
  153. package/bmad/bmm/workflows/1-analysis/research/README.md +0 -454
  154. package/bmad/bmm/workflows/2-plan-workflows/README.md +0 -258
  155. package/bmad/bmm/workflows/3-solutioning/README.md +0 -1
  156. package/bmad/bmm/workflows/3-solutioning/architecture/README.md +0 -318
  157. package/bmad/bmm/workflows/3-solutioning/solutioning-gate-check/README.md +0 -177
  158. package/bmad/bmm/workflows/4-implementation/README.md +0 -221
  159. package/bmad/bmm/workflows/4-implementation/code-review/README.md +0 -69
  160. package/bmad/bmm/workflows/4-implementation/correct-course/README.md +0 -73
  161. package/bmad/bmm/workflows/4-implementation/create-story/README.md +0 -146
  162. package/bmad/bmm/workflows/4-implementation/dev-story/README.md +0 -206
  163. package/bmad/bmm/workflows/4-implementation/epic-tech-context/README.md +0 -195
  164. package/bmad/bmm/workflows/4-implementation/retrospective/README.md +0 -77
  165. package/bmad/bmm/workflows/4-implementation/sprint-planning/README.md +0 -156
  166. package/bmad/bmm/workflows/4-implementation/story-context/README.md +0 -234
  167. package/bmad/bmm/workflows/README.md +0 -256
  168. package/bmad/bmm/workflows/document-project/README.md +0 -444
  169. package/bmad/bmm/workflows/document-project/templates/README.md +0 -38
  170. package/bmad/bmm/workflows/testarch/README.md +0 -26
  171. package/bmad/bmm/workflows/testarch/atdd/README.md +0 -672
  172. package/bmad/bmm/workflows/testarch/automate/README.md +0 -869
  173. package/bmad/bmm/workflows/testarch/ci/README.md +0 -493
  174. package/bmad/bmm/workflows/testarch/framework/README.md +0 -340
  175. package/bmad/bmm/workflows/testarch/nfr-assess/README.md +0 -469
  176. package/bmad/bmm/workflows/testarch/test-design/README.md +0 -493
  177. package/bmad/bmm/workflows/testarch/test-review/README.md +0 -775
  178. package/bmad/bmm/workflows/testarch/trace/README.md +0 -802
  179. package/bmad/bmm/workflows/workflow-status/README.md +0 -260
  180. package/bmad/bmm/workflows/workflow-status/paths/brownfield-level-0.yaml +0 -54
  181. package/bmad/bmm/workflows/workflow-status/paths/brownfield-level-2.yaml +0 -76
  182. package/bmad/bmm/workflows/workflow-status/paths/brownfield-level-4.yaml +0 -88
  183. package/bmad/bmm/workflows/workflow-status/paths/greenfield-level-0.yaml +0 -45
  184. package/bmad/bmm/workflows/workflow-status/paths/greenfield-level-3.yaml +0 -73
  185. package/bmad/bmm/workflows/workflow-status/paths/greenfield-level-4.yaml +0 -75
  186. package/bmad/cis/README.md +0 -153
  187. package/bmad/cis/agents/README.md +0 -104
  188. package/bmad/cis/agents/brainstorming-coach.md +0 -62
  189. package/bmad/cis/agents/creative-problem-solver.md +0 -62
  190. package/bmad/cis/agents/design-thinking-coach.md +0 -62
  191. package/bmad/cis/agents/innovation-strategist.md +0 -62
  192. package/bmad/cis/agents/storyteller.md +0 -59
  193. package/bmad/cis/config.yaml +0 -10
  194. package/bmad/cis/teams/creative-squad.yaml +0 -6
  195. package/bmad/cis/workflows/README.md +0 -139
  196. package/bmad/cis/workflows/design-thinking/README.md +0 -56
  197. package/bmad/cis/workflows/design-thinking/design-methods.csv +0 -31
  198. package/bmad/cis/workflows/design-thinking/instructions.md +0 -200
  199. package/bmad/cis/workflows/design-thinking/template.md +0 -111
  200. package/bmad/cis/workflows/design-thinking/workflow.yaml +0 -32
  201. package/bmad/cis/workflows/innovation-strategy/README.md +0 -56
  202. package/bmad/cis/workflows/innovation-strategy/innovation-frameworks.csv +0 -31
  203. package/bmad/cis/workflows/innovation-strategy/instructions.md +0 -274
  204. package/bmad/cis/workflows/innovation-strategy/template.md +0 -189
  205. package/bmad/cis/workflows/innovation-strategy/workflow.yaml +0 -32
  206. package/bmad/cis/workflows/problem-solving/README.md +0 -56
  207. package/bmad/cis/workflows/problem-solving/instructions.md +0 -250
  208. package/bmad/cis/workflows/problem-solving/solving-methods.csv +0 -31
  209. package/bmad/cis/workflows/problem-solving/template.md +0 -165
  210. package/bmad/cis/workflows/problem-solving/workflow.yaml +0 -32
  211. package/bmad/cis/workflows/storytelling/README.md +0 -58
  212. package/bmad/cis/workflows/storytelling/instructions.md +0 -291
  213. package/bmad/cis/workflows/storytelling/story-types.csv +0 -26
  214. package/bmad/cis/workflows/storytelling/template.md +0 -113
  215. package/bmad/cis/workflows/storytelling/workflow.yaml +0 -32
  216. package/bmad/core/agents/bmad-master.md.bak +0 -69
  217. package/src/modules/bmm/docs/brownfield-guide.md.backup +0 -1324
  218. package/src/modules/bmm/docs/workflows-testing.md +0 -1572
  219. package/src/modules/bmm/workflows/workflow-status/paths/brownfield-level-0.yaml +0 -54
  220. package/src/modules/bmm/workflows/workflow-status/paths/brownfield-level-2.yaml +0 -76
  221. package/src/modules/bmm/workflows/workflow-status/paths/brownfield-level-4.yaml +0 -88
  222. package/src/modules/bmm/workflows/workflow-status/paths/greenfield-level-0.yaml +0 -45
  223. package/src/modules/bmm/workflows/workflow-status/paths/greenfield-level-3.yaml +0 -73
  224. package/src/modules/bmm/workflows/workflow-status/paths/greenfield-level-4.yaml +0 -75
  225. /package/bmad/_cfg/agents/{bmm-paige.customize.yaml → bmm-tech-writer.customize.yaml} +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 Project Levels
38
+ ### Understanding Planning Tracks
39
39
 
40
- For complete level details, see [Scale Adaptive System](./scale-adaptive-system.md).
40
+ For complete track details, see [Scale Adaptive System](./scale-adaptive-system.md).
41
41
 
42
- **Brownfield levels at a glance:**
42
+ **Brownfield tracks at a glance:**
43
43
 
44
- | Level | Scope | Stories | Key Difference |
45
- | ----- | -------------------- | ------- | ---------------------------------- |
46
- | **0** | Bug fix | 1 | Must understand affected code |
47
- | **1** | Small feature | 1-10 | Respect existing patterns |
48
- | **2** | Feature set | 5-15 | Integrate with architecture |
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
- ### Level Detection for Brownfield
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" → Level 0, "add feature" → Level 1, "dashboard" → Level 2
73
- - Story count estimation
74
- - Confirms suggested level with you
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 Level 3 PRD, New Level 0 Work**
78
+ **Example: Old Complex PRD, New Simple Work**
79
79
 
80
80
  ```
81
- System: "Found PRD.md (Level 3, 30 stories, 6 months old)"
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: "Level 0 brownfield. Correct?"
86
+ System: "Quick Flow track (tech-spec approach). Correct?"
87
87
  You: "Yes"
88
- ✅ Creates Level 0 workflow
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
- ### Three Scenarios
131
+ **If ANY answer is NO → Run `document-project`**
98
132
 
99
- | Scenario | You Have | Action | Tool | Time |
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
- ### Scenario A: No Documentation
135
+ If you have documentation but files are huge (>500 lines, 10+ level 2 sections):
106
136
 
107
- **Run document-project workflow:**
137
+ 1. **First:** Run `shard-doc` tool to split large files:
108
138
 
109
- 1. Load Analyst agent
110
- 2. Run "document-project"
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
- ### Scenario B: Docs Exist, No Index
190
+ **Why regenerate instead of index?**
125
191
 
126
- **Run index-docs task:**
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
- 1. Load BMad Master agent (or any agent with task access)
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
- **Why index.md matters:** Primary entry point for AI agents. Provides structured navigation even when good docs exist.
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: Complete Documentation
204
+ ### Scenario C: Good Docs But Needs Structure
136
205
 
137
- If `docs/index.md` exists with comprehensive content, skip to Phase 1 or 2.
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 it, workflows lack context:
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
- - **tech-spec** (Level 0-1) can't auto-detect stack/patterns
144
- - **PRD** (Level 2-4) can't reference existing code
145
- - **architecture** (Level 3-4) can't build on existing structure
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 Level
266
+ ## Workflow Phases by Track
151
267
 
152
268
  ### Phase 1: Analysis (Optional)
153
269
 
@@ -155,34 +271,34 @@ 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
 
162
278
  **When to skip:** Bug fixes, well-understood features, time-sensitive changes
163
279
 
164
- See [Workflows Guide](../workflows/README.md) for details.
280
+ See the [Workflows section in BMM README](../README.md) for details.
165
281
 
166
282
  ### Phase 2: Planning (Required)
167
283
 
168
- **Planning approach adapts by level:**
284
+ **Planning approach adapts by track:**
169
285
 
170
- **Level 0-1:** Use `tech-spec` workflow
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
- **Level 2-4:** Use `prd` workflow
293
+ **BMad Method/Enterprise:** Use `prd` workflow
178
294
 
179
- - Creates PRD.md + epics.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 level.
299
+ **Brownfield-specific:** See [Scale Adaptive System](./scale-adaptive-system.md) for complete workflow paths by track.
184
300
 
185
- ### Phase 3: Solutioning (Level 2-4 Only)
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-review` - Understand existing (Level 3-4)
197
- - `integration-planning` - Plan integration approach (Level 3-4)
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 Levels)
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 (Level 0)
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 (Level 1)
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 (Level 2)
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. **Implement:** Sprint-based (10-15 stories)
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
- 5. **Review:** Per story completion
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 (Level 3)
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 (Level 4)
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-review` - Full system review
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. Run `integration-planning` workflow (Level 3-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 # Level 0-1
512
- prd # Level 2-4
634
+ tech-spec # Quick Flow track
635
+ prd # BMad Method/Enterprise tracks
513
636
 
514
- # Phase 3: Solutioning (Level 2-4)
637
+ # Phase 3: Solutioning (BMad Method/Enterprise)
515
638
  # Architect agent:
516
- architecture-review # Review existing (L3-4)
517
- integration-planning # Plan integration (L3-4)
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 Levels)
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.md` - Progress tracker
669
+ - `docs/bmm-workflow-status.yaml` - Progress tracker
549
670
 
550
671
  **Phase 2 Planning:**
551
672
 
552
- - `docs/tech-spec.md` (Level 0-1)
553
- - `docs/PRD.md` (Level 2-4)
554
- - `docs/epics.md` (Level 2-4)
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` (Level 2-4)
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| LEVEL{What Level?}
697
+ CHECK -->|Yes| TRACK{What Track?}
577
698
 
578
- DOC --> LEVEL
699
+ DOC --> TRACK
579
700
 
580
- LEVEL -->|0-1| TS[tech-spec]
581
- LEVEL -->|2| PRD[prd]
582
- LEVEL -->|3-4| PRD2[prd → architecture]
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 smaller level if unsure** - Easy to upgrade (L1L2)
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,17 +730,17 @@ flowchart TD
609
730
 
610
731
  ## Related Documentation
611
732
 
612
- - **[Scale Adaptive System](./scale-adaptive-system.md)** - Understanding levels and complexity
613
- - **[Quick Spec Flow](./quick-spec-flow.md)** - Fast-track for Level 0-1
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
617
738
  - **[Troubleshooting](./troubleshooting.md)** - Problem resolution
618
- - **[Workflows Guide](../workflows/README.md)** - Complete workflow reference
739
+ - **[Workflow Documentation](./README.md#-workflow-guides)** - Complete workflow reference
619
740
 
620
741
  ---
621
742
 
622
- ## Support & Resources
743
+ ## Support and Resources
623
744
 
624
745
  **Community:**
625
746
 
@@ -629,9 +750,8 @@ flowchart TD
629
750
 
630
751
  **Documentation:**
631
752
 
632
- - [BMM Workflows Guide](../workflows/README.md)
633
- - [Test Architect Guide](../testarch/README.md)
634
- - [BMM Module README](../README.md)
753
+ - [Test Architect Guide](./test-architecture.md) - Comprehensive testing strategy
754
+ - [BMM Module README](../README.md) - Complete module and workflow reference
635
755
 
636
756
  ---
637
757