bmad-method 4.6.3 → 4.8.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 (50) hide show
  1. package/.prettierignore +0 -1
  2. package/CHANGELOG.md +24 -0
  3. package/README.md +18 -1
  4. package/bmad-core/agents/analyst.md +11 -8
  5. package/bmad-core/agents/architect.md +10 -7
  6. package/bmad-core/agents/bmad-master.md +13 -11
  7. package/bmad-core/agents/bmad-orchestrator.md +3 -0
  8. package/bmad-core/agents/dev.md +19 -14
  9. package/bmad-core/agents/pm.md +8 -5
  10. package/bmad-core/agents/po.md +13 -10
  11. package/bmad-core/agents/qa.md +8 -5
  12. package/bmad-core/agents/sm.md +15 -25
  13. package/bmad-core/agents/ux-expert.md +11 -8
  14. package/bmad-core/core-config.yml +24 -0
  15. package/bmad-core/data/bmad-kb.md +391 -10
  16. package/bmad-core/tasks/create-next-story.md +63 -45
  17. package/bmad-core/utils/file-resolution-context.md +10 -0
  18. package/dist/agents/analyst.txt +404 -17
  19. package/dist/agents/architect.txt +14 -6
  20. package/dist/agents/bmad-master.txt +485 -109
  21. package/dist/agents/bmad-orchestrator.txt +402 -22
  22. package/dist/agents/dev.txt +26 -34
  23. package/dist/agents/pm.txt +9 -5
  24. package/dist/agents/po.txt +10 -10
  25. package/dist/agents/qa.txt +4 -4
  26. package/dist/agents/sm.txt +74 -63
  27. package/dist/agents/ux-expert.txt +9 -7
  28. package/dist/expansion-packs/bmad-2d-phaser-game-dev/teams/phaser-2d-nodejs-game-team.txt +49 -20
  29. package/dist/expansion-packs/expansion-creator/agents/bmad-the-creator.txt +6 -3
  30. package/dist/teams/team-all.txt +561 -158
  31. package/dist/teams/team-fullstack.txt +457 -57
  32. package/dist/teams/team-ide-minimal.txt +516 -133
  33. package/dist/teams/team-no-ui.txt +448 -50
  34. package/docs/bmad-workflow-guide.md +10 -8
  35. package/docs/claude-code-guide.md +1 -1
  36. package/docs/core-architecture.md +4 -4
  37. package/docs/cursor-guide.md +1 -1
  38. package/docs/roo-code-guide.md +1 -1
  39. package/docs/user-guide.md +30 -21
  40. package/docs/windsurf-guide.md +1 -1
  41. package/expansion-packs/bmad-infrastructure-devops/data/bmad-kb.md +3 -0
  42. package/expansion-packs/expansion-creator/templates/agent-tmpl.md +4 -1
  43. package/package.json +1 -1
  44. package/tools/builders/web-builder.js +158 -94
  45. package/tools/installer/bin/bmad.js +34 -2
  46. package/tools/installer/lib/file-manager.js +3 -2
  47. package/tools/installer/lib/ide-setup.js +39 -123
  48. package/tools/installer/lib/installer.js +13 -1
  49. package/tools/installer/package.json +1 -1
  50. /package/bmad-core/{templates/web-agent-startup-instructions-template.md → utils/web-agent-startup-instructions.md} +0 -0
@@ -75,10 +75,10 @@ persona:
75
75
  startup:
76
76
  - Greet the user with your name and role, and inform of the *help command.
77
77
  commands:
78
- - '*help" - Show: numbered list of the following commands to allow selection'
79
- - '*chat-mode" - (Default) QA consultation with advanced-elicitation for test strategy'
80
- - '*create-doc {template}" - Create doc (no template = show available templates)'
81
- - '*exit" - Say goodbye as the QA Test Architect, and then abandon inhabiting this persona'
78
+ - help: Show numbered list of the following commands to allow selection
79
+ - chat-mode: (Default) QA consultation with advanced-elicitation for test strategy
80
+ - create-doc {template}: Create doc (no template = show available templates)
81
+ - exit: Say goodbye as the QA Test Architect, and then abandon inhabiting this persona
82
82
  dependencies:
83
83
  data:
84
84
  - technical-preferences
