bmad-method 4.30.4 → 4.32.0

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 (82) hide show
  1. package/.vscode/settings.json +1 -7
  2. package/CHANGELOG.md +117 -170
  3. package/README.md +46 -7
  4. package/bmad-core/agents/analyst.md +1 -1
  5. package/bmad-core/agents/architect.md +2 -3
  6. package/bmad-core/agents/bmad-master.md +0 -1
  7. package/bmad-core/agents/bmad-orchestrator.md +9 -10
  8. package/bmad-core/agents/dev.md +1 -2
  9. package/bmad-core/agents/pm.md +3 -1
  10. package/bmad-core/agents/po.md +1 -1
  11. package/bmad-core/agents/qa.md +1 -1
  12. package/bmad-core/agents/sm.md +1 -1
  13. package/bmad-core/agents/ux-expert.md +1 -1
  14. package/bmad-core/bmad-core/user-guide.md +0 -0
  15. package/bmad-core/data/bmad-kb.md +12 -2
  16. package/bmad-core/data/elicitation-methods.md +20 -0
  17. package/bmad-core/enhanced-ide-development-workflow.md +43 -0
  18. package/bmad-core/tasks/advanced-elicitation.md +2 -0
  19. package/bmad-core/tasks/create-brownfield-story.md +20 -3
  20. package/bmad-core/tasks/document-project.md +19 -13
  21. package/bmad-core/tasks/facilitate-brainstorming-session.md +1 -1
  22. package/bmad-core/tasks/index-docs.md +0 -1
  23. package/bmad-core/tasks/kb-mode-interaction.md +3 -3
  24. package/bmad-core/tasks/review-story.md +18 -1
  25. package/bmad-core/user-guide.md +251 -0
  26. package/{docs → bmad-core}/working-in-the-brownfield.md +39 -36
  27. package/dist/agents/analyst.txt +6 -6
  28. package/dist/agents/architect.txt +8 -3
  29. package/dist/agents/bmad-master.txt +2 -1
  30. package/dist/agents/pm.txt +9 -2
  31. package/dist/agents/po.txt +2 -318
  32. package/dist/agents/qa.txt +0 -1
  33. package/dist/agents/sm.txt +3 -3
  34. package/dist/agents/ux-expert.txt +2 -297
  35. package/dist/expansion-packs/bmad-2d-phaser-game-dev/teams/phaser-2d-nodejs-game-team.txt +6 -6
  36. package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-architect.txt +4047 -0
  37. package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-designer.txt +1520 -185
  38. package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-developer.txt +214 -1229
  39. package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-sm.txt +537 -373
  40. package/dist/expansion-packs/bmad-2d-unity-game-dev/teams/unity-2d-game-team.txt +6917 -2140
  41. package/dist/teams/team-all.txt +30 -25
  42. package/dist/teams/team-fullstack.txt +27 -21
  43. package/dist/teams/team-ide-minimal.txt +5 -322
  44. package/dist/teams/team-no-ui.txt +25 -16
  45. package/expansion-packs/bmad-2d-phaser-game-dev/data/development-guidelines.md +3 -1
  46. package/expansion-packs/bmad-2d-unity-game-dev/agent-teams/unity-2d-game-team.yaml +1 -0
  47. package/expansion-packs/bmad-2d-unity-game-dev/agents/game-architect.md +80 -0
  48. package/expansion-packs/bmad-2d-unity-game-dev/agents/game-designer.md +21 -16
  49. package/expansion-packs/bmad-2d-unity-game-dev/agents/game-developer.md +25 -25
  50. package/expansion-packs/bmad-2d-unity-game-dev/agents/game-sm.md +15 -14
  51. package/expansion-packs/bmad-2d-unity-game-dev/checklists/game-architect-checklist.md +396 -0
  52. package/expansion-packs/bmad-2d-unity-game-dev/checklists/game-change-checklist.md +203 -0
  53. package/expansion-packs/bmad-2d-unity-game-dev/checklists/game-design-checklist.md +1 -1
  54. package/expansion-packs/bmad-2d-unity-game-dev/checklists/game-story-dod-checklist.md +93 -121
  55. package/expansion-packs/bmad-2d-unity-game-dev/config.yaml +1 -1
  56. package/expansion-packs/bmad-2d-unity-game-dev/data/bmad-kb.md +593 -68
  57. package/expansion-packs/bmad-2d-unity-game-dev/tasks/correct-course-game.md +151 -0
  58. package/expansion-packs/bmad-2d-unity-game-dev/tasks/create-game-story.md +165 -198
  59. package/expansion-packs/bmad-2d-unity-game-dev/tasks/validate-game-story.md +200 -0
  60. package/expansion-packs/bmad-2d-unity-game-dev/templates/game-architecture-tmpl.yaml +938 -453
  61. package/expansion-packs/bmad-2d-unity-game-dev/templates/game-brief-tmpl.yaml +3 -3
  62. package/expansion-packs/bmad-2d-unity-game-dev/templates/game-design-doc-tmpl.yaml +517 -155
  63. package/expansion-packs/bmad-2d-unity-game-dev/templates/game-story-tmpl.yaml +12 -12
  64. package/expansion-packs/bmad-2d-unity-game-dev/templates/level-design-doc-tmpl.yaml +11 -11
  65. package/package.json +79 -76
  66. package/tools/cli.js +9 -0
  67. package/tools/flattener/main.js +559 -0
  68. package/tools/installer/lib/installer.js +4 -0
  69. package/tools/installer/package.json +1 -1
  70. package/.husky/pre-commit +0 -2
  71. package/.prettierignore +0 -21
  72. package/.prettierrc +0 -23
  73. package/docs/agentic-tools/claude-code-guide.md +0 -19
  74. package/docs/agentic-tools/cline-guide.md +0 -16
  75. package/docs/agentic-tools/cursor-guide.md +0 -14
  76. package/docs/agentic-tools/gemini-cli-guide.md +0 -31
  77. package/docs/agentic-tools/github-copilot-guide.md +0 -42
  78. package/docs/agentic-tools/roo-code-guide.md +0 -15
  79. package/docs/agentic-tools/trae-guide.md +0 -14
  80. package/docs/agentic-tools/windsurf-guide.md +0 -14
  81. package/docs/bmad-workflow-guide.md +0 -166
  82. package/docs/user-guide.md +0 -1142
