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
@@ -1,221 +0,0 @@
1
- # Phase 4: Implementation
2
-
3
- ## Overview
4
-
5
- Phase 4 is where planning transitions into actual development. This phase manages the iterative implementation of stories defined in the epic files, tracking their progress through a well-defined status workflow.
6
-
7
- ## Status Definitions
8
-
9
- ### Epic Status
10
-
11
- Epics progress through a simple two-state flow:
12
-
13
- | Status | Description | Next Status |
14
- | ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
15
- | **backlog** | Epic exists in epic file but technical context has not been created | contexted |
16
- | **contexted** | Epic technical context has been created via `epic-tech-context` workflow. This is a prerequisite before any stories in the epic can be drafted. | - |
17
-
18
- **File Indicators:**
19
-
20
- - `backlog`: No `epic-{n}-context.md` file exists
21
- - `contexted`: `{output_folder}/epic-{n}-context.md` file exists
22
-
23
- ### Story Status
24
-
25
- Stories progress through a six-state flow representing their journey from idea to implementation:
26
-
27
- | Status | Description | Set By | Next Status |
28
- | ----------------- | ---------------------------------------------------------------------------------- | ------------- | ------------- |
29
- | **backlog** | Story only exists in the epic file, no work has begun | Initial state | drafted |
30
- | **drafted** | Story file has been created via `create-story` workflow | SM Agent | ready-for-dev |
31
- | **ready-for-dev** | Story has been drafted, approved, and context created via `story-context` workflow | SM Agent | in-progress |
32
- | **in-progress** | Developer is actively implementing the story | Dev Agent | review |
33
- | **review** | Implementation complete, under SM review via `code-review` workflow | Dev Agent | done |
34
- | **done** | Story has been reviewed and completed | Dev Agent | - |
35
-
36
- **File Indicators:**
37
-
38
- - `backlog`: No story file exists
39
- - `drafted`: `{story_dir}/{story-key}.md` file exists (e.g., `1-1-user-auth.md`)
40
- - `ready-for-dev`: Both story file and context exist (e.g., `1-1-user-auth-context.md`)
41
- - `in-progress`, `review`, `done`: Manual status updates in sprint-status.yaml
42
-
43
- ### Retrospective Status
44
-
45
- Optional retrospectives can be completed after an epic:
46
-
47
- | Status | Description |
48
- | ------------- | -------------------------------------------------- |
49
- | **optional** | Retrospective can be completed but is not required |
50
- | **completed** | Retrospective has been completed |
51
-
52
- ## Status Transitions
53
-
54
- ### Epic Flow
55
-
56
- ```mermaid
57
- graph LR
58
- backlog --> contexted[contexted via epic-tech-context]
59
- ```
60
-
61
- ### Story Flow
62
-
63
- ```mermaid
64
- graph LR
65
- backlog --> drafted[drafted via create-story]
66
- drafted --> ready[ready-for-dev via story-context]
67
- ready --> progress[in-progress - dev starts]
68
- progress --> review[review via code-review]
69
- review --> done[done - dev completes]
70
- ```
71
-
72
- ## Sprint Status Management
73
-
74
- The `sprint-status.yaml` file is the single source of truth for tracking all work items. It contains:
75
-
76
- - All epics with their current status
77
- - All stories with their current status
78
- - Retrospective placeholders for each epic
79
- - Clear documentation of status definitions
80
-
81
- ### Example Sprint Status File
82
-
83
- ```yaml
84
- development_status:
85
- epic-1: contexted
86
- 1-1-project-foundation: done
87
- 1-2-app-shell: done
88
- 1-3-user-authentication: in-progress
89
- 1-4-plant-data-model: ready-for-dev
90
- 1-5-add-plant-manual: drafted
91
- 1-6-photo-identification: backlog
92
- 1-7-plant-naming: backlog
93
- epic-1-retrospective: optional
94
-
95
- epic-2: backlog
96
- 2-1-personality-system: backlog
97
- 2-2-chat-interface: backlog
98
- 2-3-llm-integration: backlog
99
- epic-2-retrospective: optional
100
- ```
101
-
102
- ## Workflows in Phase 4
103
-
104
- ### Core Workflows
105
-
106
- | Workflow | Purpose | Updates Status |
107
- | --------------------- | -------------------------------------------------- | ----------------------------------- |
108
- | **sprint-planning** | Generate/update sprint-status.yaml from epic files | Auto-detects file-based statuses |
109
- | **epic-tech-context** | Create technical context for an epic | epic: backlog → contexted |
110
- | **create-story** | Draft a story from epics/PRD | story: backlog → drafted |
111
- | **story-context** | Add implementation context to story | story: drafted → ready-for-dev |
112
- | **dev-story** | Developer implements the story | story: ready-for-dev → in-progress |
113
- | **code-review** | SM reviews implementation | story: in-progress → review |
114
- | **retrospective** | Conduct epic retrospective | retrospective: optional → completed |
115
- | **correct-course** | Course correction when needed | Various status updates |
116
-
117
- ### Sprint Planning Workflow
118
-
119
- The `sprint-planning` workflow is the foundation of Phase 4. It:
120
-
121
- 1. **Parses all epic files** (`epic*.md` or `epics.md`)
122
- 2. **Extracts all epics and stories** maintaining their order
123
- 3. **Auto-detects current status** based on existing files:
124
- - Checks for epic context files
125
- - Checks for story files
126
- - Checks for story context files
127
- 4. **Generates sprint-status.yaml** with current reality
128
- 5. **Preserves manual status updates** (won't downgrade statuses)
129
-
130
- Run this workflow:
131
-
132
- - Initially after Phase 3 completion
133
- - After creating epic contexts
134
- - Periodically to sync file-based status
135
- - To verify current project state
136
-
137
- ### Workflow Guidelines
138
-
139
- 1. **Epic Context First**: Epics should be contexted before drafting their stories
140
- 2. **Flexible Parallelism**: Multiple stories can be in-progress based on team capacity
141
- 3. **Sequential Default**: Stories within an epic are typically worked in order
142
- 4. **Learning Transfer**: SM drafts next story after previous is done, incorporating learnings
143
- 5. **Review Flow**: Dev moves to review, SM reviews, Dev moves to done
144
-
145
- ## Agent Responsibilities
146
-
147
- ### SM (Scrum Master) Agent
148
-
149
- - Run `sprint-planning` to generate initial status
150
- - Create epic contexts (`epic-tech-context`)
151
- - Draft stories (`create-story`)
152
- - Create story contexts (`story-context`)
153
- - Review completed work (`code-review`)
154
- - Update status in sprint-status.yaml
155
-
156
- ### Developer Agent
157
-
158
- - Check sprint-status.yaml for `ready-for-dev` stories
159
- - Update status to `in-progress` when starting
160
- - Implement stories (`dev-story`)
161
- - Move to `review` when complete
162
- - Address review feedback
163
- - Update to `done` after approval
164
-
165
- ### Test Architect
166
-
167
- - Monitor stories entering `review` status
168
- - Track epic progress
169
- - Identify when retrospectives needed
170
- - Validate implementation quality
171
-
172
- ## Best Practices
173
-
174
- 1. **Always run sprint-planning first** to establish current state
175
- 2. **Update status immediately** as work progresses
176
- 3. **Check sprint-status.yaml** before starting any work
177
- 4. **Preserve learning** by drafting stories sequentially when possible
178
- 5. **Document decisions** in story and context files
179
-
180
- ## Naming Conventions
181
-
182
- ### Story File Naming
183
-
184
- - Format: `{epic}-{story}-{kebab-title}.md`
185
- - Example: `1-1-user-authentication.md`
186
- - Avoids YAML float parsing issues (1.1 vs 1.10)
187
- - Makes files self-descriptive
188
-
189
- ### Git Branch Naming
190
-
191
- - Format: `feat/{epic}-{story}-{kebab-title}`
192
- - Example: `feat/1-1-user-authentication`
193
- - Consistent with story file naming
194
- - Clean for branch management
195
-
196
- ## File Structure
197
-
198
- ```
199
- {output_folder}/
200
- ├── sprint-status.yaml # Sprint status tracking
201
- ├── epic*.md or epics.md # Epic definitions
202
- ├── epic-1-context.md # Epic technical contexts
203
- ├── epic-2-context.md
204
- └── stories/
205
- ├── 1-1-user-authentication.md # Story drafts
206
- ├── 1-1-user-authentication-context.md # Story contexts
207
- ├── 1-2-account-management.md
208
- ├── 1-2-account-management-context.md
209
- └── ...
210
- ```
211
-
212
- ## Next Steps
213
-
214
- After Phase 4 implementation, projects typically move to:
215
-
216
- - Deployment and release
217
- - User acceptance testing
218
- - Production monitoring
219
- - Maintenance and updates
220
-
221
- The sprint-status.yaml file provides a complete audit trail of the development process and can be used for project reporting and retrospectives.
@@ -1,69 +0,0 @@
1
- # Review Story (Senior Developer Code Review)
2
-
3
- Perform an AI-driven Senior Developer Code Review on a story flagged "Ready for Review". The workflow ingests the story, its Story Context, and the epic’s Tech Spec, consults local docs, uses enabled MCP servers for up-to-date best practices (with web search fallback), and appends structured review notes to the story.
4
-
5
- ## What It Does
6
-
7
- - Auto-discovers the target story or accepts an explicit `story_path`
8
- - Verifies the story is in a reviewable state (e.g., Ready for Review/Review)
9
- - Loads Story Context (from Dev Agent Record → Context Reference or auto-discovery)
10
- - Locates the epic Tech Spec and relevant architecture/standards docs
11
- - Uses MCP servers for best-practices and security references; falls back to web search
12
- - Reviews implementation vs Acceptance Criteria, Tech Spec, and repo standards
13
- - Evaluates code quality, security, and test coverage
14
- - Appends a "Senior Developer Review (AI)" section to the story with findings and action items
15
- - Optionally updates story Status based on outcome
16
-
17
- ## How to Invoke
18
-
19
- - Tell the Dev Agent to perform a \*code-review after loading the dev agent. This is a context intensive operation so this should not be done in the same context as a just completed dev session - clear the context, reload the dev, then run code-review!
20
-
21
- ## Inputs and Variables
22
-
23
- - `story_path` (optional): Explicit path to a story file
24
- - `story_dir` (from config): `{project-root}/bmad/bmm/config.yaml` → `dev_story_location`
25
- - `allow_status_values`: Defaults include `Ready for Review`, `Review`
26
- - `auto_discover_context` (default: true)
27
- - `auto_discover_tech_spec` (default: true)
28
- - `tech_spec_glob_template`: `tech-spec-epic-{{epic_num}}*.md`
29
- - `arch_docs_search_dirs`: Defaults to `docs/` and `outputs/`
30
- - `enable_mcp_doc_search` (default: true)
31
- - `enable_web_fallback` (default: true)
32
- - `update_status_on_result` (default: false)
33
-
34
- ## Story Updates
35
-
36
- - Appends a section titled: `Senior Developer Review (AI)` at the end
37
- - Adds a Change Log entry: "Senior Developer Review notes appended"
38
- - If enabled, updates `Status` based on outcome
39
-
40
- ## Persistence and Backlog
41
-
42
- To ensure review findings become actionable work, the workflow can persist action items to multiple targets (configurable):
43
-
44
- - Story tasks: Inserts unchecked items under `Tasks / Subtasks` in a "Review Follow-ups (AI)" subsection so `dev-story` can pick them up next.
45
- - Story review section: Keeps a full list under "Senior Developer Review (AI) → Action Items".
46
- - Backlog file: Appends normalized rows to `docs/backlog.md` (created if missing) for cross-cutting or longer-term improvements.
47
- - Epic follow-ups: If an epic Tech Spec is found, appends to its `Post-Review Follow-ups` section.
48
-
49
- Configure via `workflow.yaml` variables:
50
-
51
- - `persist_action_items` (default: true)
52
- - `persist_targets`: `story_tasks`, `story_review_section`, `backlog_file`, `epic_followups`
53
- - `backlog_file` (default: `{project-root}/docs/backlog.md`)
54
- - `update_epic_followups` (default: true)
55
- - `epic_followups_section_title` (default: `Post-Review Follow-ups`)
56
-
57
- Routing guidance:
58
-
59
- - Put must-fix items to ship the story into the story’s tasks.
60
- - Put same-epic but non-blocking improvements into the epic Tech Spec follow-ups.
61
- - Put cross-cutting, future, or refactor work into the backlog file.
62
-
63
- ## Related Workflows
64
-
65
- - `dev-story` — Implements tasks/subtasks and can act on review action items
66
- - `story-context` — Generates Story Context for a single story
67
- - `tech-spec` — Generates epic Tech Spec documents
68
-
69
- _Part of the BMAD Method v6 — Implementation Phase_
@@ -1,73 +0,0 @@
1
- ---
2
- last-redoc-date: 2025-10-01
3
- ---
4
-
5
- # Correct Course Workflow
6
-
7
- The correct-course workflow is v6's adaptive response mechanism for stories that encounter issues during development or review, enabling intelligent course correction without restarting from scratch. Run by the Scrum Master (SM) or Team Lead, this workflow analyzes why a story is blocked or has issues, determines whether the story scope needs adjustment, requirements need clarification, technical approach needs revision, or the story needs to be split or reconsidered. This represents the agile principle of embracing change even late in the development cycle, but doing so in a structured way that captures learning and maintains project coherence.
8
-
9
- Unlike simply abandoning failed work or blindly pushing forward, correct-course provides a systematic approach to diagnosing issues and determining appropriate remediation. The workflow examines the original story specification, what was actually implemented, what issues arose during development or review, and the broader epic context to recommend the best path forward. This might involve clarifying requirements, adjusting acceptance criteria, revising technical approach, splitting the story into smaller pieces, or even determining the story should be deprioritized.
10
-
11
- The critical value of this workflow is that it prevents thrashing—endless cycles of implementation and rework without clear direction. By stepping back to analyze what went wrong and charting a clear path forward, the correct-course workflow enables teams to learn from difficulties and adapt intelligently rather than stubbornly proceeding with a flawed approach.
12
-
13
- ## Usage
14
-
15
- ```bash
16
- # Analyze issues and recommend course correction
17
- bmad run correct-course
18
- ```
19
-
20
- The workflow should be run when:
21
-
22
- - Review identifies critical issues requiring rethinking
23
- - Developer encounters blocking issues during implementation
24
- - Acceptance criteria prove infeasible or unclear
25
- - Technical approach needs significant revision
26
- - Story scope needs adjustment based on discoveries
27
-
28
- ## Inputs
29
-
30
- **Required Context:**
31
-
32
- - **Story Document**: Original story specification
33
- - **Implementation Attempts**: Code changes and approaches tried
34
- - **Review Feedback**: Issues and concerns identified
35
- - **Epic Context**: Overall epic goals and current progress
36
- - **Technical Constraints**: Architecture decisions and limitations discovered
37
-
38
- **Analysis Focus:**
39
-
40
- - Root cause of issues or blockages
41
- - Feasibility of current story scope
42
- - Clarity of requirements and acceptance criteria
43
- - Appropriateness of technical approach
44
- - Whether story should be split or revised
45
-
46
- ## Outputs
47
-
48
- **Primary Deliverable:**
49
-
50
- - **Course Correction Report** (`[story-id]-correction.md`): Analysis and recommendations including:
51
- - Issue root cause analysis
52
- - Impact assessment on epic and project
53
- - Recommended corrective actions with rationale
54
- - Revised story specification if applicable
55
- - Updated acceptance criteria if needed
56
- - Technical approach adjustments
57
- - Timeline and effort implications
58
-
59
- **Possible Outcomes:**
60
-
61
- 1. **Clarify Requirements**: Update story with clearer acceptance criteria
62
- 2. **Revise Scope**: Adjust story scope to be more achievable
63
- 3. **Split Story**: Break into multiple smaller stories
64
- 4. **Change Approach**: Recommend different technical approach
65
- 5. **Deprioritize**: Determine story should be deferred or cancelled
66
- 6. **Unblock**: Identify and address blocking dependencies
67
-
68
- **Artifacts:**
69
-
70
- - Updated story document if revision needed
71
- - New story documents if splitting story
72
- - Updated epic backlog reflecting changes
73
- - Lessons learned for retrospective
@@ -1,146 +0,0 @@
1
- # Create Story Workflow
2
-
3
- Just-in-time story generation creating one story at a time based on epic backlog state. Run by Scrum Master (SM) agent to ensure planned stories align with approved epics.
4
-
5
- ## Table of Contents
6
-
7
- - [Usage](#usage)
8
- - [Key Features](#key-features)
9
- - [Inputs & Outputs](#inputs--outputs)
10
- - [Workflow Behavior](#workflow-behavior)
11
- - [Integration](#integration)
12
-
13
- ## Usage
14
-
15
- ```bash
16
- # SM initiates next story creation
17
- bmad sm *create-story
18
- ```
19
-
20
- **When to run:**
21
-
22
- - Sprint has capacity for new work
23
- - Previous story is Done/Approved
24
- - Team ready for next planned story
25
-
26
- ## Key Features
27
-
28
- ### Strict Planning Enforcement
29
-
30
- - **Only creates stories enumerated in epics.md**
31
- - Halts if story not found in epic plan
32
- - Prevents scope creep through validation
33
-
34
- ### Intelligent Document Discovery
35
-
36
- - Auto-finds tech spec: `tech-spec-epic-{N}-*.md`
37
- - Discovers architecture docs across directories
38
- - Builds prioritized requirement sources
39
-
40
- ### Source Document Grounding
41
-
42
- - Every requirement traced to source
43
- - No invention of domain facts
44
- - Citations included in output
45
-
46
- ### Non-Interactive Mode
47
-
48
- - Default "#yolo" mode minimizes prompts
49
- - Smooth automated story preparation
50
- - Only prompts when critical
51
-
52
- ## Inputs & Outputs
53
-
54
- ### Required Files
55
-
56
- | File | Purpose | Priority |
57
- | ------------------------ | ----------------------------- | -------- |
58
- | epics.md | Story enumeration (MANDATORY) | Critical |
59
- | tech-spec-epic-{N}-\*.md | Epic technical spec | High |
60
- | PRD.md | Product requirements | Medium |
61
- | Architecture docs | Technical constraints | Low |
62
-
63
- ### Auto-Discovered Docs
64
-
65
- - `tech-stack.md`, `unified-project-structure.md`
66
- - `testing-strategy.md`, `backend/frontend-architecture.md`
67
- - `data-models.md`, `database-schema.md`, `api-specs.md`
68
-
69
- ### Output
70
-
71
- **Story Document:** `{story_dir}/story-{epic}.{story}.md`
72
-
73
- - User story statement (role, action, benefit)
74
- - Acceptance criteria from tech spec/epics
75
- - Tasks mapped to ACs
76
- - Testing requirements
77
- - Dev notes with sources
78
- - Status: "Draft"
79
-
80
- ## Workflow Behavior
81
-
82
- ### Story Number Management
83
-
84
- - Auto-detects next story number
85
- - No duplicates or skipped numbers
86
- - Maintains epic.story convention
87
-
88
- ### Update vs Create
89
-
90
- - **If current story not Done:** Updates existing
91
- - **If current story Done:** Creates next (if planned)
92
-
93
- ### Validation Safeguards
94
-
95
- **No Story Found:**
96
-
97
- ```
98
- "No planned next story found in epics.md for epic {N}.
99
- Run *correct-course to add/modify epic stories."
100
- ```
101
-
102
- **Missing Config:**
103
- Ensure `dev_story_location` set in config.yaml
104
-
105
- ## Integration
106
-
107
- ### v6 Implementation Cycle
108
-
109
- 1. **create-story** ← Current step (defines "what")
110
- 2. story-context (adds technical "how")
111
- 3. dev-story (implementation)
112
- 4. code-review (validation)
113
- 5. correct-course (if needed)
114
- 6. retrospective (after epic)
115
-
116
- ### Document Priority
117
-
118
- 1. **tech_spec_file** - Epic-specific spec
119
- 2. **epics_file** - Story breakdown
120
- 3. **prd_file** - Business requirements
121
- 4. **architecture_docs** - Technical guidance
122
-
123
- ## Configuration
124
-
125
- ```yaml
126
- # bmad/bmm/config.yaml
127
- dev_story_location: ./stories
128
- output_folder: ./output
129
-
130
- # workflow.yaml defaults
131
- non_interactive: true
132
- auto_run_context: true
133
- ```
134
-
135
- ## Troubleshooting
136
-
137
- | Issue | Solution |
138
- | ----------------------- | ------------------------------------------ |
139
- | "No planned next story" | Run `*correct-course` to add story to epic |
140
- | Missing story_dir | Set `dev_story_location` in config |
141
- | Tech spec not found | Use naming: `tech-spec-epic-{N}-*.md` |
142
- | No architecture docs | Add docs to docs/ or output/ folder |
143
-
144
- ---
145
-
146
- For workflow details, see [instructions.md](./instructions.md) and [checklist.md](./checklist.md).