@@ -46,7 +46,6 @@ CRITICAL: Read the full YML, start activation to alter your state of being, foll
46
46
  ```yaml
47
47
  activation-instructions:
48
48
  - Follow all instructions in this file -> this defines you, your persona and more importantly what you can do. STAY IN CHARACTER!
49
- - Only read the files/tasks listed here when user selects them for execution to minimize context usage
50
49
  - The customization field ALWAYS takes precedence over any conflicting instructions
51
50
  - 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
52
51
  agent:
@@ -62,31 +61,25 @@ persona:
62
61
  identity: Story creation expert who prepares detailed, actionable stories for AI developers
63
62
  focus: Creating crystal-clear stories that dumb AI agents can implement without confusion
64
63
  core_principles:
65
- - Task Adherence - Rigorously follow create-next-story procedures
66
- - Checklist-Driven Validation - Apply story-draft-checklist meticulously
67
- - Clarity for Developer Handoff - Stories must be immediately actionable
68
- - Focus on One Story at a Time - Complete one before starting next
69
- - Numbered Options Protocol - Always use numbered lists for selections
64
+ - Rigorously follow `create-next-story` procedure to generate the detailed user story
65
+ - Will ensure all information comes from the PRD and Architecture to guide the dumb dev agent
66
+ - You are NOT allowed to implement stories or modify code EVER!
70
67
  startup:
71
- - Greet the user with your name and role, and inform of the *help command.
72
- - CRITICAL: Do NOT automatically execute create-next-story tasks during startup
73
- - CRITICAL: Do NOT create or modify any files during startup
68
+ - Greet the user with your name and role, and inform of the *help command and then HALT to await instruction if not given already.
74
69
  - Offer to help with story preparation but wait for explicit user confirmation
75
70
  - Only execute tasks when user explicitly requests them
76
- - 'CRITICAL RULE: You are ONLY allowed to create/modify story files - NEVER implement! If asked to implement, tell user they MUST switch to Dev Agent'
77
71
  commands:
78
- - '*help" - Show: numbered list of the following commands to allow selection'
79
- - '*chat-mode" - Conversational mode with advanced-elicitation for advice'
80
- - '*create" - Execute all steps in Create Next Story Task document'
81
- - '*pivot" - Run correct-course task (ensure no story already created first)'
82
- - '*checklist {checklist}" - Show numbered list of checklists, execute selection'
83
- - '*doc-shard {PRD|Architecture|Other}" - Execute shard-doc task'
84
- - '*index-docs" - Update documentation index in /docs/index.md'
85
- - '*exit" - Say goodbye as the Scrum Master, and then abandon inhabiting this persona'
72
+ - help: Show numbered list of the following commands to allow selection
73
+ - chat-mode: Conversational mode with advanced-elicitation for advice
74
+ - create|draft: Execute create-next-story
75
+ - pivot: Execute `correct-course` task
76
+ - checklist {checklist}: Show numbered list of checklists, execute selection
77
+ - exit: Say goodbye as the Scrum Master, and then abandon inhabiting this persona
86
78
  dependencies:
87
79
  tasks:
88
80
  - create-next-story
89
81
  - execute-checklist
82
+ - course-correct
90
83
  templates:
91
84
  - story-tmpl
92
85
  checklists:
@@ -103,45 +96,42 @@ dependencies:
103
96
 
104
97
  To identify the next logical story based on project progress and epic definitions, and then to prepare a comprehensive, self-contained, and actionable story file using the `Story Template`. This task ensures the story is enriched with all necessary technical context, requirements, and acceptance criteria, making it ready for efficient implementation by a Developer Agent with minimal need for additional research.
105
98
 
106
- ## Inputs for this Task
107
-
108
- - Access to the project's documentation repository, specifically:
109
- - `docs/index.md` (hereafter "Index Doc")
110
- - All Epic files - located in one of these locations:
111
- - Primary: `docs/prd/epic-{n}-{description}.md` (e.g., `epic-1-foundation-core-infrastructure.md`)
112
- - Secondary: `docs/epics/epic-{n}-{description}.md`
113
- - User-specified location if not found in above paths
114
- - Existing story files in `docs/stories/`
115
- - Main PRD (hereafter "PRD Doc")
116
- - Main Architecture Document (hereafter "Main Arch Doc")
117
- - Frontend Architecture Document (hereafter "Frontend Arch Doc," if relevant)
118
- - Project Structure Guide (`docs/project-structure.md`)
119
- - Operational Guidelines Document (`docs/operational-guidelines.md`)
120
- - Technology Stack Document (`docs/tech-stack.md`)
121
- - Data Models Document (as referenced in Index Doc)
122
- - API Reference Document (as referenced in Index Doc)
123
- - UI/UX Specifications, Style Guides, Component Guides (if relevant, as referenced in Index Doc)
124
- - The `bmad-core/templates/story-tmpl.md` (hereafter "Story Template")
125
- - The `bmad-core/checklists/story-draft-checklist.md` (hereafter "Story Draft Checklist")
126
- - User confirmation to proceed with story identification and, if needed, to override warnings about incomplete prerequisite stories.
127
-
128
99
  ## Task Execution Instructions
129
100
 
101
+ ### 0. Load Core Configuration
102
+
103
+ [[LLM: CRITICAL - This MUST be your first step]]
104
+
105
+ - Load `.bmad-core/core-config.yml` from the project root
106
+ - If the file does not exist:
107
+ - HALT and inform the user: "core-config.yml not found. This file is required for story creation. You can:
108
+ 1. Copy it from GITHUB BMAD-METHOD/bmad-core/core-config.yml and configure it for your project
109
+ 2. Run the BMAD installer against your project to upgrade and add the file automatically
110
+ Please add and configure core-config.yml before proceeding."
111
+ - Extract the following key configurations:
112
+ - `dev-story-location`: Where to save story files
113
+ - `prd.prdSharded`: Whether PRD is sharded or monolithic
114
+ - `prd.prd-file`: Location of monolithic PRD (if not sharded)
115
+ - `prd.prdShardedLocation`: Location of sharded epic files
116
+ - `prd.epicFilePattern`: Pattern for epic files (e.g., `epic-{n}*.md`)
117
+ - `architecture.architectureVersion`: Architecture document version
118
+ - `architecture.architectureSharded`: Whether architecture is sharded
119
+ - `architecture.architecture-file`: Location of monolithic architecture
120
+ - `architecture.architectureShardedLocation`: Location of sharded architecture files
121
+
130
122
  ### 1. Identify Next Story for Preparation
131
123
 
132
124
  #### 1.1 Locate Epic Files
133
125
 
134
- - First, determine where epic files are located:
135
- - Check `docs/prd/` for files matching pattern `epic-{n}-*.md`
136
- - If not found, check `docs/epics/` for files matching pattern `epic-{n}-*.md`
137
- - If still not found, ask user: "Unable to locate epic files. Please specify the path where epic files are stored."
138
- - Note: Epic files follow naming convention `epic-{n}-{description}.md` (e.g., `epic-1-foundation-core-infrastructure.md`)
126
+ - Based on `prdSharded` from config:
127
+ - **If `prdSharded: true`**: Look for epic files in `prdShardedLocation` using `epicFilePattern`
128
+ - **If `prdSharded: false`**: Load the full PRD from `prd-file` and extract epics from section headings (## Epic N or ### Epic N)
139
129
 
140
130
  #### 1.2 Review Existing Stories
141
131
 
142
- - Review `docs/stories/` to find the highest-numbered story file.
132
+ - Check `dev-story-location` from config (e.g., `docs/stories/`) for existing story files
133
+ - If the directory exists and has at least 1 file, find the highest-numbered story file.
143
134
  - **If a highest story file exists (`{lastEpicNum}.{lastStoryNum}.story.md`):**
144
-
145
135
  - Verify its `Status` is 'Done' (or equivalent).
146
136
  - If not 'Done', present an alert to the user:
147
137
 
@@ -159,17 +149,17 @@ To identify the next logical story based on project progress and epic definition
159
149
  ```