@@ -2,10 +2,10 @@
2
2
 
3
3
  > **HIGHLY RECOMMENDED: Use Gemini Web or Gemini CLI for Brownfield Documentation Generation!**
4
4
  >
5
- > Gemini Web's 1M+ token context window or Gemini CLI (when its working) can analyze your ENTIRE codebase or critical sections of it all at once (obviously within reason):
5
+ > Gemini Web's 1M+ token context window or Gemini CLI (when it's working) can analyze your ENTIRE codebase, or critical sections of it, all at once (obviously within reason):
6
6
  >
7
7
  > - Upload via GitHub URL or use gemini cli in the project folder
8
- > - If in the web: Upload up to 1000 files or the zipped project or just give it the github url
8
+ > - If working in the web: use the flattener-tool to flatten your project into a single file, then upload that file to your web agent.
9
9
 
10
10
  ## What is Brownfield Development?
11
11
 
@@ -22,10 +22,13 @@ Brownfield development refers to adding features, fixing bugs, or modernizing ex
22
22
 
23
23
  ## When NOT to use a Brownfield Flow
24
24
 
25
- If you have just completed an MVP with BMad, and you want to continue with post-MVP, its easier to just talk to the PM and ask him to work with you to create a new epic to add into the PRD, shard out the epic, update any architecture documents with the architect, and just go from there.
25
+ If you have just completed an MVP with BMad, and you want to continue with post-MVP, its easier to just talk to the PM and ask it to work with you to create a new epic to add into the PRD, shard out the epic, update any architecture documents with the architect, and just go from there.
26
26
 
27
27
  ## The Complete Brownfield Workflow
28
28
 
