bmad-method 4.26.0 → 4.27.1

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 (109) hide show
  1. package/.vscode/settings.json +2 -0
  2. package/CHANGELOG.md +22 -0
  3. package/README.md +29 -282
  4. package/bmad-core/agent-teams/team-all.yaml +6 -6
  5. package/bmad-core/agent-teams/team-fullstack.yaml +6 -6
  6. package/bmad-core/agent-teams/team-no-ui.yaml +2 -2
  7. package/bmad-core/agents/analyst.md +17 -18
  8. package/bmad-core/agents/architect.md +15 -18
  9. package/bmad-core/agents/bmad-master.md +56 -53
  10. package/bmad-core/agents/bmad-orchestrator.md +24 -23
  11. package/bmad-core/agents/dev.md +10 -10
  12. package/bmad-core/agents/pm.md +17 -20
  13. package/bmad-core/agents/po.md +12 -15
  14. package/bmad-core/agents/qa.md +7 -8
  15. package/bmad-core/agents/sm.md +8 -13
  16. package/bmad-core/agents/ux-expert.md +7 -11
  17. package/bmad-core/core-config.yaml +1 -1
  18. package/bmad-core/data/bmad-kb.md +74 -15
  19. package/bmad-core/data/brainstorming-techniques.md +36 -0
  20. package/bmad-core/data/elicitation-methods.md +134 -0
  21. package/bmad-core/tasks/advanced-elicitation.md +82 -57
  22. package/bmad-core/tasks/facilitate-brainstorming-session.md +136 -0
  23. package/bmad-core/templates/architecture-tmpl.yaml +658 -0
  24. package/bmad-core/templates/brainstorming-output-tmpl.yaml +156 -0
  25. package/bmad-core/templates/brownfield-architecture-tmpl.yaml +476 -0
  26. package/bmad-core/templates/brownfield-prd-tmpl.yaml +280 -0
  27. package/bmad-core/templates/competitor-analysis-tmpl.yaml +293 -0
  28. package/bmad-core/templates/front-end-architecture-tmpl.yaml +206 -0
  29. package/bmad-core/templates/front-end-spec-tmpl.yaml +349 -0
  30. package/bmad-core/templates/fullstack-architecture-tmpl.yaml +805 -0
  31. package/bmad-core/templates/market-research-tmpl.yaml +252 -0
  32. package/bmad-core/templates/prd-tmpl.yaml +202 -0
  33. package/bmad-core/templates/project-brief-tmpl.yaml +221 -0
  34. package/bmad-core/templates/story-tmpl.yaml +137 -0
  35. package/bmad-core/utils/plan-management.md +9 -13
  36. package/bmad-core/workflows/greenfield-service.yaml +1 -1
  37. package/common/tasks/create-doc.md +55 -67
  38. package/common/utils/bmad-doc-template.md +325 -0
  39. package/dist/agents/analyst.txt +1312 -1193
  40. package/dist/agents/architect.txt +2484 -2895
  41. package/dist/agents/bmad-master.txt +4680 -4897
  42. package/dist/agents/bmad-orchestrator.txt +400 -195
  43. package/dist/agents/dev.txt +21 -24
  44. package/dist/agents/pm.txt +590 -619
  45. package/dist/agents/po.txt +178 -130
  46. package/dist/agents/qa.txt +159 -48
  47. package/dist/agents/sm.txt +166 -120
  48. package/dist/agents/ux-expert.txt +436 -544
  49. package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-designer.txt +1283 -1260
  50. package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-developer.txt +642 -591
  51. package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-sm.txt +284 -268
  52. package/dist/expansion-packs/bmad-2d-phaser-game-dev/teams/phaser-2d-nodejs-game-team.txt +9258 -4977
  53. package/dist/expansion-packs/bmad-creator-tools/agents/bmad-the-creator.txt +388 -325
  54. package/dist/expansion-packs/bmad-infrastructure-devops/agents/infra-devops-platform.txt +1144 -1165
  55. package/dist/teams/team-all.txt +4885 -4967
  56. package/dist/teams/team-fullstack.txt +5621 -5693
  57. package/dist/teams/team-ide-minimal.txt +604 -333
  58. package/dist/teams/team-no-ui.txt +5209 -5213
  59. package/docs/agentic-tools/github-copilot-guide.md +29 -9
  60. package/docs/bmad-workflow-guide.md +2 -2
  61. package/expansion-packs/bmad-2d-phaser-game-dev/agent-teams/phaser-2d-nodejs-game-team.yaml +2 -2
  62. package/expansion-packs/bmad-2d-phaser-game-dev/agents/game-designer.md +17 -15
  63. package/expansion-packs/bmad-2d-phaser-game-dev/agents/game-developer.md +13 -11
  64. package/expansion-packs/bmad-2d-phaser-game-dev/agents/game-sm.md +13 -11
  65. package/expansion-packs/bmad-2d-phaser-game-dev/config.yaml +1 -1
  66. package/expansion-packs/bmad-2d-phaser-game-dev/tasks/create-game-story.md +2 -2
  67. package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-architecture-tmpl.yaml +613 -0
  68. package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-brief-tmpl.yaml +356 -0
  69. package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-design-doc-tmpl.yaml +343 -0
  70. package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-story-tmpl.yaml +253 -0
  71. package/expansion-packs/bmad-2d-phaser-game-dev/templates/level-design-doc-tmpl.yaml +484 -0
  72. package/expansion-packs/bmad-creator-tools/agents/bmad-the-creator.md +14 -12
  73. package/expansion-packs/bmad-creator-tools/config.yaml +1 -1
  74. package/expansion-packs/bmad-creator-tools/templates/agent-teams-tmpl.yaml +178 -0
  75. package/expansion-packs/bmad-creator-tools/templates/agent-tmpl.yaml +154 -0
  76. package/expansion-packs/bmad-creator-tools/templates/expansion-pack-plan-tmpl.yaml +120 -0
  77. package/expansion-packs/bmad-infrastructure-devops/agents/infra-devops-platform.md +14 -14
  78. package/expansion-packs/bmad-infrastructure-devops/config.yaml +1 -1
  79. package/expansion-packs/bmad-infrastructure-devops/templates/infrastructure-architecture-tmpl.yaml +424 -0
  80. package/expansion-packs/bmad-infrastructure-devops/templates/infrastructure-platform-from-arch-tmpl.yaml +629 -0
  81. package/package.json +1 -1
  82. package/tools/builders/web-builder.js +170 -95
  83. package/tools/installer/config/install.config.yaml +2 -2
  84. package/tools/installer/lib/ide-setup.js +2 -2
  85. package/tools/installer/package.json +1 -1
  86. package/tools/lib/dependency-resolver.js +11 -22
  87. package/tools/md-assets/web-agent-startup-instructions.md +10 -10
  88. package/bmad-core/tasks/brainstorming-techniques.md +0 -238
  89. package/bmad-core/templates/architecture-tmpl.md +0 -776
  90. package/bmad-core/templates/brownfield-architecture-tmpl.md +0 -544
  91. package/bmad-core/templates/brownfield-prd-tmpl.md +0 -266
  92. package/bmad-core/templates/competitor-analysis-tmpl.md +0 -291
  93. package/bmad-core/templates/front-end-architecture-tmpl.md +0 -175
  94. package/bmad-core/templates/front-end-spec-tmpl.md +0 -413
  95. package/bmad-core/templates/fullstack-architecture-tmpl.md +0 -1018
  96. package/bmad-core/templates/market-research-tmpl.md +0 -263
  97. package/bmad-core/templates/prd-tmpl.md +0 -202
  98. package/bmad-core/templates/project-brief-tmpl.md +0 -232
  99. package/bmad-core/templates/story-tmpl.md +0 -58
  100. package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-architecture-tmpl.md +0 -560
  101. package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-brief-tmpl.md +0 -345
  102. package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-design-doc-tmpl.md +0 -331
  103. package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-story-tmpl.md +0 -235
  104. package/expansion-packs/bmad-2d-phaser-game-dev/templates/level-design-doc-tmpl.md +0 -470
  105. package/expansion-packs/bmad-creator-tools/templates/agent-teams-tmpl.md +0 -154
  106. package/expansion-packs/bmad-creator-tools/templates/agent-tmpl.md +0 -143
  107. package/expansion-packs/bmad-creator-tools/templates/expansion-pack-plan-tmpl.md +0 -91
  108. package/expansion-packs/bmad-infrastructure-devops/templates/infrastructure-architecture-tmpl.md +0 -415
  109. package/expansion-packs/bmad-infrastructure-devops/templates/infrastructure-platform-from-arch-tmpl.md +0 -0
@@ -8,14 +8,14 @@ You are now operating as a specialized AI agent from the BMad-Method framework.
8
8
 
9
9
  2. **Resource Navigation**: This bundle contains all resources you need. Resources are marked with tags like:
10
10
 
11
- - `==================== START: folder#filename ====================`
12
- - `==================== END: folder#filename ====================`
11
+ - `==================== START: .bmad-core/folder/filename.md ====================`
12
+ - `==================== END: .bmad-core/folder/filename.md ====================`
13
13
 
14
14
  When you need to reference a resource mentioned in your instructions:
15
15
 
16
16
  - Look for the corresponding START/END tags
17
- - The format is always `folder#filename` (e.g., `personas#analyst`, `tasks#create-story`)
18
- - If a section is specified (e.g., `tasks#create-story#section-name`), navigate to that section within the file
17
+ - The format is always the full path with dot prefix (e.g., `.bmad-core/personas/analyst.md`, `.bmad-core/tasks/create-story.md`)
18
+ - If a section is specified (e.g., `{root}/tasks/create-story.md#section-name`), navigate to that section within the file
19
19
 
20
20
  **Understanding YAML References**: In the agent configuration, resources are referenced in the dependencies section. For example:
21
21
 
@@ -29,8 +29,8 @@ dependencies:
29
29
 
30
30
  These references map directly to bundle sections:
31
31
 