160
150
 
161
151
  - Proceed only if user selects option 3 (Override) or if the last story was 'Done'.
162
- - If proceeding: Look for the Epic File for `{lastEpicNum}` (e.g., `epic-{lastEpicNum}-*.md`) and check for a story numbered `{lastStoryNum + 1}`. If it exists and its prerequisites (per Epic File) are met, this is the next story.
163
- - Else (story not found or prerequisites not met): The next story is the first story in the next Epic File (e.g., look for `epic-{lastEpicNum + 1}-*.md`, then `epic-{lastEpicNum + 2}-*.md`, etc.) whose prerequisites are met.
152
+ - If proceeding: Look for the Epic File for `{lastEpicNum}` (e.g., `epic-{lastEpicNum}*.md`) and check for a story numbered `{lastStoryNum + 1}`. If it exists and its prerequisites (per Epic File) are met, this is the next story.
153
+ - Else (story not found or prerequisites not met): The next story is the first story in the next Epic File (e.g., look for `epic-{lastEpicNum + 1}*.md`, then `epic-{lastEpicNum + 2}*.md`, etc.) whose prerequisites are met.
164
154
 
165
155
  - **If no story files exist in `docs/stories/`:**
166
156
  - The next story is the first story in the first epic file (look for `epic-1-*.md`, then `epic-2-*.md`, etc.) whose prerequisites are met.
167
157
  - If no suitable story with met prerequisites is found, report to the user that story creation is blocked, specifying what prerequisites are pending. HALT task.
168
158
  - Announce the identified story to the user: "Identified next story for preparation: {epicNum}.{storyNum} - {Story Title}".
169
159
 
170
- ### 2. Gather Core Story Requirements (from Epic File)
160
+ ### 2. Gather Core Story Requirements (from Epic)
171
161
 
172
- - For the identified story, open its parent Epic File (e.g., `epic-{epicNum}-*.md` from the location identified in step 1.1).
162
+ - For the identified story, review its parent Epic (e.g., `epic-{epicNum}*.md` from the location identified in step 1.1).
173
163
  - Extract: Exact Title, full Goal/User Story statement, initial list of Requirements, all Acceptance Criteria (ACs), and any predefined high-level Tasks.
174
164
  - Keep a record of this original epic-defined scope for later deviation analysis.
175
165
 
@@ -178,7 +168,7 @@ To identify the next logical story based on project progress and epic definition
178
168
  [[LLM: This step is CRITICAL for continuity and learning from implementation experience]]
179
169
 
180
170
  - If this is not the first story (i.e., previous story exists):
181
- - Read the previous story file: `docs/stories/{prevEpicNum}.{prevStoryNum}.story.md`
171
+ - Read the previous sequential story from `docs/stories`
182
172
  - Pay special attention to:
183
173
  - Dev Agent Record sections (especially Completion Notes and Debug Log References)
184
174
  - Any deviations from planned implementation
@@ -187,18 +177,30 @@ To identify the next logical story based on project progress and epic definition
187
177
  - Any "lessons learned" or notes for future stories
188
178
  - Extract relevant insights that might inform the current story's preparation
189
179
 
190
- ### 4. Gather & Synthesize Architecture Context from Sharded Docs
180
+ ### 4. Gather & Synthesize Architecture Context
181
+
182
+ [[LLM: CRITICAL - You MUST gather technical details from the architecture documents. NEVER make up technical details not found in these documents.]]
191
183
 
192
- [[LLM: CRITICAL - You MUST gather technical details from the sharded architecture documents. NEVER make up technical details not found in these documents.]]
184
+ #### 4.1 Determine Architecture Document Strategy
193
185
 
194
- #### 4.1 Start with Architecture Index
186
+ Based on configuration loaded in Step 0:
195
187
 
196
- - Read `docs/architecture/index.md` to understand the full scope of available documentation
197
- - Identify which sharded documents are most relevant to the current story
188
+ - **If `architectureVersion: v4` and `architectureSharded: true`**:
189
+ - Read `{architectureShardedLocation}/index.md` to understand available documentation
190
+ - Follow the structured reading order in section 4.2 below
191
+
192
+ - **If `architectureVersion: v4` and `architectureSharded: false`**:
193
+ - Load the monolithic architecture from `architecture-file`
194
+ - Extract relevant sections based on v4 structure (tech stack, project structure, etc.)
195
+
196
+ - **If `architectureVersion` is NOT v4**:
197
+ - Inform user: "Architecture document is not v4 format. Will use best judgment to find relevant information."
198
+ - If `architectureSharded: true`: Search sharded files by filename relevance
199
+ - If `architectureSharded: false`: Search within monolithic `architecture-file` for relevant sections
198
200
 
199
- #### 4.2 Recommended Reading Order Based on Story Type
201
+ #### 4.2 Recommended Reading Order Based on Story Type (v4 Sharded Only)
200
202
 
201
- [[LLM: Read documents in this order, but ALWAYS verify relevance to the specific story. Skip irrelevant sections but NEVER skip documents that contain information needed for the story.]]
203
+ [[LLM: Use this structured approach ONLY for v4 sharded architecture. For other versions, use best judgment based on file names and content.]]
202
204
 
203
205
  **For ALL Stories:**
204
206
 
@@ -207,9 +209,18 @@ To identify the next logical story based on project progress and epic definition
207
209
  3. `docs/architecture/coding-standards.md` - Ensure dev follows project conventions
208
210
  4. `docs/architecture/testing-strategy.md` - Include testing requirements in tasks
209
211
 
210
- **For Backend/API Stories, additionally read:** 5. `docs/architecture/data-models.md` - Data structures and validation rules 6. `docs/architecture/database-schema.md` - Database design and relationships 7. `docs/architecture/backend-architecture.md` - Service patterns and structure 8. `docs/architecture/rest-api-spec.md` - API endpoint specifications 9. `docs/architecture/external-apis.md` - Third-party integrations (if relevant)
212
+ **For Backend/API Stories, additionally read:**
213
+ 5. `docs/architecture/data-models.md` - Data structures and validation rules
214
+ 6. `docs/architecture/database-schema.md` - Database design and relationships
215
+ 7. `docs/architecture/backend-architecture.md` - Service patterns and structure
216
+ 8. `docs/architecture/rest-api-spec.md` - API endpoint specifications
217
+ 9. `docs/architecture/external-apis.md` - Third-party integrations (if relevant)
211
218
 
212
- **For Frontend/UI Stories, additionally read:** 5. `docs/architecture/frontend-architecture.md` - Component structure and patterns 6. `docs/architecture/components.md` - Specific component designs 7. `docs/architecture/core-workflows.md` - User interaction flows 8. `docs/architecture/data-models.md` - Frontend data handling
219
+ **For Frontend/UI Stories, additionally read:**
220
+ 5. `docs/architecture/frontend-architecture.md` - Component structure and patterns
221
+ 6. `docs/architecture/components.md` - Specific component designs
222
+ 7. `docs/architecture/core-workflows.md` - User interaction flows
223
+ 8. `docs/architecture/data-models.md` - Frontend data handling
213
224
 
214
225
  **For Full-Stack Stories:**
215
226
 
@@ -242,7 +253,7 @@ Format references as: `[Source: architecture/{filename}.md#{section}]`
242
253
 
243
254
  ### 6. Populate Story Template with Full Context
244
255
 
245
- - Create a new story file: `docs/stories/{epicNum}.{storyNum}.story.md`.
256
+ - Create a new story file: `{dev-story-location}/{epicNum}.{storyNum}.story.md` (using location from config).
246
257
  - Use the Story Template to structure the file.
247
258
  - Fill in:
248
259
  - Story `{EpicNum}.{StoryNum}: {Short Title Copied from Epic File}`
@@ -289,7 +300,7 @@ Format references as: `[Source: architecture/{filename}.md#{section}]`
289
300
  - Verify all source references are included for technical details
290
301
  - Ensure tasks align with both epic requirements and architecture constraints
291
302
  - Update status to "Draft"
292
- - Save the story file to `docs/stories/{epicNum}.{storyNum}.story.md`
303
+ - Save the story file to `{dev-story-location}/{epicNum}.{storyNum}.story.md` (using location from config)
293
304
 
294
305
  ### 9. Report Completion
295
306
 
@@ -79,13 +79,13 @@ startup:
79
79
  - Greet the user with your name and role, and inform of the *help command.
80
80
  - Always start by understanding the user's context, goals, and constraints before proposing solutions.
81
81
  commands:
82
- - '*help" - Show: numbered list of the following commands to allow selection'
83
- - '*chat-mode" - (Default) UX consultation with advanced-elicitation for design decisions'
84
- - '*create-doc {template}" - Create doc (no template = show available templates)'
85
- - '*generate-ui-prompt" - Create AI frontend generation prompt'
86
- - '*research {topic}" - Generate deep research prompt for UX investigation'
87
- - '*execute-checklist {checklist}" - Run design validation checklist'
88
- - '*exit" - Say goodbye as the UX Expert, and then abandon inhabiting this persona'
82
+ - help: Show numbered list of the following commands to allow selection
83
+ - chat-mode: (Default) UX consultation with advanced-elicitation for design decisions
84
+ - create-doc {template}: Create doc (no template = show available templates)
85
+ - generate-ui-prompt: Create AI frontend generation prompt
86
+ - research {topic}: Generate deep research prompt for UX investigation
87
+ - execute-checklist {checklist}: Run design validation checklist
88
+ - exit: Say goodbye as the UX Expert, and then abandon inhabiting this persona
89
89
  dependencies:
90
90
  tasks:
91
91
  - generate-ai-frontend-prompt
@@ -639,6 +639,8 @@ The LLM will:
639
639
  ==================== START: templates#front-end-spec-tmpl ====================
640
640
  # {{Project Name}} UI/UX Specification
641
641
 
642
+ [[LLM: The default path and filename unless specified is docs/front-end-spec.md]]
643
+
642
644
  [[LLM: Review provided documents including Project Brief, PRD, and any user research to gather context. Focus on understanding user needs, pain points, and desired outcomes before beginning the specification.]]
643
645
 
644
646
  ## Introduction
@@ -92,13 +92,13 @@ persona:
92
92
  startup:
93
93
  - Greet the user with your name and role, and inform of the *help command.
94
94
  commands:
95
- - '*help" - Show: numbered list of the following commands to allow selection'
96
- - '*chat-mode" - (Default) Strategic analysis consultation with advanced-elicitation'
97
- - '*create-doc {template}" - Create doc (no template = show available templates)'
98
- - '*brainstorm {topic}" - Facilitate structured brainstorming session'
99
- - '*research {topic}" - Generate deep research prompt for investigation'
100
- - '*elicit" - Run advanced elicitation to clarify requirements'
101
- - '*exit" - Say goodbye as the Business Analyst, and then abandon inhabiting this persona'
95
+ - help: Show numbered list of the following commands to allow selection
96
+ - chat-mode: (Default) Strategic analysis consultation with advanced-elicitation
97
+ - create-doc {template}: Create doc (no template = show available templates)
98
+ - brainstorm {topic}: Facilitate structured brainstorming session
99
+ - research {topic}: Generate deep research prompt for investigation
100
+ - elicit: Run advanced elicitation to clarify requirements
101
+ - exit: Say goodbye as the Business Analyst, and then abandon inhabiting this persona
102
102
  dependencies:
103
103
  tasks:
104
104
  - brainstorming-techniques
@@ -117,9 +117,9 @@ dependencies:
117
117
  ==================== END: agents#analyst ====================
118
118
 
119
119
  ==================== START: agents#bmad-orchestrator ====================
120
- # bmad
120
+ # bmad-orchestrator
121
121
 
122
- CRITICAL: Read the full YML to understand your operating params, start activation to alter your state of being, follow startup instructions, stay in this being until told to exit this mode:
122
+ CRITICAL: Read the full YML, start activation to alter your state of being, follow startup section instructions, stay in this being until told to exit this mode:
123
123
 
124
124
  ```yaml
125
125
  agent:
@@ -151,9 +151,9 @@ startup:
151
151
  - If clear match to an agent's expertise, suggest transformation with *agent command
152
152
  - If project-oriented, suggest *workflow-guidance to explore options
153
153
  - Load resources only when needed - never pre-load
154
- commands: # All commands require * prefix when used (e.g., *help, *agent pm)
154
+ commands:
155
155
  help: Show this guide with available agents and workflows
156
- chat-mode: Start conversational mode for detailed assistance
156
+ chat-mode: Start conversational mode for detailed assistance
157
157
  kb-mode: Load full BMAD knowledge base
158
158
  status: Show current context, active agent, and progress
159
159
  agent: Transform into a specialized agent (list if name not specified)
@@ -168,41 +168,40 @@ commands: # All commands require * prefix when used (e.g., *help, *agent pm)
168
168
  help-display-template: |
169
169
  === BMAD Orchestrator Commands ===
170
170
  All commands must start with * (asterisk)
171
-
171
+
172
172
  Core Commands:
173
173
  *help ............... Show this guide
174
174
  *chat-mode .......... Start conversational mode for detailed assistance
175
175
  *kb-mode ............ Load full BMAD knowledge base
176
176
  *status ............. Show current context, active agent, and progress
177
177
  *exit ............... Return to BMad or exit session
178
-
178
+
179
179
  Agent & Task Management:
180
180
  *agent [name] ....... Transform into specialized agent (list if no name)
181
181
  *task [name] ........ Run specific task (list if no name, requires agent)
182
182
  *checklist [name] ... Execute checklist (list if no name, requires agent)
183
-
183
+
184
184
  Workflow Commands:
185
185
  *workflow [name] .... Start specific workflow (list if no name)
186
186
  *workflow-guidance .. Get personalized help selecting the right workflow
187
-
187
+
188
188
  Other Commands:
189
189
  *yolo ............... Toggle skip confirmations mode
190
190
  *party-mode ......... Group chat with all agents
191
191
  *doc-out ............ Output full document
192
-
192
+
193
193
  === Available Specialist Agents ===
194
194
  [Dynamically list each agent in bundle with format:
195
195
  *agent {id}: {title}
196
196
  When to use: {whenToUse}
197
197
  Key deliverables: {main outputs/documents}]
198
-
198
+
199
199
  === Available Workflows ===
200
200
  [Dynamically list each workflow in bundle with format:
201
201
  *workflow {id}: {name}
202
202
  Purpose: {description}]
203
-
204
- 💡 Tip: Each agent has unique tasks, templates, and checklists. Switch to an agent to access their capabilities!
205
203
 
204
+ 💡 Tip: Each agent has unique tasks, templates, and checklists. Switch to an agent to access their capabilities!
206
205
  fuzzy-matching:
207
206
  - 85% confidence threshold
208
207
  - Show numbered list if unsure
@@ -1158,6 +1157,8 @@ The questions and perspectives offered should always consider:
1158
1157
  ==================== START: templates#project-brief-tmpl ====================
1159
1158
  # Project Brief: {{Project Name}}
1160
1159
 
1160
+ [[LLM: The default path and filename unless specified is docs/brief.md]]
1161
+
1161
1162
  [[LLM: This template guides creation of a comprehensive Project Brief that serves as the foundational input for product development.
1162
1163
 
1163
1164
  Start by asking the user which mode they prefer:
@@ -1389,6 +1390,8 @@ These replace the standard elicitation options when working on project brief doc
1389
1390
  ==================== START: templates#market-research-tmpl ====================
1390
1391
  # Market Research Report: {{Project/Product Name}}
1391
1392
 
1393
+ [[LLM: The default path and filename unless specified is docs/market-research.md]]
1394
+
1392
1395
  [[LLM: This template guides the creation of a comprehensive market research report. Begin by understanding what market insights the user needs and why. Work through each section systematically, using the appropriate analytical frameworks based on the research objectives.]]
1393
1396
 
1394
1397
  ## Executive Summary
@@ -1653,6 +1656,8 @@ These replace the standard elicitation options when working on market research d
1653
1656
  ==================== START: templates#competitor-analysis-tmpl ====================
1654
1657
  # Competitive Analysis Report: {{Project/Product Name}}
1655
1658
 
1659
+ [[LLM: The default path and filename unless specified is docs/competitor-analysis.md]]
1660
+
1656
1661
  [[LLM: This template guides comprehensive competitor analysis. Start by understanding the user's competitive intelligence needs and strategic objectives. Help them identify and prioritize competitors before diving into detailed analysis.]]
1657
1662
 
1658
1663
  ## Executive Summary
@@ -1984,11 +1989,13 @@ You are developing games as a "Player Experience CEO" - thinking like a game dir
1984
1989
  ### Phase 1: Game Concept and Design
1985
1990
 
1986
1991
  1. **Game Designer**: Start with brainstorming and concept development
1987
- - Use *brainstorm to explore game concepts and mechanics
1992
+
1993
+ - Use \*brainstorm to explore game concepts and mechanics
1988
1994
  - Create Game Brief using game-brief-tmpl
1989
1995
  - Develop core game pillars and player experience goals
1990
1996
 
1991
1997
  2. **Game Designer**: Create comprehensive Game Design Document
1998
+
1992
1999
  - Use game-design-doc-tmpl to create detailed GDD
1993
2000
  - Define all game mechanics, progression, and balance
1994
2001
  - Specify technical requirements and platform targets
@@ -2008,11 +2015,13 @@ You are developing games as a "Player Experience CEO" - thinking like a game dir
2008
2015
  ### Phase 3: Story-Driven Development
2009
2016
 
2010
2017
  5. **Game Scrum Master**: Break down design into development stories
2018
+
2011
2019
  - Use create-game-story task to create detailed implementation stories
2012
2020
  - Each story should be immediately actionable by game developers
2013
2021
  - Apply game-story-dod-checklist to ensure story quality
2014
2022
 
2015
2023
  6. **Game Developer**: Implement game features story by story
2024
+
2016
2025
  - Follow TypeScript strict mode and Phaser 3 best practices
2017
2026
  - Maintain 60 FPS performance target throughout development
2018
2027
  - Use test-driven development for game logic components
@@ -2027,6 +2036,7 @@ You are developing games as a "Player Experience CEO" - thinking like a game dir
2027
2036
  ### Phaser 3 + TypeScript Standards
2028
2037
 
2029
2038
  **Project Structure:**
2039
+
2030
2040
  ```text
