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,395 +1,169 @@
1
- # Epic and Story Decomposition - Bite-Sized Implementation Planning
1
+ # Epic and Story Decomposition - Intent-Based Implementation Planning
2
2
 
3
3
  <critical>The workflow execution engine is governed by: {project-root}/bmad/core/tasks/workflow.xml</critical>
4
4
  <critical>You MUST have already loaded and processed: {installed_path}/workflow.yaml</critical>
5
- <critical>This workflow transforms requirements into BITE-SIZED STORIES for limited context agents</critical>
6
- <critical>EVERY story must be completable by a single limited context window dev agent in one session</critical>
7
- <critical>Communicate all responses in {communication_language} and adapt deeply to {user_skill_level}</critical>
5
+ <critical>This workflow transforms requirements into BITE-SIZED STORIES for development agents</critical>
6
+ <critical>EVERY story must be completable by a single dev agent in one focused session</critical>
7
+ <critical>Communicate all responses in {communication_language} and adapt to {user_skill_level}</critical>
8
8
  <critical>Generate all documents in {document_output_language}</critical>
9
9
  <critical>LIVING DOCUMENT: Write to epics.md continuously as you work - never wait until the end</critical>
10
+ <critical>Input documents specified in workflow.yaml input_file_patterns - workflow engine handles fuzzy matching, whole vs sharded document discovery automatically</critical>
10
11
 
11
12
  <workflow>
12
13
 
13
- <step n="0" goal="Load context and requirements">
14
- <action>Welcome the {user_name} to the project inception high level epic and story planning.
14
+ <step n="1" goal="Load PRD and extract requirements">
15
+ <action>Welcome {user_name} to epic and story planning
15
16
 
16
- Load required documents:
17
+ Load required documents (fuzzy match, handle both whole and sharded):
17
18
 
18
- 1. PRD.md (must exist - fuzzy match on name, might be a folder with an index and smaller sharded files also)
19
- 2. domain-brief.md (if exists)
20
- 3. product-brief.md (if exists)
19
+ - PRD.md (required)
20
+ - domain-brief.md (if exists)
21
+ - product-brief.md (if exists)
21
22
 
22
23
  Extract from PRD:
23
24
 
24
- - Functional requirements
25
+ - All functional requirements
25
26
  - Non-functional requirements
26
- - Domain considerations
27
- - Project type
28
- - MVP scope vs growth features
27
+ - Domain considerations and compliance needs
28
+ - Project type and complexity
29
+ - MVP vs growth vs vision scope boundaries
29
30
 
30
- If continuing from PRD workflow:
31
- "Great! Now let's break down your requirements into actionable epics and bite-sized stories that development agents can implement independently."
31
+ Understand the context:
32
32
 
33
- If starting fresh:
34
- "I'll help you transform your PRD into organized epics with implementable stories. Each story will be small enough for a single dev agent to complete in one session."</action>
35
- </step>
33
+ - What makes this product special (the magic)
34
+ - Technical constraints
35
+ - User types and their goals
36
+ - Success criteria</action>
37
+ </step>
36
38
 
37
- <step n="1" goal="Form epics from natural groupings">
38
- <action>Transform requirements into epics organically
39
+ <step n="2" goal="Propose epic structure from natural groupings">
40
+ <action>Analyze requirements and identify natural epic boundaries
39
41
 
40
- INTENT: Find natural boundaries that make sense for THIS product
42
+ INTENT: Find organic groupings that make sense for THIS product
41
43
 
42
- Look at the requirements and find patterns:
44
+ Look for natural patterns:
43
45
 
44
- - Features that work together
46
+ - Features that work together cohesively
45
47
  - User journeys that connect
46
- - Technical systems that relate
47
- - Business capabilities that group
48
- - Domain requirements that cluster (compliance, validation, etc.)
49
-
50
- Examples of natural epic formation:
48
+ - Business capabilities that cluster
49
+ - Domain requirements that relate (compliance, validation, security)
50
+ - Technical systems that should be built together
51
51
 
52
- - Auth features "User Management" epic
53
- - Payment features → "Monetization" epic
54
- - Social features → "Community" epic
55
- - Admin features → "Administration" epic
56
- - Compliance requirements → "Regulatory Compliance" epic
57
- - API endpoints → "API Infrastructure" epic
52
+ Name epics based on VALUE, not technical layers:
58
53
 
