bmad-method 4.17.0 → 4.19.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 (60) hide show
  1. package/.claude/commands/bmad-master.md +0 -1
  2. package/CHANGELOG.md +20 -0
  3. package/bmad-core/core-config.yml +0 -1
  4. package/{bmad-core → common}/tasks/create-doc.md +2 -2
  5. package/{expansion-packs/expansion-creator/common-tasks → common/tasks}/execute-checklist.md +2 -6
  6. package/common/utils/workflow-management.md +69 -0
  7. package/dist/agents/analyst.txt +2 -2
  8. package/dist/agents/architect.txt +4 -8
  9. package/dist/agents/bmad-master.txt +35 -270
  10. package/dist/agents/bmad-orchestrator.txt +33 -187
  11. package/dist/agents/dev.txt +2 -6
  12. package/dist/agents/pm.txt +4 -8
  13. package/dist/agents/po.txt +2 -6
  14. package/dist/agents/sm.txt +2 -6
  15. package/dist/agents/ux-expert.txt +4 -8
  16. package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-designer.txt +4 -8
  17. package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-developer.txt +2 -6
  18. package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-sm.txt +2 -6
  19. package/dist/expansion-packs/bmad-2d-phaser-game-dev/teams/phaser-2d-nodejs-game-team.txt +35 -193
  20. package/dist/expansion-packs/bmad-infrastructure-devops/agents/infra-devops-platform.txt +2 -2
  21. package/dist/expansion-packs/expansion-creator/agents/bmad-the-creator.txt +5 -5
  22. package/dist/teams/team-all.txt +35 -193
  23. package/dist/teams/team-fullstack.txt +35 -193
  24. package/dist/teams/team-ide-minimal.txt +35 -193
  25. package/dist/teams/team-no-ui.txt +35 -193
  26. package/docs/working-in-the-brownfield.md +2 -2
  27. package/expansion-packs/bmad-2d-phaser-game-dev/config.yml +5 -0
  28. package/expansion-packs/bmad-creator-tools/config.yml +5 -0
  29. package/expansion-packs/{expansion-creator → bmad-creator-tools}/tasks/generate-expansion-pack.md +5 -5
  30. package/expansion-packs/bmad-infrastructure-devops/config.yml +5 -0
  31. package/package.json +1 -1
  32. package/test-ide-paths.js +41 -0
  33. package/tools/builders/web-builder.js +60 -19
  34. package/tools/installer/config/ide-agent-config.yml +58 -0
  35. package/tools/installer/config/install.config.yml +0 -85
  36. package/tools/installer/lib/config-loader.js +89 -41
  37. package/tools/installer/lib/file-manager.js +1 -0
  38. package/tools/installer/lib/ide-setup.js +150 -116
  39. package/tools/installer/lib/installer.js +263 -9
  40. package/tools/installer/package.json +1 -1
  41. package/tools/lib/dependency-resolver.js +15 -0
  42. package/bmad-core/tasks/core-dump.md +0 -74
  43. package/bmad-core/tasks/execute-checklist.md +0 -97
  44. package/bmad-core/utils/file-resolution-context.md +0 -10
  45. package/bmad-core/utils/workflow-management.md +0 -223
  46. package/expansion-packs/bmad-2d-phaser-game-dev/manifest.yml +0 -45
  47. package/expansion-packs/bmad-infrastructure-devops/manifest.yml +0 -23
  48. package/expansion-packs/bmad-infrastructure-devops/tasks/create-doc.md +0 -74
  49. package/expansion-packs/expansion-creator/common-tasks/create-doc.md +0 -74
  50. package/expansion-packs/expansion-creator/manifest.yml +0 -12
  51. package/expansion-packs/expansion-creator/utils/template-format.md +0 -26
  52. package/expansion-packs/expansion-creator/utils/workflow-management.md +0 -223
  53. /package/{bmad-core → common}/utils/template-format.md +0 -0
  54. /package/expansion-packs/{expansion-creator → bmad-creator-tools}/README.md +0 -0
  55. /package/expansion-packs/{expansion-creator → bmad-creator-tools}/agents/bmad-the-creator.md +0 -0
  56. /package/expansion-packs/{expansion-creator → bmad-creator-tools}/tasks/create-agent.md +0 -0
  57. /package/expansion-packs/{expansion-creator → bmad-creator-tools}/templates/agent-teams-tmpl.md +0 -0
  58. /package/expansion-packs/{expansion-creator → bmad-creator-tools}/templates/agent-tmpl.md +0 -0
  59. /package/expansion-packs/{expansion-creator → bmad-creator-tools}/templates/expansion-pack-plan-tmpl.md +0 -0
  60. /package/{bmad-core/utils → tools/md-assets}/web-agent-startup-instructions.md +0 -0
@@ -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,45 +0,0 @@
1
- name: bmad-2d-phaser-game-dev
2
- version: 1.0.0
3
- description: 2D Game Development expansion pack for BMAD Method - Phaser 3 & TypeScript focused
4
- author: BMAD Team
5
- files:
6
- - source: agents/game-designer.md
7
- destination: .bmad-core/agents/game-designer.md
8
- - source: agents/game-developer.md
9
- destination: .bmad-core/agents/game-developer.md
10
- - source: agents/game-sm.md
11
- destination: .bmad-core/agents/game-sm.md
12
- - source: team-game-dev.yml
13
- destination: .bmad-core/agent-teams/team-game-dev.yml
14
- - source: templates/game-design-doc-tmpl.md
15
- destination: .bmad-core/templates/game-design-doc-tmpl.md
16
- - source: templates/game-architecture-tmpl.md
17
- destination: .bmad-core/templates/game-architecture-tmpl.md
18
- - source: templates/level-design-doc-tmpl.md
19
- destination: .bmad-core/templates/level-design-doc-tmpl.md
20
- - source: templates/game-story-tmpl.md
21
- destination: .bmad-core/templates/game-story-tmpl.md
22
- - source: templates/game-brief-tmpl.md
23
- destination: .bmad-core/templates/game-brief-tmpl.md
24
- - source: tasks/create-game-story.md
25
- destination: .bmad-core/tasks/create-game-story.md
26
- - source: tasks/game-design-brainstorming.md
27
- destination: .bmad-core/tasks/game-design-brainstorming.md
28
- - source: tasks/advanced-elicitation.md
29
- destination: .bmad-core/tasks/advanced-elicitation.md
30
- - source: checklists/game-story-dod-checklist.md
31
- destination: .bmad-core/checklists/game-story-dod-checklist.md
32
- - source: checklists/game-design-checklist.md
33
- destination: .bmad-core/checklists/game-design-checklist.md
34
- - source: data/bmad-kb.md
35
- destination: .bmad-core/data/bmad-kb.md
36
- - source: data/development-guidelines.md
37
- destination: .bmad-core/data/development-guidelines.md
38
- - source: workflows/game-dev-greenfield.yml
39
- destination: .bmad-core/workflows/game-dev-greenfield.yml
40
- - source: workflows/game-prototype.yml
41
- destination: .bmad-core/workflows/game-prototype.yml
42
- dependencies:
43
- - architect
44
- - developer
45
- - sm
@@ -1,23 +0,0 @@
1
- name: bmad-infrastructure-devops
2
- version: 1.0.0
3
- description: Infrastructure & DevOps expansion pack for BMAD Method - Platform engineering and cloud infrastructure focused
4
- author: BMAD Team
5
- files:
6
- - source: agents/infra-devops-platform.md
7
- destination: .bmad-core/agents/infra-devops-platform.md
8
- - source: templates/infrastructure-architecture-tmpl.md
9
- destination: .bmad-core/templates/infrastructure-architecture-tmpl.md
10
- - source: templates/infrastructure-platform-from-arch-tmpl.md
11
- destination: .bmad-core/templates/infrastructure-platform-from-arch-tmpl.md
12
- - source: tasks/create-doc.md
13
- destination: .bmad-core/tasks/create-doc.md
14
- - source: tasks/review-infrastructure.md
15
- destination: .bmad-core/tasks/review-infrastructure.md
16
- - source: tasks/validate-infrastructure.md
17
- destination: .bmad-core/tasks/validate-infrastructure.md
18
- - source: checklists/infrastructure-checklist.md
19
- destination: .bmad-core/checklists/infrastructure-checklist.md
20
- dependencies:
21
- - architect
22
- - operations-specialist
23
- - security-specialist
@@ -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,12 +0,0 @@
1
- name: bmad-creator-tools
2
- version: 1.0.0
3
- description: Tools for creating and extending BMAD framework components
4
- type: creator-tools
5
- compatibility:
6
- bmad-version: '>=4.0.0'
7
- components:
8
- agents:
9
- - bmad-the-creator
10
- tasks:
11
- - create-agent
12
- - generate-expansion-pack
@@ -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