bmad-method 6.0.0-alpha.4 → 6.0.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/commands/bmad/bmm/agents/architect.md +0 -1
- package/.claude/commands/bmad/bmm/agents/sm.md +1 -1
- package/.claude/commands/bmad/bmm/agents/tech-writer.md +82 -0
- package/.claude/commands/bmad/bmm/workflows/README.md +1 -1
- package/.claude/commands/bmad/bmm/workflows/epic-tech-context.md +15 -0
- package/.claude/commands/bmad/core/workflows/README.md +10 -0
- package/.claude/settings.local.json +4 -8
- package/CHANGELOG.md +305 -0
- package/README.md +88 -39
- package/bmad/_cfg/agent-manifest.csv +2 -1
- package/bmad/_cfg/agents/bmm-tech-writer.customize.yaml +42 -0
- package/bmad/_cfg/files-manifest.csv +40 -62
- package/bmad/_cfg/ides/claude-code.yaml +1 -1
- package/bmad/_cfg/manifest.yaml +4 -3
- package/bmad/_cfg/task-manifest.csv +4 -1
- package/bmad/_cfg/tool-manifest.csv +1 -0
- package/bmad/_cfg/workflow-manifest.csv +3 -1
- package/bmad/bmb/config.yaml +2 -2
- package/bmad/bmb/workflows/audit-workflow/instructions.md +1 -1
- package/bmad/bmm/README.md +79 -120
- package/bmad/bmm/README.md.bak +169 -0
- package/bmad/bmm/agents/analyst.md.bak +67 -0
- package/bmad/bmm/agents/architect.md +0 -1
- package/bmad/bmm/agents/architect.md.bak +73 -0
- package/bmad/bmm/agents/dev.md.bak +69 -0
- package/bmad/bmm/agents/pm.md.bak +76 -0
- package/bmad/bmm/agents/sm.md +1 -1
- package/bmad/bmm/agents/sm.md.bak +85 -0
- package/bmad/bmm/agents/tea.md.bak +72 -0
- package/bmad/bmm/agents/tech-writer.md +82 -0
- package/bmad/bmm/agents/ux-designer.md.bak +71 -0
- package/bmad/bmm/config.yaml +2 -2
- package/bmad/bmm/docs/README.md +235 -0
- package/bmad/bmm/docs/agents-guide.md +1057 -0
- package/bmad/bmm/docs/brownfield-guide.md +471 -972
- package/bmad/bmm/docs/enterprise-agentic-development.md +680 -0
- package/bmad/bmm/docs/faq.md +589 -0
- package/bmad/bmm/docs/glossary.md +321 -0
- package/bmad/bmm/docs/party-mode.md +224 -0
- package/bmad/bmm/docs/quick-spec-flow.md +64 -57
- package/bmad/bmm/docs/quick-start.md +72 -47
- package/bmad/bmm/docs/scale-adaptive-system.md +332 -778
- package/bmad/bmm/docs/troubleshooting.md +680 -0
- package/bmad/bmm/{workflows/3-solutioning/architecture/README.md → docs/workflow-architecture-reference.md} +130 -77
- package/bmad/bmm/{workflows/document-project/README.md → docs/workflow-document-project-reference.md} +45 -2
- package/bmad/bmm/docs/workflows-analysis.md +670 -0
- package/bmad/bmm/docs/workflows-implementation.md +1758 -0
- package/bmad/bmm/docs/workflows-planning.md +1086 -0
- package/bmad/bmm/docs/workflows-solutioning.md +726 -0
- package/bmad/bmm/tasks/daily-standup.xml +1 -1
- package/bmad/bmm/workflows/2-plan-workflows/tech-spec/workflow.yaml.bak +60 -0
- package/bmad/bmm/workflows/4-implementation/epic-tech-context/workflow.yaml +1 -1
- package/bmad/bmm/workflows/techdoc/documentation-standards.md +2 -1
- package/bmad/bmm/workflows/techdoc/documentation-standards.md.bak +238 -0
- package/bmad/bmm/workflows/workflow-status/init/instructions.md +623 -242
- package/bmad/bmm/workflows/workflow-status/init/workflow.yaml.bak +27 -0
- package/bmad/bmm/workflows/workflow-status/paths/enterprise-brownfield.yaml +120 -0
- package/bmad/bmm/workflows/workflow-status/paths/enterprise-greenfield.yaml +108 -0
- package/{src/modules/bmm/workflows/workflow-status/paths/brownfield-level-3.yaml → bmad/bmm/workflows/workflow-status/paths/method-brownfield.yaml} +33 -31
- package/{src/modules/bmm/workflows/workflow-status/paths/greenfield-level-2.yaml → bmad/bmm/workflows/workflow-status/paths/method-greenfield.yaml} +31 -21
- package/{src/modules/bmm/workflows/workflow-status/paths/brownfield-level-1.yaml → bmad/bmm/workflows/workflow-status/paths/quick-flow-brownfield.yaml} +18 -18
- package/bmad/bmm/workflows/workflow-status/paths/{greenfield-level-1.yaml → quick-flow-greenfield.yaml} +16 -18
- package/bmad/bmm/workflows/workflow-status/workflow-status-template.yaml +4 -4
- package/bmad/cis/agents/brainstorming-coach.md.bak +62 -0
- package/bmad/cis/agents/creative-problem-solver.md.bak +62 -0
- package/bmad/cis/agents/design-thinking-coach.md.bak +62 -0
- package/bmad/cis/agents/innovation-strategist.md.bak +62 -0
- package/bmad/cis/agents/storyteller.md.bak +59 -0
- package/bmad/cis/config.yaml +2 -2
- package/bmad/core/agents/bmad-master.md.bak +15 -13
- package/bmad/core/config.yaml +2 -2
- package/bmad/core/tasks/workflow.xml +1 -11
- package/package.json +1 -1
- package/src/core/tasks/workflow.xml +1 -11
- package/src/modules/bmb/workflows/audit-workflow/instructions.md +1 -1
- package/src/modules/bmm/README.md +1 -1
- package/src/modules/bmm/agents/architect.agent.yaml +0 -4
- package/src/modules/bmm/agents/game-dev.agent.yaml +8 -12
- package/src/modules/bmm/agents/sm.agent.yaml +1 -1
- package/src/modules/bmm/agents/{paige.agent.yaml → tech-writer.agent.yaml} +4 -4
- package/src/modules/bmm/docs/README.md +9 -9
- package/src/modules/bmm/docs/agents-guide.md +46 -98
- package/src/modules/bmm/docs/brownfield-guide.md +211 -90
- package/src/modules/bmm/docs/enterprise-agentic-development.md +380 -740
- package/src/modules/bmm/docs/faq.md +10 -10
- package/src/modules/bmm/docs/glossary.md +36 -42
- package/src/modules/bmm/docs/party-mode.md +110 -1122
- package/src/modules/bmm/docs/quick-spec-flow.md +33 -33
- package/src/modules/bmm/docs/quick-start.md +29 -29
- package/src/modules/bmm/docs/scale-adaptive-system.md +303 -453
- package/src/modules/bmm/docs/troubleshooting.md +1 -1
- package/src/modules/bmm/docs/workflows-implementation.md +20 -21
- package/src/modules/bmm/docs/workflows-solutioning.md +1 -1
- package/src/modules/bmm/tasks/daily-standup.xml +1 -1
- package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/instructions.md +1 -19
- package/src/modules/bmm/workflows/2-plan-workflows/prd/checklist.md +10 -9
- package/src/modules/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/epics-template.md +23 -34
- package/src/modules/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/instructions.md +105 -331
- package/src/modules/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/workflow.yaml +23 -11
- package/src/modules/bmm/workflows/2-plan-workflows/prd/instructions.md +23 -38
- package/src/modules/bmm/workflows/2-plan-workflows/prd/workflow.yaml +2 -2
- package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/epics-template.md +38 -16
- package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/instructions.md +1 -19
- package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/user-story-template.md +35 -32
- package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/workflow.yaml +2 -2
- package/src/modules/bmm/workflows/3-solutioning/architecture/instructions.md +7 -18
- package/src/modules/bmm/workflows/3-solutioning/solutioning-gate-check/instructions.md +1 -18
- package/src/modules/bmm/workflows/3-solutioning/solutioning-gate-check/workflow.yaml +6 -6
- package/src/modules/bmm/workflows/4-implementation/epic-tech-context/workflow.yaml +1 -1
- package/src/modules/bmm/workflows/techdoc/documentation-standards.md +1 -1
- package/src/modules/bmm/workflows/workflow-status/init/instructions.md +623 -242
- package/src/modules/bmm/workflows/workflow-status/paths/enterprise-brownfield.yaml +120 -0
- package/src/modules/bmm/workflows/workflow-status/paths/enterprise-greenfield.yaml +108 -0
- package/{bmad/bmm/workflows/workflow-status/paths/brownfield-level-3.yaml → src/modules/bmm/workflows/workflow-status/paths/method-brownfield.yaml} +33 -31
- package/{bmad/bmm/workflows/workflow-status/paths/greenfield-level-2.yaml → src/modules/bmm/workflows/workflow-status/paths/method-greenfield.yaml} +31 -21
- package/{bmad/bmm/workflows/workflow-status/paths/brownfield-level-1.yaml → src/modules/bmm/workflows/workflow-status/paths/quick-flow-brownfield.yaml} +18 -18
- package/src/modules/bmm/workflows/workflow-status/paths/{greenfield-level-1.yaml → quick-flow-greenfield.yaml} +16 -18
- package/src/modules/bmm/workflows/workflow-status/workflow-status-template.yaml +4 -4
- package/bmad/bmm/tasks/retrospective.xml +0 -104
- package/bmad/bmm/testarch/README.md +0 -311
- package/bmad/bmm/workflows/1-analysis/brainstorm-project/README.md +0 -113
- package/bmad/bmm/workflows/1-analysis/product-brief/README.md +0 -180
- package/bmad/bmm/workflows/1-analysis/research/README.md +0 -454
- package/bmad/bmm/workflows/2-plan-workflows/README.md +0 -258
- package/bmad/bmm/workflows/3-solutioning/README.md +0 -1
- package/bmad/bmm/workflows/3-solutioning/solutioning-gate-check/README.md +0 -177
- package/bmad/bmm/workflows/4-implementation/README.md +0 -221
- package/bmad/bmm/workflows/4-implementation/code-review/README.md +0 -69
- package/bmad/bmm/workflows/4-implementation/correct-course/README.md +0 -73
- package/bmad/bmm/workflows/4-implementation/create-story/README.md +0 -146
- package/bmad/bmm/workflows/4-implementation/dev-story/README.md +0 -206
- package/bmad/bmm/workflows/4-implementation/epic-tech-context/README.md +0 -195
- package/bmad/bmm/workflows/4-implementation/retrospective/README.md +0 -77
- package/bmad/bmm/workflows/4-implementation/sprint-planning/README.md +0 -156
- package/bmad/bmm/workflows/4-implementation/story-context/README.md +0 -234
- package/bmad/bmm/workflows/README.md +0 -256
- package/bmad/bmm/workflows/document-project/templates/README.md +0 -38
- package/bmad/bmm/workflows/testarch/README.md +0 -26
- package/bmad/bmm/workflows/testarch/atdd/README.md +0 -672
- package/bmad/bmm/workflows/testarch/automate/README.md +0 -869
- package/bmad/bmm/workflows/testarch/ci/README.md +0 -493
- package/bmad/bmm/workflows/testarch/framework/README.md +0 -340
- package/bmad/bmm/workflows/testarch/nfr-assess/README.md +0 -469
- package/bmad/bmm/workflows/testarch/test-design/README.md +0 -493
- package/bmad/bmm/workflows/testarch/test-review/README.md +0 -775
- package/bmad/bmm/workflows/testarch/trace/README.md +0 -802
- package/bmad/bmm/workflows/workflow-status/README.md +0 -260
- package/bmad/bmm/workflows/workflow-status/paths/brownfield-level-0.yaml +0 -54
- package/bmad/bmm/workflows/workflow-status/paths/brownfield-level-2.yaml +0 -76
- package/bmad/bmm/workflows/workflow-status/paths/brownfield-level-4.yaml +0 -88
- package/bmad/bmm/workflows/workflow-status/paths/greenfield-level-0.yaml +0 -45
- package/bmad/bmm/workflows/workflow-status/paths/greenfield-level-3.yaml +0 -73
- package/bmad/bmm/workflows/workflow-status/paths/greenfield-level-4.yaml +0 -75
- package/src/modules/bmm/docs/brownfield-guide.md.backup +0 -1324
- package/src/modules/bmm/docs/workflows-testing.md +0 -1572
- package/src/modules/bmm/workflows/workflow-status/paths/brownfield-level-0.yaml +0 -54
- package/src/modules/bmm/workflows/workflow-status/paths/brownfield-level-2.yaml +0 -76
- package/src/modules/bmm/workflows/workflow-status/paths/brownfield-level-4.yaml +0 -88
- package/src/modules/bmm/workflows/workflow-status/paths/greenfield-level-0.yaml +0 -45
- package/src/modules/bmm/workflows/workflow-status/paths/greenfield-level-3.yaml +0 -73
- package/src/modules/bmm/workflows/workflow-status/paths/greenfield-level-4.yaml +0 -75
- /package/bmad/bmm/agents/{paige.md → paige.md.bak} +0 -0
package/src/modules/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/instructions.md
CHANGED
|
@@ -1,395 +1,169 @@
|
|
|
1
|
-
# Epic and Story Decomposition -
|
|
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
|
|
6
|
-
<critical>EVERY story must be completable by a single
|
|
7
|
-
<critical>Communicate all responses in {communication_language} and adapt
|
|
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="
|
|
14
|
-
<action>Welcome
|
|
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
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
|
-
-
|
|
25
|
+
- All functional requirements
|
|
25
26
|
- Non-functional requirements
|
|
26
|
-
- Domain considerations
|
|
27
|
-
- Project type
|
|
28
|
-
- MVP
|
|
27
|
+
- Domain considerations and compliance needs
|
|
28
|
+
- Project type and complexity
|
|
29
|
+
- MVP vs growth vs vision scope boundaries
|
|
29
30
|
|
|
30
|
-
|
|
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
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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="
|
|
38
|
-
<action>
|
|
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
|
|
42
|
+
INTENT: Find organic groupings that make sense for THIS product
|
|
41
43
|
|
|
42
|
-
Look
|
|
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
|
-
-
|
|
47
|
-
-
|
|
48
|
-
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
59
|
+
- Have clear business goal and user value
|
|
64
60
|
- Be independently valuable
|
|
65
|
-
- Contain 3-8 related
|
|
66
|
-
- Be
|
|
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
|
-
|
|
64
|
+
For greenfield projects:
|
|
180
65
|
|
|
181
|
-
-
|
|
182
|
-
-
|
|
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
|
-
|
|
69
|
+
For complex domains:
|
|
187
70
|
|
|
188
|
-
|
|
71
|
+
- Consider dedicated compliance/regulatory epics
|
|
72
|
+
- Group validation and safety requirements logically
|
|
73
|
+
- Note expertise requirements
|
|
189
74
|
|
|
190
|
-
|
|
191
|
-
- Authentication/authorization
|
|
192
|
-
- Basic infrastructure
|
|
193
|
-
- Essential APIs
|
|
194
|
-
- Compliance foundation (if domain requires)
|
|
75
|
+
Present proposed epic structure showing:
|
|
195
76
|
|
|
196
|
-
|
|
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
|
-
-
|
|
199
|
-
-
|
|
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="
|
|
245
|
-
<action>
|
|
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
|
-
|
|
89
|
+
INTENT: Create stories sized for single dev agent completion
|
|
257
90
|
|
|
258
|
-
|
|
259
|
-
- Technical approach clear
|
|
260
|
-
- No ambiguous requirements
|
|
261
|
-
- Success measurable
|
|
91
|
+
For each epic, generate:
|
|
262
92
|
|
|
263
|
-
|
|
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
|
-
|
|
266
|
-
- Can start with clear inputs
|
|
267
|
-
- Outputs well-defined
|
|
268
|
-
- Parallel opportunities noted
|
|
97
|
+
CRITICAL for Epic 1 (Foundation):
|
|
269
98
|
|
|
270
|
-
|
|
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
|
-
-
|
|
273
|
-
- Validation criteria defined
|
|
274
|
-
- Regulatory references included
|
|
275
|
-
- Special expertise noted
|
|
104
|
+
Each story should follow BDD-style acceptance criteria:
|
|
276
105
|
|
|
277
|
-
|
|
278
|
-
|
|
106
|
+
**Story Pattern:**
|
|
107
|
+
As a [user type],
|
|
108
|
+
I want [specific capability],
|
|
109
|
+
So that [clear value/benefit].
|
|
279
110
|
|
|
280
|
-
|
|
281
|
-
|
|
111
|
+
**Acceptance Criteria using BDD:**
|
|
112
|
+
Given [precondition or initial state]
|
|
113
|
+
When [action or trigger]
|
|
114
|
+
Then [expected outcome]
|
|
282
115
|
|
|
283
|
-
|
|
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
|
-
|
|
297
|
-
<action>Add practical guidance for implementation teams
|
|
118
|
+
**Prerequisites:** Only previous stories (never forward dependencies)
|
|
298
119
|
|
|
299
|
-
|
|
120
|
+
**Technical Notes:** Implementation guidance, affected components, compliance requirements
|
|
300
121
|
|
|
301
|
-
|
|
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
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
-
|
|
310
|
-
-
|
|
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
|
-
|
|
325
|
-
"Watch out for:
|
|
130
|
+
For each story in epic {{N}}, output variables following this pattern:
|
|
326
131
|
|
|
327
|
-
-
|
|
328
|
-
-
|
|
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
|
-
|
|
332
|
-
|
|
135
|
+
<template-output>epic*title*{{N}}</template-output>
|
|
136
|
+
<template-output>epic*goal*{{N}}</template-output>
|
|
333
137
|
|
|
334
|
-
|
|
335
|
-
-
|
|
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
|
-
<
|
|
141
|
+
<invoke-task halt="true">{project-root}/bmad/core/tasks/adv-elicit.xml</invoke-task>
|
|
339
142
|
</step>
|
|
340
143
|
|
|
341
|
-
<step n="
|
|
342
|
-
<action>
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
166
|
+
<template-output>epic_breakdown_summary</template-output>
|
|
393
167
|
</step>
|
|
394
168
|
|
|
395
169
|
</workflow>
|
package/src/modules/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/workflow.yaml
CHANGED
|
@@ -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
|
-
#
|
|
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
|
-
#
|
|
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:
|