32
- - `utils: template-format` → Look for `==================== START: utils#template-format ====================`
33
- - `tasks: create-story` → Look for `==================== START: tasks#create-story ====================`
32
+ - `utils: template-format` → Look for `==================== START: .bmad-core/utils/template-format.md ====================`
33
+ - `tasks: create-story` → Look for `==================== START: .bmad-core/tasks/create-story.md ====================`
34
34
 
35
35
  3. **Execution Context**: You are operating in a web environment. All your capabilities and knowledge are contained within this bundle. Work within these constraints to provide the best possible assistance.
36
36
 
@@ -38,7 +38,8 @@ These references map directly to bundle sections:
38
38
 
39
39
  ---
40
40
 
41
- ==================== START: agents#pm ====================
41
+
42
+ ==================== START: .bmad-core/agents/pm.md ====================
42
43
  # pm
43
44
 
44
45
  CRITICAL: Read the full YAML, start activation to alter your state of being, follow startup section instructions, stay in this being until told to exit this mode:
@@ -49,6 +50,7 @@ activation-instructions:
49
50
  - Only read the files/tasks listed here when user selects them for execution to minimize context usage
50
51
  - The customization field ALWAYS takes precedence over any conflicting instructions
51
52
  - When listing tasks/templates or presenting options during conversations, always show as numbered options list, allowing the user to type a number to select or execute
53
+ - Greet the user with your name and role, and inform of the *help command.
52
54
  agent:
53
55
  name: John
54
56
  id: pm
@@ -70,131 +72,115 @@ persona:
70
72
  - Collaborative & iterative approach
71
73
  - Proactive risk identification
72
74
  - Strategic thinking & outcome-oriented
73
- startup:
74
- - Greet the user with your name and role, and inform of the *help command.
75
75
  commands:
76
76
  - help: Show numbered list of the following commands to allow selection
77
- - create-doc {template}: execute task create-doc (no template = ONLY show available templates listed under dependencies/templates below)
78
- - yolo: Toggle Yolo Mode off on - on will skip doc section confirmations
77
+ - create-doc {template}: execute task create-doc for template provided, if no template then ONLY list dependencies.templates
78
+ - yolo: Toggle Yolo Mode
79
79
  - doc-out: Output full document to current destination file
80
80
  - exit: Exit (confirm)
81
81
  dependencies:
82
82
  tasks:
83
- - create-doc
84
- - correct-course
85
- - create-deep-research-prompt
86
- - brownfield-create-epic
87
- - brownfield-create-story
88
- - execute-checklist
89
- - shard-doc
83
+ - create-doc.md
84
+ - correct-course.md
85
+ - create-deep-research-prompt.md
86
+ - brownfield-create-epic.md
87
+ - brownfield-create-story.md
88
+ - execute-checklist.md
89
+ - shard-doc.md
90
90
  templates:
91
- - prd-tmpl
92
- - brownfield-prd-tmpl
91
+ - prd-tmpl.yaml
92
+ - brownfield-prd-tmpl.yaml
93
93
  checklists:
94
- - pm-checklist
95
- - change-checklist
94
+ - pm-checklist.md
95
+ - change-checklist.md
96
96
  data:
97
- - technical-preferences
98
- utils:
99
- - template-format
97
+ - technical-preferences.md
100
98
  ```
101
- ==================== END: agents#pm ====================
102
-
103
- ==================== START: tasks#create-doc ====================
104
- # Create Document from Template Task
99
+ ==================== END: .bmad-core/agents/pm.md ====================
105
100
 
106
- ## Purpose
101
+ ==================== START: .bmad-core/tasks/create-doc.md ====================
102
+ # Create Document from Template (YAML Driven)
107
103
 
108
- Generate documents from templates by EXECUTING (not just reading) embedded instructions from the perspective of the selected agent persona.
104
+ ## CRITICAL: Mandatory Elicitation Format
109
105
 
110
- ## CRITICAL RULES
106
+ **When `elicit: true`, ALWAYS use this exact format:**
111
107
 
112
- 1. **Templates are PROGRAMS** - Execute every [[LLM:]] instruction exactly as written
113
- 2. **NEVER show markup** - Hide all [[LLM:]], {{placeholders}}, @{examples}, and template syntax
114
- 3. **STOP and EXECUTE** - When you see "apply tasks#" or "execute tasks#", STOP and run that task immediately
115
- 4. **WAIT for user input** - At review points and after elicitation tasks
108
+ 1. Present section content
109
+ 2. Provide detailed rationale (explain trade-offs, assumptions, decisions made)
110
+ 3. Present numbered options 1-9:
111
+ - **Option 1:** Always "Proceed to next section"
112
+ - **Options 2-9:** Select 8 methods from data/elicitation-methods
113
+ - End with: "Select 1-9 or just type your question/feedback:"
116
114
 
117
- ## Execution Flow
115
+ **NEVER ask yes/no questions or use any other format.**
118
116
 
119
- ### 0. Check Workflow Plan (if configured)
117
+ ## Processing Flow
120
118
 
121
- [[LLM: Check if plan tracking is enabled in core-config.yaml]]
119
+ 1. **Parse YAML template** - Load template metadata and sections
120
+ 2. **Set preferences** - Show current mode (Interactive), confirm output file
121
+ 3. **Process each section:**
122
+ - Skip if condition unmet
123
+ - Check agent permissions (owner/editors) - note if section is restricted to specific agents
124
+ - Draft content using section instruction
125
+ - Present content + detailed rationale
126
+ - **IF elicit: true** → MANDATORY 1-9 options format
127
+ - Save to file if possible
128
+ 4. **Continue until complete**
122
129
 
123
- - If `workflow.trackProgress: true`, check for active plan using utils#plan-management
124
- - If plan exists and this document creation is part of the plan:
125
- - Verify this is the expected next step
126
- - If out of sequence and `enforceSequence: true`, warn user and halt without user override
127
- - If out of sequence and `enforceSequence: false`, ask for confirmation
128
- - Continue with normal execution after plan check
130
+ ## Detailed Rationale Requirements
129
131
 
130
- ### 1. Identify Template
132
+ When presenting section content, ALWAYS include rationale that explains:
131
133
 
132
- - Load from `templates#*` or `{root}/templates directory`
133
- - Agent-specific templates are listed in agent's dependencies
134
- - If agent has `templates: [prd-tmpl, architecture-tmpl]` for example, then offer to create "PRD" and "Architecture" documents
134
+ - Trade-offs and choices made (what was chosen over alternatives and why)
135
+ - Key assumptions made during drafting
136
+ - Interesting or questionable decisions that need user attention
137
+ - Areas that might need validation
135
138
 
136
- ### 2. Ask Interaction Mode
139
+ ## Elicitation Results Flow
137
140
 
138
- > 1. **Incremental** - Section by section with reviews
139
- > 2. **YOLO Mode** - Complete draft then review (user can type `/yolo` anytime to switch)
141
+ After user selects elicitation method (2-9):
140
142
 
141
- ### 3. Execute Template
143
+ 1. Execute method from data/elicitation-methods
144
+ 2. Present results with insights
145
+ 3. Offer options:
146
+ - **1. Apply changes and update section**
147
+ - **2. Return to elicitation menu**
148
+ - **3. Ask any questions or engage further with this elicitation**
142
149
 
143
- - Replace {{placeholders}} with real content
144
- - Execute [[LLM:]] instructions as you encounter them
145
- - Process <<REPEAT>> loops and ^^CONDITIONS^^
146
- - Use @{examples} for guidance but never output them
150
+ ## Agent Permissions
147
151
 
148
- ### 4. Key Execution Patterns
152
+ When processing sections with agent permission fields:
149
153
 
150
- **When you see:** `[[LLM: Draft X and immediately execute tasks#advanced-elicitation]]`
154
+ - **owner**: Note which agent role initially creates/populates the section
155
+ - **editors**: List agent roles allowed to modify the section
156
+ - **readonly**: Mark sections that cannot be modified after creation
151
157
 
152
- - Draft the content
153
- - Present it to user
154
- - IMMEDIATELY execute the task
155
- - Wait for completion before continuing
158
+ **For sections with restricted access:**
156
159
 
157
- **When you see:** `[[LLM: After section completion, apply tasks#Y]]`
160
+ - Include a note in the generated document indicating the responsible agent
161
+ - Example: "_(This section is owned by dev-agent and can only be modified by dev-agent)_"
158
162
 
159
- - Finish the section
160
- - STOP and execute the task
161
- - Wait for user input
163
+ ## YOLO Mode
162
164
 
163
- ### 5. Validation & Final Presentation
165
+ User can type `#yolo` to toggle to YOLO mode (process all sections at once).
164
166
 
165
- - Run any specified checklists
166
- - Present clean, formatted content only
167
- - No truncation or summarization
168
- - Begin directly with content (no preamble)
169
- - Include any handoff prompts from template
167
+ ## CRITICAL REMINDERS
170
168
 
171
- ### 6. Update Workflow Plan (if applicable)
169
+ **❌ NEVER:**
172
170
 
173
- [[LLM: After successful document creation]]
171
+ - Ask yes/no questions for elicitation
172
+ - Use any format other than 1-9 numbered options
173
+ - Create new elicitation methods
174
174
 
175
- - If plan tracking is enabled and document was part of plan:
176
- - Call update-workflow-plan task to mark step complete
177
- - Parameters: task: create-doc, step_id: {from plan}, status: complete
178
- - Show next recommended step from plan
175
+ **✅ ALWAYS:**
179
176
 
180
- ## Common Mistakes to Avoid
177
+ - Use exact 1-9 format when elicit: true
178
+ - Select options 2-9 from data/elicitation-methods only
179
+ - Provide detailed rationale explaining decisions
180
+ - End with "Select 1-9 or just type your question/feedback:"
181
+ ==================== END: .bmad-core/tasks/create-doc.md ====================
181
182
 