59
- But let the product guide you - don't force standard patterns
54
+ - Good: "User Onboarding", "Content Discovery", "Compliance Framework"
55
+ - Avoid: "Database Layer", "API Endpoints", "Frontend"
60
56
 
61
57
  Each epic should:
62
58
 
63
- - Have a clear business goal
59
+ - Have clear business goal and user value
64
60
  - Be independently valuable
65
- - Contain 3-8 related features
66
- - Be completable in 1-2 sprints
67
-
68
- Name epics based on value, not technical components:
69
- GOOD: "User Onboarding", "Content Discovery", "Team Collaboration"
70
- NOT: "Database", "Frontend", "API"
71
-
72
- If domain considerations exist:
73
-
74
- - Create dedicated compliance/validation epics
75
- - Note special expertise needed per epic
76
- - Flag epics with regulatory dependencies
77
-
78
- Present epic groupings conversationally:
79
- "Based on your requirements, I see these natural epic groupings:
80
-
81
- 1. [Epic Name] - [Brief description]
82
- 2. [Epic Name] - [Brief description]
83
- 3. [Epic Name] - [Brief description]
84
-
85
- Does this organization make sense for how you think about the product?"</action>
86
-
87
- <template-output>epics_structure</template-output>
88
- </step>
89
-
90
- <step n="2" goal="Decompose into bite-sized stories">
91
- <critical>Small vertical sliced small stories are best for agentic dumb developers to implement without forgetting things</critical>
92
-
93
- <action>Break each epic into small, implementable stories
94
-
95
- INTENT: Create stories that one dev agent can complete independently
96
-
97
- For each epic, decompose into stories that are:
98
-
99
- - Small enough for single context window
100
- - Clear enough for autonomous implementation
101
- - Independent enough to develop in parallel when possible
102
- - Specific enough to have clear acceptance criteria
103
-
104
- GOOD story examples:
105
-
106
- - "Create login API endpoint that accepts email/password and returns JWT"
107
- - "Build user profile component with avatar upload to S3"
108
- - "Add password reset email template and sending logic"
109
- - "Implement rate limiting on auth endpoints (5 attempts per minute)"
110
- - "Create HIPAA-compliant audit log for patient data access"
111
- - "Build FDA 21 CFR Part 11 electronic signature component"
112
-
113
- BAD story examples:
114
-
115
- - "Build complete authentication system" (too big)
116
- - "Handle user management" (too vague)
117
- - "Make it secure" (not specific)
118
- - "Integrate everything" (requires multiple contexts)
119
-
120
- Story format:
121
- "As a [user type], I want [specific feature], so that [clear value]"
122
-
123
- Technical notes to include:
124
-
125
- - Affected files/components if known
126
- - Required endpoints/methods
127
- - Data structures needed
128
- - Specific validation rules
129
- - Compliance requirements if applicable
130
- - Dependencies on other stories
131
-
132
- Domain-aware story creation:
133
-
134
- - For healthcare: Include specific regulations per story
135
- - For fintech: Note PCI/security requirements per story
136
- - For govtech: Flag accessibility needs per story
137
- - For aerospace: Include safety/validation requirements
138
-
139
- Check each story:
140
-
141
- - Can this be explained in <1000 words?
142
- - Can one agent complete without another's output?
143
- - Is the scope crystal clear?
144
- - Are success criteria obvious?
145
- - Are domain requirements specified?
146
-
147
- If too big → split into smaller stories
148
- If too vague → add specifics
149
- If dependent → note the dependency clearly
150
- If domain-critical → flag compliance needs</action>
151
-
152
- <template-output>epic_1_stories</template-output>
153
- <template-output>epic_2_stories</template-output>
154
- <template-output>epic_3_stories</template-output>
155
-
156
- <!-- Continue for each epic discovered -->
157
- </step>
158
-
159
- <step n="3" goal="Sequence for smart implementation">
160
- <action>Order stories for successful development
161
-
162
- INTENT: Create a logical flow that minimizes blockers and maximizes progress
163
-
164
- Consider dependencies:
165
- TECHNICAL:
166
-
167
- - Authentication before protected features
168
- - Data models before business logic
169
- - Core features before enhancements
170
- - API before frontend that uses it
171
-
172
- DOMAIN:
173
-
174
- - Compliance infrastructure before features
175
- - Validation framework before clinical features
176
- - Audit logging before financial transactions
177
- - Safety systems before operational features
61
+ - Contain 3-8 related capabilities
62
+ - Be deliverable in cohesive phase
178
63
 
