bmad-method 4.17.0 → 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.
- package/.claude/commands/bmad-master.md +0 -1
- package/CHANGELOG.md +8 -0
- package/{bmad-core → common}/tasks/create-doc.md +2 -2
- package/{expansion-packs/expansion-creator/common-tasks → common/tasks}/execute-checklist.md +2 -6
- package/common/utils/workflow-management.md +69 -0
- package/dist/agents/analyst.txt +2 -2
- package/dist/agents/architect.txt +4 -8
- package/dist/agents/bmad-master.txt +35 -270
- package/dist/agents/bmad-orchestrator.txt +33 -187
- package/dist/agents/dev.txt +2 -6
- package/dist/agents/pm.txt +4 -8
- package/dist/agents/po.txt +2 -6
- package/dist/agents/sm.txt +2 -6
- package/dist/agents/ux-expert.txt +4 -8
- package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-designer.txt +4 -8
- package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-developer.txt +2 -6
- package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-sm.txt +2 -6
- package/dist/expansion-packs/bmad-2d-phaser-game-dev/teams/phaser-2d-nodejs-game-team.txt +35 -193
- package/dist/expansion-packs/bmad-infrastructure-devops/agents/infra-devops-platform.txt +2 -2
- package/dist/expansion-packs/expansion-creator/agents/bmad-the-creator.txt +5 -5
- package/dist/teams/team-all.txt +35 -193
- package/dist/teams/team-fullstack.txt +35 -193
- package/dist/teams/team-ide-minimal.txt +35 -193
- package/dist/teams/team-no-ui.txt +35 -193
- package/docs/working-in-the-brownfield.md +2 -2
- package/expansion-packs/expansion-creator/tasks/generate-expansion-pack.md +5 -5
- package/package.json +1 -1
- package/tools/builders/web-builder.js +60 -19
- package/tools/installer/config/install.config.yml +0 -85
- package/tools/installer/lib/config-loader.js +57 -30
- package/tools/installer/lib/file-manager.js +1 -0
- package/tools/installer/lib/ide-setup.js +44 -26
- package/tools/installer/lib/installer.js +250 -8
- package/tools/installer/package.json +1 -1
- package/tools/lib/dependency-resolver.js +15 -0
- package/bmad-core/tasks/core-dump.md +0 -74
- package/bmad-core/tasks/execute-checklist.md +0 -97
- package/bmad-core/utils/file-resolution-context.md +0 -10
- package/bmad-core/utils/workflow-management.md +0 -223
- package/expansion-packs/bmad-infrastructure-devops/tasks/create-doc.md +0 -74
- package/expansion-packs/expansion-creator/common-tasks/create-doc.md +0 -74
- package/expansion-packs/expansion-creator/utils/template-format.md +0 -26
- package/expansion-packs/expansion-creator/utils/workflow-management.md +0 -223
- /package/{bmad-core → common}/utils/template-format.md +0 -0
- /package/{bmad-core/utils → tools/md-assets}/web-agent-startup-instructions.md +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
# [4.18.0](https://github.com/bmadcode/BMAD-METHOD/compare/v4.17.0...v4.18.0) (2025-06-28)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* expansion teams can now include core agents and include their assets automatically ([c70f1a0](https://github.com/bmadcode/BMAD-METHOD/commit/c70f1a056b0f6e3c805096ee5d27f0a3640fb00c))
|
|
7
|
+
* remove hardcoding from installer for agents, improve expansion pack installation to its own locations, common files moved to common folder ([95e833b](https://github.com/bmadcode/BMAD-METHOD/commit/95e833beebc3a60f73a7a1c67d534c8eb6bf48fd))
|
|
8
|
+
|
|
1
9
|
# [4.17.0](https://github.com/bmadcode/BMAD-METHOD/compare/v4.16.1...v4.17.0) (2025-06-27)
|
|
2
10
|
|
|
3
11
|
|
|
@@ -31,9 +31,9 @@ Confirm with the user their preferred interaction style:
|
|
|
31
31
|
|
|
32
32
|
### 3. Execute Template
|
|
33
33
|
|
|
34
|
-
- Load specified template from `templates#*` or the /templates directory
|
|
34
|
+
- Load specified template from `templates#*` or the `{root}/templates directory`
|
|
35
35
|
- Follow ALL embedded LLM instructions within the template
|
|
36
|
-
- Process template markup according to `utils#template-format` conventions
|
|
36
|
+
- Process template markup according to `utils#template-format` or `{root}/utils/template-format` conventions
|
|
37
37
|
|
|
38
38
|
### 4. Template Processing Rules
|
|
39
39
|
|
package/{expansion-packs/expansion-creator/common-tasks → common/tasks}/execute-checklist.md
RENAMED
|
@@ -2,13 +2,9 @@
|
|
|
2
2
|
|
|
3
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
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
5
|
## Available Checklists
|
|
10
6
|
|
|
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
|
|
7
|
+
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.
|
|
12
8
|
|
|
13
9
|
## Instructions
|
|
14
10
|
|
|
@@ -17,7 +13,7 @@ If the user asks or does not specify a specific checklist, list the checklists a
|
|
|
17
13
|
- If user or the task being run provides a checklist name:
|
|
18
14
|
- Try fuzzy matching (e.g. "architecture checklist" -> "architect-checklist")
|
|
19
15
|
- If multiple matches found, ask user to clarify
|
|
20
|
-
- Load the appropriate checklist from
|
|
16
|
+
- Load the appropriate checklist from {root}/checklists/
|
|
21
17
|
- If no checklist specified:
|
|
22
18
|
- Ask the user which checklist they want to use
|
|
23
19
|
- Present the available options from the files in the checklists folder
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# Workflow Management
|
|
2
|
+
|
|
3
|
+
Enables BMAD orchestrator to manage and execute team workflows.
|
|
4
|
+
|
|
5
|
+
## Dynamic Workflow Loading
|
|
6
|
+
|
|
7
|
+
Read available workflows from current team configuration's `workflows` field. Each team bundle defines its own supported workflows.
|
|
8
|
+
|
|
9
|
+
**Key Commands**:
|
|
10
|
+
|
|
11
|
+
- `/workflows` - List workflows in current bundle or workflows folder
|
|
12
|
+
- `/agent-list` - Show agents in current bundle
|
|
13
|
+
|
|
14
|
+
## Workflow Commands
|
|
15
|
+
|
|
16
|
+
### /workflows
|
|
17
|
+
|
|
18
|
+
Lists available workflows with titles and descriptions.
|
|
19
|
+
|
|
20
|
+
### /workflow-start {workflow-id}
|
|
21
|
+
|
|
22
|
+
Starts workflow and transitions to first agent.
|
|
23
|
+
|
|
24
|
+
### /workflow-status
|
|
25
|
+
|
|
26
|
+
Shows current progress, completed artifacts, and next steps.
|
|
27
|
+
|
|
28
|
+
### /workflow-resume
|
|
29
|
+
|
|
30
|
+
Resumes workflow from last position. User can provide completed artifacts.
|
|
31
|
+
|
|
32
|
+
### /workflow-next
|
|
33
|
+
|
|
34
|
+
Shows next recommended agent and action.
|
|
35
|
+
|
|
36
|
+
## Execution Flow
|
|
37
|
+
|
|
38
|
+
1. **Starting**: Load definition → Identify first stage → Transition to agent → Guide artifact creation
|
|
39
|
+
|
|
40
|
+
2. **Stage Transitions**: Mark complete → Check conditions → Load next agent → Pass artifacts
|
|
41
|
+
|
|
42
|
+
3. **Artifact Tracking**: Track status, creator, timestamps in workflow_state
|
|
43
|
+
|
|
44
|
+
4. **Interruption Handling**: Analyze provided artifacts → Determine position → Suggest next step
|
|
45
|
+
|
|
46
|
+
## Context Passing
|
|
47
|
+
|
|
48
|
+
When transitioning, pass:
|
|
49
|
+
|
|
50
|
+
- Previous artifacts
|
|
51
|
+
- Current workflow stage
|
|
52
|
+
- Expected outputs
|
|
53
|
+
- Decisions/constraints
|
|
54
|
+
|
|
55
|
+
## Multi-Path Workflows
|
|
56
|
+
|
|
57
|
+
Handle conditional paths by asking clarifying questions when needed.
|
|
58
|
+
|
|
59
|
+
## Best Practices
|
|
60
|
+
|
|
61
|
+
1. Show progress
|
|
62
|
+
2. Explain transitions
|
|
63
|
+
3. Preserve context
|
|
64
|
+
4. Allow flexibility
|
|
65
|
+
5. Track state
|
|
66
|
+
|
|
67
|
+
## Agent Integration
|
|
68
|
+
|
|
69
|
+
Agents should be workflow-aware: know active workflow, their role, access artifacts, understand expected outputs.
|
package/dist/agents/analyst.txt
CHANGED
|
@@ -681,9 +681,9 @@ Confirm with the user their preferred interaction style:
|
|
|
681
681
|
|
|
682
682
|
### 3. Execute Template
|
|
683
683
|
|
|
684
|
-
- Load specified template from `templates#*` or the /templates directory
|
|
684
|
+
- Load specified template from `templates#*` or the `{root}/templates directory`
|
|
685
685
|
- Follow ALL embedded LLM instructions within the template
|
|
686
|
-
- Process template markup according to `utils#template-format` conventions
|
|
686
|
+
- Process template markup according to `utils#template-format` or `{root}/utils/template-format` conventions
|
|
687
687
|
|
|
688
688
|
### 4. Template Processing Rules
|
|
689
689
|
|
|
@@ -136,9 +136,9 @@ Confirm with the user their preferred interaction style:
|
|
|
136
136
|
|
|
137
137
|
### 3. Execute Template
|
|
138
138
|
|
|
139
|
-
- Load specified template from `templates#*` or the /templates directory
|
|
139
|
+
- Load specified template from `templates#*` or the `{root}/templates directory`
|
|
140
140
|
- Follow ALL embedded LLM instructions within the template
|
|
141
|
-
- Process template markup according to `utils#template-format` conventions
|
|
141
|
+
- Process template markup according to `utils#template-format` or `{root}/utils/template-format` conventions
|
|
142
142
|
|
|
143
143
|
### 4. Template Processing Rules
|
|
144
144
|
|
|
@@ -808,13 +808,9 @@ Apply the advanced elicitation task after major sections to refine based on user
|
|
|
808
808
|
|
|
809
809
|
This task provides instructions for validating documentation against checklists. The agent MUST follow these instructions to ensure thorough and systematic validation of documents.
|
|
810
810
|
|
|
811
|
-
## Context
|
|
812
|
-
|
|
813
|
-
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.
|
|
814
|
-
|
|
815
811
|
## Available Checklists
|
|
816
812
|
|
|
817
|
-
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
|
|
813
|
+
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.
|
|
818
814
|
|
|
819
815
|
## Instructions
|
|
820
816
|
|
|
@@ -823,7 +819,7 @@ If the user asks or does not specify a specific checklist, list the checklists a
|
|
|
823
819
|
- If user or the task being run provides a checklist name:
|
|
824
820
|
- Try fuzzy matching (e.g. "architecture checklist" -> "architect-checklist")
|
|
825
821
|
- If multiple matches found, ask user to clarify
|
|
826
|
-
- Load the appropriate checklist from
|
|
822
|
+
- Load the appropriate checklist from {root}/checklists/
|
|
827
823
|
- If no checklist specified:
|
|
828
824
|
- Ask the user which checklist they want to use
|
|
829
825
|
- Present the available options from the files in the checklists folder
|
|
@@ -788,83 +788,6 @@ The story creation is successful when:
|
|
|
788
788
|
- Stories should take no more than 4 hours of focused development work
|
|
789
789
|
==================== END: tasks#brownfield-create-story ====================
|
|
790
790
|
|
|
791
|
-
==================== START: tasks#core-dump ====================
|
|
792
|
-
# Core Dump Task
|
|
793
|
-
|
|
794
|
-
## Purpose
|
|
795
|
-
|
|
796
|
-
To create a concise memory recording file (`.ai/core-dump-n.md`) that captures the essential context of the current agent session, enabling seamless continuation of work in future agent sessions. This task ensures persistent context across agent conversations while maintaining minimal token usage for efficient context loading.
|
|
797
|
-
|
|
798
|
-
## Inputs for this Task
|
|
799
|
-
|
|
800
|
-
- Current session conversation history and accomplishments
|
|
801
|
-
- Files created, modified, or deleted during the session
|
|
802
|
-
- Key decisions made and procedures followed
|
|
803
|
-
- Current project state and next logical steps
|
|
804
|
-
- User requests and agent responses that shaped the session
|
|
805
|
-
|
|
806
|
-
## Task Execution Instructions
|
|
807
|
-
|
|
808
|
-
### 0. Check Existing Core Dump
|
|
809
|
-
|
|
810
|
-
Before proceeding, check if `.ai/core-dump.md` already exists:
|
|
811
|
-
|
|
812
|
-
- If file exists, ask user: "Core dump file exists. Should I: 1. Overwrite, 2. Update, 3. Append or 4. Create new?"
|
|
813
|
-
- **Overwrite**: Replace entire file with new content
|
|
814
|
-
- **Update**: Merge new session info with existing content, updating relevant sections
|
|
815
|
-
- **Append**: Add new session as a separate entry while preserving existing content
|
|
816
|
-
- **Create New**: Create a new file, appending the next possible -# to the file, such as core-dump-3.md if 1 and 2 already exist.
|
|
817
|
-
- If file doesn't exist, proceed with creation of `core-dump-1.md`
|
|
818
|
-
|
|
819
|
-
### 1. Analyze Session Context
|
|
820
|
-
|
|
821
|
-
- Review the entire conversation to identify key accomplishments
|
|
822
|
-
- Note any specific tasks, procedures, or workflows that were executed
|
|
823
|
-
- Identify important decisions made or problems solved
|
|
824
|
-
- Capture the user's working style and preferences observed during the session
|
|
825
|
-
|
|
826
|
-
### 2. Document What Was Accomplished
|
|
827
|
-
|
|
828
|
-
- **Primary Actions**: List the main tasks completed concisely
|
|
829
|
-
- **Story Progress**: For story work, use format "Tasks Complete: 1-6, 8. Next Task Pending: 7, 9"
|
|
830
|
-
- **Problem Solving**: Document any challenges encountered and how they were resolved
|
|
831
|
-
- **User Communications**: Summarize key user requests, preferences, and discussion points
|
|
832
|
-
|
|
833
|
-
### 3. Record File System Changes (Concise Format)
|
|
834
|
-
|
|
835
|
-
- **Files Created**: `filename.ext` (brief purpose/size)
|
|
836
|
-
- **Files Modified**: `filename.ext` (what changed)
|
|
837
|
-
- **Files Deleted**: `filename.ext` (why removed)
|
|
838
|
-
- Focus on essential details, avoid verbose descriptions
|
|
839
|
-
|
|
840
|
-
### 4. Capture Current Project State
|
|
841
|
-
|
|
842
|
-
- **Project Progress**: Where the project stands after this session
|
|
843
|
-
- **Current Issues**: Any blockers or problems that need resolution
|
|
844
|
-
- **Next Logical Steps**: What would be the natural next actions to take
|
|
845
|
-
|
|
846
|
-
### 5. Create/Update Core Dump File
|
|
847
|
-
|
|
848
|
-
Based on user's choice from step 0, handle the file accordingly:
|
|
849
|
-
|
|
850
|
-
### 6. Optimize for Minimal Context
|
|
851
|
-
|
|
852
|
-
- Keep descriptions concise but informative
|
|
853
|
-
- Use abbreviated formats where possible (file sizes, task numbers)
|
|
854
|
-
- Focus on actionable information rather than detailed explanations
|
|
855
|
-
- Avoid redundant information that can be found in project documentation
|
|
856
|
-
- Prioritize information that would be lost without this recording
|
|
857
|
-
- Ensure the file can be quickly scanned and understood
|
|
858
|
-
|
|
859
|
-
### 7. Validate Completeness
|
|
860
|
-
|
|
861
|
-
- Verify all significant session activities are captured
|
|
862
|
-
- Ensure a future agent could understand the current state
|
|
863
|
-
- Check that file changes are accurately recorded
|
|
864
|
-
- Confirm next steps are clear and actionable
|
|
865
|
-
- Verify user communication style and preferences are noted
|
|
866
|
-
==================== END: tasks#core-dump ====================
|
|
867
|
-
|
|
868
791
|
==================== START: tasks#correct-course ====================
|
|
869
792
|
# Correct Course Task
|
|
870
793
|
|
|
@@ -1279,9 +1202,9 @@ Confirm with the user their preferred interaction style:
|
|
|
1279
1202
|
|
|
1280
1203
|
### 3. Execute Template
|
|
1281
1204
|
|
|
1282
|
-
- Load specified template from `templates#*` or the /templates directory
|
|
1205
|
+
- Load specified template from `templates#*` or the `{root}/templates directory`
|
|
1283
1206
|
- Follow ALL embedded LLM instructions within the template
|
|
1284
|
-
- Process template markup according to `utils#template-format` conventions
|
|
1207
|
+
- Process template markup according to `utils#template-format` or `{root}/utils/template-format` conventions
|
|
1285
1208
|
|
|
1286
1209
|
### 4. Template Processing Rules
|
|
1287
1210
|
|
|
@@ -1902,13 +1825,9 @@ Provide a summary to the user including:
|
|
|
1902
1825
|
|
|
1903
1826
|
This task provides instructions for validating documentation against checklists. The agent MUST follow these instructions to ensure thorough and systematic validation of documents.
|
|
1904
1827
|
|
|
1905
|
-
## Context
|
|
1906
|
-
|
|
1907
|
-
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.
|
|
1908
|
-
|
|
1909
1828
|
## Available Checklists
|
|
1910
1829
|
|
|
1911
|
-
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
|
|
1830
|
+
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.
|
|
1912
1831
|
|
|
1913
1832
|
## Instructions
|
|
1914
1833
|
|
|
@@ -1917,7 +1836,7 @@ If the user asks or does not specify a specific checklist, list the checklists a
|
|
|
1917
1836
|
- If user or the task being run provides a checklist name:
|
|
1918
1837
|
- Try fuzzy matching (e.g. "architecture checklist" -> "architect-checklist")
|
|
1919
1838
|
- If multiple matches found, ask user to clarify
|
|
1920
|
-
- Load the appropriate checklist from
|
|
1839
|
+
- Load the appropriate checklist from {root}/checklists/
|
|
1921
1840
|
- If no checklist specified:
|
|
1922
1841
|
- Ask the user which checklist they want to use
|
|
1923
1842
|
- Present the available options from the files in the checklists folder
|
|
@@ -9187,225 +9106,71 @@ Templates in the BMAD method use standardized markup for AI processing. These co
|
|
|
9187
9106
|
==================== START: utils#workflow-management ====================
|
|
9188
9107
|
# Workflow Management
|
|
9189
9108
|
|
|
9190
|
-
|
|
9191
|
-
|
|
9192
|
-
## Important: Dynamic Workflow Loading
|
|
9193
|
-
|
|
9194
|
-
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.
|
|
9195
|
-
|
|
9196
|
-
**Critical Distinction**:
|
|
9109
|
+
Enables BMAD orchestrator to manage and execute team workflows.
|
|
9197
9110
|
|
|
9198
|
-
|
|
9199
|
-
- Use `/agent-list` to show agents in the current bundle
|
|
9200
|
-
- Use `/workflows` to show workflows in the current bundle, NOT any creation tasks
|
|
9111
|
+
## Dynamic Workflow Loading
|
|
9201
9112
|
|
|
9202
|
-
|
|
9113
|
+
Read available workflows from current team configuration's `workflows` field. Each team bundle defines its own supported workflows.
|
|
9203
9114
|
|
|
9204
|
-
|
|
9115
|
+
**Key Commands**:
|
|
9205
9116
|
|
|
9206
|
-
-
|
|
9207
|
-
-
|
|
9208
|
-
- **greenfield-service**: Build a new backend service or API from concept to development
|
|
9209
|
-
- **brownfield-service**: Enhance an existing backend service or API
|
|
9210
|
-
- **greenfield-ui**: Build a new frontend/UI application from concept to development
|
|
9211
|
-
- **brownfield-ui**: Enhance an existing frontend/UI application
|
|
9117
|
+
- `/workflows` - List workflows in current bundle or workflows folder
|
|
9118
|
+
- `/agent-list` - Show agents in current bundle
|
|
9212
9119
|
|
|
9213
9120
|
## Workflow Commands
|
|
9214
9121
|
|
|
9215
9122
|
### /workflows
|
|
9216
9123
|
|
|
9217
|
-
Lists
|
|
9218
|
-
|
|
9219
|
-
- greenfield-fullstack
|
|
9220
|
-
- brownfield-fullstack
|
|
9221
|
-
- greenfield-service
|
|
9222
|
-
- brownfield-service
|
|
9223
|
-
- greenfield-ui
|
|
9224
|
-
- brownfield-ui
|
|
9225
|
-
|
|
9226
|
-
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.
|
|
9227
|
-
|
|
9228
|
-
Example response format:
|
|
9229
|
-
|
|
9230
|
-
```text
|
|
9231
|
-
Available workflows for [Team Name]:
|
|
9232
|
-
1. [workflow-id] - [Brief description based on workflow type]
|
|
9233
|
-
2. [workflow-id] - [Brief description based on workflow type]
|
|
9234
|
-
[... etc. ...]
|
|
9235
|
-
|
|
9236
|
-
Use /workflow-start {number or id} to begin a workflow.
|
|
9237
|
-
```
|
|
9124
|
+
Lists available workflows with titles and descriptions.
|
|
9238
9125
|
|
|
9239
9126
|
### /workflow-start {workflow-id}
|
|
9240
9127
|
|
|
9241
|
-
Starts
|
|
9242
|
-
|
|
9243
|
-
Example: `/workflow-start greenfield-fullstack`
|
|
9128
|
+
Starts workflow and transitions to first agent.
|
|
9244
9129
|
|
|
9245
9130
|
### /workflow-status
|
|
9246
9131
|
|
|
9247
|
-
Shows current
|
|
9248
|
-
|
|
9249
|
-
Example response:
|
|
9250
|
-
|
|
9251
|
-
```text
|
|
9252
|
-
Current Workflow: Greenfield Full-Stack Development
|
|
9253
|
-
Stage: Product Planning (2 of 6)
|
|
9254
|
-
Completed:
|
|
9255
|
-
✓ Discovery & Requirements
|
|
9256
|
-
- project-brief (completed by Mary)
|
|
9257
|
-
|
|
9258
|
-
In Progress:
|
|
9259
|
-
⚡ Product Planning
|
|
9260
|
-
- Create PRD (John) - awaiting input
|
|
9261
|
-
|
|
9262
|
-
Next: Technical Architecture
|
|
9263
|
-
```
|
|
9132
|
+
Shows current progress, completed artifacts, and next steps.
|
|
9264
9133
|
|
|
9265
9134
|
### /workflow-resume
|
|
9266
9135
|
|
|
9267
|
-
Resumes
|
|
9268
|
-
|
|
9269
|
-
User can provide completed artifacts:
|
|
9270
|
-
|
|
9271
|
-
```text
|
|
9272
|
-
User: /workflow-resume greenfield-fullstack
|
|
9273
|
-
I have completed: project-brief, PRD
|
|
9274
|
-
BMad: I see you've completed Discovery and part of Product Planning.
|
|
9275
|
-
Based on the greenfield-fullstack workflow, the next step is:
|
|
9276
|
-
- UX Strategy with Sally (ux-expert)
|
|
9277
|
-
|
|
9278
|
-
Would you like me to load Sally to continue?
|
|
9279
|
-
```
|
|
9136
|
+
Resumes workflow from last position. User can provide completed artifacts.
|
|
9280
9137
|
|
|
9281
9138
|
### /workflow-next
|
|
9282
9139
|
|
|
9283
|
-
Shows
|
|
9140
|
+
Shows next recommended agent and action.
|
|
9284
9141
|
|
|
9285
|
-
##
|
|
9142
|
+
## Execution Flow
|
|
9286
9143
|
|
|
9287
|
-
|
|
9144
|
+
1. **Starting**: Load definition → Identify first stage → Transition to agent → Guide artifact creation
|
|
9288
9145
|
|
|
9289
|
-
|
|
9146
|
+
2. **Stage Transitions**: Mark complete → Check conditions → Load next agent → Pass artifacts
|
|
9290
9147
|
|
|
9291
|
-
|
|
9292
|
-
2. Identify the first stage and step
|
|
9293
|
-
3. Transition to the required agent
|
|
9294
|
-
4. Provide context about expected inputs/outputs
|
|
9295
|
-
5. Guide artifact creation
|
|
9148
|
+
3. **Artifact Tracking**: Track status, creator, timestamps in workflow_state
|
|
9296
9149
|
|
|
9297
|
-
|
|
9150
|
+
4. **Interruption Handling**: Analyze provided artifacts → Determine position → Suggest next step
|
|
9298
9151
|
|
|
9299
|
-
|
|
9152
|
+
## Context Passing
|
|
9300
9153
|
|
|
9301
|
-
|
|
9302
|
-
2. Check transition conditions
|
|
9303
|
-
3. If stage is complete, move to next stage
|
|
9304
|
-
4. Load the appropriate agent
|
|
9305
|
-
5. Pass relevant artifacts as context
|
|
9154
|
+
When transitioning, pass:
|
|
9306
9155
|
|
|
9307
|
-
|
|
9308
|
-
|
|
9309
|
-
|
|
9310
|
-
|
|
9311
|
-
```yaml
|
|
9312
|
-
workflow_state:
|
|
9313
|
-
current_workflow: greenfield-fullstack
|
|
9314
|
-
current_stage: planning
|
|
9315
|
-
current_step: 2
|
|
9316
|
-
artifacts:
|
|
9317
|
-
project-brief:
|
|
9318
|
-
status: completed
|
|
9319
|
-
created_by: analyst
|
|
9320
|
-
timestamp: 2024-01-15T10:30:00.000Z
|
|
9321
|
-
prd:
|
|
9322
|
-
status: in-progress
|
|
9323
|
-
created_by: pm
|
|
9324
|
-
started: 2024-01-15T11:00:00.000Z
|
|
9325
|
-
```
|
|
9326
|
-
|
|
9327
|
-
### 4. Workflow Interruption Handling
|
|
9328
|
-
|
|
9329
|
-
When user returns after interruption:
|
|
9330
|
-
|
|
9331
|
-
1. Ask if continuing previous workflow
|
|
9332
|
-
2. Request any completed artifacts
|
|
9333
|
-
3. Analyze provided artifacts
|
|
9334
|
-
4. Determine workflow position
|
|
9335
|
-
5. Suggest next appropriate step
|
|
9336
|
-
|
|
9337
|
-
Example:
|
|
9338
|
-
|
|
9339
|
-
```text
|
|
9340
|
-
User: I'm working on a new app. Here's my PRD and architecture doc.
|
|
9341
|
-
BMad: I see you have a PRD and architecture document. Based on these artifacts,
|
|
9342
|
-
it looks like you're following the greenfield-fullstack workflow and have completed
|
|
9343
|
-
stages 1-3. The next recommended step would be:
|
|
9344
|
-
|
|
9345
|
-
Stage 4: Validation & Refinement
|
|
9346
|
-
- Load Sarah (Product Owner) to validate all artifacts
|
|
9347
|
-
|
|
9348
|
-
Would you like to continue with this workflow?
|
|
9349
|
-
```
|
|
9350
|
-
|
|
9351
|
-
## Workflow Context Passing
|
|
9352
|
-
|
|
9353
|
-
When transitioning between agents, pass:
|
|
9354
|
-
|
|
9355
|
-
1. Previous artifacts created
|
|
9356
|
-
2. Current workflow stage
|
|
9357
|
-
3. Expected outputs
|
|
9358
|
-
4. Any decisions or constraints identified
|
|
9359
|
-
|
|
9360
|
-
Example transition:
|
|
9361
|
-
|
|
9362
|
-
```text
|
|
9363
|
-
BMad: Great! John has completed the PRD. According to the greenfield-fullstack workflow,
|
|
9364
|
-
the next step is UX Strategy with Sally.
|
|
9365
|
-
|
|
9366
|
-
/ux-expert
|
|
9367
|
-
|
|
9368
|
-
Sally: I see we're in the Product Planning stage of the greenfield-fullstack workflow.
|
|
9369
|
-
I have access to:
|
|
9370
|
-
- Project Brief from Mary
|
|
9371
|
-
- PRD from John
|
|
9372
|
-
|
|
9373
|
-
Let's create the UX strategy and UI specifications. First, let me review
|
|
9374
|
-
the PRD to understand the features we're designing for...
|
|
9375
|
-
```
|
|
9156
|
+
- Previous artifacts
|
|
9157
|
+
- Current workflow stage
|
|
9158
|
+
- Expected outputs
|
|
9159
|
+
- Decisions/constraints
|
|
9376
9160
|
|
|
9377
9161
|
## Multi-Path Workflows
|
|
9378
9162
|
|
|
9379
|
-
|
|
9380
|
-
|
|
9381
|
-
```yaml
|
|
9382
|
-
conditional_paths:
|
|
9383
|
-
- condition: project_type == 'mobile'
|
|
9384
|
-
next_stage: mobile-specific-design
|
|
9385
|
-
- condition: project_type == 'web'
|
|
9386
|
-
next_stage: web-architecture
|
|
9387
|
-
- default: fullstack-architecture
|
|
9388
|
-
```
|
|
9389
|
-
|
|
9390
|
-
Handle these by asking clarifying questions when needed.
|
|
9391
|
-
|
|
9392
|
-
## Workflow Best Practices
|
|
9393
|
-
|
|
9394
|
-
1. **Always show progress** - Users should know where they are
|
|
9395
|
-
2. **Explain transitions** - Why moving to next agent
|
|
9396
|
-
3. **Preserve context** - Pass relevant information forward
|
|
9397
|
-
4. **Allow flexibility** - Users can skip or modify steps
|
|
9398
|
-
5. **Track everything** - Maintain complete workflow state
|
|
9163
|
+
Handle conditional paths by asking clarifying questions when needed.
|
|
9399
9164
|
|
|
9400
|
-
##
|
|
9165
|
+
## Best Practices
|
|
9401
9166
|
|
|
9402
|
-
|
|
9167
|
+
1. Show progress
|
|
9168
|
+
2. Explain transitions
|
|
9169
|
+
3. Preserve context
|
|
9170
|
+
4. Allow flexibility
|
|
9171
|
+
5. Track state
|
|
9403
9172
|
|
|
9404
|
-
|
|
9405
|
-
- Understand their role in the workflow
|
|
9406
|
-
- Access previous artifacts
|
|
9407
|
-
- Know expected outputs
|
|
9408
|
-
- Guide toward workflow goals
|
|
9173
|
+
## Agent Integration
|
|
9409
9174
|
|
|
9410
|
-
|
|
9175
|
+
Agents should be workflow-aware: know active workflow, their role, access artifacts, understand expected outputs.
|
|
9411
9176
|
==================== END: utils#workflow-management ====================
|