bmad-method 4.27.5 → 5.0.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/.bmad-core/agent-teams/team-all.yml +16 -0
- package/.bmad-core/agent-teams/team-fullstack.yml +26 -0
- package/.bmad-core/agent-teams/team-no-ui.yml +15 -0
- package/{bmad-core → .bmad-core}/agents/analyst.md +23 -30
- package/.bmad-core/agents/architect.md +66 -0
- package/.bmad-core/agents/bmad-master.md +104 -0
- package/.bmad-core/agents/bmad-orchestrator.md +81 -0
- package/.bmad-core/agents/dev.md +70 -0
- package/{bmad-core → .bmad-core}/agents/pm.md +24 -25
- package/{bmad-core → .bmad-core}/agents/po.md +24 -28
- package/.bmad-core/agents/qa.md +52 -0
- package/.bmad-core/agents/sm.md +55 -0
- package/.bmad-core/agents/ux-expert.md +66 -0
- package/{bmad-core → .bmad-core}/checklists/change-checklist.md +2 -2
- package/{bmad-core → .bmad-core}/checklists/story-draft-checklist.md +1 -1
- package/.bmad-core/data/bmad-kb.md +47 -0
- package/.bmad-core/schemas/agent-team-schema.yml +153 -0
- package/.bmad-core/tasks/advanced-elicitation.md +92 -0
- package/.bmad-core/tasks/brainstorming-techniques.md +238 -0
- package/.bmad-core/tasks/core-dump.md +74 -0
- package/{expansion-packs/bmad-creator-tools → .bmad-core}/tasks/create-agent.md +11 -9
- package/.bmad-core/tasks/create-doc.md +74 -0
- package/.bmad-core/tasks/create-expansion-pack.md +425 -0
- package/.bmad-core/tasks/create-next-story.md +206 -0
- package/.bmad-core/tasks/create-team.md +229 -0
- package/{bmad-core → .bmad-core}/tasks/doc-migration-task.md +9 -9
- package/{common → .bmad-core}/tasks/execute-checklist.md +6 -2
- package/.bmad-core/tasks/generate-ai-frontend-prompt.md +58 -0
- package/{bmad-core → .bmad-core}/tasks/index-docs.md +7 -3
- package/{bmad-core → .bmad-core}/tasks/shard-doc.md +7 -25
- package/.bmad-core/templates/agent-tmpl.md +58 -0
- package/.bmad-core/templates/architecture-tmpl.md +771 -0
- package/.bmad-core/templates/brownfield-architecture-tmpl.md +542 -0
- package/.bmad-core/templates/brownfield-prd-tmpl.md +240 -0
- package/.bmad-core/templates/competitor-analysis-tmpl.md +289 -0
- package/.bmad-core/templates/expansion-pack-plan-tmpl.md +91 -0
- package/.bmad-core/templates/front-end-architecture-tmpl.md +173 -0
- package/.bmad-core/templates/front-end-spec-tmpl.md +411 -0
- package/.bmad-core/templates/fullstack-architecture-tmpl.md +1016 -0
- package/.bmad-core/templates/market-research-tmpl.md +261 -0
- package/.bmad-core/templates/prd-tmpl.md +200 -0
- package/.bmad-core/templates/project-brief-tmpl.md +228 -0
- package/.bmad-core/templates/simple-project-prd-tmpl.md +461 -0
- package/.bmad-core/templates/story-tmpl.md +61 -0
- package/.bmad-core/templates/web-agent-startup-instructions-template.md +39 -0
- package/.bmad-core/utils/agent-switcher.ide.md +112 -0
- package/.bmad-core/utils/template-format.md +26 -0
- package/.bmad-core/utils/workflow-management.md +224 -0
- package/.bmad-core/web-bundles/agents/analyst.txt +1684 -0
- package/.bmad-core/web-bundles/agents/architect.txt +3584 -0
- package/.bmad-core/web-bundles/agents/bmad-master.txt +9491 -0
- package/.bmad-core/web-bundles/agents/bmad-orchestrator.txt +1466 -0
- package/{dist → .bmad-core/web-bundles}/agents/dev.txt +71 -179
- package/{dist → .bmad-core/web-bundles}/agents/pm.txt +1058 -624
- package/{dist → .bmad-core/web-bundles}/agents/po.txt +138 -337
- package/.bmad-core/web-bundles/agents/qa.txt +129 -0
- package/.bmad-core/web-bundles/agents/sm.txt +658 -0
- package/.bmad-core/web-bundles/agents/ux-expert.txt +1099 -0
- package/.bmad-core/web-bundles/teams/team-all.txt +10757 -0
- package/.bmad-core/web-bundles/teams/team-fullstack.txt +10109 -0
- package/.bmad-core/web-bundles/teams/team-no-ui.txt +8950 -0
- package/.bmad-core/workflows/brownfield-fullstack.yml +116 -0
- package/.bmad-core/workflows/brownfield-service.yml +117 -0
- package/.bmad-core/workflows/brownfield-ui.yml +127 -0
- package/{bmad-core/workflows/greenfield-fullstack.yaml → .bmad-core/workflows/greenfield-fullstack.yml} +77 -140
- package/.bmad-core/workflows/greenfield-service.yml +143 -0
- package/.bmad-core/workflows/greenfield-ui.yml +172 -0
- package/.claude/commands/analyst.md +63 -0
- package/.claude/commands/architect.md +70 -0
- package/.claude/commands/bmad-master.md +108 -0
- package/.claude/commands/bmad-orchestrator.md +85 -0
- package/.claude/commands/dev.md +74 -0
- package/.claude/commands/pm.md +63 -0
- package/.claude/commands/po.md +64 -0
- package/.claude/commands/qa.md +56 -0
- package/.claude/commands/sm.md +59 -0
- package/.claude/commands/ux-expert.md +70 -0
- package/.cursor/rules/analyst.mdc +77 -0
- package/.cursor/rules/architect.mdc +84 -0
- package/.cursor/rules/bmad-master.mdc +122 -0
- package/.cursor/rules/bmad-orchestrator.mdc +99 -0
- package/.cursor/rules/dev.mdc +88 -0
- package/.cursor/rules/pm.mdc +77 -0
- package/.cursor/rules/po.mdc +78 -0
- package/.cursor/rules/qa.mdc +70 -0
- package/.cursor/rules/sm.mdc +73 -0
- package/.cursor/rules/ux-expert.mdc +84 -0
- package/.roo/.roomodes +95 -0
- package/.roo/README.md +38 -0
- package/.vscode/extensions.json +6 -0
- package/.vscode/settings.json +75 -49
- package/.windsurf/rules/analyst.md +71 -0
- package/.windsurf/rules/architect.md +78 -0
- package/.windsurf/rules/bmad-master.md +116 -0
- package/.windsurf/rules/bmad-orchestrator.md +93 -0
- package/.windsurf/rules/dev.md +82 -0
- package/.windsurf/rules/pm.md +71 -0
- package/.windsurf/rules/po.md +72 -0
- package/.windsurf/rules/qa.md +64 -0
- package/.windsurf/rules/sm.md +67 -0
- package/.windsurf/rules/ux-expert.md +78 -0
- package/CHANGELOG.md +16 -452
- package/CONTRIBUTING.md +5 -168
- package/LICENSE +1 -1
- package/README.md +230 -77
- package/docs/bmad-workflow-guide.md +15 -19
- package/docs/claude-code-guide.md +119 -0
- package/docs/cursor-guide.md +127 -0
- package/docs/roo-code-guide.md +140 -0
- package/docs/sample-output/simple-fullstack-greenfield/prd.md +42 -0
- package/docs/versioning-and-releases.md +16 -8
- package/docs/versions.md +5 -4
- package/docs/windsurf-guide.md +127 -0
- package/expansion-packs/README.md +112 -2
- package/expansion-packs/{bmad-infrastructure-devops → infrastructure-devops}/README.md +9 -9
- package/expansion-packs/{bmad-infrastructure-devops → infrastructure-devops}/agents/infra-devops-platform.md +15 -15
- package/expansion-packs/{bmad-infrastructure-devops → infrastructure-devops}/checklists/infrastructure-checklist.md +1 -1
- package/expansion-packs/infrastructure-devops/manifest.yml +38 -0
- package/expansion-packs/{bmad-infrastructure-devops → infrastructure-devops}/tasks/review-infrastructure.md +4 -4
- package/expansion-packs/{bmad-infrastructure-devops → infrastructure-devops}/tasks/validate-infrastructure.md +4 -4
- package/expansion-packs/infrastructure-devops/templates/infrastructure-architecture-tmpl.md +415 -0
- package/expansion-packs/infrastructure-devops/templates/infrastructure-platform-from-arch-tmpl.md +0 -0
- package/package.json +11 -19
- package/tools/bmad-npx-wrapper.js +1 -1
- package/tools/builders/web-builder.js +28 -563
- package/tools/cli.js +22 -55
- package/tools/installer/README.md +53 -3
- package/tools/installer/bin/bmad.js +56 -294
- package/tools/installer/config/install.config.yml +139 -0
- package/tools/installer/lib/config-loader.js +34 -198
- package/tools/installer/lib/file-manager.js +5 -123
- package/tools/installer/lib/ide-setup.js +189 -545
- package/tools/installer/lib/installer.js +55 -1136
- package/tools/installer/package-lock.json +3 -3
- package/tools/installer/package.json +4 -4
- package/tools/installer/templates/claude-commands.md +7 -0
- package/tools/installer/templates/cursor-rules.md +22 -0
- package/tools/installer/templates/windsurf-rules.md +22 -0
- package/tools/lib/dependency-resolver.js +22 -22
- package/tools/upgraders/v3-to-v4-upgrader.js +43 -35
- package/tools/version-bump.js +1 -1
- package/tools/yaml-format.js +2 -2
- package/.github/FUNDING.yaml +0 -15
- package/.github/ISSUE_TEMPLATE/bug_report.md +0 -32
- package/.github/ISSUE_TEMPLATE/feature_request.md +0 -22
- package/.prettierignore +0 -21
- package/.prettierrc +0 -23
- package/bmad-core/agent-teams/team-all.yaml +0 -14
- package/bmad-core/agent-teams/team-fullstack.yaml +0 -18
- package/bmad-core/agent-teams/team-ide-minimal.yaml +0 -10
- package/bmad-core/agent-teams/team-no-ui.yaml +0 -13
- package/bmad-core/agents/architect.md +0 -63
- package/bmad-core/agents/bmad-master.md +0 -110
- package/bmad-core/agents/bmad-orchestrator.md +0 -140
- package/bmad-core/agents/dev.md +0 -57
- package/bmad-core/agents/qa.md +0 -55
- package/bmad-core/agents/sm.md +0 -46
- package/bmad-core/agents/ux-expert.md +0 -54
- package/bmad-core/core-config.yaml +0 -25
- package/bmad-core/data/bmad-kb.md +0 -803
- package/bmad-core/data/brainstorming-techniques.md +0 -36
- package/bmad-core/data/elicitation-methods.md +0 -134
- package/bmad-core/tasks/advanced-elicitation.md +0 -117
- package/bmad-core/tasks/create-brownfield-story.md +0 -355
- package/bmad-core/tasks/create-next-story.md +0 -114
- package/bmad-core/tasks/create-workflow-plan.md +0 -289
- package/bmad-core/tasks/document-project.md +0 -317
- package/bmad-core/tasks/facilitate-brainstorming-session.md +0 -136
- package/bmad-core/tasks/generate-ai-frontend-prompt.md +0 -51
- package/bmad-core/tasks/kb-mode-interaction.md +0 -70
- package/bmad-core/tasks/review-story.md +0 -145
- package/bmad-core/tasks/update-workflow-plan.md +0 -248
- package/bmad-core/tasks/validate-next-story.md +0 -134
- package/bmad-core/templates/architecture-tmpl.yaml +0 -650
- package/bmad-core/templates/brainstorming-output-tmpl.yaml +0 -156
- package/bmad-core/templates/brownfield-architecture-tmpl.yaml +0 -476
- package/bmad-core/templates/brownfield-prd-tmpl.yaml +0 -280
- package/bmad-core/templates/competitor-analysis-tmpl.yaml +0 -293
- package/bmad-core/templates/front-end-architecture-tmpl.yaml +0 -206
- package/bmad-core/templates/front-end-spec-tmpl.yaml +0 -349
- package/bmad-core/templates/fullstack-architecture-tmpl.yaml +0 -805
- package/bmad-core/templates/market-research-tmpl.yaml +0 -252
- package/bmad-core/templates/prd-tmpl.yaml +0 -202
- package/bmad-core/templates/project-brief-tmpl.yaml +0 -221
- package/bmad-core/templates/story-tmpl.yaml +0 -137
- package/bmad-core/utils/plan-management.md +0 -219
- package/bmad-core/workflows/brownfield-fullstack.yaml +0 -297
- package/bmad-core/workflows/brownfield-service.yaml +0 -187
- package/bmad-core/workflows/brownfield-ui.yaml +0 -197
- package/bmad-core/workflows/greenfield-service.yaml +0 -206
- package/bmad-core/workflows/greenfield-ui.yaml +0 -235
- package/common/tasks/create-doc.md +0 -79
- package/common/utils/bmad-doc-template.md +0 -325
- package/common/utils/workflow-management.md +0 -69
- package/dist/agents/analyst.txt +0 -2849
- package/dist/agents/architect.txt +0 -3505
- package/dist/agents/bmad-master.txt +0 -9588
- package/dist/agents/bmad-orchestrator.txt +0 -2232
- package/dist/agents/qa.txt +0 -388
- package/dist/agents/sm.txt +0 -673
- package/dist/agents/ux-expert.txt +0 -987
- package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-designer.txt +0 -2401
- package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-developer.txt +0 -1635
- package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-sm.txt +0 -825
- package/dist/expansion-packs/bmad-2d-phaser-game-dev/teams/phaser-2d-nodejs-game-team.txt +0 -11730
- package/dist/expansion-packs/bmad-creator-tools/agents/bmad-the-creator.txt +0 -2023
- package/dist/expansion-packs/bmad-infrastructure-devops/agents/infra-devops-platform.txt +0 -2052
- package/dist/teams/team-all.txt +0 -11799
- package/dist/teams/team-fullstack.txt +0 -11129
- package/dist/teams/team-ide-minimal.txt +0 -4573
- package/dist/teams/team-no-ui.txt +0 -9684
- package/docs/GUIDING-PRINCIPLES.md +0 -91
- package/docs/agentic-tools/claude-code-guide.md +0 -19
- package/docs/agentic-tools/cline-guide.md +0 -16
- package/docs/agentic-tools/cursor-guide.md +0 -14
- package/docs/agentic-tools/gemini-cli-guide.md +0 -32
- package/docs/agentic-tools/github-copilot-guide.md +0 -42
- package/docs/agentic-tools/roo-code-guide.md +0 -15
- package/docs/agentic-tools/trae-guide.md +0 -14
- package/docs/agentic-tools/windsurf-guide.md +0 -14
- package/docs/core-architecture.md +0 -219
- package/docs/expansion-packs.md +0 -280
- package/docs/how-to-contribute-with-pull-requests.md +0 -158
- package/docs/template-markup-references.md +0 -86
- package/docs/user-guide.md +0 -1142
- package/docs/working-in-the-brownfield.md +0 -361
- package/expansion-packs/bmad-2d-phaser-game-dev/agent-teams/phaser-2d-nodejs-game-team.yaml +0 -13
- package/expansion-packs/bmad-2d-phaser-game-dev/agents/game-designer.md +0 -60
- package/expansion-packs/bmad-2d-phaser-game-dev/agents/game-developer.md +0 -68
- package/expansion-packs/bmad-2d-phaser-game-dev/agents/game-sm.md +0 -53
- package/expansion-packs/bmad-2d-phaser-game-dev/checklists/game-design-checklist.md +0 -201
- package/expansion-packs/bmad-2d-phaser-game-dev/checklists/game-story-dod-checklist.md +0 -160
- package/expansion-packs/bmad-2d-phaser-game-dev/config.yaml +0 -7
- package/expansion-packs/bmad-2d-phaser-game-dev/data/bmad-kb.md +0 -254
- package/expansion-packs/bmad-2d-phaser-game-dev/data/development-guidelines.md +0 -651
- package/expansion-packs/bmad-2d-phaser-game-dev/tasks/advanced-elicitation.md +0 -111
- package/expansion-packs/bmad-2d-phaser-game-dev/tasks/create-game-story.md +0 -216
- package/expansion-packs/bmad-2d-phaser-game-dev/tasks/game-design-brainstorming.md +0 -308
- package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-architecture-tmpl.yaml +0 -613
- package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-brief-tmpl.yaml +0 -356
- package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-design-doc-tmpl.yaml +0 -343
- package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-story-tmpl.yaml +0 -253
- package/expansion-packs/bmad-2d-phaser-game-dev/templates/level-design-doc-tmpl.yaml +0 -484
- package/expansion-packs/bmad-2d-phaser-game-dev/workflows/game-dev-greenfield.yaml +0 -183
- package/expansion-packs/bmad-2d-phaser-game-dev/workflows/game-prototype.yaml +0 -175
- package/expansion-packs/bmad-creator-tools/README.md +0 -8
- package/expansion-packs/bmad-creator-tools/agents/bmad-the-creator.md +0 -55
- package/expansion-packs/bmad-creator-tools/config.yaml +0 -5
- package/expansion-packs/bmad-creator-tools/tasks/generate-expansion-pack.md +0 -1020
- package/expansion-packs/bmad-creator-tools/templates/agent-teams-tmpl.yaml +0 -178
- package/expansion-packs/bmad-creator-tools/templates/agent-tmpl.yaml +0 -154
- package/expansion-packs/bmad-creator-tools/templates/expansion-pack-plan-tmpl.yaml +0 -120
- package/expansion-packs/bmad-infrastructure-devops/config.yaml +0 -8
- package/expansion-packs/bmad-infrastructure-devops/data/bmad-kb.md +0 -308
- package/expansion-packs/bmad-infrastructure-devops/templates/infrastructure-architecture-tmpl.yaml +0 -424
- package/expansion-packs/bmad-infrastructure-devops/templates/infrastructure-platform-from-arch-tmpl.yaml +0 -629
- package/tools/bump-all-versions.js +0 -107
- package/tools/bump-core-version.js +0 -57
- package/tools/bump-expansion-version.js +0 -78
- package/tools/installer/config/ide-agent-config.yaml +0 -58
- package/tools/installer/config/install.config.yaml +0 -91
- package/tools/lib/yaml-utils.js +0 -29
- package/tools/md-assets/web-agent-startup-instructions.md +0 -39
- package/tools/update-expansion-version.js +0 -54
- /package/{bmad-core → .bmad-core}/checklists/architect-checklist.md +0 -0
- /package/{bmad-core → .bmad-core}/checklists/pm-checklist.md +0 -0
- /package/{bmad-core → .bmad-core}/checklists/po-master-checklist.md +0 -0
- /package/{bmad-core → .bmad-core}/checklists/story-dod-checklist.md +0 -0
- /package/{bmad-core → .bmad-core}/data/technical-preferences.md +0 -0
- /package/{bmad-core → .bmad-core}/tasks/brownfield-create-epic.md +0 -0
- /package/{bmad-core → .bmad-core}/tasks/brownfield-create-story.md +0 -0
- /package/{bmad-core → .bmad-core}/tasks/correct-course.md +0 -0
- /package/{bmad-core → .bmad-core}/tasks/create-deep-research-prompt.md +0 -0
- /package/.github/workflows/{release.yaml → release.yml} +0 -0
|
@@ -0,0 +1,224 @@
|
|
|
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
|
+
- The create-\* tasks (create-agent, create-team, etc.) are for CREATING new configurations, not for listing what's available in the current session
|
|
13
|
+
- Use `/agent-list` to show agents in the current bundle, NOT the create-agent task
|
|
14
|
+
- Use `/workflows` to show workflows in the current bundle, NOT any creation tasks
|
|
15
|
+
|
|
16
|
+
### Workflow Descriptions
|
|
17
|
+
|
|
18
|
+
When displaying workflows, use these descriptions based on the workflow ID:
|
|
19
|
+
|
|
20
|
+
- **greenfield-fullstack**: Build a new full-stack application from concept to development
|
|
21
|
+
- **brownfield-fullstack**: Enhance an existing full-stack application with new features
|
|
22
|
+
- **greenfield-service**: Build a new backend service or API from concept to development
|
|
23
|
+
- **brownfield-service**: Enhance an existing backend service or API
|
|
24
|
+
- **greenfield-ui**: Build a new frontend/UI application from concept to development
|
|
25
|
+
- **brownfield-ui**: Enhance an existing frontend/UI application
|
|
26
|
+
|
|
27
|
+
## Workflow Commands
|
|
28
|
+
|
|
29
|
+
### /workflows
|
|
30
|
+
|
|
31
|
+
Lists all available workflows for the current team. The available workflows are determined by the team configuration and may include workflows such as:
|
|
32
|
+
|
|
33
|
+
- greenfield-fullstack
|
|
34
|
+
- brownfield-fullstack
|
|
35
|
+
- greenfield-service
|
|
36
|
+
- brownfield-service
|
|
37
|
+
- greenfield-ui
|
|
38
|
+
- brownfield-ui
|
|
39
|
+
|
|
40
|
+
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.
|
|
41
|
+
|
|
42
|
+
Example response format:
|
|
43
|
+
|
|
44
|
+
```text
|
|
45
|
+
Available workflows for [Team Name]:
|
|
46
|
+
1. [workflow-id] - [Brief description based on workflow type]
|
|
47
|
+
2. [workflow-id] - [Brief description based on workflow type]
|
|
48
|
+
[... etc. ...]
|
|
49
|
+
|
|
50
|
+
Use /workflow-start {number or id} to begin a workflow.
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### /workflow-start {workflow-id}
|
|
54
|
+
|
|
55
|
+
Starts a specific workflow and transitions to the first agent.
|
|
56
|
+
|
|
57
|
+
Example: `/workflow-start greenfield-fullstack`
|
|
58
|
+
|
|
59
|
+
### /workflow-status
|
|
60
|
+
|
|
61
|
+
Shows current workflow progress, completed artifacts, and next steps.
|
|
62
|
+
|
|
63
|
+
Example response:
|
|
64
|
+
|
|
65
|
+
```text
|
|
66
|
+
Current Workflow: Greenfield Full-Stack Development
|
|
67
|
+
Stage: Product Planning (2 of 6)
|
|
68
|
+
Completed:
|
|
69
|
+
✓ Discovery & Requirements
|
|
70
|
+
- project-brief (completed by Mary)
|
|
71
|
+
|
|
72
|
+
In Progress:
|
|
73
|
+
⚡ Product Planning
|
|
74
|
+
- Create PRD (John) - awaiting input
|
|
75
|
+
|
|
76
|
+
Next: Technical Architecture
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### /workflow-resume
|
|
80
|
+
|
|
81
|
+
Resumes a workflow from where it left off, useful when starting a new chat.
|
|
82
|
+
|
|
83
|
+
User can provide completed artifacts:
|
|
84
|
+
|
|
85
|
+
```text
|
|
86
|
+
User: /workflow-resume greenfield-fullstack
|
|
87
|
+
I have completed: project-brief, PRD
|
|
88
|
+
BMad: I see you've completed Discovery and part of Product Planning.
|
|
89
|
+
Based on the greenfield-fullstack workflow, the next step is:
|
|
90
|
+
- UX Strategy with Sally (ux-expert)
|
|
91
|
+
|
|
92
|
+
Would you like me to load Sally to continue?
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### /workflow-next
|
|
96
|
+
|
|
97
|
+
Shows the next recommended agent and action in the current workflow.
|
|
98
|
+
|
|
99
|
+
## Workflow Execution Flow
|
|
100
|
+
|
|
101
|
+
### 1. Starting a Workflow
|
|
102
|
+
|
|
103
|
+
When a workflow is started:
|
|
104
|
+
|
|
105
|
+
1. Load the workflow definition
|
|
106
|
+
2. Identify the first stage and step
|
|
107
|
+
3. Transition to the required agent
|
|
108
|
+
4. Provide context about expected inputs/outputs
|
|
109
|
+
5. Guide artifact creation
|
|
110
|
+
|
|
111
|
+
### 2. Stage Transitions
|
|
112
|
+
|
|
113
|
+
After each artifact is completed:
|
|
114
|
+
|
|
115
|
+
1. Mark the step as complete
|
|
116
|
+
2. Check transition conditions
|
|
117
|
+
3. If stage is complete, move to next stage
|
|
118
|
+
4. Load the appropriate agent
|
|
119
|
+
5. Pass relevant artifacts as context
|
|
120
|
+
|
|
121
|
+
### 3. Artifact Tracking
|
|
122
|
+
|
|
123
|
+
Track all created artifacts:
|
|
124
|
+
|
|
125
|
+
```yaml
|
|
126
|
+
workflow_state:
|
|
127
|
+
current_workflow: greenfield-fullstack
|
|
128
|
+
current_stage: planning
|
|
129
|
+
current_step: 2
|
|
130
|
+
artifacts:
|
|
131
|
+
project-brief:
|
|
132
|
+
status: completed
|
|
133
|
+
created_by: analyst
|
|
134
|
+
timestamp: 2024-01-15T10:30:00Z
|
|
135
|
+
prd:
|
|
136
|
+
status: in-progress
|
|
137
|
+
created_by: pm
|
|
138
|
+
started: 2024-01-15T11:00:00Z
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
### 4. Workflow Interruption Handling
|
|
142
|
+
|
|
143
|
+
When user returns after interruption:
|
|
144
|
+
|
|
145
|
+
1. Ask if continuing previous workflow
|
|
146
|
+
2. Request any completed artifacts
|
|
147
|
+
3. Analyze provided artifacts
|
|
148
|
+
4. Determine workflow position
|
|
149
|
+
5. Suggest next appropriate step
|
|
150
|
+
|
|
151
|
+
Example:
|
|
152
|
+
|
|
153
|
+
```text
|
|
154
|
+
User: I'm working on a new app. Here's my PRD and architecture doc.
|
|
155
|
+
BMad: I see you have a PRD and architecture document. Based on these artifacts,
|
|
156
|
+
it looks like you're following the greenfield-fullstack workflow and have completed
|
|
157
|
+
stages 1-3. The next recommended step would be:
|
|
158
|
+
|
|
159
|
+
Stage 4: Validation & Refinement
|
|
160
|
+
- Load Sarah (Product Owner) to validate all artifacts
|
|
161
|
+
|
|
162
|
+
Would you like to continue with this workflow?
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
## Workflow Context Passing
|
|
166
|
+
|
|
167
|
+
When transitioning between agents, pass:
|
|
168
|
+
|
|
169
|
+
1. Previous artifacts created
|
|
170
|
+
2. Current workflow stage
|
|
171
|
+
3. Expected outputs
|
|
172
|
+
4. Any decisions or constraints identified
|
|
173
|
+
|
|
174
|
+
Example transition:
|
|
175
|
+
|
|
176
|
+
```text
|
|
177
|
+
BMad: Great! John has completed the PRD. According to the greenfield-fullstack workflow,
|
|
178
|
+
the next step is UX Strategy with Sally.
|
|
179
|
+
|
|
180
|
+
/ux-expert
|
|
181
|
+
|
|
182
|
+
Sally: I see we're in the Product Planning stage of the greenfield-fullstack workflow.
|
|
183
|
+
I have access to:
|
|
184
|
+
- Project Brief from Mary
|
|
185
|
+
- PRD from John
|
|
186
|
+
|
|
187
|
+
Let's create the UX strategy and UI specifications. First, let me review
|
|
188
|
+
the PRD to understand the features we're designing for...
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
## Multi-Path Workflows
|
|
192
|
+
|
|
193
|
+
Some workflows may have multiple paths:
|
|
194
|
+
|
|
195
|
+
```yaml
|
|
196
|
+
conditional_paths:
|
|
197
|
+
- condition: "project_type == 'mobile'"
|
|
198
|
+
next_stage: mobile-specific-design
|
|
199
|
+
- condition: "project_type == 'web'"
|
|
200
|
+
next_stage: web-architecture
|
|
201
|
+
- default: fullstack-architecture
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
Handle these by asking clarifying questions when needed.
|
|
205
|
+
|
|
206
|
+
## Workflow Best Practices
|
|
207
|
+
|
|
208
|
+
1. **Always show progress** - Users should know where they are
|
|
209
|
+
2. **Explain transitions** - Why moving to next agent
|
|
210
|
+
3. **Preserve context** - Pass relevant information forward
|
|
211
|
+
4. **Allow flexibility** - Users can skip or modify steps
|
|
212
|
+
5. **Track everything** - Maintain complete workflow state
|
|
213
|
+
|
|
214
|
+
## Integration with Agents
|
|
215
|
+
|
|
216
|
+
Each agent should be workflow-aware:
|
|
217
|
+
|
|
218
|
+
- Know which workflow is active
|
|
219
|
+
- Understand their role in the workflow
|
|
220
|
+
- Access previous artifacts
|
|
221
|
+
- Know expected outputs
|
|
222
|
+
- Guide toward workflow goals
|
|
223
|
+
|
|
224
|
+
This creates a seamless experience where the entire team works together toward the workflow's objectives.
|