179
- PRACTICAL:
64
+ For greenfield projects:
180
65
 
181
- - What gives visible progress early?
182
- - What reduces risk soonest?
183
- - What enables parallel work?
184
- - What delivers value fastest?
66
+ - First epic MUST establish foundation (project setup, core infrastructure, deployment pipeline)
67
+ - Foundation enables all subsequent work
185
68
 
186
- Create implementation phases:
69
+ For complex domains:
187
70
 
188
- Phase 1 - Foundation:
71
+ - Consider dedicated compliance/regulatory epics
72
+ - Group validation and safety requirements logically
73
+ - Note expertise requirements
189
74
 
190
- - Core data models
191
- - Authentication/authorization
192
- - Basic infrastructure
193
- - Essential APIs
194
- - Compliance foundation (if domain requires)
75
+ Present proposed epic structure showing:
195
76
 
196
- Phase 2 - Core Features:
77
+ - Epic titles with clear value statements
78
+ - High-level scope of each epic
79
+ - Suggested sequencing
80
+ - Why this grouping makes sense</action>
197
81
 
198
- - MVP functionality
199
- - Key user flows
200
- - Basic UI/UX
201
- - Critical integrations
202
- - Domain validations (if applicable)
203
-
204
- Phase 3 - Enhancement:
205
-
206
- - Polish and refinement
207
- - Additional features
208
- - Performance optimization
209
- - Extended functionality
210
- - Advanced compliance features
211
-
212
- Phase 4 - Growth:
213
-
214
- - Analytics and monitoring
215
- - Advanced features
216
- - Scaling preparations
217
- - Nice-to-have additions
218
-
219
- For complex domains, add gates:
220
-
221
- - "Gate: Security audit before payment processing"
222
- - "Gate: Clinical validation before patient features"
223
- - "Gate: Compliance review before launch"
224
-
225
- Present the sequencing conversationally:
226
- "Here's a smart implementation order:
227
-
228
- **Phase 1 (Foundation) - Week 1-2:**
229
-
230
- - Story 1.1: [Description]
231
- - Story 1.2: [Description] (can parallel with 1.1)
232
- - Story 1.3: [Description] (depends on 1.1)
233
-
234
- **Phase 2 (Core) - Week 3-4:**
235
- [Continue...]
236
-
237
- This gives you something working by [milestone] and allows [X] stories to run in parallel."</action>
238
-
239
- <template-output>implementation_sequence</template-output>
240
- <template-output>development_phases</template-output>
241
- <template-output>dependency_graph</template-output>
82
+ <template-output>epics_summary</template-output>
83
+ <invoke-task halt="true">{project-root}/bmad/core/tasks/adv-elicit.xml</invoke-task>
242
84
  </step>
243
85
 
244
- <step n="4" goal="Validate story sizing and clarity">
245
- <action>Review all stories for dev agent compatibility
246
-
247
- Run through each story and verify:
248
-
249
- SIZE CHECK:
250
-
251
- - Story description < 500 words
252
- - Clear inputs and outputs defined
253
- - Single responsibility principle
254
- - No hidden complexity
86
+ <step n="3" goal="Decompose each epic into bite-sized stories" repeat="for-each-epic">
87
+ <action>Break down Epic {{N}} into small, implementable stories
255
88
 
256
- CLARITY CHECK:
89
+ INTENT: Create stories sized for single dev agent completion
257
90
 
258
- - Acceptance criteria explicit
259
- - Technical approach clear
260
- - No ambiguous requirements
261
- - Success measurable
91
+ For each epic, generate:
262
92
 
263
- DEPENDENCY CHECK:
93
+ - Epic title as `epic_title_{{N}}`
94
+ - Epic goal/value as `epic_goal_{{N}}`
95
+ - All stories as repeated pattern `story_title_{{N}}_{{M}}` for each story M
264
96
 
265
- - Dependencies documented
266
- - Can start with clear inputs
267
- - Outputs well-defined
268
- - Parallel opportunities noted
97
+ CRITICAL for Epic 1 (Foundation):
269
98
 
270
- DOMAIN CHECK (if applicable):
99
+ - Story 1.1 MUST be project setup/infrastructure initialization
100
+ - Sets up: repo structure, build system, deployment pipeline basics, core dependencies
101
+ - Creates foundation for all subsequent stories
102
+ - Note: Architecture workflow will flesh out technical details
271
103
 
272
- - Compliance requirements stated
273
- - Validation criteria defined
274
- - Regulatory references included
275
- - Special expertise noted
104
+ Each story should follow BDD-style acceptance criteria:
276
105
 
277
- If any issues found:
278
- "Story [X] seems too large. Let me split it:
106
+ **Story Pattern:**
107
+ As a [user type],
108
+ I want [specific capability],
109
+ So that [clear value/benefit].
279
110
 
280
- - [Smaller story 1]
281
- - [Smaller story 2]"
111
+ **Acceptance Criteria using BDD:**
112
+ Given [precondition or initial state]
113
+ When [action or trigger]
114
+ Then [expected outcome]
282
115
 
283
- "Story [Y] needs clarification on [aspect]. How should we handle [specific question]?"
284
-
285
- Final validation:
286
- "All stories are now sized for 200k context limits.
287
-
288
- - Total stories: [count]
289
- - Can run in parallel: [count]
290
- - Sequential dependencies: [count]
291
- - Estimated completion: [timeframe]"</action>
292
-
293
- <template-output>story_validation</template-output>
294
- </step>
116
+ And [additional criteria as needed]
295
117
 
296
- <step n="5" goal="Create development guidance">
297
- <action>Add practical guidance for implementation teams
118
+ **Prerequisites:** Only previous stories (never forward dependencies)
298
119
 
299
- Create quick reference for development:
120
+ **Technical Notes:** Implementation guidance, affected components, compliance requirements
300
121
 
301
- GETTING STARTED:
302
- "Start with Phase 1 stories - multiple can run in parallel.
303
- Key files to create first: [list]
304
- Recommended agent allocation: [suggestion]"
122
+ Ensure stories are:
305
123
 
306
- DOMAIN GUIDANCE (if applicable):
307
- "Critical compliance checkpoints:
308
-
309
- - After story [X]: Run [validation]
310
- - Before story [Y]: Review [regulation]
311
- - Throughout: Maintain [audit trail]"
312
-
313
- TECHNICAL NOTES:
314
- "Architecture decisions needed:
315
-
316
- - [Decision 1] affects stories [A, B, C]
317
- - [Decision 2] blocks story [D]
318
-
319
- Consider these patterns:
320
-
321
- - [Pattern] for [epic]
322
- - [Pattern] for [requirement]"
124
+ - Vertically sliced (deliver complete functionality, not just one layer)
125
+ - Sequentially ordered (logical progression, no forward dependencies)
126
+ - Independently valuable when possible
127
+ - Small enough for single-session completion
128
+ - Clear enough for autonomous implementation
323
129
 
324
- RISK MITIGATION:
325
- "Watch out for:
130
+ For each story in epic {{N}}, output variables following this pattern:
326
131
 
327
- - [Risk] in story [X]
328
- - [Complexity] in epic [Y]
329
- - [Dependency] between [A] and [B]"
132
+ - story*title*{{N}}_1, story_title_{{N}}\_2, etc.
133
+ - Each containing: user story, BDD acceptance criteria, prerequisites, technical notes</action>
330
134
 
331
- SUCCESS METRICS:
332
- "You'll know Phase 1 is complete when:
135
+ <template-output>epic*title*{{N}}</template-output>
136
+ <template-output>epic*goal*{{N}}</template-output>
333
137
 
334
- - [Measurable outcome]
335
- - [Testable feature]
336
- - [Validation passed]"</action>
138
+ <action>For each story M in epic {{N}}, generate story content</action>
139
+ <template-output>story*title*{{N}}\_{{M}}</template-output>
337
140
 
338
- <template-output>implementation_guidance</template-output>
141
+ <invoke-task halt="true">{project-root}/bmad/core/tasks/adv-elicit.xml</invoke-task>
339
142
  </step>
340
143
 