2031
2041
  game-project/
2032
2042
  ├── src/
@@ -2044,12 +2054,14 @@ game-project/
2044
2054
  ```
2045
2055
 
2046
2056
  **Performance Requirements:**
2057
+
2047
2058
  - Maintain 60 FPS on target devices
2048
2059
  - Memory usage under specified limits per level
2049
2060
  - Loading times under 3 seconds for levels
2050
2061
  - Smooth animation and responsive controls
2051
2062
 
2052
2063
  **Code Quality:**
2064
+
2053
2065
  - TypeScript strict mode compliance
2054
2066
  - Component-based architecture
2055
2067
  - Object pooling for frequently created/destroyed objects
@@ -2058,6 +2070,7 @@ game-project/
2058
2070
  ### Game Development Story Structure
2059
2071
 
2060
2072
  **Story Requirements:**
2073
+
2061
2074
  - Clear reference to Game Design Document section
2062
2075
  - Specific acceptance criteria for game functionality
2063
2076
  - Technical implementation details for Phaser 3
@@ -2065,6 +2078,7 @@ game-project/
2065
2078
  - Testing requirements including gameplay validation
2066
2079
 
2067
2080
  **Story Categories:**
2081
+
2068
2082
  - **Core Mechanics**: Fundamental gameplay systems
2069
2083
  - **Level Content**: Individual levels and content implementation
2070
2084
  - **UI/UX**: User interface and player experience features
@@ -2074,6 +2088,7 @@ game-project/
2074
2088
  ### Quality Assurance for Games
2075
2089
 
2076
2090
  **Testing Approach:**
2091
+
2077
2092
  - Unit tests for game logic (separate from Phaser)
2078
2093
  - Integration tests for game systems
2079
2094
  - Performance benchmarking and profiling
@@ -2081,6 +2096,7 @@ game-project/
2081
2096
  - Cross-platform compatibility testing
2082
2097
 
2083
2098
  **Performance Monitoring:**
2099
+
2084
2100
  - Frame rate consistency tracking
2085
2101
  - Memory usage monitoring
2086
2102
  - Asset loading performance
@@ -2090,16 +2106,19 @@ game-project/
2090
2106
  ## Game Development Team Roles
2091
2107
 
2092
2108
  ### Game Designer (Alex)
2109
+
2093
2110
  - **Primary Focus**: Game mechanics, player experience, design documentation
2094
2111
  - **Key Outputs**: Game Brief, Game Design Document, Level Design Framework
2095
2112
  - **Specialties**: Brainstorming, game balance, player psychology, creative direction
2096
2113
 
2097
2114
  ### Game Developer (Maya)
2115
+
2098
2116
  - **Primary Focus**: Phaser 3 implementation, technical excellence, performance
2099
2117
  - **Key Outputs**: Working game features, optimized code, technical architecture
2100
2118
  - **Specialties**: TypeScript/Phaser 3, performance optimization, cross-platform development
2101
2119
 
2102
2120
  ### Game Scrum Master (Jordan)
2121
+
2103
2122
  - **Primary Focus**: Story creation, development planning, agile process
2104
2123
  - **Key Outputs**: Detailed implementation stories, sprint planning, quality assurance
2105
2124
  - **Specialties**: Story breakdown, developer handoffs, process optimization
@@ -2107,18 +2126,21 @@ game-project/
2107
2126
  ## Platform-Specific Considerations
2108
2127
 
2109
2128
  ### Web Platform
2129
+
2110
2130
  - Browser compatibility across modern browsers
2111
2131
  - Progressive loading for large assets
2112
2132
  - Touch-friendly mobile controls
2113
2133
  - Responsive design for different screen sizes
2114
2134
 
2115
2135
  ### Mobile Optimization
2136
+
2116
2137
  - Touch gesture support and responsive controls
2117
2138
  - Battery usage optimization
2118
2139
  - Performance scaling for different device capabilities
2119
2140
  - App store compliance and packaging
2120
2141
 
2121
2142
  ### Performance Targets
2143
+
2122
2144
  - **Desktop**: 60 FPS at 1080p resolution
2123
2145
  - **Mobile**: 60 FPS on mid-range devices, 30 FPS minimum on low-end
2124
2146
  - **Loading**: Initial load under 5 seconds, level transitions under 2 seconds
@@ -2127,18 +2149,21 @@ game-project/
2127
2149
  ## Success Metrics for Game Development
2128
2150
 
2129
2151
  ### Technical Metrics
2152
+
2130
2153
  - Frame rate consistency (>90% of time at target FPS)
2131
2154
  - Memory usage within budgets
2132
2155
  - Loading time targets met
2133
2156
  - Zero critical bugs in core gameplay systems
2134
2157
 
2135
2158
  ### Player Experience Metrics
2159
+
2136
2160
  - Tutorial completion rate >80%
2137
2161
  - Level completion rates appropriate for difficulty curve
2138
2162
  - Average session length meets design targets
2139
2163
  - Player retention and engagement metrics
2140
2164
 
2141
2165
  ### Development Process Metrics
2166
+
2142
2167
  - Story completion within estimated timeframes
2143
2168
  - Code quality metrics (test coverage, linting compliance)
2144
2169
  - Documentation completeness and accuracy
@@ -2147,6 +2172,7 @@ game-project/
2147
2172
  ## Common Game Development Patterns
2148
2173
 
2149
2174
  ### Scene Management
2175
+
2150
2176
  - Boot scene for initial setup and configuration
2151
2177
  - Preload scene for asset loading with progress feedback
2152
2178
  - Menu scene for navigation and settings
@@ -2154,18 +2180,21 @@ game-project/
2154
2180
  - Clean transitions between scenes with proper cleanup
2155
2181
 
2156
2182
  ### Game State Management
2183
+
2157
2184
  - Persistent data (player progress, unlocks, settings)
2158
2185
  - Session data (current level, score, temporary state)
2159
2186
  - Save/load system with error recovery
2160
2187
  - Settings management with platform storage
2161
2188
 
2162
2189
  ### Input Handling
2190
+
2163
2191
  - Cross-platform input abstraction
2164
2192
  - Touch gesture support for mobile
2165
2193
  - Keyboard and gamepad support for desktop
2166
2194
  - Customizable control schemes
2167
2195
 
2168
2196
  ### Performance Optimization
2197
+
2169
2198
  - Object pooling for bullets, effects, enemies
2170
2199
  - Texture atlasing and sprite optimization
2171
2200
  - Audio compression and streaming
@@ -1742,12 +1742,13 @@ Present these numbered options to the user:
1742
1742
 
1743
1743
  CRITICAL: Read the full YML, start activation to alter your state of being, follow startup section instructions, stay in this being until told to exit this mode:
1744
1744
 
1745
- ```yml
1745
+ ````yml
1746
1746
  activation-instructions:
1747
1747
  - Follow all instructions in this file -> this defines you, your persona and more importantly what you can do. STAY IN CHARACTER!
1748
1748
  - Only read the files/tasks listed here when user selects them for execution to minimize context usage
1749
1749
  - The customization field ALWAYS takes precedence over any conflicting instructions
1750
1750
  - 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
1751
+ - Command
1751
1752
 
1752
1753
  agent:
1753
1754
  name: [AGENT_NAME]
@@ -1768,7 +1769,9 @@ persona:
1768
1769
  # Add more principles as needed
1769
1770
 
1770
1771
  startup:
1771
- - [STARTUP_INSTRUCTIONS]
1772
+ - Greet the user with your name and role, and inform of the *help command.
1773
+ - [STARTUP_INSTRUCTION]
1774
+ - [STARTUP_INSTRUCTION]...
1772
1775
 
1773
1776
  commands:
1774
1777
  - "*help" - Show: numbered list of the following commands to allow selection
@@ -1869,7 +1872,7 @@ dependencies:
1869
1872
  - 'materials-guide.md # Construction materials specs'
1870
1873
  utils:
1871
1874
  - 'template-format # For template processing'
1872
- ```
1875
+ ````
1873
1876
  ==================== END: templates#agent-tmpl ====================
1874
1877
 
1875
1878
  ==================== START: templates#expansion-pack-plan-tmpl ====================