182
- Skipping elicitation tasks
183
- ❌ Showing template markup to users
184
- ❌ Continuing past STOP signals
185
- ❌ Combining multiple review points
186
-
187
- ✅ Execute ALL instructions in sequence
188
- ✅ Present only clean, formatted content
189
- ✅ Stop at every elicitation point
190
- ✅ Wait for user confirmation when instructed
191
-
192
- ## Remember
193
-
194
- Templates contain precise instructions for a reason. Follow them exactly to ensure document quality and completeness.
195
- ==================== END: tasks#create-doc ====================
196
-
197
- ==================== START: tasks#correct-course ====================
183
+ ==================== START: .bmad-core/tasks/correct-course.md ====================
198
184
  # Correct Course Task
199
185
 
200
186
  ## Purpose
@@ -268,9 +254,9 @@ Templates contain precise instructions for a reason. Follow them exactly to ensu
268
254
  - A summary of the `change-checklist` analysis (issue, impact, rationale for the chosen path).
269
255
  - Specific, clearly drafted proposed edits for all affected project artifacts.
270
256
  - **Implicit:** An annotated `change-checklist` (or the record of its completion) reflecting the discussions, findings, and decisions made during the process.
271
- ==================== END: tasks#correct-course ====================
257
+ ==================== END: .bmad-core/tasks/correct-course.md ====================
272
258
 
273
- ==================== START: tasks#create-deep-research-prompt ====================
259
+ ==================== START: .bmad-core/tasks/create-deep-research-prompt.md ====================
274
260
  # Create Deep Research Prompt Task
275
261
 
276
262
  This task helps create comprehensive research prompts for various types of deep analysis. It can process inputs from brainstorming sessions, project briefs, market research, or specific research questions to generate targeted prompts for deeper investigation.
@@ -572,9 +558,9 @@ Present these numbered options to the user:
572
558
  - Balance comprehensiveness with focus
573
559
  - Document assumptions and limitations clearly
574
560
  - Plan for iterative refinement based on initial findings
575
- ==================== END: tasks#create-deep-research-prompt ====================
561
+ ==================== END: .bmad-core/tasks/create-deep-research-prompt.md ====================
576
562
 
577
- ==================== START: tasks#brownfield-create-epic ====================
563
+ ==================== START: .bmad-core/tasks/brownfield-create-epic.md ====================
578
564
  # Create Brownfield Epic Task
579
565
 
580
566
  ## Purpose
@@ -735,9 +721,9 @@ The epic creation is successful when:
735
721
  - If the scope grows beyond 3 stories, consider the full brownfield PRD process
736
722
  - Always prioritize existing system integrity over new functionality
737
723
  - When in doubt about scope or complexity, escalate to full brownfield planning
738
- ==================== END: tasks#brownfield-create-epic ====================
724
+ ==================== END: .bmad-core/tasks/brownfield-create-epic.md ====================
739
725
 
740
- ==================== START: tasks#brownfield-create-story ====================
726
+ ==================== START: .bmad-core/tasks/brownfield-create-story.md ====================
741
727
  # Create Brownfield Story Task
742
728
 
743
729
  ## Purpose
@@ -885,16 +871,16 @@ The story creation is successful when:
885
871
  - Always prioritize existing system integrity
886
872
  - When in doubt about integration complexity, use brownfield-create-epic instead
887
873
  - Stories should take no more than 4 hours of focused development work
888
- ==================== END: tasks#brownfield-create-story ====================
874
+ ==================== END: .bmad-core/tasks/brownfield-create-story.md ====================
889
875
 
890
- ==================== START: tasks#execute-checklist ====================
876
+ ==================== START: .bmad-core/tasks/execute-checklist.md ====================
891
877
  # Checklist Validation Task
892
878
 
893
879
  This task provides instructions for validating documentation against checklists. The agent MUST follow these instructions to ensure thorough and systematic validation of documents.
894
880
 
895
881
  ## Available Checklists
896
882
 
897
- If the user asks or does not specify a specific checklist, list the checklists available to the agent persona. If the task is being run not with a specific agent, tell the user to check the {root}/checklists folder to select the appropriate one to run.
883
+ If the user asks or does not specify a specific checklist, list the checklists available to the agent persona. If the task is being run not with a specific agent, tell the user to check the .bmad-core/checklists folder to select the appropriate one to run.
898
884
 
899
885
  ## Instructions
900
886
 
@@ -903,7 +889,7 @@ If the user asks or does not specify a specific checklist, list the checklists a
903
889
  - If user or the task being run provides a checklist name:
904
890
  - Try fuzzy matching (e.g. "architecture checklist" -> "architect-checklist")
905
891
  - If multiple matches found, ask user to clarify
906
- - Load the appropriate checklist from {root}/checklists/
892
+ - Load the appropriate checklist from .bmad-core/checklists/
907
893
  - If no checklist specified:
908
894
  - Ask the user which checklist they want to use
909
895
  - Present the available options from the files in the checklists folder
@@ -981,9 +967,9 @@ The LLM will:
981
967
  - Execute the complete checklist validation
982
968
  - Present a final report with pass/fail rates and key findings
983
969
  - Offer to provide detailed analysis of any section, especially those with warnings or failures
984
- ==================== END: tasks#execute-checklist ====================
970
+ ==================== END: .bmad-core/tasks/execute-checklist.md ====================
985
971
 
986
- ==================== START: tasks#shard-doc ====================
972
+ ==================== START: .bmad-core/tasks/shard-doc.md ====================
987
973
  # Document Sharding Task
988
974
 
989
975
  ## Purpose
@@ -1175,483 +1161,497 @@ Document sharded successfully:
1175
1161
  - Preserve ALL formatting, including whitespace where significant
1176
1162
  - Handle edge cases like sections with code blocks containing ## symbols
1177
1163
  - Ensure the sharding is reversible (could reconstruct the original from shards)