341
- <step n="6" goal="Finalize and prepare handoff">
342
- <action>Complete the epics document and prepare for development
343
-
344
- Review what we've created:
345
- "We've successfully decomposed your requirements into:
346
-
347
- - [x] epics
348
- - [Y] total stories
349
- - [Z] phases of development
350
-
351
- Every story is sized for a single dev agent to complete independently."
352
-
353
- Highlight key achievements:
354
-
355
- - Stories respect 200k context limit
356
- - Dependencies clearly mapped
357
- - Domain requirements integrated
358
- - Parallel development enabled
359
-
360
- Save completed epics.md with:
361
-
362
- - Full epic descriptions
363
- - All stories with acceptance criteria
364
- - Implementation sequence
365
- - Development phases
366
- - Dependency notes
367
- - Domain compliance requirements (if applicable)</action>
368
-
369
- <output>**✅ Epic Decomposition Complete, {user_name}!**
370
-
371
- Your requirements are now organized into **{epic_count} epics** with **{story_count} bite-sized stories**.
372
-
373
- **Created:**
374
-
375
- - **epics.md** - Complete epic breakdown with implementable stories
376
-
377
- **Key Stats:**
144
+ <step n="4" goal="Review and finalize epic breakdown">
145
+ <action>Review the complete epic breakdown for quality and completeness
378
146
 
379
- - Average story size: Fits in 200k context
380
- - Parallel stories: {parallel_count} can run simultaneously
381
- - Sequential chains: {sequential_count} dependency chains
382
- - Estimated velocity: {velocity_estimate}
147
+ Validate:
383
148
 
384
- **Next Steps:**
149
+ - All functional requirements from PRD are covered by stories
150
+ - Epic 1 establishes proper foundation
151
+ - All stories are vertically sliced
152
+ - No forward dependencies exist
153
+ - Story sizing is appropriate for single-session completion
154
+ - BDD acceptance criteria are clear and testable
155
+ - Domain/compliance requirements are properly distributed
156
+ - Sequencing enables incremental value delivery
385
157
 
386
- 1. Review epics.md for the complete breakdown
387
- 2. Start Phase 1 implementation with parallel stories
388
- 3. Use story IDs for tracking progress
158
+ Confirm with {user_name}:
389
159
 
390
- Each story is crafted for a single dev agent to complete autonomously. No monoliths, no confusion, just clear implementation paths.
160
+ - Epic structure makes sense
161
+ - Story breakdown is actionable
162
+ - Dependencies are clear
163
+ - BDD format provides clarity
164
+ - Ready for architecture and implementation phases</action>
391
165
 
392
- Ready to begin development with any story marked "can start immediately"!</output>
166
+ <template-output>epic_breakdown_summary</template-output>
393
167
  </step>
394
168
 
395
169
  </workflow>
@@ -13,23 +13,35 @@ document_output_language: "{config_source}:document_output_language"
13
13
  user_skill_level: "{config_source}:user_skill_level"
14
14
  date: system-generated
15
15
 
16
- # Workflow components
16
+ # Input requirements
17
+ recommended_inputs:
18
+ - prd: "Product Requirements Document with FRs and NFRs"
19
+ - product_brief: "Product Brief with vision and goals (optional)"
20
+ - domain_brief: "Domain-specific requirements and context (optional)"
21
+
22
+ # Smart input file references - handles both whole docs and sharded docs
23
+ # Priority: Whole document first, then sharded version
24
+ input_file_patterns:
25
+ prd:
26
+ whole: "{output_folder}/*prd*.md"
27
+ sharded: "{output_folder}/*prd*/index.md"
28
+
29
+ product_brief:
30
+ whole: "{output_folder}/*product*brief*.md"
31
+ sharded: "{output_folder}/*product*brief*/index.md"
32
+
33
+ domain_brief:
34
+ whole: "{output_folder}/*domain*brief*.md"
35
+ sharded: "{output_folder}/*domain*brief*/index.md"
36
+
37
+ # Module path and component files
17
38
  installed_path: "{project-root}/bmad/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories"
18
39
  instructions: "{installed_path}/instructions.md"
19
40
  template: "{installed_path}/epics-template.md"
20
41
 
21
- # Input files (from parent PRD workflow)
22
- prd_file: "{output_folder}/PRD.md"
23
-
24
- # Output files
42
+ # Output configuration
25
43
  default_output_file: "{output_folder}/epics.md"
26
44
 
27
- # Optional input documents
28
- recommended_inputs:
29
- - prd: "{output_folder}/PRD.md"
30
- - product_brief: "{output_folder}/product-brief.md"
31
- - domain_brief: "{output_folder}/domain-brief.md"
32
-
33
45
  standalone: true
34
46
 
35
47
  web_bundle: