bmad-method 4.16.1 → 4.18.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 (45) hide show
  1. package/.claude/commands/bmad-master.md +0 -1
  2. package/CHANGELOG.md +15 -0
  3. package/{bmad-core → common}/tasks/create-doc.md +2 -2
  4. package/{expansion-packs/expansion-creator/common-tasks → common/tasks}/execute-checklist.md +2 -6
  5. package/common/utils/workflow-management.md +69 -0
  6. package/dist/agents/analyst.txt +2 -2
  7. package/dist/agents/architect.txt +4 -8
  8. package/dist/agents/bmad-master.txt +35 -270
  9. package/dist/agents/bmad-orchestrator.txt +33 -187
  10. package/dist/agents/dev.txt +2 -6
  11. package/dist/agents/pm.txt +4 -8
  12. package/dist/agents/po.txt +2 -6
  13. package/dist/agents/sm.txt +2 -6
  14. package/dist/agents/ux-expert.txt +4 -8
  15. package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-designer.txt +4 -8
  16. package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-developer.txt +2 -6
  17. package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-sm.txt +2 -6
  18. package/dist/expansion-packs/bmad-2d-phaser-game-dev/teams/phaser-2d-nodejs-game-team.txt +35 -193
  19. package/dist/expansion-packs/bmad-infrastructure-devops/agents/infra-devops-platform.txt +2 -2
  20. package/dist/expansion-packs/expansion-creator/agents/bmad-the-creator.txt +5 -5
  21. package/dist/teams/team-all.txt +35 -193
  22. package/dist/teams/team-fullstack.txt +35 -193
  23. package/dist/teams/team-ide-minimal.txt +35 -193
  24. package/dist/teams/team-no-ui.txt +35 -193
  25. package/docs/working-in-the-brownfield.md +2 -2
  26. package/expansion-packs/expansion-creator/tasks/generate-expansion-pack.md +5 -5
  27. package/package.json +1 -1
  28. package/tools/builders/web-builder.js +60 -19
  29. package/tools/installer/config/install.config.yml +0 -85
  30. package/tools/installer/lib/config-loader.js +57 -30
  31. package/tools/installer/lib/file-manager.js +1 -0
  32. package/tools/installer/lib/ide-setup.js +47 -26
  33. package/tools/installer/lib/installer.js +250 -8
  34. package/tools/installer/package.json +1 -1
  35. package/tools/lib/dependency-resolver.js +15 -0
  36. package/bmad-core/tasks/core-dump.md +0 -74
  37. package/bmad-core/tasks/execute-checklist.md +0 -97
  38. package/bmad-core/utils/file-resolution-context.md +0 -10
  39. package/bmad-core/utils/workflow-management.md +0 -223
  40. package/expansion-packs/bmad-infrastructure-devops/tasks/create-doc.md +0 -74
  41. package/expansion-packs/expansion-creator/common-tasks/create-doc.md +0 -74
  42. package/expansion-packs/expansion-creator/utils/template-format.md +0 -26
  43. package/expansion-packs/expansion-creator/utils/workflow-management.md +0 -223
  44. /package/{bmad-core → common}/utils/template-format.md +0 -0
  45. /package/{bmad-core/utils → tools/md-assets}/web-agent-startup-instructions.md +0 -0
@@ -1,97 +0,0 @@
1
- # Checklist Validation Task
2
-
3
- This task provides instructions for validating documentation against checklists. The agent MUST follow these instructions to ensure thorough and systematic validation of documents.
4
-
5
- ## Context
6
-
7
- The BMAD Method uses various checklists to ensure quality and completeness of different artifacts. Each checklist contains embedded prompts and instructions to guide the LLM through thorough validation and advanced elicitation. The checklists automatically identify their required artifacts and guide the validation process.
8
-
9
- ## Available Checklists
10
-
11
- 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.
12
-
13
- ## Instructions
14
-
15
- 1. **Initial Assessment**
16
-
17
- - If user or the task being run provides a checklist name:
18
- - Try fuzzy matching (e.g. "architecture checklist" -> "architect-checklist")
19
- - If multiple matches found, ask user to clarify
20
- - Load the appropriate checklist from bmad-core/checklists/
21
- - If no checklist specified:
22
- - Ask the user which checklist they want to use
23
- - Present the available options from the files in the checklists folder
24
- - Confirm if they want to work through the checklist:
25
- - Section by section (interactive mode - very time consuming)
26
- - All at once (YOLO mode - recommended for checklists, there will be a summary of sections at the end to discuss)
27
-
28
- 2. **Document and Artifact Gathering**
29
-
30
- - Each checklist will specify its required documents/artifacts at the beginning
31
- - Follow the checklist's specific instructions for what to gather, generally a file can be resolved in the docs folder, if not or unsure, halt and ask or confirm with the user.
32
-
33
- 3. **Checklist Processing**
34
-
35
- If in interactive mode:
36
-
37
- - Work through each section of the checklist one at a time
38
- - For each section:
39
- - Review all items in the section following instructions for that section embedded in the checklist
40
- - Check each item against the relevant documentation or artifacts as appropriate
41
- - Present summary of findings for that section, highlighting warnings, errors and non applicable items (rationale for non-applicability).
42
- - Get user confirmation before proceeding to next section or if any thing major do we need to halt and take corrective action
43
-
44
- If in YOLO mode:
45
-
46
- - Process all sections at once
47
- - Create a comprehensive report of all findings
48
- - Present the complete analysis to the user
49
-
50
- 4. **Validation Approach**
51
-
52
- For each checklist item:
53
-
54
- - Read and understand the requirement
55
- - Look for evidence in the documentation that satisfies the requirement
56
- - Consider both explicit mentions and implicit coverage
57
- - Aside from this, follow all checklist llm instructions
58
- - Mark items as:
59
- - ✅ PASS: Requirement clearly met
60
- - ❌ FAIL: Requirement not met or insufficient coverage
61
- - ⚠️ PARTIAL: Some aspects covered but needs improvement
62
- - N/A: Not applicable to this case
63
-
64
- 5. **Section Analysis**
65
-
66
- For each section:
67
-
68
- - think step by step to calculate pass rate
69
- - Identify common themes in failed items
70
- - Provide specific recommendations for improvement
71
- - In interactive mode, discuss findings with user
72
- - Document any user decisions or explanations
73
-
74
- 6. **Final Report**
75
-
76
- Prepare a summary that includes:
77
-
78
- - Overall checklist completion status
79
- - Pass rates by section
80
- - List of failed items with context
81
- - Specific recommendations for improvement
82
- - Any sections or items marked as N/A with justification
83
-
84
- ## Checklist Execution Methodology
85
-
86
- Each checklist now contains embedded LLM prompts and instructions that will:
87
-
88
- 1. **Guide thorough thinking** - Prompts ensure deep analysis of each section
89
- 2. **Request specific artifacts** - Clear instructions on what documents/access is needed
90
- 3. **Provide contextual guidance** - Section-specific prompts for better validation
91
- 4. **Generate comprehensive reports** - Final summary with detailed findings
92
-
93
- The LLM will:
94
-
95
- - Execute the complete checklist validation
96
- - Present a final report with pass/fail rates and key findings
97
- - Offer to provide detailed analysis of any section, especially those with warnings or failures
@@ -1,10 +0,0 @@
1
- # File Resolution Context
2
-
3
- Update the installer/upgrader so that when agents are added to a project (under Add these two lines to any agent's `activation-instructions` for ide installation:
4
-
5
- ```yaml
6
- - IDE-FILE-RESOLUTION: Dependencies map to files as {root}/{type}/{name}.md where root=".bmad-core", type=folder (tasks/templates/checklists/utils), name=dependency name.
7
- - REQUEST-RESOLUTION: Match user requests to your commands/dependencies flexibly (e.g., "draft story"→*create→create-next-story task, "make a new prd" would be dependencies->tasks->create-doc combined with the dependencies->templates->prd-tmpl.md), or ask for clarification if ambiguous.
8
- ```
9
-
10
- and add `root: .bmad-core` as the first root yml property.
@@ -1,223 +0,0 @@
1
- # Workflow Management
2
-
3
- This utility enables the BMAD orchestrator to manage and execute team workflows.
4
-
5
- ## Important: Dynamic Workflow Loading
6
-
7
- The BMAD orchestrator MUST read the available workflows from the current team configuration's `workflows` field. Do not use hardcoded workflow lists. Each team bundle defines its own set of supported workflows based on the agents it includes.
8
-
9
- **Critical Distinction**:
10
-
11
- - When asked "what workflows are available?", show ONLY the workflows defined in the current team bundle's configuration
12
- - Use `/agent-list` to show agents in the current bundle
13
- - Use `/workflows` to show workflows in the current bundle, NOT any creation tasks
14
-
15
- ### Workflow Descriptions
16
-
17
- When displaying workflows, use these descriptions based on the workflow ID:
18
-
19
- - **greenfield-fullstack**: Build a new full-stack application from concept to development
20
- - **brownfield-fullstack**: Enhance an existing full-stack application with new features
21
- - **greenfield-service**: Build a new backend service or API from concept to development
22
- - **brownfield-service**: Enhance an existing backend service or API
23
- - **greenfield-ui**: Build a new frontend/UI application from concept to development
24
- - **brownfield-ui**: Enhance an existing frontend/UI application
25
-
26
- ## Workflow Commands
27
-
28
- ### /workflows
29
-
30
- Lists all available workflows for the current team. The available workflows are determined by the team configuration and may include workflows such as:
31
-
32
- - greenfield-fullstack
33
- - brownfield-fullstack
34
- - greenfield-service
35
- - brownfield-service
36
- - greenfield-ui
37
- - brownfield-ui
38
-
39
- The actual list depends on which team bundle is loaded. When responding to this command, display the workflows that are configured in the current team's `workflows` field.
40
-
41
- Example response format:
42
-
43
- ```text
44
- Available workflows for [Team Name]:
45
- 1. [workflow-id] - [Brief description based on workflow type]
46
- 2. [workflow-id] - [Brief description based on workflow type]
47
- [... etc. ...]
48
-
49
- Use /workflow-start {number or id} to begin a workflow.
50
- ```
51
-
52
- ### /workflow-start {workflow-id}
53
-
54
- Starts a specific workflow and transitions to the first agent.
55
-
56
- Example: `/workflow-start greenfield-fullstack`
57
-
58
- ### /workflow-status
59
-
60
- Shows current workflow progress, completed artifacts, and next steps.
61
-
62
- Example response:
63
-
64
- ```text
65
- Current Workflow: Greenfield Full-Stack Development
66
- Stage: Product Planning (2 of 6)
67
- Completed:
68
- ✓ Discovery & Requirements
69
- - project-brief (completed by Mary)
70
-
71
- In Progress:
72
- ⚡ Product Planning
73
- - Create PRD (John) - awaiting input
74
-
75
- Next: Technical Architecture
76
- ```
77
-
78
- ### /workflow-resume
79
-
80
- Resumes a workflow from where it left off, useful when starting a new chat.
81
-
82
- User can provide completed artifacts:
83
-
84
- ```text
85
- User: /workflow-resume greenfield-fullstack
86
- I have completed: project-brief, PRD
87
- BMad: I see you've completed Discovery and part of Product Planning.
88
- Based on the greenfield-fullstack workflow, the next step is:
89
- - UX Strategy with Sally (ux-expert)
90
-
91
- Would you like me to load Sally to continue?
92
- ```
93
-
94
- ### /workflow-next
95
-
96
- Shows the next recommended agent and action in the current workflow.
97
-
98
- ## Workflow Execution Flow
99
-
100
- ### 1. Starting a Workflow
101
-
102
- When a workflow is started:
103
-
104
- 1. Load the workflow definition
105
- 2. Identify the first stage and step
106
- 3. Transition to the required agent
107
- 4. Provide context about expected inputs/outputs
108
- 5. Guide artifact creation
109
-
110
- ### 2. Stage Transitions
111
-
112
- After each artifact is completed:
113
-
114
- 1. Mark the step as complete
115
- 2. Check transition conditions
116
- 3. If stage is complete, move to next stage
117
- 4. Load the appropriate agent
118
- 5. Pass relevant artifacts as context
119
-
120
- ### 3. Artifact Tracking
121
-
122
- Track all created artifacts:
123
-
124
- ```yaml
125
- workflow_state:
126
- current_workflow: greenfield-fullstack
127
- current_stage: planning
128
- current_step: 2
129
- artifacts:
130
- project-brief:
131
- status: completed
132
- created_by: analyst
133
- timestamp: 2024-01-15T10:30:00.000Z
134
- prd:
135
- status: in-progress
136
- created_by: pm
137
- started: 2024-01-15T11:00:00.000Z
138
- ```
139
-
140
- ### 4. Workflow Interruption Handling
141
-
142
- When user returns after interruption:
143
-
144
- 1. Ask if continuing previous workflow
145
- 2. Request any completed artifacts
146
- 3. Analyze provided artifacts
147
- 4. Determine workflow position
148
- 5. Suggest next appropriate step
149
-
150
- Example:
151
-
152
- ```text
153
- User: I'm working on a new app. Here's my PRD and architecture doc.
154
- BMad: I see you have a PRD and architecture document. Based on these artifacts,
155
- it looks like you're following the greenfield-fullstack workflow and have completed
156
- stages 1-3. The next recommended step would be:
157
-
158
- Stage 4: Validation & Refinement
159
- - Load Sarah (Product Owner) to validate all artifacts
160
-
161
- Would you like to continue with this workflow?
162
- ```
163
-
164
- ## Workflow Context Passing
165
-
166
- When transitioning between agents, pass:
167
-
168
- 1. Previous artifacts created
169
- 2. Current workflow stage
170
- 3. Expected outputs
171
- 4. Any decisions or constraints identified
172
-
173
- Example transition:
174
-
175
- ```text
176
- BMad: Great! John has completed the PRD. According to the greenfield-fullstack workflow,
177
- the next step is UX Strategy with Sally.
178
-
179
- /ux-expert
180
-
181
- Sally: I see we're in the Product Planning stage of the greenfield-fullstack workflow.
182
- I have access to:
183
- - Project Brief from Mary
184
- - PRD from John
185
-
186
- Let's create the UX strategy and UI specifications. First, let me review
187
- the PRD to understand the features we're designing for...
188
- ```
189
-
190
- ## Multi-Path Workflows
191
-
192
- Some workflows may have multiple paths:
193
-
194
- ```yaml
195
- conditional_paths:
196
- - condition: project_type == 'mobile'
197
- next_stage: mobile-specific-design
198
- - condition: project_type == 'web'
199
- next_stage: web-architecture
200
- - default: fullstack-architecture
201
- ```
202
-
203
- Handle these by asking clarifying questions when needed.
204
-
205
- ## Workflow Best Practices
206
-
207
- 1. **Always show progress** - Users should know where they are
208
- 2. **Explain transitions** - Why moving to next agent
209
- 3. **Preserve context** - Pass relevant information forward
210
- 4. **Allow flexibility** - Users can skip or modify steps
211
- 5. **Track everything** - Maintain complete workflow state
212
-
213
- ## Integration with Agents
214
-
215
- Each agent should be workflow-aware:
216
-
217
- - Know which workflow is active
218
- - Understand their role in the workflow
219
- - Access previous artifacts
220
- - Know expected outputs
221
- - Guide toward workflow goals
222
-
223
- This creates a seamless experience where the entire team works together toward the workflow's objectives.
@@ -1,74 +0,0 @@
1
- # Create Document from Template Task
2
-
3
- ## Purpose
4
-
5
- - Generate documents from any specified template following embedded instructions from the perspective of the selected agent persona
6
-
7
- ## Instructions
8
-
9
- ### 1. Identify Template and Context
10
-
11
- - Determine which template to use (user-provided or list available for selection to user)
12
-
13
- - Agent-specific templates are listed in the agent's dependencies under `templates`. For each template listed, consider it a document the agent can create. So if an agent has:
14
-
15
- @{example}
16
- dependencies:
17
- templates: - prd-tmpl - architecture-tmpl
18
- @{/example}
19
-
20
- You would offer to create "PRD" and "Architecture" documents when the user asks what you can help with.
21
-
22
- - Gather all relevant inputs, or ask for them, or else rely on user providing necessary details to complete the document
23
- - Understand the document purpose and target audience
24
-
25
- ### 2. Determine Interaction Mode
26
-
27
- Confirm with the user their preferred interaction style:
28
-
29
- - **Incremental:** Work through chunks of the document.
30
- - **YOLO Mode:** Draft complete document making reasonable assumptions in one shot. (Can be entered also after starting incremental by just typing /yolo)
31
-
32
- ### 3. Execute Template
33
-
34
- - Load specified template from `templates#*` or the /templates directory
35
- - Follow ALL embedded LLM instructions within the template
36
- - Process template markup according to `utils#template-format` conventions
37
-
38
- ### 4. Template Processing Rules
39
-
40
- #### CRITICAL: Never display template markup, LLM instructions, or examples to users
41
-
42
- - Replace all {{placeholders}} with actual content
43
- - Execute all [[LLM: instructions]] internally
44
- - Process `<<REPEAT>>` sections as needed
45
- - Evaluate ^^CONDITION^^ blocks and include only if applicable
46
- - Use @{examples} for guidance but never output them
47
-
48
- ### 5. Content Generation
49
-
50
- - **Incremental Mode**: Present each major section for review before proceeding
51
- - **YOLO Mode**: Generate all sections, then review complete document with user
52
- - Apply any elicitation protocols specified in template
53
- - Incorporate user feedback and iterate as needed
54
-
55
- ### 6. Validation
56
-
57
- If template specifies a checklist:
58
-
59
- - Run the appropriate checklist against completed document
60
- - Document completion status for each item
61
- - Address any deficiencies found
62
- - Present validation summary to user
63
-
64
- ### 7. Final Presentation
65
-
66
- - Present clean, formatted content only
67
- - Ensure all sections are complete
68
- - DO NOT truncate or summarize content
69
- - Begin directly with document content (no preamble)
70
- - Include any handoff prompts specified in template
71
-
72
- ## Important Notes
73
-
74
- - Template markup is for AI processing only - never expose to users
@@ -1,74 +0,0 @@
1
- # Create Document from Template Task
2
-
3
- ## Purpose
4
-
5
- - Generate documents from any specified template following embedded instructions from the perspective of the selected agent persona
6
-
7
- ## Instructions
8
-
9
- ### 1. Identify Template and Context
10
-
11
- - Determine which template to use (user-provided or list available for selection to user)
12
-
13
- - Agent-specific templates are listed in the agent's dependencies under `templates`. For each template listed, consider it a document the agent can create. So if an agent has:
14
-
15
- @{example}
16
- dependencies:
17
- templates: - prd-tmpl - architecture-tmpl
18
- @{/example}
19
-
20
- You would offer to create "PRD" and "Architecture" documents when the user asks what you can help with.
21
-
22
- - Gather all relevant inputs, or ask for them, or else rely on user providing necessary details to complete the document
23
- - Understand the document purpose and target audience
24
-
25
- ### 2. Determine Interaction Mode
26
-
27
- Confirm with the user their preferred interaction style:
28
-
29
- - **Incremental:** Work through chunks of the document.
30
- - **YOLO Mode:** Draft complete document making reasonable assumptions in one shot. (Can be entered also after starting incremental by just typing /yolo)
31
-
32
- ### 3. Execute Template
33
-
34
- - Load specified template from `templates#*` or the /templates directory
35
- - Follow ALL embedded LLM instructions within the template
36
- - Process template markup according to `utils#template-format` conventions
37
-
38
- ### 4. Template Processing Rules
39
-
40
- #### CRITICAL: Never display template markup, LLM instructions, or examples to users
41
-
42
- - Replace all {{placeholders}} with actual content
43
- - Execute all [[LLM: instructions]] internally
44
- - Process `<<REPEAT>>` sections as needed
45
- - Evaluate ^^CONDITION^^ blocks and include only if applicable
46
- - Use @{examples} for guidance but never output them
47
-
48
- ### 5. Content Generation
49
-
50
- - **Incremental Mode**: Present each major section for review before proceeding
51
- - **YOLO Mode**: Generate all sections, then review complete document with user
52
- - Apply any elicitation protocols specified in template
53
- - Incorporate user feedback and iterate as needed
54
-
55
- ### 6. Validation
56
-
57
- If template specifies a checklist:
58
-
59
- - Run the appropriate checklist against completed document
60
- - Document completion status for each item
61
- - Address any deficiencies found
62
- - Present validation summary to user
63
-
64
- ### 7. Final Presentation
65
-
66
- - Present clean, formatted content only
67
- - Ensure all sections are complete
68
- - DO NOT truncate or summarize content
69
- - Begin directly with document content (no preamble)
70
- - Include any handoff prompts specified in template
71
-
72
- ## Important Notes
73
-
74
- - Template markup is for AI processing only - never expose to users
@@ -1,26 +0,0 @@
1
- # Template Format Conventions
2
-
3
- Templates in the BMAD method use standardized markup for AI processing. These conventions ensure consistent document generation.
4
-
5
- ## Template Markup Elements
6
-
7
- - **{{placeholders}}**: Variables to be replaced with actual content
8
- - **[[LLM: instructions]]**: Internal processing instructions for AI agents (never shown to users)
9
- - **REPEAT** sections: Content blocks that may be repeated as needed
10
- - **^^CONDITION^^** blocks: Conditional content included only if criteria are met
11
- - **@{examples}**: Example content for guidance (never output to users)
12
-
13
- ## Processing Rules
14
-
15
- - Replace all {{placeholders}} with project-specific content
16
- - Execute all [[LLM: instructions]] internally without showing users
17
- - Process conditional and repeat blocks as specified
18
- - Use examples for guidance but never include them in final output
19
- - Present only clean, formatted content to users
20
-
21
- ## Critical Guidelines
22
-
23
- - **NEVER display template markup, LLM instructions, or examples to users**
24
- - Template elements are for AI processing only
25
- - Focus on faithful template execution and clean output
26
- - All template-specific instructions are embedded within templates