1178
- ==================== END: tasks#shard-doc ====================
1179
-
1180
- ==================== START: templates#prd-tmpl ====================
1181
- # {{Project Name}} Product Requirements Document (PRD)
1182
-
1183
- [[LLM: The default path and filename unless specified is docs/prd.md]]
1184
-
1185
- [[LLM: If available, review any provided document or ask if any are optionally available: Project Brief]]
1186
-
1187
- ## Goals and Background Context
1188
-
1189
- [[LLM: Populate the 2 child sections based on what we have received from user description or the provided brief. Allow user to review the 2 sections and offer changes before proceeding]]
1190
-
1191
- ### Goals
1192
-
1193
- [[LLM: Bullet list of 1 line desired outcomes the PRD will deliver if successful - user and project desires]]
1194
-
1195
- ### Background Context
1196
-
1197
- [[LLM: 1-2 short paragraphs summarizing the background context, such as what we learned in the brief without being redundant with the goals, what and why this solves a problem, what the current landscape or need is etc...]]
1198
-
1199
- ### Change Log
1200
-
1201
- [[LLM: Track document versions and changes]]
1202
-
1203
- | Date | Version | Description | Author |
1204
- | :--- | :------ | :---------- | :----- |
1205
-
1206
- ## Requirements
1207
-
1208
- [[LLM: Draft the list of functional and non functional requirements under the two child sections, and immediately execute tasks#advanced-elicitation display]]
1209
-
1210
- ### Functional
1211
-
1212
- [[LLM: Each Requirement will be a bullet markdown and an identifier sequence starting with FR`.]]
1213
- @{example: - FR6: The Todo List uses AI to detect and warn against adding potentially duplicate todo items that are worded differently.}
1214
-
1215
- ### Non Functional
1216
-
1217
- [[LLM: Each Requirement will be a bullet markdown and an identifier sequence starting with NFR`.]]
1218
- @{example: - NFR1: AWS service usage **must** aim to stay within free-tier limits where feasible.}
1219
-
1220
- ^^CONDITION: has_ui^^
1221
-
1222
- ## User Interface Design Goals
1223
-
1224
- [[LLM: Capture high-level UI/UX vision to guide Design Architect and to inform story creation. Steps:
1225
-
1226
- 1. Pre-fill all subsections with educated guesses based on project context
1227
- 2. Present the complete rendered section to user
1228
- 3. Clearly let the user know where assumptions were made
1229
- 4. Ask targeted questions for unclear/missing elements or areas needing more specification
1230
- 5. This is NOT detailed UI spec - focus on product vision and user goals
1231
- 6. After section completion, immediately apply `tasks#advanced-elicitation` protocol]]
1232
-
1233
- ### Overall UX Vision
1234
-
1235
- ### Key Interaction Paradigms
1236
-
1237
- ### Core Screens and Views
1238
-
1239
- [[LLM: From a product perspective, what are the most critical screens or views necessary to deliver the the PRD values and goals? This is meant to be Conceptual High Level to Drive Rough Epic or User Stories]]
1240
-
1241
- @{example}
1242
-
1243
- - Login Screen
1244
- - Main Dashboard
1245
- - Item Detail Page
1246
- - Settings Page
1247
- @{/example}
1248
-
1249
- ### Accessibility: { None, WCAG, etc }
1250
-
1251
- ### Branding
1252
-
1253
- [[LLM: Any known branding elements or style guides that must be incorporated?]]
1254
-
1255
- @{example}
1256
-
1257
- - Replicate the look and feel of early 1900s black and white cinema, including animated effects replicating film damage or projector glitches during page or state transitions.
1258
- - Attached is the full color pallet and tokens for our corporate branding.
1259
- @{/example}
1260
-
1261
- ### Target Device and Platforms
1262
-
1263
- @{example}
1264
- "Web Responsive, and all mobile platforms", "IPhone Only", "ASCII Windows Desktop"
1265
- @{/example}
1266
-
1267
- ^^/CONDITION: has_ui^^
1268
-
1269
- ## Technical Assumptions
1270
-
1271
- [[LLM: Gather technical decisions that will guide the Architect. Steps:
1272
-
1273
- 1. Check if `data#technical-preferences` or an attached `technical-preferences` file exists - use it to pre-populate choices
1274
- 2. Ask user about: languages, frameworks, starter templates, libraries, APIs, deployment targets
1275
- 3. For unknowns, offer guidance based on project goals and MVP scope
1276
- 4. Document ALL technical choices with rationale (why this choice fits the project)
1277
- 5. These become constraints for the Architect - be specific and complete
1278
- 6. After section completion, apply `tasks#advanced-elicitation` protocol.]]
1279
-
1280
- ### Repository Structure: { Monorepo, Polyrepo, etc...}
1281
-
1282
- ### Service Architecture
1283
-
1284
- [[LLM: CRITICAL DECISION - Document the high-level service architecture (e.g., Monolith, Microservices, Serverless functions within a Monorepo).]]
1285
-
1286
- ### Testing requirements
1287
-
1288
- [[LLM: CRITICAL DECISION - Document the testing requirements, unit only, integration, e2e, manual, need for manual testing convenience methods).]]
1289
-
1290
- ### Additional Technical Assumptions and Requests
1291
-
1292
- [[LLM: Throughout the entire process of drafting this document, if any other technical assumptions are raised or discovered appropriate for the architect, add them here as additional bulleted items]]
1293
-
1294
- ## Epics
1295
-
1296
- [[LLM: First, present a high-level list of all epics for user approval, the epic_list and immediately execute tasks#advanced-elicitation display. Each epic should have a title and a short (1 sentence) goal statement. This allows the user to review the overall structure before diving into details.
1297
-
1298
- CRITICAL: Epics MUST be logically sequential following agile best practices:
1299
-
1300
- - Each epic should deliver a significant, end-to-end, fully deployable increment of testable functionality
1301
- - Epic 1 must establish foundational project infrastructure (app setup, Git, CI/CD, core services) unless we are adding new functionality to an existing app, while also delivering an initial piece of functionality, even as simple as a health-check route or display of a simple canary page - remember this when we produce the stories for the first epic!
1302
- - Each subsequent epic builds upon previous epics' functionality delivering major blocks of functionality that provide tangible value to users or business when deployed
1303
- - Not every project needs multiple epics, an epic needs to deliver value. For example, an API completed can deliver value even if a UI is not complete and planned for a separate epic.
1304
- - Err on the side of less epics, but let the user know your rationale and offer options for splitting them if it seems some are too large or focused on disparate things.
1305
- - Cross Cutting Concerns should flow through epics and stories and not be final stories. For example, adding a logging framework as a last story of an epic, or at the end of a project as a final epic or story would be terrible as we would not have logging from the beginning.]]
1306
-
1307
- <<REPEAT: epic_list>>
1308
-
1309
- - Epic{{epic_number}} {{epic_title}}: {{short_goal}}
1310
-
1311
- <</REPEAT>>
1312
-
1313
- @{example: epic_list}
1314
-
1315
- 1. Foundation & Core Infrastructure: Establish project setup, authentication, and basic user management
1316
- 2. Core Business Entities: Create and manage primary domain objects with CRUD operations
1317
- 3. User Workflows & Interactions: Enable key user journeys and business processes
1318
- 4. Reporting & Analytics: Provide insights and data visualization for users
1319
-
1320
- @{/example}
1321
-
1322
- [[LLM: After the epic list is approved, present each `epic_details` with all its stories and acceptance criteria as a complete review unit and immediately execute tasks#advanced-elicitation display, before moving on to the next epic.]]
1323
-
1324
- <<REPEAT: epic_details>>
1325
-
1326
- ## Epic {{epic_number}} {{epic_title}}
1327
-
1328
- {{epic_goal}} [[LLM: Expanded goal - 2-3 sentences describing the objective and value all the stories will achieve]]
1329
-
1330
- [[LLM: CRITICAL STORY SEQUENCING REQUIREMENTS:
1331
-
1332
- - Stories within each epic MUST be logically sequential
1333
- - Each story should be a "vertical slice" delivering complete functionality aside from early enabler stories for project foundation
1334
- - No story should depend on work from a later story or epic
1335
- - Identify and note any direct prerequisite stories
1336
- - Focus on "what" and "why" not "how" (leave technical implementation to Architect) yet be precise enough to support a logical sequential order of operations from story to story.
1337
- - Ensure each story delivers clear user or business value, try to avoid enablers and build them into stories that deliver value.
1338
- - Size stories for AI agent execution: Each story must be completable by a single AI agent in one focused session without context overflow
1339
- - Think "junior developer working for 2-4 hours" - stories must be small, focused, and self-contained
1340
- - If a story seems complex, break it down further as long as it can deliver a vertical slice
1341
- - Each story should result in working, testable code before the agent's context window fills]]
1342
-
1343
- <<REPEAT: story>>
1344
-
1345
- ### Story {{epic_number}}.{{story_number}} {{story_title}}
1346
-
1347
- As a {{user_type}},
1348
- I want {{action}},
1349
- so that {{benefit}}.
1350
-
1351
- #### Acceptance Criteria
1352
-
1353
- [[LLM: Define clear, comprehensive, and testable acceptance criteria that:
1354
-
1355
- - Precisely define what "done" means from a functional perspective
1356
- - Are unambiguous and serve as basis for verification
1357
- - Include any critical non-functional requirements from the PRD
1358
- - Consider local testability for backend/data components
1359
- - Specify UI/UX requirements and framework adherence where applicable
1360
- - Avoid cross-cutting concerns that should be in other stories or PRD sections]]
1361
-
1362
- <<REPEAT: criteria>>
1363
-
1364
- - {{criterion number}}: {{criteria}}
1365
-
1366
- <</REPEAT>>
1367
- <</REPEAT>>
1368
- <</REPEAT>>
1369
-
1370
- ## Checklist Results Report
1371
-
1372
- [[LLM: Before running the checklist and drafting the prompts, offer to output the full updated PRD. If outputting it, confirm with the user that you will be proceeding to run the checklist and produce the report. Once the user confirms, execute the `pm-checklist` and populate the results in this section.]]
1373
-
1374
- ## Next Steps
1375
-
1376
- ### Design Architect Prompt
1377
-
1378
- [[LLM: This section will contain the prompt for the Design Architect, keep it short and to the point to initiate create architecture mode using this document as input.]]
1379
-
1380
- ### Architect Prompt
1381
-
1382
- [[LLM: This section will contain the prompt for the Architect, keep it short and to the point to initiate create architecture mode using this document as input.]]
1383
- ==================== END: templates#prd-tmpl ====================
1384
-
1385
- ==================== START: templates#brownfield-prd-tmpl ====================
1386
- # {{Project Name}} Brownfield Enhancement PRD
1387
-
1388
- [[LLM: The default path and filename unless specified is docs/prd.md]]
1389
-
1390
- [[LLM: IMPORTANT - SCOPE ASSESSMENT REQUIRED:
1391
-
1392
- This PRD is for SIGNIFICANT enhancements to existing projects that require comprehensive planning and multiple stories. Before proceeding:
1393
-
1394
- 1. **Assess Enhancement Complexity**: If this is a simple feature addition or bug fix that could be completed in 1-2 focused development sessions, STOP and recommend: "For simpler changes, consider using the brownfield-create-epic or brownfield-create-story task with the Product Owner instead. This full PRD process is designed for substantial enhancements that require architectural planning and multiple coordinated stories."
1395
-
1396
- 2. **Project Context**: Determine if we're working in an IDE with the project already loaded or if the user needs to provide project information. If project files are available, analyze existing documentation in the docs folder. If insufficient documentation exists, recommend running the document-project task first.
1397
-
1398
- 3. **Deep Assessment Requirement**: You MUST thoroughly analyze the existing project structure, patterns, and constraints before making ANY suggestions. Every recommendation must be grounded in actual project analysis, not assumptions.]]
1399
-
1400
- ## Intro Project Analysis and Context
1401
-
1402
- [[LLM: Gather comprehensive information about the existing project. This section must be completed before proceeding with requirements.
1403
-
1404
- CRITICAL: Throughout this analysis, explicitly confirm your understanding with the user. For every assumption you make about the existing project, ask: "Based on my analysis, I understand that [assumption]. Is this correct?"
1405
-
1406
- Do not proceed with any recommendations until the user has validated your understanding of the existing system.]]
1407
-
1408
- ### Existing Project Overview
1409
-
1410
- [[LLM: Check if document-project analysis was already performed. If yes, reference that output instead of re-analyzing.]]
1411
-
1412
- **Analysis Source**: [[LLM: Indicate one of the following:
1413
- - Document-project output available at: {{path}}
1414
- - IDE-based fresh analysis
1415
- - User-provided information
1416
- ]]
1417
-
1418
- **Current Project State**: [[LLM:
1419
- - If document-project output exists: Extract summary from "High Level Architecture" and "Technical Summary" sections
1420
- - Otherwise: Brief description of what the project currently does and its primary purpose
1421
- ]]
1422
-
1423
- ### Available Documentation Analysis
1424
-
1425
- [[LLM:
1426
- If document-project was run:
1427
- - Note: "Document-project analysis available - using existing technical documentation"
1428
- - List key documents created by document-project
1429
- - Skip the missing documentation check below
1430
-
1431
- Otherwise, check for existing documentation:
1432
- ]]
1433
-
1434
- **Available Documentation**:
1435
-
1436
- - [ ] Tech Stack Documentation [[LLM: If from document-project, check ✓]]
1437
- - [ ] Source Tree/Architecture [[LLM: If from document-project, check ✓]]
1438
- - [ ] Coding Standards [[LLM: If from document-project, may be partial]]
1439
- - [ ] API Documentation [[LLM: If from document-project, check ✓]]
1440
- - [ ] External API Documentation [[LLM: If from document-project, check ✓]]
1441
- - [ ] UX/UI Guidelines [[LLM: May not be in document-project]]
1442
- - [ ] Technical Debt Documentation [[LLM: If from document-project, check ✓]]
1443
- - [ ] Other: \***\*\_\_\_\*\***
1444
-
1445
- [[LLM:
1446
- - If document-project was already run: "Using existing project analysis from document-project output."
1447
- - If critical documentation is missing and no document-project: "I recommend running the document-project task first..."
1448
- ]]
1449
-
1450
- ### Enhancement Scope Definition
1451
-
1452
- [[LLM: Work with user to clearly define what type of enhancement this is. This is critical for scoping and approach.]]
1453
-
1454
- **Enhancement Type**: [[LLM: Determine with user which applies]]
1455
-
1456
- - [ ] New Feature Addition
1457
- - [ ] Major Feature Modification
1458
- - [ ] Integration with New Systems
1459
- - [ ] Performance/Scalability Improvements
1460
- - [ ] UI/UX Overhaul
1461
- - [ ] Technology Stack Upgrade
1462
- - [ ] Bug Fix and Stability Improvements
1463
- - [ ] Other: \***\*\_\_\_\*\***
1464
-
1465
- **Enhancement Description**: [[LLM: 2-3 sentences describing what the user wants to add or change]]
1466
-
1467
- **Impact Assessment**: [[LLM: Assess the scope of impact on existing codebase]]
1468
-
1469
- - [ ] Minimal Impact (isolated additions)
1470
- - [ ] Moderate Impact (some existing code changes)
1471
- - [ ] Significant Impact (substantial existing code changes)
1472
- - [ ] Major Impact (architectural changes required)
1473
-
1474
- ### Goals and Background Context
1475
-
1476
- #### Goals
1477
-
1478
- [[LLM: Bullet list of 1-line desired outcomes this enhancement will deliver if successful]]
1479
-
1480
- #### Background Context
1481
-
1482
- [[LLM: 1-2 short paragraphs explaining why this enhancement is needed, what problem it solves, and how it fits with the existing project]]
1483
-
1484
- ### Change Log
1485
-
1486
- | Change | Date | Version | Description | Author |
1487
- | ------ | ---- | ------- | ----------- | ------ |
1488
-
1489
- ## Requirements
1490
-
1491
- [[LLM: Draft functional and non-functional requirements based on your validated understanding of the existing project. Before presenting requirements, confirm: "These requirements are based on my understanding of your existing system. Please review carefully and confirm they align with your project's reality." Then immediately execute tasks#advanced-elicitation display]]
1492
-
1493
- ### Functional
1494
-
1495
- [[LLM: Each Requirement will be a bullet markdown with identifier starting with FR]]
1496
- @{example: - FR1: The existing Todo List will integrate with the new AI duplicate detection service without breaking current functionality.}
1497
-
1498
- ### Non Functional
1499
-
1500
- [[LLM: Each Requirement will be a bullet markdown with identifier starting with NFR. Include constraints from existing system]]
1501
- @{example: - NFR1: Enhancement must maintain existing performance characteristics and not exceed current memory usage by more than 20%.}
1502
-
1503
- ### Compatibility Requirements
1504
-
1505
- [[LLM: Critical for brownfield - what must remain compatible]]
1506
-
1507
- - CR1: [[LLM: Existing API compatibility requirements]]
1508
- - CR2: [[LLM: Database schema compatibility requirements]]
1509
- - CR3: [[LLM: UI/UX consistency requirements]]
1510
- - CR4: [[LLM: Integration compatibility requirements]]
1511
-
1512
- ^^CONDITION: has_ui^^
1513
-
1514
- ## User Interface Enhancement Goals
1515
-
1516
- [[LLM: For UI changes, capture how they will integrate with existing UI patterns and design systems]]
1517
-
1518
- ### Integration with Existing UI
1519
-
1520
- [[LLM: Describe how new UI elements will fit with existing design patterns, style guides, and component libraries]]
1521
-
1522
- ### Modified/New Screens and Views
1523
-
1524
- [[LLM: List only the screens/views that will be modified or added]]
1525
-
1526
- ### UI Consistency Requirements
1527
-
1528
- [[LLM: Specific requirements for maintaining visual and interaction consistency with existing application]]
1529
-
1530
- ^^/CONDITION: has_ui^^
1531
-
1532
- ## Technical Constraints and Integration Requirements
1533
-
1534
- [[LLM: This section replaces separate architecture documentation. Gather detailed technical constraints from existing project analysis.]]
1535
-
1536
- ### Existing Technology Stack
1537
-
1538
- [[LLM:
1539
- If document-project output available:
1540
- - Extract from "Actual Tech Stack" table in High Level Architecture section
1541
- - Include version numbers and any noted constraints
1542
-
1543
- Otherwise, document the current technology stack:
1544
- ]]
1545
-
1546
- **Languages**: [[LLM: From document-project or fresh analysis]]
1547
- **Frameworks**: [[LLM: From document-project or fresh analysis]]
1548
- **Database**: [[LLM: From document-project or fresh analysis]]
1549
- **Infrastructure**: [[LLM: From document-project or fresh analysis]]
1550
- **External Dependencies**: [[LLM: From document-project "External Services" section or fresh analysis]]
1551
-
1552
- ### Integration Approach
1553
-
1554
- [[LLM: Define how the enhancement will integrate with existing architecture]]
1555
-
1556
- **Database Integration Strategy**: [[LLM: How new features will interact with existing database]]
1557
- **API Integration Strategy**: [[LLM: How new APIs will integrate with existing API structure]]
1558
- **Frontend Integration Strategy**: [[LLM: How new UI components will integrate with existing frontend]]
1559
- **Testing Integration Strategy**: [[LLM: How new tests will integrate with existing test suite]]
1560
-
1561
- ### Code Organization and Standards
1562
-
1563
- [[LLM: Based on existing project analysis, define how new code will fit existing patterns]]
1564
-
1565
- **File Structure Approach**: [[LLM: How new files will fit existing project structure]]
1566
- **Naming Conventions**: [[LLM: Existing naming conventions that must be followed]]
1567
- **Coding Standards**: [[LLM: Existing coding standards and linting rules]]
1568
- **Documentation Standards**: [[LLM: How new code documentation will match existing patterns]]
1569
-
1570
- ### Deployment and Operations
1571
-
1572
- [[LLM: How the enhancement fits existing deployment pipeline]]
1573
-
1574
- **Build Process Integration**: [[LLM: How enhancement builds with existing process]]
1575
- **Deployment Strategy**: [[LLM: How enhancement will be deployed alongside existing features]]
1576
- **Monitoring and Logging**: [[LLM: How enhancement will integrate with existing monitoring]]
1577
- **Configuration Management**: [[LLM: How new configuration will integrate with existing config]]
1578
-
1579
- ### Risk Assessment and Mitigation
1580
-
1581
- [[LLM:
1582
- If document-project output available:
1583
- - Reference "Technical Debt and Known Issues" section
1584
- - Include "Workarounds and Gotchas" that might impact enhancement
1585
- - Note any identified constraints from "Critical Technical Debt"
1586
-
1587
- Build risk assessment incorporating existing known issues:
1588
- ]]
1589
-
1590
- **Technical Risks**: [[LLM: Include risks from document-project + new enhancement risks]]
1591
- **Integration Risks**: [[LLM: Reference integration constraints from document-project]]
1592
- **Deployment Risks**: [[LLM: Include deployment gotchas from document-project]]
1593
- **Mitigation Strategies**: [[LLM: Address both existing and new risks]]
1594
-
1595
- ## Epic and Story Structure
1596
-
1597
- [[LLM: For brownfield projects, favor a single comprehensive epic unless the user is clearly requesting multiple unrelated enhancements. Before presenting the epic structure, confirm: "Based on my analysis of your existing project, I believe this enhancement should be structured as [single epic/multiple epics] because [rationale based on actual project analysis]. Does this align with your understanding of the work required?" Then present the epic structure and immediately execute tasks#advanced-elicitation display.]]
1598
-
1599
- ### Epic Approach
1600
-
1601
- [[LLM: Explain the rationale for epic structure - typically single epic for brownfield unless multiple unrelated features]]
1602
-
1603
- **Epic Structure Decision**: [[LLM: Single Epic or Multiple Epics with rationale]]
1604
-
1605
- ## Epic 1: {{enhancement_title}}
1606
-
1607
- [[LLM: Comprehensive epic that delivers the brownfield enhancement while maintaining existing functionality]]
1608
-
1609
- **Epic Goal**: [[LLM: 2-3 sentences describing the complete enhancement objective and value]]
1610
-
1611
- **Integration Requirements**: [[LLM: Key integration points with existing system]]
1612
-
1613
- [[LLM: CRITICAL STORY SEQUENCING FOR BROWNFIELD:
1614
-
1615
- - Stories must ensure existing functionality remains intact
1616
- - Each story should include verification that existing features still work
1617
- - Stories should be sequenced to minimize risk to existing system
1618
- - Include rollback considerations for each story
1619
- - Focus on incremental integration rather than big-bang changes
1620
- - Size stories for AI agent execution in existing codebase context
1621
- - MANDATORY: Present the complete story sequence and ask: "This story sequence is designed to minimize risk to your existing system. Does this order make sense given your project's architecture and constraints?"
1622
- - Stories must be logically sequential with clear dependencies identified
1623
- - Each story must deliver value while maintaining system integrity]]
1624
-
1625
- <<REPEAT: story>>
1626
-
1627
- ### Story 1.{{story_number}} {{story_title}}
1628
-
1629
- As a {{user_type}},
1630
- I want {{action}},
1631
- so that {{benefit}}.
1632
-
1633
- #### Acceptance Criteria
1634
-
1635
- [[LLM: Define criteria that include both new functionality and existing system integrity]]
1636
-
1637
- <<REPEAT: criteria>>
1638
-
1639
- - {{criterion number}}: {{criteria}}
1640
-
1641
- <</REPEAT>>
1642
-
1643
- #### Integration Verification
1644
-
1645
- [[LLM: Specific verification steps to ensure existing functionality remains intact]]
1646
-
1647
- - IV1: [[LLM: Existing functionality verification requirement]]
1648
- - IV2: [[LLM: Integration point verification requirement]]
1649
- - IV3: [[LLM: Performance impact verification requirement]]
1650
-
1651
- <</REPEAT>>
1652
- ==================== END: templates#brownfield-prd-tmpl ====================
1653
-
1654
- ==================== START: checklists#pm-checklist ====================
1164
+ ==================== END: .bmad-core/tasks/shard-doc.md ====================
1165
+
1166
+ ==================== START: .bmad-core/templates/prd-tmpl.yaml ====================
1167
+ template:
1168
+ id: prd-template-v2
1169
+ name: Product Requirements Document
1170
+ version: 2.0
1171
+ output:
1172
+ format: markdown
1173
+ filename: docs/prd.md
1174
+ title: "{{project_name}} Product Requirements Document (PRD)"
1175
+
1176
+ workflow:
1177
+ mode: interactive
1178
+ elicitation: advanced-elicitation
1179
+
1180
+ sections:
1181
+ - id: goals-context
1182
+ title: Goals and Background Context
1183
+ instruction: |
1184
+ Ask if Project Brief document is available. If NO Project Brief exists, STRONGLY recommend creating one first using project-brief-tmpl (it provides essential foundation: problem statement, target users, success metrics, MVP scope, constraints). If user insists on PRD without brief, gather this information during Goals section. If Project Brief exists, review and use it to populate Goals (bullet list of desired outcomes) and Background Context (1-2 paragraphs on what this solves and why) so we can determine what is and is not in scope for PRD mvp. Either way this is critical to determine the requirements. Include Change Log table.
1185
+ sections:
1186
+ - id: goals
1187
+ title: Goals
1188
+ type: bullet-list
1189
+ instruction: Bullet list of 1 line desired outcomes the PRD will deliver if successful - user and project desires
1190
+ - id: background
1191
+ title: Background Context
1192
+ type: paragraphs
1193
+ instruction: 1-2 short paragraphs summarizing the background context, such as what we learned in the brief without being redundant with the goals, what and why this solves a problem, what the current landscape or need is
1194
+ - id: changelog
1195
+ title: Change Log
1196
+ type: table
1197
+ columns: [Date, Version, Description, Author]
1198
+ instruction: Track document versions and changes
1199
+
1200
+ - id: requirements
1201
+ title: Requirements
1202
+ instruction: Draft the list of functional and non functional requirements under the two child sections
1203
+ elicit: true
1204
+ sections:
1205
+ - id: functional
1206
+ title: Functional
1207
+ type: numbered-list
1208
+ prefix: FR
1209
+ instruction: Each Requirement will be a bullet markdown and an identifier sequence starting with FR
1210
+ examples:
1211
+ - "FR6: The Todo List uses AI to detect and warn against potentially duplicate todo items that are worded differently."
1212
+ - id: non-functional
1213
+ title: Non Functional
1214
+ type: numbered-list
1215
+ prefix: NFR
1216
+ instruction: Each Requirement will be a bullet markdown and an identifier sequence starting with NFR
1217
+ examples:
1218
+ - "NFR1: AWS service usage must aim to stay within free-tier limits where feasible."
1219
+
1220
+ - id: ui-goals
1221
+ title: User Interface Design Goals
1222
+ condition: PRD has UX/UI requirements
1223
+ instruction: |
1224
+ Capture high-level UI/UX vision to guide Design Architect and to inform story creation. Steps:
1225
+
1226
+ 1. Pre-fill all subsections with educated guesses based on project context
1227
+ 2. Present the complete rendered section to user
1228
+ 3. Clearly let the user know where assumptions were made
1229
+ 4. Ask targeted questions for unclear/missing elements or areas needing more specification
1230
+ 5. This is NOT detailed UI spec - focus on product vision and user goals
1231
+ elicit: true
1232
+ choices:
1233
+ accessibility: [None, WCAG AA, WCAG AAA]
1234
+ platforms: [Web Responsive, Mobile Only, Desktop Only, Cross-Platform]
1235
+ sections:
1236
+ - id: ux-vision
1237
+ title: Overall UX Vision
1238
+ - id: interaction-paradigms
1239
+ title: Key Interaction Paradigms
1240
+ - id: core-screens
1241
+ title: Core Screens and Views
1242
+ instruction: From a product perspective, what are the most critical screens or views necessary to deliver the the PRD values and goals? This is meant to be Conceptual High Level to Drive Rough Epic or User Stories
1243
+ examples:
1244
+ - "Login Screen"
1245
+ - "Main Dashboard"
1246
+ - "Item Detail Page"
1247
+ - "Settings Page"
1248
+ - id: accessibility
1249
+ title: "Accessibility: {None|WCAG AA|WCAG AAA|Custom Requirements}"
1250
+ - id: branding
1251
+ title: Branding
1252
+ instruction: Any known branding elements or style guides that must be incorporated?
1253
+ examples:
1254
+ - "Replicate the look and feel of early 1900s black and white cinema, including animated effects replicating film damage or projector glitches during page or state transitions."
1255
+ - "Attached is the full color pallet and tokens for our corporate branding."
1256
+ - id: target-platforms
1257
+ title: "Target Device and Platforms: {Web Responsive|Mobile Only|Desktop Only|Cross-Platform}"
1258
+ examples:
1259
+ - "Web Responsive, and all mobile platforms"
1260
+ - "iPhone Only"
1261
+ - "ASCII Windows Desktop"
1262
+
1263
+ - id: technical-assumptions
1264
+ title: Technical Assumptions
1265
+ instruction: |
1266
+ Gather technical decisions that will guide the Architect. Steps:
1267
+
1268
+ 1. Check if .bmad-core/data/technical-preferences.yaml or an attached technical-preferences file exists - use it to pre-populate choices
1269
+ 2. Ask user about: languages, frameworks, starter templates, libraries, APIs, deployment targets
1270
+ 3. For unknowns, offer guidance based on project goals and MVP scope
1271
+ 4. Document ALL technical choices with rationale (why this choice fits the project)
1272
+ 5. These become constraints for the Architect - be specific and complete
1273
+ elicit: true
1274
+ choices:
1275
+ repository: [Monorepo, Polyrepo]
1276
+ architecture: [Monolith, Microservices, Serverless]
1277
+ testing: [Unit Only, Unit + Integration, Full Testing Pyramid]
1278
+ sections:
1279
+ - id: repository-structure
1280
+ title: "Repository Structure: {Monorepo|Polyrepo|Multi-repo}"
1281
+ - id: service-architecture
1282
+ title: Service Architecture
1283
+ instruction: "CRITICAL DECISION - Document the high-level service architecture (e.g., Monolith, Microservices, Serverless functions within a Monorepo)."
1284
+ - id: testing-requirements
1285
+ title: Testing Requirements
1286
+ instruction: "CRITICAL DECISION - Document the testing requirements, unit only, integration, e2e, manual, need for manual testing convenience methods)."
1287
+ - id: additional-assumptions
1288
+ title: Additional Technical Assumptions and Requests
1289
+ instruction: Throughout the entire process of drafting this document, if any other technical assumptions are raised or discovered appropriate for the architect, add them here as additional bulleted items
1290
+
1291
+ - id: epic-list
1292
+ title: Epic List
1293
+ instruction: |
1294
+ Present a high-level list of all epics for user approval. Each epic should have a title and a short (1 sentence) goal statement. This allows the user to review the overall structure before diving into details.
1295
+
1296
+ CRITICAL: Epics MUST be logically sequential following agile best practices:
1297
+
1298
+ - Each epic should deliver a significant, end-to-end, fully deployable increment of testable functionality
1299
+ - Epic 1 must establish foundational project infrastructure (app setup, Git, CI/CD, core services) unless we are adding new functionality to an existing app, while also delivering an initial piece of functionality, even as simple as a health-check route or display of a simple canary page - remember this when we produce the stories for the first epic!
1300
+ - Each subsequent epic builds upon previous epics' functionality delivering major blocks of functionality that provide tangible value to users or business when deployed
1301
+ - Not every project needs multiple epics, an epic needs to deliver value. For example, an API completed can deliver value even if a UI is not complete and planned for a separate epic.
1302
+ - Err on the side of less epics, but let the user know your rationale and offer options for splitting them if it seems some are too large or focused on disparate things.
1303
+ - Cross Cutting Concerns should flow through epics and stories and not be final stories. For example, adding a logging framework as a last story of an epic, or at the end of a project as a final epic or story would be terrible as we would not have logging from the beginning.
1304
+ elicit: true
1305
+ examples:
1306
+ - "Epic 1: Foundation & Core Infrastructure: Establish project setup, authentication, and basic user management"
1307
+ - "Epic 2: Core Business Entities: Create and manage primary domain objects with CRUD operations"
1308
+ - "Epic 3: User Workflows & Interactions: Enable key user journeys and business processes"
1309
+ - "Epic 4: Reporting & Analytics: Provide insights and data visualization for users"
1310
+
1311
+ - id: epic-details
1312
+ title: Epic {{epic_number}} {{epic_title}}
1313
+ repeatable: true
1314
+ instruction: |
1315
+ After the epic list is approved, present each epic with all its stories and acceptance criteria as a complete review unit.
1316
+
1317
+ For each epic provide expanded goal (2-3 sentences describing the objective and value all the stories will achieve).
1318
+
1319
+ CRITICAL STORY SEQUENCING REQUIREMENTS:
1320
+
1321
+ - Stories within each epic MUST be logically sequential
1322
+ - Each story should be a "vertical slice" delivering complete functionality aside from early enabler stories for project foundation
1323
+ - No story should depend on work from a later story or epic
1324
+ - Identify and note any direct prerequisite stories
1325
+ - Focus on "what" and "why" not "how" (leave technical implementation to Architect) yet be precise enough to support a logical sequential order of operations from story to story.
1326
+ - Ensure each story delivers clear user or business value, try to avoid enablers and build them into stories that deliver value.
1327
+ - Size stories for AI agent execution: Each story must be completable by a single AI agent in one focused session without context overflow
1328
+ - Think "junior developer working for 2-4 hours" - stories must be small, focused, and self-contained
1329
+ - If a story seems complex, break it down further as long as it can deliver a vertical slice
1330
+ elicit: true
1331
+ template: "{{epic_goal}}"
1332
+ sections:
1333
+ - id: story
1334
+ title: Story {{epic_number}}.{{story_number}} {{story_title}}
1335
+ repeatable: true
1336
+ template: |
1337
+ As a {{user_type}},
1338
+ I want {{action}},
1339
+ so that {{benefit}}.
1340
+ sections:
1341
+ - id: acceptance-criteria
1342
+ title: Acceptance Criteria
1343
+ type: numbered-list
1344
+ item_template: "{{criterion_number}}: {{criteria}}"
1345
+ repeatable: true
1346
+ instruction: |
1347
+ Define clear, comprehensive, and testable acceptance criteria that:
1348
+
1349
+ - Precisely define what "done" means from a functional perspective
1350
+ - Are unambiguous and serve as basis for verification
1351
+ - Include any critical non-functional requirements from the PRD
1352
+ - Consider local testability for backend/data components
1353
+ - Specify UI/UX requirements and framework adherence where applicable
1354
+ - Avoid cross-cutting concerns that should be in other stories or PRD sections
1355
+
1356
+ - id: checklist-results
1357
+ title: Checklist Results Report
1358
+ instruction: Before running the checklist and drafting the prompts, offer to output the full updated PRD. If outputting it, confirm with the user that you will be proceeding to run the checklist and produce the report. Once the user confirms, execute the pm-checklist and populate the results in this section.
1359
+
1360
+ - id: next-steps
1361
+ title: Next Steps
1362
+ sections:
1363
+ - id: design-architect-prompt
1364
+ title: Design Architect Prompt
1365
+ instruction: This section will contain the prompt for the Design Architect, keep it short and to the point to initiate create architecture mode using this document as input.
1366
+ - id: architect-prompt
1367
+ title: Architect Prompt
1368
+ instruction: This section will contain the prompt for the Architect, keep it short and to the point to initiate create architecture mode using this document as input.
1369
+ ==================== END: .bmad-core/templates/prd-tmpl.yaml ====================
1370
+
1371
+ ==================== START: .bmad-core/templates/brownfield-prd-tmpl.yaml ====================
1372
+ template:
1373
+ id: brownfield-prd-template-v2
1374
+ name: Brownfield Enhancement PRD
1375
+ version: 2.0
1376
+ output:
1377
+ format: markdown
1378
+ filename: docs/prd.md
1379
+ title: "{{project_name}} Brownfield Enhancement PRD"
1380
+
1381
+ workflow:
1382
+ mode: interactive
1383
+ elicitation: advanced-elicitation
1384
+
1385
+ sections:
1386
+ - id: intro-analysis
1387
+ title: Intro Project Analysis and Context
1388
+ instruction: |
1389
+ IMPORTANT - SCOPE ASSESSMENT REQUIRED:
1390
+
1391
+ This PRD is for SIGNIFICANT enhancements to existing projects that require comprehensive planning and multiple stories. Before proceeding:
1392
+
1393
+ 1. **Assess Enhancement Complexity**: If this is a simple feature addition or bug fix that could be completed in 1-2 focused development sessions, STOP and recommend: "For simpler changes, consider using the brownfield-create-epic or brownfield-create-story task with the Product Owner instead. This full PRD process is designed for substantial enhancements that require architectural planning and multiple coordinated stories."
1394
+
1395
+ 2. **Project Context**: Determine if we're working in an IDE with the project already loaded or if the user needs to provide project information. If project files are available, analyze existing documentation in the docs folder. If insufficient documentation exists, recommend running the document-project task first.
1396
+
1397
+ 3. **Deep Assessment Requirement**: You MUST thoroughly analyze the existing project structure, patterns, and constraints before making ANY suggestions. Every recommendation must be grounded in actual project analysis, not assumptions.
1398
+
1399
+ Gather comprehensive information about the existing project. This section must be completed before proceeding with requirements.
1400
+
1401
+ CRITICAL: Throughout this analysis, explicitly confirm your understanding with the user. For every assumption you make about the existing project, ask: "Based on my analysis, I understand that [assumption]. Is this correct?"
1402
+
1403
+ Do not proceed with any recommendations until the user has validated your understanding of the existing system.
1404
+ sections:
1405
+ - id: existing-project-overview
1406
+ title: Existing Project Overview
1407
+ instruction: Check if document-project analysis was already performed. If yes, reference that output instead of re-analyzing.
1408
+ sections:
1409
+ - id: analysis-source
1410
+ title: Analysis Source
1411
+ instruction: |
1412
+ Indicate one of the following:
1413
+ - Document-project output available at: {{path}}
1414
+ - IDE-based fresh analysis
1415
+ - User-provided information
1416
+ - id: current-state
1417
+ title: Current Project State
1418
+ instruction: |
1419
+ - If document-project output exists: Extract summary from "High Level Architecture" and "Technical Summary" sections
1420
+ - Otherwise: Brief description of what the project currently does and its primary purpose
1421
+ - id: documentation-analysis
1422
+ title: Available Documentation Analysis
1423
+ instruction: |
1424
+ If document-project was run:
1425
+ - Note: "Document-project analysis available - using existing technical documentation"
1426
+ - List key documents created by document-project
1427
+ - Skip the missing documentation check below
1428
+
1429
+ Otherwise, check for existing documentation:
1430
+ sections:
1431
+ - id: available-docs
1432
+ title: Available Documentation
1433
+ type: checklist
1434
+ items:
1435
+ - Tech Stack Documentation [[LLM: If from document-project, check ✓]]
1436
+ - Source Tree/Architecture [[LLM: If from document-project, check ✓]]
1437
+ - Coding Standards [[LLM: If from document-project, may be partial]]
1438
+ - API Documentation [[LLM: If from document-project, check ]]
1439
+ - External API Documentation [[LLM: If from document-project, check ✓]]
1440
+ - UX/UI Guidelines [[LLM: May not be in document-project]]
1441
+ - Technical Debt Documentation [[LLM: If from document-project, check ✓]]
1442
+ - "Other: {{other_docs}}"
1443
+ instruction: |
1444
+ - If document-project was already run: "Using existing project analysis from document-project output."
1445
+ - If critical documentation is missing and no document-project: "I recommend running the document-project task first..."
1446
+ - id: enhancement-scope
1447
+ title: Enhancement Scope Definition
1448
+ instruction: Work with user to clearly define what type of enhancement this is. This is critical for scoping and approach.
1449
+ sections:
1450
+ - id: enhancement-type
1451
+ title: Enhancement Type
1452
+ type: checklist
1453
+ instruction: Determine with user which applies
1454
+ items:
1455
+ - New Feature Addition
1456
+ - Major Feature Modification
1457
+ - Integration with New Systems
1458
+ - Performance/Scalability Improvements
1459
+ - UI/UX Overhaul
1460
+ - Technology Stack Upgrade
1461
+ - Bug Fix and Stability Improvements
1462
+ - "Other: {{other_type}}"
1463
+ - id: enhancement-description
1464
+ title: Enhancement Description
1465
+ instruction: 2-3 sentences describing what the user wants to add or change
1466
+ - id: impact-assessment
1467
+ title: Impact Assessment
1468
+ type: checklist
1469
+ instruction: Assess the scope of impact on existing codebase
1470
+ items:
1471
+ - Minimal Impact (isolated additions)
1472
+ - Moderate Impact (some existing code changes)
1473
+ - Significant Impact (substantial existing code changes)
1474
+ - Major Impact (architectural changes required)
1475
+ - id: goals-context
1476
+ title: Goals and Background Context
1477
+ sections:
1478
+ - id: goals
1479
+ title: Goals
1480
+ type: bullet-list
1481
+ instruction: Bullet list of 1-line desired outcomes this enhancement will deliver if successful
1482
+ - id: background
1483
+ title: Background Context
1484
+ type: paragraphs
1485
+ instruction: 1-2 short paragraphs explaining why this enhancement is needed, what problem it solves, and how it fits with the existing project
1486
+ - id: changelog
1487
+ title: Change Log
1488
+ type: table
1489
+ columns: [Change, Date, Version, Description, Author]
1490
+
1491
+ - id: requirements
1492
+ title: Requirements
1493
+ instruction: |
1494
+ Draft functional and non-functional requirements based on your validated understanding of the existing project. Before presenting requirements, confirm: "These requirements are based on my understanding of your existing system. Please review carefully and confirm they align with your project's reality."
1495
+ elicit: true
1496
+ sections:
1497
+ - id: functional
1498
+ title: Functional
1499
+ type: numbered-list
1500
+ prefix: FR
1501
+ instruction: Each Requirement will be a bullet markdown with identifier starting with FR
1502
+ examples:
1503
+ - "FR1: The existing Todo List will integrate with the new AI duplicate detection service without breaking current functionality."
1504
+ - id: non-functional
1505
+ title: Non Functional
1506
+ type: numbered-list
1507
+ prefix: NFR
1508
+ instruction: Each Requirement will be a bullet markdown with identifier starting with NFR. Include constraints from existing system
1509
+ examples:
1510
+ - "NFR1: Enhancement must maintain existing performance characteristics and not exceed current memory usage by more than 20%."
1511
+ - id: compatibility
1512
+ title: Compatibility Requirements
1513
+ instruction: Critical for brownfield - what must remain compatible
1514
+ type: numbered-list
1515
+ prefix: CR
1516
+ template: "{{requirement}}: {{description}}"
1517
+ items:
1518
+ - id: cr1
1519
+ template: "CR1: {{existing_api_compatibility}}"
1520
+ - id: cr2
1521
+ template: "CR2: {{database_schema_compatibility}}"
1522
+ - id: cr3
1523
+ template: "CR3: {{ui_ux_consistency}}"
1524
+ - id: cr4
1525
+ template: "CR4: {{integration_compatibility}}"
1526
+
1527
+ - id: ui-enhancement-goals
1528
+ title: User Interface Enhancement Goals
1529
+ condition: Enhancement includes UI changes
1530
+ instruction: For UI changes, capture how they will integrate with existing UI patterns and design systems
1531
+ sections:
1532
+ - id: existing-ui-integration
1533
+ title: Integration with Existing UI
1534
+ instruction: Describe how new UI elements will fit with existing design patterns, style guides, and component libraries
1535
+ - id: modified-screens
1536
+ title: Modified/New Screens and Views
1537
+ instruction: List only the screens/views that will be modified or added
1538
+ - id: ui-consistency
1539
+ title: UI Consistency Requirements
1540
+ instruction: Specific requirements for maintaining visual and interaction consistency with existing application
1541
+
1542
+ - id: technical-constraints
1543
+ title: Technical Constraints and Integration Requirements
1544
+ instruction: This section replaces separate architecture documentation. Gather detailed technical constraints from existing project analysis.
1545
+ sections:
1546
+ - id: existing-tech-stack
1547
+ title: Existing Technology Stack
1548
+ instruction: |
1549
+ If document-project output available:
1550
+ - Extract from "Actual Tech Stack" table in High Level Architecture section
1551
+ - Include version numbers and any noted constraints
1552
+
1553
+ Otherwise, document the current technology stack:
1554
+ template: |
1555
+ **Languages**: {{languages}}
1556
+ **Frameworks**: {{frameworks}}
1557
+ **Database**: {{database}}
1558
+ **Infrastructure**: {{infrastructure}}
1559
+ **External Dependencies**: {{external_dependencies}}
1560
+ - id: integration-approach
1561
+ title: Integration Approach
1562
+ instruction: Define how the enhancement will integrate with existing architecture
1563
+ template: |
1564
+ **Database Integration Strategy**: {{database_integration}}
1565
+ **API Integration Strategy**: {{api_integration}}
1566
+ **Frontend Integration Strategy**: {{frontend_integration}}
1567
+ **Testing Integration Strategy**: {{testing_integration}}
1568
+ - id: code-organization
1569
+ title: Code Organization and Standards
1570
+ instruction: Based on existing project analysis, define how new code will fit existing patterns
1571
+ template: |
1572
+ **File Structure Approach**: {{file_structure}}
1573
+ **Naming Conventions**: {{naming_conventions}}
1574
+ **Coding Standards**: {{coding_standards}}
1575
+ **Documentation Standards**: {{documentation_standards}}
1576
+ - id: deployment-operations
1577
+ title: Deployment and Operations
1578
+ instruction: How the enhancement fits existing deployment pipeline
1579
+ template: |
1580
+ **Build Process Integration**: {{build_integration}}
1581
+ **Deployment Strategy**: {{deployment_strategy}}
1582
+ **Monitoring and Logging**: {{monitoring_logging}}
1583
+ **Configuration Management**: {{config_management}}
1584
+ - id: risk-assessment
1585
+ title: Risk Assessment and Mitigation
1586
+ instruction: |
1587
+ If document-project output available:
1588
+ - Reference "Technical Debt and Known Issues" section
1589
+ - Include "Workarounds and Gotchas" that might impact enhancement
1590
+ - Note any identified constraints from "Critical Technical Debt"
1591
+
1592
+ Build risk assessment incorporating existing known issues:
1593
+ template: |
1594
+ **Technical Risks**: {{technical_risks}}
1595
+ **Integration Risks**: {{integration_risks}}
1596
+ **Deployment Risks**: {{deployment_risks}}
1597
+ **Mitigation Strategies**: {{mitigation_strategies}}
1598
+
1599
+ - id: epic-structure
1600
+ title: Epic and Story Structure
1601
+ instruction: |
1602
+ For brownfield projects, favor a single comprehensive epic unless the user is clearly requesting multiple unrelated enhancements. Before presenting the epic structure, confirm: "Based on my analysis of your existing project, I believe this enhancement should be structured as [single epic/multiple epics] because [rationale based on actual project analysis]. Does this align with your understanding of the work required?"
1603
+ elicit: true
1604
+ sections:
1605
+ - id: epic-approach
1606
+ title: Epic Approach
1607
+ instruction: Explain the rationale for epic structure - typically single epic for brownfield unless multiple unrelated features
1608
+ template: "**Epic Structure Decision**: {{epic_decision}} with rationale"
1609
+
1610
+ - id: epic-details
1611
+ title: "Epic 1: {{enhancement_title}}"
1612
+ instruction: |
1613
+ Comprehensive epic that delivers the brownfield enhancement while maintaining existing functionality
1614
+
1615
+ CRITICAL STORY SEQUENCING FOR BROWNFIELD:
1616
+ - Stories must ensure existing functionality remains intact
1617
+ - Each story should include verification that existing features still work
1618
+ - Stories should be sequenced to minimize risk to existing system
1619
+ - Include rollback considerations for each story
1620
+ - Focus on incremental integration rather than big-bang changes
1621
+ - Size stories for AI agent execution in existing codebase context
1622
+ - MANDATORY: Present the complete story sequence and ask: "This story sequence is designed to minimize risk to your existing system. Does this order make sense given your project's architecture and constraints?"
1623
+ - Stories must be logically sequential with clear dependencies identified
1624
+ - Each story must deliver value while maintaining system integrity
1625
+ template: |
1626
+ **Epic Goal**: {{epic_goal}}
1627
+
1628
+ **Integration Requirements**: {{integration_requirements}}
1629
+ sections:
1630
+ - id: story
1631
+ title: "Story 1.{{story_number}} {{story_title}}"
1632
+ repeatable: true
1633
+ template: |
1634
+ As a {{user_type}},
1635
+ I want {{action}},
1636
+ so that {{benefit}}.
1637
+ sections:
1638
+ - id: acceptance-criteria
1639
+ title: Acceptance Criteria
1640
+ type: numbered-list
1641
+ instruction: Define criteria that include both new functionality and existing system integrity
1642
+ item_template: "{{criterion_number}}: {{criteria}}"
1643
+ - id: integration-verification
1644
+ title: Integration Verification
1645
+ instruction: Specific verification steps to ensure existing functionality remains intact
1646
+ type: numbered-list
1647
+ prefix: IV
1648
+ items:
1649
+ - template: "IV1: {{existing_functionality_verification}}"
1650
+ - template: "IV2: {{integration_point_verification}}"
1651
+ - template: "IV3: {{performance_impact_verification}}"
1652
+ ==================== END: .bmad-core/templates/brownfield-prd-tmpl.yaml ====================
1653
+
1654
+ ==================== START: .bmad-core/checklists/pm-checklist.md ====================
1655
1655
  # Product Manager (PM) Requirements Checklist
1656
1656
 
1657
1657
  This checklist serves as a comprehensive framework to ensure the Product Requirements Document (PRD) and Epic definitions are complete, well-structured, and appropriately scoped for MVP development. The PM should systematically work through each item during the product definition process.
@@ -2027,9 +2027,9 @@ After presenting the report, ask if the user wants:
2027
2027
 
2028
2028
  - **READY FOR ARCHITECT**: The PRD and epics are comprehensive, properly structured, and ready for architectural design.
2029
2029
  - **NEEDS REFINEMENT**: The requirements documentation requires additional work to address the identified deficiencies.
2030
- ==================== END: checklists#pm-checklist ====================
2030
+ ==================== END: .bmad-core/checklists/pm-checklist.md ====================
2031
2031
 
2032
- ==================== START: checklists#change-checklist ====================
2032
+ ==================== START: .bmad-core/checklists/change-checklist.md ====================
2033
2033
  # Change Navigation Checklist
2034
2034
 
2035
2035
  **Purpose:** To systematically guide the selected Agent and user through the analysis and planning required when a significant change (pivot, tech issue, missing requirement, failed story) is identified during the BMad workflow.
@@ -2212,39 +2212,10 @@ Keep it action-oriented and forward-looking.]]
2212
2212
  - [ ] **Confirm Next Steps:** Reiterate the handoff plan and the next actions to be taken by specific agents.
2213
2213
 
2214
2214
  ---
2215
- ==================== END: checklists#change-checklist ====================
2215
+ ==================== END: .bmad-core/checklists/change-checklist.md ====================
2216
2216
 
2217
- ==================== START: data#technical-preferences ====================
2217
+ ==================== START: .bmad-core/data/technical-preferences.md ====================
2218
2218
  # User-Defined Preferred Patterns and Preferences
2219
2219
 
2220
2220
  None Listed
2221
- ==================== END: data#technical-preferences ====================
2222
-
2223
- ==================== START: utils#template-format ====================
2224
- # Template Format Conventions
2225
-
2226
- Templates in the BMad method use standardized markup for AI processing. These conventions ensure consistent document generation.
2227
-
2228
- ## Template Markup Elements
2229
-
2230
- - **{{placeholders}}**: Variables to be replaced with actual content
2231
- - **[[LLM: instructions]]**: Internal processing instructions for AI agents (never shown to users)
2232
- - **REPEAT** sections: Content blocks that may be repeated as needed
2233
- - **^^CONDITION^^** blocks: Conditional content included only if criteria are met
2234
- - **@{examples}**: Example content for guidance (never output to users)
2235
-
2236
- ## Processing Rules
2237
-
2238
- - Replace all {{placeholders}} with project-specific content
2239
- - Execute all [[LLM: instructions]] internally without showing users
2240
- - Process conditional and repeat blocks as specified
2241
- - Use examples for guidance but never include them in final output
2242
- - Present only clean, formatted content to users
2243
-
2244
- ## Critical Guidelines
2245
-
2246
- - **NEVER display template markup, LLM instructions, or examples to users**
2247
- - Template elements are for AI processing only
2248
- - Focus on faithful template execution and clean output
2249
- - All template-specific instructions are embedded within templates
2250
- ==================== END: utils#template-format ====================
2221
+ ==================== END: .bmad-core/data/technical-preferences.md ====================