29
+ 1. **Follow the [<ins>User Guide - Installation</ins>](user-guide.md#installation) steps to setup your agent in the web.**
30
+ 2. **Generate a 'flattened' single file of your entire codebase** run: `npm run flatten`
31
+
29
32
  ### Choose Your Approach
30
33
 
31
34
  #### Approach A: PRD-First (Recommended if adding very large and complex new features, single or multiple epics or massive changes)
@@ -48,11 +51,11 @@ If you have just completed an MVP with BMad, and you want to continue with post-
48
51
 
49
52
  #### Phase 1: Define Requirements First
50
53
 
51
- **In Gemini Web (with your codebase uploaded):**
54
+ **In Gemini Web (with your flattened-codebase.xml uploaded):**
52
55
 
53
56
  ```bash
54
57
  @pm
55
- *create-doc brownfield-prd
58
+ *create-brownfield-prd
56
59
  ```
57
60
 
58
61
  The PM will:
@@ -69,7 +72,7 @@ The PM will:
69
72
  **Still in Gemini Web, now with PRD context:**
70
73
 
71
74
  ```bash
72
- @analyst
75
+ @architect
73
76
  *document-project
74
77
  ```
75
78
 
@@ -104,22 +107,21 @@ For example, if you say "Add payment processing to user service":
104
107
  1. **Go to Gemini Web** (gemini.google.com)
105
108
  2. **Upload your project**:
106
109
  - **Option A**: Paste your GitHub repository URL directly
107
- - **Option B**: Upload up to 1000 files from your src/project folder
108
- - **Option C**: Zip your project and upload the archive
109
- 3. **Load the analyst agent**: Upload `dist/agents/analyst.txt`
110
+ - **Option B**: Upload your flattened-codebase.xml file
111
+ 3. **Load the analyst agent**: Upload `dist/agents/architect.txt`
110
112
  4. **Run documentation**: Type `*document-project`
111
113
 
112
114
  The analyst will generate comprehensive documentation of everything.
113
115
 
114
116
  #### Phase 2: Plan Your Enhancement
115
117
 
116
- #### Option A: Full Brownfield Workflow (Recommended for Major Changes)
118
+ ##### Option A: Full Brownfield Workflow (Recommended for Major Changes)
117
119
 
118
120
  **1. Create Brownfield PRD**:
119
121
 
120
122
  ```bash
121
123
  @pm
122
- *create-doc brownfield-prd
124
+ *create-brownfield-prd
123
125
  ```
124
126
 
125
127
  The PM agent will:
@@ -146,7 +148,7 @@ The PM agent will:
146
148
 
147
149
  ```bash
148
150
  @architect
149
- *create-doc brownfield-architecture
151
+ *create-brownfield-architecture
150
152
  ```
151
153
 
152
154
  The architect will:
@@ -157,13 +159,13 @@ The architect will:
157
159
  - **Identify technical risks**
158
160
  - **Define compatibility requirements**
159
161
 
160
- #### Option B: Quick Enhancement (For Focused Changes)
162
+ ##### Option B: Quick Enhancement (For Focused Changes)
161
163
 
162
164
  **For Single Epic Without Full PRD**:
163
165
 
164
166
  ```bash
165
167
  @pm
166
- *brownfield-create-epic
168
+ *create-brownfield-epic
167
169
  ```
168
170
 
169
171
  Use when:
@@ -177,7 +179,7 @@ Use when:
177
179
 
178
180
  ```bash
179
181
  @pm
180
- *brownfield-create-story
182
+ *create-brownfield-story
181
183
  ```
182
184
 
183
185
  Use when:
@@ -191,7 +193,7 @@ Use when:
191
193
 
192
194
  ```bash
193
195
  @po
194
- *execute-checklist po-master-checklist
196
+ *execute-checklist-po
195
197
  ```
196
198
 
197
199
  The PO ensures:
@@ -201,26 +203,27 @@ The PO ensures:
201
203
  - Risk mitigation strategies in place
202
204
  - Clear integration approach
203
205
 
204
- ### Phase 4: Transition to Development
205
-
206
- Follow the enhanced IDE Development Workflow:
207
-
208
- 1. **Ensure documents are in project**:
206
+ ### Phase 4: Save and Shard Documents
209
207
 
210
- - Copy `docs/prd.md` (or brownfield-prd.md)
211
- - Copy `docs/architecture.md` (or brownfield-architecture.md)
208
+ 1. Save your PRD and Architecture as:
209
+ docs/brownfield-prd.md
210
+ docs/brownfield-architecture.md
211
+ 2. Shard your docs:
212
+ In your IDE
212
213
 
213
- 2. **Shard documents**:
214
+ ```bash
215
+ @po
216
+ shard docs/brownfield-prd.md
217
+ ```
214
218
 
215
219
  ```bash
216
220
  @po
217
- # Ask to shard docs/prd.md
221
+ shard docs/brownfield-architecture.md
218
222
  ```
219
223
 
220
- 3. **Development cycle**:
221
- - **SM** creates stories with integration awareness
222
- - **Dev** implements with existing code respect
223
- - **QA** reviews for compatibility and improvements
224
+ ### Phase 5: Transition to Development
225
+
226
+ **Follow the [<ins>Enhanced IDE Development Workflow</ins>](enhanced-ide-development-workflow.md)**
224
227
 
225
228
  ## Brownfield Best Practices
226
229
 
@@ -287,7 +290,7 @@ Document:
287
290
  ### Scenario 3: Bug Fix in Complex System
288
291
 
289
292
  1. Document relevant subsystems
290
- 2. Use `brownfield-create-story` for focused fix
293
+ 2. Use `create-brownfield-story` for focused fix
291
294
  3. Include regression test requirements
292
295
  4. QA validates no side effects
293
296
 
@@ -310,7 +313,7 @@ Document:
310
313
 
311
314
  ### "Too much boilerplate for small changes"
312
315
 
313
- **Solution**: Use `brownfield-create-story` instead of full workflow
316
+ **Solution**: Use `create-brownfield-story` instead of full workflow
314
317
 
315
318
  ### "Integration points unclear"
316
319
 
@@ -322,19 +325,19 @@ Document:
322
325
 
323
326
  ```bash
324
327
  # Document existing project
325
- @analyst → *document-project
328
+ @architect → *document-project
326
329
 
327
330
  # Create enhancement PRD
328
- @pm → *create-doc brownfield-prd
331
+ @pm → *create-brownfield-prd
329
332
 
330
333
  # Create architecture with integration focus
331
- @architect → *create-doc brownfield-architecture
334
+ @architect → *create-brownfield-architecture
332
335
 
333
336
  # Quick epic creation
334
- @pm → *brownfield-create-epic
337
+ @pm → *create-brownfield-epic
335
338
 
336
339
  # Single story creation
337
- @pm → *brownfield-create-story
340
+ @pm → *create-brownfield-story
338
341
  ```
339
342
 
340
343
  ### Decision Tree
@@ -76,14 +76,14 @@ persona:
76
76
  - Numbered Options Protocol - Always use numbered lists for selections
77
77
  commands:
78
78
  - help: Show numbered list of the following commands to allow selection
79
- - create-doc {template}: execute task create-doc (no template = ONLY show available templates listed under dependencies/templates below)
79
+ - create-project-brief: use task create-doc with project-brief-tmpl.yaml
80
+ - perform-market-research: use task create-doc with market-research-tmpl.yaml
81
+ - create-competitor-analysis: use task create-doc with competitor-analysis-tmpl.yaml
80
82
  - yolo: Toggle Yolo Mode
81
- - doc-out: Output full document to current destination file
82
- - execute-checklist {checklist}: Run task execute-checklist (default->architect-checklist)
83
- - research-prompt {topic}: execute task create-deep-research-prompt for architectural decisions
84
- - brainstorm {topic}: Facilitate structured brainstorming session
83
+ - doc-out: Output full document in progress to current destination file
84
+ - research-prompt {topic}: execute task create-deep-research-prompt.md
85
+ - brainstorm {topic}: Facilitate structured brainstorming session (run task facilitate-brainstorming-session.md with template brainstorming-output-tmpl.yaml)
85
86
  - elicit: run the task advanced-elicitation
86
- - document-project: Analyze and document existing project structure comprehensively
87
87
  - exit: Say goodbye as the Business Analyst, and then abandon inhabiting this persona
88
88
  dependencies:
89
89
  tasks:
@@ -76,11 +76,16 @@ persona:
76
76
  - Living Architecture - Design for change and adaptation
77
77
  commands:
78
78
  - help: Show numbered list of the following commands to allow selection
79
- - create-doc {template}: execute task create-doc (no template = ONLY show available templates listed under dependencies/templates below)
80
- - yolo: Toggle Yolo Mode
79
+ - create-full-stack-architecture: use create-doc with fullstack-architecture-tmpl.yaml
80
+ - create-backend-architecture: use create-doc with architecture-tmpl.yaml
81
+ - create-front-end-architecture: use create-doc with front-end-architecture-tmpl.yaml
82
+ - create-brownfield-architecture: use create-doc with brownfield-architecture-tmpl.yaml
81
83
  - doc-out: Output full document to current destination file
84
+ - document-project: execute the task document-project.md
82
85
  - execute-checklist {checklist}: Run task execute-checklist (default->architect-checklist)
83
- - research {topic}: execute task create-deep-research-prompt for architectural decisions
86
+ - research {topic}: execute task create-deep-research-prompt
87
+ - shard-prd: run the task shard-doc.md for the provided architecture.md (ask if not found)
88
+ - yolo: Toggle Yolo Mode
84
89
  - exit: Say goodbye as the Architect, and then abandon inhabiting this persona
85
90
  dependencies:
86
91
  tasks:
@@ -70,10 +70,11 @@ commands:
70
70
  - kb: Toggle KB mode off (default) or on, when on will load and reference the .bmad-core/data/bmad-kb.md and converse with the user answering his questions with this informational resource
71
71
  - task {task}: Execute task, if not found or none specified, ONLY list available dependencies/tasks listed below
72
72
  - create-doc {template}: execute task create-doc (no template = ONLY show available templates listed under dependencies/templates below)
73
+ - doc-out: Output full document to current destination file
74
+ - document-project: execute the task document-project.md
73
75
  - execute-checklist {checklist}: Run task execute-checklist (no checklist = ONLY show available checklists listed under dependencies/checklist below)
74
76
  - shard-doc {document} {destination}: run the task shard-doc against the optionally provided document to the specified destination
75
77
  - yolo: Toggle Yolo Mode
76
- - doc-out: Output full document to current destination file
77
78
  - exit: Exit (confirm)
78
79
  dependencies:
79
80
  tasks:
@@ -72,9 +72,16 @@ persona:
72
72
  - Strategic thinking & outcome-oriented
73
73
  commands:
74
74
  - help: Show numbered list of the following commands to allow selection
75
- - create-doc {template}: execute task create-doc for template provided, if no template then ONLY list dependencies.templates
76
- - yolo: Toggle Yolo Mode
75
+ - create-prd: run task create-doc.md with template prd-tmpl.yaml
76
+ - create-brownfield-prd: run task create-doc.md with template brownfield-prd-tmpl.yaml
77
+ - create-brownfield-epic: run task brownfield-create-epic.md
78
+ - create-brownfield-story: run task brownfield-create-story.md
79
+ - create-epic: Create epic for brownfield projects (task brownfield-create-epic)
80
+ - create-story: Create user story from requirements (task brownfield-create-story)
77
81
  - doc-out: Output full document to current destination file
82
+ - shard-prd: run the task shard-doc.md for the provided prd.md (ask if not found)
83
+ - correct-course: execute the correct-course task
84
+ - yolo: Toggle Yolo Mode
78
85
  - exit: Exit (confirm)
79
86
  dependencies:
80
87
  tasks:
@@ -75,23 +75,20 @@ persona:
75
75
  - Documentation Ecosystem Integrity - Maintain consistency across all documents
76
76
  commands:
77
77
  - help: Show numbered list of the following commands to allow selection
78
- - create-doc {template}: execute task create-doc (no template = ONLY show available templates listed under dependencies/templates below)
79
- - execute-checklist {checklist}: Run task execute-checklist (default->po-master-checklist)
78
+ - execute-checklist-po: Run task execute-checklist (checklist po-master-checklist)
80
79
  - shard-doc {document} {destination}: run the task shard-doc against the optionally provided document to the specified destination
81
80
  - correct-course: execute the correct-course task
82
81
  - create-epic: Create epic for brownfield projects (task brownfield-create-epic)
83
82
  - create-story: Create user story from requirements (task brownfield-create-story)
84
- - yolo: Toggle Yolo Mode off on - on will skip doc section confirmations
85
83
  - doc-out: Output full document to current destination file
86
84
  - validate-story-draft {story}: run the task validate-next-story against the provided story file
85
+ - yolo: Toggle Yolo Mode off on - on will skip doc section confirmations
87
86
  - exit: Exit (confirm)
88
87
  dependencies:
89
88
  tasks:
90
89
  - execute-checklist.md
91
90
  - shard-doc.md
92
91
  - correct-course.md
93
- - brownfield-create-epic.md
94
- - brownfield-create-story.md
95
92
  - validate-next-story.md
96
93
  templates:
97
94
  - story-tmpl.yaml
@@ -460,319 +457,6 @@ Document sharded successfully:
460
457
  - **Implicit:** An annotated change-checklist (or the record of its completion) reflecting the discussions, findings, and decisions made during the process.
461
458
  ==================== END: .bmad-core/tasks/correct-course.md ====================
462
459
 
463
- ==================== START: .bmad-core/tasks/brownfield-create-epic.md ====================
464
- # Create Brownfield Epic Task
465
-
466
- ## Purpose
467
-
468
- Create a single epic for smaller brownfield enhancements that don't require the full PRD and Architecture documentation process. This task is for isolated features or modifications that can be completed within a focused scope.
469
-
470
- ## When to Use This Task
471
-
472
- **Use this task when:**
473
-
474
- - The enhancement can be completed in 1-3 stories
475
- - No significant architectural changes are required
476
- - The enhancement follows existing project patterns
477
- - Integration complexity is minimal
478
- - Risk to existing system is low
479
-
480
- **Use the full brownfield PRD/Architecture process when:**
481
-
482
- - The enhancement requires multiple coordinated stories
483
- - Architectural planning is needed
484
- - Significant integration work is required
485
- - Risk assessment and mitigation planning is necessary
486
-
487
- ## Instructions
488
-
489
- ### 1. Project Analysis (Required)
490
-
491
- Before creating the epic, gather essential information about the existing project:
492
-
493
- **Existing Project Context:**
494
-
495
- - [ ] Project purpose and current functionality understood
496
- - [ ] Existing technology stack identified
497
- - [ ] Current architecture patterns noted
498
- - [ ] Integration points with existing system identified
499
-
500
- **Enhancement Scope:**
501
-
502
- - [ ] Enhancement clearly defined and scoped
503
- - [ ] Impact on existing functionality assessed
504
- - [ ] Required integration points identified
505
- - [ ] Success criteria established
506
-
507
- ### 2. Epic Creation
508
-
509
- Create a focused epic following this structure:
510
-
511
- #### Epic Title
512
-
513
- {{Enhancement Name}} - Brownfield Enhancement
514
-
515
- #### Epic Goal
516
-
517
- {{1-2 sentences describing what the epic will accomplish and why it adds value}}
518
-
519
- #### Epic Description
520
-
521
- **Existing System Context:**
522
-
523
- - Current relevant functionality: {{brief description}}
524
- - Technology stack: {{relevant existing technologies}}
525
- - Integration points: {{where new work connects to existing system}}
526
-
527
- **Enhancement Details:**
528
-
529
- - What's being added/changed: {{clear description}}
530
- - How it integrates: {{integration approach}}
531
- - Success criteria: {{measurable outcomes}}
532
-
533
- #### Stories
534
-
535
- List 1-3 focused stories that complete the epic:
536
-
537
- 1. **Story 1:** {{Story title and brief description}}
538
- 2. **Story 2:** {{Story title and brief description}}
539
- 3. **Story 3:** {{Story title and brief description}}
540
-
541
- #### Compatibility Requirements
542
-
543
- - [ ] Existing APIs remain unchanged
544
- - [ ] Database schema changes are backward compatible
545
- - [ ] UI changes follow existing patterns
546
- - [ ] Performance impact is minimal
547
-
548
- #### Risk Mitigation
549
-
550
- - **Primary Risk:** {{main risk to existing system}}
551
- - **Mitigation:** {{how risk will be addressed}}
552
- - **Rollback Plan:** {{how to undo changes if needed}}
553
-
554
- #### Definition of Done
555
-
556
- - [ ] All stories completed with acceptance criteria met
557
- - [ ] Existing functionality verified through testing
558
- - [ ] Integration points working correctly
559
- - [ ] Documentation updated appropriately
560
- - [ ] No regression in existing features
561
-
562
- ### 3. Validation Checklist
563
-
564
- Before finalizing the epic, ensure:
565
-
566
- **Scope Validation:**
567
-
568
- - [ ] Epic can be completed in 1-3 stories maximum
569
- - [ ] No architectural documentation is required
570
- - [ ] Enhancement follows existing patterns
571
- - [ ] Integration complexity is manageable
572
-
573
- **Risk Assessment:**
574
-
575
- - [ ] Risk to existing system is low
576
- - [ ] Rollback plan is feasible
577
- - [ ] Testing approach covers existing functionality
578
- - [ ] Team has sufficient knowledge of integration points
579
-
580
- **Completeness Check:**
581
-
582
- - [ ] Epic goal is clear and achievable
583
- - [ ] Stories are properly scoped
584
- - [ ] Success criteria are measurable
585
- - [ ] Dependencies are identified
586
-
587
- ### 4. Handoff to Story Manager
588
-
589
- Once the epic is validated, provide this handoff to the Story Manager:
590
-
591
- ---
592
-
593
- **Story Manager Handoff:**
594
-
595
- "Please develop detailed user stories for this brownfield epic. Key considerations:
596
-
597
- - This is an enhancement to an existing system running {{technology stack}}
598
- - Integration points: {{list key integration points}}
599
- - Existing patterns to follow: {{relevant existing patterns}}
600
- - Critical compatibility requirements: {{key requirements}}
601
- - Each story must include verification that existing functionality remains intact
602
-
603
- The epic should maintain system integrity while delivering {{epic goal}}."
604
-
605
- ---
606
-
607
- ## Success Criteria
608
-
609
- The epic creation is successful when:
610
-
611
- 1. Enhancement scope is clearly defined and appropriately sized
612
- 2. Integration approach respects existing system architecture
613
- 3. Risk to existing functionality is minimized
614
- 4. Stories are logically sequenced for safe implementation
615
- 5. Compatibility requirements are clearly specified
616
- 6. Rollback plan is feasible and documented
617
-
618
- ## Important Notes
619
-
620
- - This task is specifically for SMALL brownfield enhancements
621
- - If the scope grows beyond 3 stories, consider the full brownfield PRD process
622
- - Always prioritize existing system integrity over new functionality
623
- - When in doubt about scope or complexity, escalate to full brownfield planning
624
- ==================== END: .bmad-core/tasks/brownfield-create-epic.md ====================
625
-
626
- ==================== START: .bmad-core/tasks/brownfield-create-story.md ====================
627
- # Create Brownfield Story Task
628
-
629
- ## Purpose
630
-
631
- Create a single user story for very small brownfield enhancements that can be completed in one focused development session. This task is for minimal additions or bug fixes that require existing system integration awareness.
632
-
633
- ## When to Use This Task
634
-
635
- **Use this task when:**
636
-
637
- - The enhancement can be completed in a single story
638
- - No new architecture or significant design is required
639
- - The change follows existing patterns exactly
640
- - Integration is straightforward with minimal risk
641
- - Change is isolated with clear boundaries
642
-
643
- **Use brownfield-create-epic when:**
644
-
645
- - The enhancement requires 2-3 coordinated stories
646
- - Some design work is needed
647
- - Multiple integration points are involved
648
-
649
- **Use the full brownfield PRD/Architecture process when:**
650
-
651
- - The enhancement requires multiple coordinated stories
652
- - Architectural planning is needed
653
- - Significant integration work is required
654
-
655
- ## Instructions
656
-
657
- ### 1. Quick Project Assessment
658
-
659
- Gather minimal but essential context about the existing project:
660
-
661
- **Current System Context:**
662
-
663
- - [ ] Relevant existing functionality identified
664
- - [ ] Technology stack for this area noted
665
- - [ ] Integration point(s) clearly understood
666
- - [ ] Existing patterns for similar work identified
667
-
668
- **Change Scope:**
669
-
670
- - [ ] Specific change clearly defined
671
- - [ ] Impact boundaries identified
672
- - [ ] Success criteria established
673
-
674
- ### 2. Story Creation
675
-
676
- Create a single focused story following this structure:
677
-
678
- #### Story Title
679
-
680
- {{Specific Enhancement}} - Brownfield Addition
681
-
682
- #### User Story
683
-
684
- As a {{user type}},
685
- I want {{specific action/capability}},
686
- So that {{clear benefit/value}}.
687
-
688
- #### Story Context
689
-
690
- **Existing System Integration:**
691
-
692
- - Integrates with: {{existing component/system}}
693
- - Technology: {{relevant tech stack}}
694
- - Follows pattern: {{existing pattern to follow}}
695
- - Touch points: {{specific integration points}}
696
-
697
- #### Acceptance Criteria
698
-
699
- **Functional Requirements:**
700
-
701
- 1. {{Primary functional requirement}}
702
- 2. {{Secondary functional requirement (if any)}}
703
- 3. {{Integration requirement}}
704
-
705
- **Integration Requirements:** 4. Existing {{relevant functionality}} continues to work unchanged 5. New functionality follows existing {{pattern}} pattern 6. Integration with {{system/component}} maintains current behavior
706
-
707
- **Quality Requirements:** 7. Change is covered by appropriate tests 8. Documentation is updated if needed 9. No regression in existing functionality verified
708
-
709
- #### Technical Notes
710
-
711
- - **Integration Approach:** {{how it connects to existing system}}
712
- - **Existing Pattern Reference:** {{link or description of pattern to follow}}
713
- - **Key Constraints:** {{any important limitations or requirements}}
714
-
715
- #### Definition of Done
716
-
717
- - [ ] Functional requirements met
718
- - [ ] Integration requirements verified
719
- - [ ] Existing functionality regression tested
720
- - [ ] Code follows existing patterns and standards
721
- - [ ] Tests pass (existing and new)
722
- - [ ] Documentation updated if applicable
723
-
724
- ### 3. Risk and Compatibility Check
725
-
726
- **Minimal Risk Assessment:**
727
-
728
- - **Primary Risk:** {{main risk to existing system}}
729
- - **Mitigation:** {{simple mitigation approach}}
730
- - **Rollback:** {{how to undo if needed}}
731
-
732
- **Compatibility Verification:**
733
-
734
- - [ ] No breaking changes to existing APIs
735
- - [ ] Database changes (if any) are additive only
736
- - [ ] UI changes follow existing design patterns
737
- - [ ] Performance impact is negligible
738
-
739
- ### 4. Validation Checklist
740
-
741
- Before finalizing the story, confirm:
742
-
743
- **Scope Validation:**
744
-
745
- - [ ] Story can be completed in one development session
746
- - [ ] Integration approach is straightforward
747
- - [ ] Follows existing patterns exactly
748
- - [ ] No design or architecture work required
749
-
750
- **Clarity Check:**
751
-
752
- - [ ] Story requirements are unambiguous
753
- - [ ] Integration points are clearly specified
754
- - [ ] Success criteria are testable
755
- - [ ] Rollback approach is simple
756
-
757
- ## Success Criteria
758
-
759
- The story creation is successful when:
760
-
761
- 1. Enhancement is clearly defined and appropriately scoped for single session
762
- 2. Integration approach is straightforward and low-risk
763
- 3. Existing system patterns are identified and will be followed
764
- 4. Rollback plan is simple and feasible
765
- 5. Acceptance criteria include existing functionality verification
766
-
767
- ## Important Notes
768
-
769
- - This task is for VERY SMALL brownfield changes only
770
- - If complexity grows during analysis, escalate to brownfield-create-epic
771
- - Always prioritize existing system integrity
772
- - When in doubt about integration complexity, use brownfield-create-epic instead
773
- - Stories should take no more than 4 hours of focused development work
774
- ==================== END: .bmad-core/tasks/brownfield-create-story.md ====================
775
-
776
460
  ==================== START: .bmad-core/tasks/validate-next-story.md ====================
777
461
  # Validate Next Story Task
778
462
 
@@ -80,7 +80,6 @@ story-file-permissions:
80
80
  commands:
81
81
  - help: Show numbered list of the following commands to allow selection
82
82
  - review {story}: execute the task review-story for the highest sequence story in docs/stories unless another is specified - keep any specified technical-preferences in mind as needed
83
- - create-doc {template}: execute task create-doc (no template = ONLY show available templates listed under dependencies/templates below)
84
83
  - exit: Say goodbye as the QA Engineer, and then abandon inhabiting this persona
85
84
  dependencies:
86
85
  tasks:
@@ -68,9 +68,9 @@ persona:
68
68
  - You are NOT allowed to implement stories or modify code EVER!
69
69
  commands:
70
70
  - help: Show numbered list of the following commands to allow selection
71
- - draft: Execute task create-next-story
72
- - correct-course: Execute task correct-course
73
- - checklist {checklist}: Show numbered list of checklists if not provided, execute task execute-checklist
71
+ - draft: Execute task create-next-story.md
72
+ - correct-course: Execute task correct-course.md
73
+ - story-checklist: Execute task execute-checklist.md with checklist story-draft-checklist.md
74
74
  - exit: Say goodbye as the Scrum Master, and then abandon inhabiting this persona
75
75
  dependencies:
76
76
  tasks: