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.
- package/.claude/commands/bmad-master.md +0 -1
- package/CHANGELOG.md +15 -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 +47 -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
|
@@ -1006,9 +1006,9 @@ Confirm with the user their preferred interaction style:
|
|
|
1006
1006
|
|
|
1007
1007
|
### 3. Execute Template
|
|
1008
1008
|
|
|
1009
|
-
- Load specified template from `templates#*` or the /templates directory
|
|
1009
|
+
- Load specified template from `templates#*` or the `{root}/templates directory`
|
|
1010
1010
|
- Follow ALL embedded LLM instructions within the template
|
|
1011
|
-
- Process template markup according to `utils#template-format` conventions
|
|
1011
|
+
- Process template markup according to `utils#template-format` or `{root}/utils/template-format` conventions
|
|
1012
1012
|
|
|
1013
1013
|
### 4. Template Processing Rules
|
|
1014
1014
|
|
|
@@ -2638,227 +2638,73 @@ Or ask me about anything else related to BMAD-METHOD!
|
|
|
2638
2638
|
==================== START: utils#workflow-management ====================
|
|
2639
2639
|
# Workflow Management
|
|
2640
2640
|
|
|
2641
|
-
|
|
2641
|
+
Enables BMAD orchestrator to manage and execute team workflows.
|
|
2642
2642
|
|
|
2643
|
-
##
|
|
2643
|
+
## Dynamic Workflow Loading
|
|
2644
2644
|
|
|
2645
|
-
|
|
2645
|
+
Read available workflows from current team configuration's `workflows` field. Each team bundle defines its own supported workflows.
|
|
2646
2646
|
|
|
2647
|
-
**
|
|
2647
|
+
**Key Commands**:
|
|
2648
2648
|
|
|
2649
|
-
-
|
|
2650
|
-
-
|
|
2651
|
-
- Use `/workflows` to show workflows in the current bundle, NOT any creation tasks
|
|
2652
|
-
|
|
2653
|
-
### Workflow Descriptions
|
|
2654
|
-
|
|
2655
|
-
When displaying workflows, use these descriptions based on the workflow ID:
|
|
2656
|
-
|
|
2657
|
-
- **greenfield-fullstack**: Build a new full-stack application from concept to development
|
|
2658
|
-
- **brownfield-fullstack**: Enhance an existing full-stack application with new features
|
|
2659
|
-
- **greenfield-service**: Build a new backend service or API from concept to development
|
|
2660
|
-
- **brownfield-service**: Enhance an existing backend service or API
|
|
2661
|
-
- **greenfield-ui**: Build a new frontend/UI application from concept to development
|
|
2662
|
-
- **brownfield-ui**: Enhance an existing frontend/UI application
|
|
2649
|
+
- `/workflows` - List workflows in current bundle or workflows folder
|
|
2650
|
+
- `/agent-list` - Show agents in current bundle
|
|
2663
2651
|
|
|
2664
2652
|
## Workflow Commands
|
|
2665
2653
|
|
|
2666
2654
|
### /workflows
|
|
2667
2655
|
|
|
2668
|
-
Lists
|
|
2669
|
-
|
|
2670
|
-
- greenfield-fullstack
|
|
2671
|
-
- brownfield-fullstack
|
|
2672
|
-
- greenfield-service
|
|
2673
|
-
- brownfield-service
|
|
2674
|
-
- greenfield-ui
|
|
2675
|
-
- brownfield-ui
|
|
2676
|
-
|
|
2677
|
-
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.
|
|
2678
|
-
|
|
2679
|
-
Example response format:
|
|
2680
|
-
|
|
2681
|
-
```text
|
|
2682
|
-
Available workflows for [Team Name]:
|
|
2683
|
-
1. [workflow-id] - [Brief description based on workflow type]
|
|
2684
|
-
2. [workflow-id] - [Brief description based on workflow type]
|
|
2685
|
-
[... etc. ...]
|
|
2686
|
-
|
|
2687
|
-
Use /workflow-start {number or id} to begin a workflow.
|
|
2688
|
-
```
|
|
2656
|
+
Lists available workflows with titles and descriptions.
|
|
2689
2657
|
|
|
2690
2658
|
### /workflow-start {workflow-id}
|
|
2691
2659
|
|
|
2692
|
-
Starts
|
|
2693
|
-
|
|
2694
|
-
Example: `/workflow-start greenfield-fullstack`
|
|
2660
|
+
Starts workflow and transitions to first agent.
|
|
2695
2661
|
|
|
2696
2662
|
### /workflow-status
|
|
2697
2663
|
|
|
2698
|
-
Shows current
|
|
2699
|
-
|
|
2700
|
-
Example response:
|
|
2701
|
-
|
|
2702
|
-
```text
|
|
2703
|
-
Current Workflow: Greenfield Full-Stack Development
|
|
2704
|
-
Stage: Product Planning (2 of 6)
|
|
2705
|
-
Completed:
|
|
2706
|
-
✓ Discovery & Requirements
|
|
2707
|
-
- project-brief (completed by Mary)
|
|
2708
|
-
|
|
2709
|
-
In Progress:
|
|
2710
|
-
⚡ Product Planning
|
|
2711
|
-
- Create PRD (John) - awaiting input
|
|
2712
|
-
|
|
2713
|
-
Next: Technical Architecture
|
|
2714
|
-
```
|
|
2664
|
+
Shows current progress, completed artifacts, and next steps.
|
|
2715
2665
|
|
|
2716
2666
|
### /workflow-resume
|
|
2717
2667
|
|
|
2718
|
-
Resumes
|
|
2719
|
-
|
|
2720
|
-
User can provide completed artifacts:
|
|
2721
|
-
|
|
2722
|
-
```text
|
|
2723
|
-
User: /workflow-resume greenfield-fullstack
|
|
2724
|
-
I have completed: project-brief, PRD
|
|
2725
|
-
BMad: I see you've completed Discovery and part of Product Planning.
|
|
2726
|
-
Based on the greenfield-fullstack workflow, the next step is:
|
|
2727
|
-
- UX Strategy with Sally (ux-expert)
|
|
2728
|
-
|
|
2729
|
-
Would you like me to load Sally to continue?
|
|
2730
|
-
```
|
|
2668
|
+
Resumes workflow from last position. User can provide completed artifacts.
|
|
2731
2669
|
|
|
2732
2670
|
### /workflow-next
|
|
2733
2671
|
|
|
2734
|
-
Shows
|
|
2735
|
-
|
|
2736
|
-
## Workflow Execution Flow
|
|
2737
|
-
|
|
2738
|
-
### 1. Starting a Workflow
|
|
2672
|
+
Shows next recommended agent and action.
|
|
2739
2673
|
|
|
2740
|
-
|
|
2674
|
+
## Execution Flow
|
|
2741
2675
|
|
|
2742
|
-
1. Load
|
|
2743
|
-
2. Identify the first stage and step
|
|
2744
|
-
3. Transition to the required agent
|
|
2745
|
-
4. Provide context about expected inputs/outputs
|
|
2746
|
-
5. Guide artifact creation
|
|
2676
|
+
1. **Starting**: Load definition → Identify first stage → Transition to agent → Guide artifact creation
|
|
2747
2677
|
|
|
2748
|
-
|
|
2678
|
+
2. **Stage Transitions**: Mark complete → Check conditions → Load next agent → Pass artifacts
|
|
2749
2679
|
|
|
2750
|
-
|
|
2680
|
+
3. **Artifact Tracking**: Track status, creator, timestamps in workflow_state
|
|
2751
2681
|
|
|
2752
|
-
|
|
2753
|
-
2. Check transition conditions
|
|
2754
|
-
3. If stage is complete, move to next stage
|
|
2755
|
-
4. Load the appropriate agent
|
|
2756
|
-
5. Pass relevant artifacts as context
|
|
2682
|
+
4. **Interruption Handling**: Analyze provided artifacts → Determine position → Suggest next step
|
|
2757
2683
|
|
|
2758
|
-
|
|
2684
|
+
## Context Passing
|
|
2759
2685
|
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
```yaml
|
|
2763
|
-
workflow_state:
|
|
2764
|
-
current_workflow: greenfield-fullstack
|
|
2765
|
-
current_stage: planning
|
|
2766
|
-
current_step: 2
|
|
2767
|
-
artifacts:
|
|
2768
|
-
project-brief:
|
|
2769
|
-
status: completed
|
|
2770
|
-
created_by: analyst
|
|
2771
|
-
timestamp: 2024-01-15T10:30:00.000Z
|
|
2772
|
-
prd:
|
|
2773
|
-
status: in-progress
|
|
2774
|
-
created_by: pm
|
|
2775
|
-
started: 2024-01-15T11:00:00.000Z
|
|
2776
|
-
```
|
|
2686
|
+
When transitioning, pass:
|
|
2777
2687
|
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
1. Ask if continuing previous workflow
|
|
2783
|
-
2. Request any completed artifacts
|
|
2784
|
-
3. Analyze provided artifacts
|
|
2785
|
-
4. Determine workflow position
|
|
2786
|
-
5. Suggest next appropriate step
|
|
2787
|
-
|
|
2788
|
-
Example:
|
|
2789
|
-
|
|
2790
|
-
```text
|
|
2791
|
-
User: I'm working on a new app. Here's my PRD and architecture doc.
|
|
2792
|
-
BMad: I see you have a PRD and architecture document. Based on these artifacts,
|
|
2793
|
-
it looks like you're following the greenfield-fullstack workflow and have completed
|
|
2794
|
-
stages 1-3. The next recommended step would be:
|
|
2795
|
-
|
|
2796
|
-
Stage 4: Validation & Refinement
|
|
2797
|
-
- Load Sarah (Product Owner) to validate all artifacts
|
|
2798
|
-
|
|
2799
|
-
Would you like to continue with this workflow?
|
|
2800
|
-
```
|
|
2801
|
-
|
|
2802
|
-
## Workflow Context Passing
|
|
2803
|
-
|
|
2804
|
-
When transitioning between agents, pass:
|
|
2805
|
-
|
|
2806
|
-
1. Previous artifacts created
|
|
2807
|
-
2. Current workflow stage
|
|
2808
|
-
3. Expected outputs
|
|
2809
|
-
4. Any decisions or constraints identified
|
|
2810
|
-
|
|
2811
|
-
Example transition:
|
|
2812
|
-
|
|
2813
|
-
```text
|
|
2814
|
-
BMad: Great! John has completed the PRD. According to the greenfield-fullstack workflow,
|
|
2815
|
-
the next step is UX Strategy with Sally.
|
|
2816
|
-
|
|
2817
|
-
/ux-expert
|
|
2818
|
-
|
|
2819
|
-
Sally: I see we're in the Product Planning stage of the greenfield-fullstack workflow.
|
|
2820
|
-
I have access to:
|
|
2821
|
-
- Project Brief from Mary
|
|
2822
|
-
- PRD from John
|
|
2823
|
-
|
|
2824
|
-
Let's create the UX strategy and UI specifications. First, let me review
|
|
2825
|
-
the PRD to understand the features we're designing for...
|
|
2826
|
-
```
|
|
2688
|
+
- Previous artifacts
|
|
2689
|
+
- Current workflow stage
|
|
2690
|
+
- Expected outputs
|
|
2691
|
+
- Decisions/constraints
|
|
2827
2692
|
|
|
2828
2693
|
## Multi-Path Workflows
|
|
2829
2694
|
|
|
2830
|
-
|
|
2695
|
+
Handle conditional paths by asking clarifying questions when needed.
|
|
2831
2696
|
|
|
2832
|
-
|
|
2833
|
-
conditional_paths:
|
|
2834
|
-
- condition: project_type == 'mobile'
|
|
2835
|
-
next_stage: mobile-specific-design
|
|
2836
|
-
- condition: project_type == 'web'
|
|
2837
|
-
next_stage: web-architecture
|
|
2838
|
-
- default: fullstack-architecture
|
|
2839
|
-
```
|
|
2697
|
+
## Best Practices
|
|
2840
2698
|
|
|
2841
|
-
|
|
2699
|
+
1. Show progress
|
|
2700
|
+
2. Explain transitions
|
|
2701
|
+
3. Preserve context
|
|
2702
|
+
4. Allow flexibility
|
|
2703
|
+
5. Track state
|
|
2842
2704
|
|
|
2843
|
-
##
|
|
2705
|
+
## Agent Integration
|
|
2844
2706
|
|
|
2845
|
-
|
|
2846
|
-
2. **Explain transitions** - Why moving to next agent
|
|
2847
|
-
3. **Preserve context** - Pass relevant information forward
|
|
2848
|
-
4. **Allow flexibility** - Users can skip or modify steps
|
|
2849
|
-
5. **Track everything** - Maintain complete workflow state
|
|
2850
|
-
|
|
2851
|
-
## Integration with Agents
|
|
2852
|
-
|
|
2853
|
-
Each agent should be workflow-aware:
|
|
2854
|
-
|
|
2855
|
-
- Know which workflow is active
|
|
2856
|
-
- Understand their role in the workflow
|
|
2857
|
-
- Access previous artifacts
|
|
2858
|
-
- Know expected outputs
|
|
2859
|
-
- Guide toward workflow goals
|
|
2860
|
-
|
|
2861
|
-
This creates a seamless experience where the entire team works together toward the workflow's objectives.
|
|
2707
|
+
Agents should be workflow-aware: know active workflow, their role, access artifacts, understand expected outputs.
|
|
2862
2708
|
==================== END: utils#workflow-management ====================
|
|
2863
2709
|
|
|
2864
2710
|
==================== START: tasks#execute-checklist ====================
|
|
@@ -2866,13 +2712,9 @@ This creates a seamless experience where the entire team works together toward t
|
|
|
2866
2712
|
|
|
2867
2713
|
This task provides instructions for validating documentation against checklists. The agent MUST follow these instructions to ensure thorough and systematic validation of documents.
|
|
2868
2714
|
|
|
2869
|
-
## Context
|
|
2870
|
-
|
|
2871
|
-
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.
|
|
2872
|
-
|
|
2873
2715
|
## Available Checklists
|
|
2874
2716
|
|
|
2875
|
-
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
|
|
2717
|
+
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.
|
|
2876
2718
|
|
|
2877
2719
|
## Instructions
|
|
2878
2720
|
|
|
@@ -2881,7 +2723,7 @@ If the user asks or does not specify a specific checklist, list the checklists a
|
|
|
2881
2723
|
- If user or the task being run provides a checklist name:
|
|
2882
2724
|
- Try fuzzy matching (e.g. "architecture checklist" -> "architect-checklist")
|
|
2883
2725
|
- If multiple matches found, ask user to clarify
|
|
2884
|
-
- Load the appropriate checklist from
|
|
2726
|
+
- Load the appropriate checklist from {root}/checklists/
|
|
2885
2727
|
- If no checklist specified:
|
|
2886
2728
|
- Ask the user which checklist they want to use
|
|
2887
2729
|
- Present the available options from the files in the checklists folder
|
|
@@ -134,9 +134,9 @@ Confirm with the user their preferred interaction style:
|
|
|
134
134
|
|
|
135
135
|
### 3. Execute Template
|
|
136
136
|
|
|
137
|
-
- Load specified template from `templates#*` or the /templates directory
|
|
137
|
+
- Load specified template from `templates#*` or the `{root}/templates directory`
|
|
138
138
|
- Follow ALL embedded LLM instructions within the template
|
|
139
|
-
- Process template markup according to `utils#template-format` conventions
|
|
139
|
+
- Process template markup according to `utils#template-format` or `{root}/utils/template-format` conventions
|
|
140
140
|
|
|
141
141
|
### 4. Template Processing Rules
|
|
142
142
|
|
|
@@ -736,17 +736,17 @@ IMPORTANT: Work through plan.md checklist systematically!
|
|
|
736
736
|
|
|
737
737
|
**Step 2: Copy Core Utilities**
|
|
738
738
|
|
|
739
|
-
Before proceeding, copy these essential files from
|
|
739
|
+
Before proceeding, copy these essential files from common:
|
|
740
740
|
|
|
741
741
|
```bash
|
|
742
742
|
# Copy core task utilities
|
|
743
|
-
cp
|
|
744
|
-
cp
|
|
743
|
+
cp common/tasks/create-doc.md expansion-packs/{pack-name}/tasks/
|
|
744
|
+
cp common/tasks/execute-checklist.md expansion-packs/{pack-name}/tasks/
|
|
745
745
|
|
|
746
746
|
# Copy core utility files
|
|
747
747
|
mkdir -p expansion-packs/{pack-name}/utils
|
|
748
|
-
cp
|
|
749
|
-
cp
|
|
748
|
+
cp common/utils/template-format.md expansion-packs/{pack-name}/utils/
|
|
749
|
+
cp common/utils/workflow-management.md expansion-packs/{pack-name}/utils/
|
|
750
750
|
```
|
|
751
751
|
|
|
752
752
|
**Step 3: Technical Implementation**
|
package/dist/teams/team-all.txt
CHANGED
|
@@ -784,9 +784,9 @@ Confirm with the user their preferred interaction style:
|
|
|
784
784
|
|
|
785
785
|
### 3. Execute Template
|
|
786
786
|
|
|
787
|
-
- Load specified template from `templates#*` or the /templates directory
|
|
787
|
+
- Load specified template from `templates#*` or the `{root}/templates directory`
|
|
788
788
|
- Follow ALL embedded LLM instructions within the template
|
|
789
|
-
- Process template markup according to `utils#template-format` conventions
|
|
789
|
+
- Process template markup according to `utils#template-format` or `{root}/utils/template-format` conventions
|
|
790
790
|
|
|
791
791
|
### 4. Template Processing Rules
|
|
792
792
|
|
|
@@ -1653,227 +1653,73 @@ Use the **expansion-creator** pack to build your own:
|
|
|
1653
1653
|
==================== START: utils#workflow-management ====================
|
|
1654
1654
|
# Workflow Management
|
|
1655
1655
|
|
|
1656
|
-
|
|
1656
|
+
Enables BMAD orchestrator to manage and execute team workflows.
|
|
1657
1657
|
|
|
1658
|
-
##
|
|
1658
|
+
## Dynamic Workflow Loading
|
|
1659
1659
|
|
|
1660
|
-
|
|
1660
|
+
Read available workflows from current team configuration's `workflows` field. Each team bundle defines its own supported workflows.
|
|
1661
1661
|
|
|
1662
|
-
**
|
|
1662
|
+
**Key Commands**:
|
|
1663
1663
|
|
|
1664
|
-
-
|
|
1665
|
-
-
|
|
1666
|
-
- Use `/workflows` to show workflows in the current bundle, NOT any creation tasks
|
|
1667
|
-
|
|
1668
|
-
### Workflow Descriptions
|
|
1669
|
-
|
|
1670
|
-
When displaying workflows, use these descriptions based on the workflow ID:
|
|
1671
|
-
|
|
1672
|
-
- **greenfield-fullstack**: Build a new full-stack application from concept to development
|
|
1673
|
-
- **brownfield-fullstack**: Enhance an existing full-stack application with new features
|
|
1674
|
-
- **greenfield-service**: Build a new backend service or API from concept to development
|
|
1675
|
-
- **brownfield-service**: Enhance an existing backend service or API
|
|
1676
|
-
- **greenfield-ui**: Build a new frontend/UI application from concept to development
|
|
1677
|
-
- **brownfield-ui**: Enhance an existing frontend/UI application
|
|
1664
|
+
- `/workflows` - List workflows in current bundle or workflows folder
|
|
1665
|
+
- `/agent-list` - Show agents in current bundle
|
|
1678
1666
|
|
|
1679
1667
|
## Workflow Commands
|
|
1680
1668
|
|
|
1681
1669
|
### /workflows
|
|
1682
1670
|
|
|
1683
|
-
Lists
|
|
1684
|
-
|
|
1685
|
-
- greenfield-fullstack
|
|
1686
|
-
- brownfield-fullstack
|
|
1687
|
-
- greenfield-service
|
|
1688
|
-
- brownfield-service
|
|
1689
|
-
- greenfield-ui
|
|
1690
|
-
- brownfield-ui
|
|
1691
|
-
|
|
1692
|
-
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.
|
|
1693
|
-
|
|
1694
|
-
Example response format:
|
|
1695
|
-
|
|
1696
|
-
```text
|
|
1697
|
-
Available workflows for [Team Name]:
|
|
1698
|
-
1. [workflow-id] - [Brief description based on workflow type]
|
|
1699
|
-
2. [workflow-id] - [Brief description based on workflow type]
|
|
1700
|
-
[... etc. ...]
|
|
1701
|
-
|
|
1702
|
-
Use /workflow-start {number or id} to begin a workflow.
|
|
1703
|
-
```
|
|
1671
|
+
Lists available workflows with titles and descriptions.
|
|
1704
1672
|
|
|
1705
1673
|
### /workflow-start {workflow-id}
|
|
1706
1674
|
|
|
1707
|
-
Starts
|
|
1708
|
-
|
|
1709
|
-
Example: `/workflow-start greenfield-fullstack`
|
|
1675
|
+
Starts workflow and transitions to first agent.
|
|
1710
1676
|
|
|
1711
1677
|
### /workflow-status
|
|
1712
1678
|
|
|
1713
|
-
Shows current
|
|
1714
|
-
|
|
1715
|
-
Example response:
|
|
1716
|
-
|
|
1717
|
-
```text
|
|
1718
|
-
Current Workflow: Greenfield Full-Stack Development
|
|
1719
|
-
Stage: Product Planning (2 of 6)
|
|
1720
|
-
Completed:
|
|
1721
|
-
✓ Discovery & Requirements
|
|
1722
|
-
- project-brief (completed by Mary)
|
|
1723
|
-
|
|
1724
|
-
In Progress:
|
|
1725
|
-
⚡ Product Planning
|
|
1726
|
-
- Create PRD (John) - awaiting input
|
|
1727
|
-
|
|
1728
|
-
Next: Technical Architecture
|
|
1729
|
-
```
|
|
1679
|
+
Shows current progress, completed artifacts, and next steps.
|
|
1730
1680
|
|
|
1731
1681
|
### /workflow-resume
|
|
1732
1682
|
|
|
1733
|
-
Resumes
|
|
1734
|
-
|
|
1735
|
-
User can provide completed artifacts:
|
|
1736
|
-
|
|
1737
|
-
```text
|
|
1738
|
-
User: /workflow-resume greenfield-fullstack
|
|
1739
|
-
I have completed: project-brief, PRD
|
|
1740
|
-
BMad: I see you've completed Discovery and part of Product Planning.
|
|
1741
|
-
Based on the greenfield-fullstack workflow, the next step is:
|
|
1742
|
-
- UX Strategy with Sally (ux-expert)
|
|
1743
|
-
|
|
1744
|
-
Would you like me to load Sally to continue?
|
|
1745
|
-
```
|
|
1683
|
+
Resumes workflow from last position. User can provide completed artifacts.
|
|
1746
1684
|
|
|
1747
1685
|
### /workflow-next
|
|
1748
1686
|
|
|
1749
|
-
Shows
|
|
1750
|
-
|
|
1751
|
-
## Workflow Execution Flow
|
|
1752
|
-
|
|
1753
|
-
### 1. Starting a Workflow
|
|
1687
|
+
Shows next recommended agent and action.
|
|
1754
1688
|
|
|
1755
|
-
|
|
1689
|
+
## Execution Flow
|
|
1756
1690
|
|
|
1757
|
-
1. Load
|
|
1758
|
-
2. Identify the first stage and step
|
|
1759
|
-
3. Transition to the required agent
|
|
1760
|
-
4. Provide context about expected inputs/outputs
|
|
1761
|
-
5. Guide artifact creation
|
|
1691
|
+
1. **Starting**: Load definition → Identify first stage → Transition to agent → Guide artifact creation
|
|
1762
1692
|
|
|
1763
|
-
|
|
1693
|
+
2. **Stage Transitions**: Mark complete → Check conditions → Load next agent → Pass artifacts
|
|
1764
1694
|
|
|
1765
|
-
|
|
1695
|
+
3. **Artifact Tracking**: Track status, creator, timestamps in workflow_state
|
|
1766
1696
|
|
|
1767
|
-
|
|
1768
|
-
2. Check transition conditions
|
|
1769
|
-
3. If stage is complete, move to next stage
|
|
1770
|
-
4. Load the appropriate agent
|
|
1771
|
-
5. Pass relevant artifacts as context
|
|
1697
|
+
4. **Interruption Handling**: Analyze provided artifacts → Determine position → Suggest next step
|
|
1772
1698
|
|
|
1773
|
-
|
|
1699
|
+
## Context Passing
|
|
1774
1700
|
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
```yaml
|
|
1778
|
-
workflow_state:
|
|
1779
|
-
current_workflow: greenfield-fullstack
|
|
1780
|
-
current_stage: planning
|
|
1781
|
-
current_step: 2
|
|
1782
|
-
artifacts:
|
|
1783
|
-
project-brief:
|
|
1784
|
-
status: completed
|
|
1785
|
-
created_by: analyst
|
|
1786
|
-
timestamp: 2024-01-15T10:30:00.000Z
|
|
1787
|
-
prd:
|
|
1788
|
-
status: in-progress
|
|
1789
|
-
created_by: pm
|
|
1790
|
-
started: 2024-01-15T11:00:00.000Z
|
|
1791
|
-
```
|
|
1701
|
+
When transitioning, pass:
|
|
1792
1702
|
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
1. Ask if continuing previous workflow
|
|
1798
|
-
2. Request any completed artifacts
|
|
1799
|
-
3. Analyze provided artifacts
|
|
1800
|
-
4. Determine workflow position
|
|
1801
|
-
5. Suggest next appropriate step
|
|
1802
|
-
|
|
1803
|
-
Example:
|
|
1804
|
-
|
|
1805
|
-
```text
|
|
1806
|
-
User: I'm working on a new app. Here's my PRD and architecture doc.
|
|
1807
|
-
BMad: I see you have a PRD and architecture document. Based on these artifacts,
|
|
1808
|
-
it looks like you're following the greenfield-fullstack workflow and have completed
|
|
1809
|
-
stages 1-3. The next recommended step would be:
|
|
1810
|
-
|
|
1811
|
-
Stage 4: Validation & Refinement
|
|
1812
|
-
- Load Sarah (Product Owner) to validate all artifacts
|
|
1813
|
-
|
|
1814
|
-
Would you like to continue with this workflow?
|
|
1815
|
-
```
|
|
1816
|
-
|
|
1817
|
-
## Workflow Context Passing
|
|
1818
|
-
|
|
1819
|
-
When transitioning between agents, pass:
|
|
1820
|
-
|
|
1821
|
-
1. Previous artifacts created
|
|
1822
|
-
2. Current workflow stage
|
|
1823
|
-
3. Expected outputs
|
|
1824
|
-
4. Any decisions or constraints identified
|
|
1825
|
-
|
|
1826
|
-
Example transition:
|
|
1827
|
-
|
|
1828
|
-
```text
|
|
1829
|
-
BMad: Great! John has completed the PRD. According to the greenfield-fullstack workflow,
|
|
1830
|
-
the next step is UX Strategy with Sally.
|
|
1831
|
-
|
|
1832
|
-
/ux-expert
|
|
1833
|
-
|
|
1834
|
-
Sally: I see we're in the Product Planning stage of the greenfield-fullstack workflow.
|
|
1835
|
-
I have access to:
|
|
1836
|
-
- Project Brief from Mary
|
|
1837
|
-
- PRD from John
|
|
1838
|
-
|
|
1839
|
-
Let's create the UX strategy and UI specifications. First, let me review
|
|
1840
|
-
the PRD to understand the features we're designing for...
|
|
1841
|
-
```
|
|
1703
|
+
- Previous artifacts
|
|
1704
|
+
- Current workflow stage
|
|
1705
|
+
- Expected outputs
|
|
1706
|
+
- Decisions/constraints
|
|
1842
1707
|
|
|
1843
1708
|
## Multi-Path Workflows
|
|
1844
1709
|
|
|
1845
|
-
|
|
1710
|
+
Handle conditional paths by asking clarifying questions when needed.
|
|
1846
1711
|
|
|
1847
|
-
|
|
1848
|
-
conditional_paths:
|
|
1849
|
-
- condition: project_type == 'mobile'
|
|
1850
|
-
next_stage: mobile-specific-design
|
|
1851
|
-
- condition: project_type == 'web'
|
|
1852
|
-
next_stage: web-architecture
|
|
1853
|
-
- default: fullstack-architecture
|
|
1854
|
-
```
|
|
1712
|
+
## Best Practices
|
|
1855
1713
|
|
|
1856
|
-
|
|
1714
|
+
1. Show progress
|
|
1715
|
+
2. Explain transitions
|
|
1716
|
+
3. Preserve context
|
|
1717
|
+
4. Allow flexibility
|
|
1718
|
+
5. Track state
|
|
1857
1719
|
|
|
1858
|
-
##
|
|
1720
|
+
## Agent Integration
|
|
1859
1721
|
|
|
1860
|
-
|
|
1861
|
-
2. **Explain transitions** - Why moving to next agent
|
|
1862
|
-
3. **Preserve context** - Pass relevant information forward
|
|
1863
|
-
4. **Allow flexibility** - Users can skip or modify steps
|
|
1864
|
-
5. **Track everything** - Maintain complete workflow state
|
|
1865
|
-
|
|
1866
|
-
## Integration with Agents
|
|
1867
|
-
|
|
1868
|
-
Each agent should be workflow-aware:
|
|
1869
|
-
|
|
1870
|
-
- Know which workflow is active
|
|
1871
|
-
- Understand their role in the workflow
|
|
1872
|
-
- Access previous artifacts
|
|
1873
|
-
- Know expected outputs
|
|
1874
|
-
- Guide toward workflow goals
|
|
1875
|
-
|
|
1876
|
-
This creates a seamless experience where the entire team works together toward the workflow's objectives.
|
|
1722
|
+
Agents should be workflow-aware: know active workflow, their role, access artifacts, understand expected outputs.
|
|
1877
1723
|
==================== END: utils#workflow-management ====================
|
|
1878
1724
|
|
|
1879
1725
|
==================== START: utils#template-format ====================
|
|
@@ -3568,13 +3414,9 @@ These replace the standard elicitation options when working on competitive analy
|
|
|
3568
3414
|
|
|
3569
3415
|
This task provides instructions for validating documentation against checklists. The agent MUST follow these instructions to ensure thorough and systematic validation of documents.
|
|
3570
3416
|
|
|
3571
|
-
## Context
|
|
3572
|
-
|
|
3573
|
-
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.
|
|
3574
|
-
|
|
3575
3417
|
## Available Checklists
|
|
3576
3418
|
|
|
3577
|
-
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
|
|
3419
|
+
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.
|
|
3578
3420
|
|
|
3579
3421
|
## Instructions
|
|
3580
3422
|
|
|
@@ -3583,7 +3425,7 @@ If the user asks or does not specify a specific checklist, list the checklists a
|
|
|
3583
3425
|
- If user or the task being run provides a checklist name:
|
|
3584
3426
|
- Try fuzzy matching (e.g. "architecture checklist" -> "architect-checklist")
|
|
3585
3427
|
- If multiple matches found, ask user to clarify
|
|
3586
|
-
- Load the appropriate checklist from
|
|
3428
|
+
- Load the appropriate checklist from {root}/checklists/
|
|
3587
3429
|
- If no checklist specified:
|
|
3588
3430
|
- Ask the user which checklist they want to use
|
|
3589
3431
|
- Present the available options from the files in the checklists folder
|