bmad-method 1.0.1

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 (147) hide show
  1. package/.bmad-core/agent-teams/team-all.yml +16 -0
  2. package/.bmad-core/agent-teams/team-fullstack.yml +26 -0
  3. package/.bmad-core/agent-teams/team-no-ui.yml +15 -0
  4. package/.bmad-core/agents/analyst.md +65 -0
  5. package/.bmad-core/agents/architect.md +66 -0
  6. package/.bmad-core/agents/bmad-master.md +107 -0
  7. package/.bmad-core/agents/bmad-orchestrator.md +81 -0
  8. package/.bmad-core/agents/dev.md +69 -0
  9. package/.bmad-core/agents/pm.md +64 -0
  10. package/.bmad-core/agents/po.md +60 -0
  11. package/.bmad-core/agents/qa.md +52 -0
  12. package/.bmad-core/agents/sm.md +60 -0
  13. package/.bmad-core/agents/ux-expert.md +66 -0
  14. package/.bmad-core/checklists/architect-checklist.md +443 -0
  15. package/.bmad-core/checklists/change-checklist.md +182 -0
  16. package/.bmad-core/checklists/pm-checklist.md +375 -0
  17. package/.bmad-core/checklists/po-master-checklist.md +441 -0
  18. package/.bmad-core/checklists/story-dod-checklist.md +101 -0
  19. package/.bmad-core/checklists/story-draft-checklist.md +156 -0
  20. package/.bmad-core/data/bmad-kb.md +36 -0
  21. package/.bmad-core/data/technical-preferences.md +3 -0
  22. package/.bmad-core/schemas/agent-team-schema.yml +153 -0
  23. package/.bmad-core/tasks/advanced-elicitation.md +92 -0
  24. package/.bmad-core/tasks/brainstorming-techniques.md +238 -0
  25. package/.bmad-core/tasks/brownfield-create-epic.md +160 -0
  26. package/.bmad-core/tasks/brownfield-create-story.md +147 -0
  27. package/.bmad-core/tasks/core-dump.md +74 -0
  28. package/.bmad-core/tasks/correct-course.md +73 -0
  29. package/.bmad-core/tasks/create-agent.md +202 -0
  30. package/.bmad-core/tasks/create-deep-research-prompt.md +301 -0
  31. package/.bmad-core/tasks/create-doc.md +74 -0
  32. package/.bmad-core/tasks/create-expansion-pack.md +425 -0
  33. package/.bmad-core/tasks/create-next-story.md +206 -0
  34. package/.bmad-core/tasks/create-team.md +229 -0
  35. package/.bmad-core/tasks/doc-migration-task.md +198 -0
  36. package/.bmad-core/tasks/execute-checklist.md +97 -0
  37. package/.bmad-core/tasks/generate-ai-frontend-prompt.md +58 -0
  38. package/.bmad-core/tasks/index-docs.md +180 -0
  39. package/.bmad-core/tasks/shard-doc.md +173 -0
  40. package/.bmad-core/templates/agent-tmpl.md +58 -0
  41. package/.bmad-core/templates/architecture-tmpl.md +771 -0
  42. package/.bmad-core/templates/brownfield-architecture-tmpl.md +542 -0
  43. package/.bmad-core/templates/brownfield-prd-tmpl.md +240 -0
  44. package/.bmad-core/templates/competitor-analysis-tmpl.md +289 -0
  45. package/.bmad-core/templates/expansion-pack-plan-tmpl.md +91 -0
  46. package/.bmad-core/templates/front-end-architecture-tmpl.md +173 -0
  47. package/.bmad-core/templates/front-end-spec-tmpl.md +411 -0
  48. package/.bmad-core/templates/fullstack-architecture-tmpl.md +1034 -0
  49. package/.bmad-core/templates/market-research-tmpl.md +261 -0
  50. package/.bmad-core/templates/prd-tmpl.md +200 -0
  51. package/.bmad-core/templates/project-brief-tmpl.md +228 -0
  52. package/.bmad-core/templates/story-tmpl.md +61 -0
  53. package/.bmad-core/templates/web-agent-startup-instructions-template.md +39 -0
  54. package/.bmad-core/utils/agent-switcher.ide.md +112 -0
  55. package/.bmad-core/utils/template-format.md +26 -0
  56. package/.bmad-core/utils/workflow-management.md +224 -0
  57. package/.bmad-core/web-bundles/agents/analyst.txt +1679 -0
  58. package/.bmad-core/web-bundles/agents/architect.txt +3602 -0
  59. package/.bmad-core/web-bundles/agents/bmad-master.txt +9496 -0
  60. package/.bmad-core/web-bundles/agents/bmad-orchestrator.txt +1455 -0
  61. package/.bmad-core/web-bundles/agents/dev.txt +315 -0
  62. package/.bmad-core/web-bundles/agents/pm.txt +2196 -0
  63. package/.bmad-core/web-bundles/agents/po.txt +1489 -0
  64. package/.bmad-core/web-bundles/agents/qa.txt +129 -0
  65. package/.bmad-core/web-bundles/agents/sm.txt +663 -0
  66. package/.bmad-core/web-bundles/agents/ux-expert.txt +1099 -0
  67. package/.bmad-core/web-bundles/teams/team-all.txt +10315 -0
  68. package/.bmad-core/web-bundles/teams/team-fullstack.txt +9663 -0
  69. package/.bmad-core/web-bundles/teams/team-no-ui.txt +8504 -0
  70. package/.bmad-core/workflows/brownfield-fullstack.yml +116 -0
  71. package/.bmad-core/workflows/brownfield-service.yml +117 -0
  72. package/.bmad-core/workflows/brownfield-ui.yml +127 -0
  73. package/.bmad-core/workflows/greenfield-fullstack.yml +177 -0
  74. package/.bmad-core/workflows/greenfield-service.yml +143 -0
  75. package/.bmad-core/workflows/greenfield-ui.yml +172 -0
  76. package/.claude/commands/analyst.md +69 -0
  77. package/.claude/commands/architect.md +70 -0
  78. package/.claude/commands/bmad-master.md +111 -0
  79. package/.claude/commands/bmad-orchestrator.md +85 -0
  80. package/.claude/commands/dev.md +73 -0
  81. package/.claude/commands/pm.md +68 -0
  82. package/.claude/commands/po.md +64 -0
  83. package/.claude/commands/qa.md +56 -0
  84. package/.claude/commands/sm.md +64 -0
  85. package/.claude/commands/ux-expert.md +70 -0
  86. package/.cursor/rules/analyst.mdc +83 -0
  87. package/.cursor/rules/architect.mdc +84 -0
  88. package/.cursor/rules/bmad-master.mdc +125 -0
  89. package/.cursor/rules/bmad-orchestrator.mdc +99 -0
  90. package/.cursor/rules/dev.mdc +87 -0
  91. package/.cursor/rules/pm.mdc +82 -0
  92. package/.cursor/rules/po.mdc +78 -0
  93. package/.cursor/rules/qa.mdc +70 -0
  94. package/.cursor/rules/sm.mdc +78 -0
  95. package/.cursor/rules/ux-expert.mdc +84 -0
  96. package/.github/workflows/release.yml +59 -0
  97. package/.husky/pre-commit +2 -0
  98. package/.releaserc.json +17 -0
  99. package/.roo/.roomodes +95 -0
  100. package/.roo/README.md +38 -0
  101. package/.vscode/extensions.json +6 -0
  102. package/.vscode/settings.json +72 -0
  103. package/.windsurf/rules/analyst.md +77 -0
  104. package/.windsurf/rules/architect.md +78 -0
  105. package/.windsurf/rules/bmad-master.md +119 -0
  106. package/.windsurf/rules/bmad-orchestrator.md +93 -0
  107. package/.windsurf/rules/dev.md +81 -0
  108. package/.windsurf/rules/pm.md +76 -0
  109. package/.windsurf/rules/po.md +72 -0
  110. package/.windsurf/rules/qa.md +64 -0
  111. package/.windsurf/rules/sm.md +72 -0
  112. package/.windsurf/rules/ux-expert.md +78 -0
  113. package/CHANGELOG.md +22 -0
  114. package/CONTRIBUTING.md +46 -0
  115. package/LICENSE +21 -0
  116. package/README.md +283 -0
  117. package/docs/versioning-and-releases.md +85 -0
  118. package/docs/versions.md +49 -0
  119. package/expansion-packs/README.md +113 -0
  120. package/expansion-packs/infrastructure-devops/README.md +147 -0
  121. package/expansion-packs/infrastructure-devops/agents/infra-devops-platform.md +59 -0
  122. package/expansion-packs/infrastructure-devops/checklists/infrastructure-checklist.md +484 -0
  123. package/expansion-packs/infrastructure-devops/manifest.yml +38 -0
  124. package/expansion-packs/infrastructure-devops/tasks/review-infrastructure.md +160 -0
  125. package/expansion-packs/infrastructure-devops/tasks/validate-infrastructure.md +154 -0
  126. package/expansion-packs/infrastructure-devops/templates/infrastructure-architecture-tmpl.md +415 -0
  127. package/expansion-packs/infrastructure-devops/templates/infrastructure-platform-from-arch-tmpl.md +0 -0
  128. package/package.json +73 -0
  129. package/tools/bmad-npx-wrapper.js +41 -0
  130. package/tools/builders/web-builder.js +145 -0
  131. package/tools/cli.js +119 -0
  132. package/tools/installer/README.md +58 -0
  133. package/tools/installer/bin/bmad.js +179 -0
  134. package/tools/installer/config/install.config.yml +139 -0
  135. package/tools/installer/lib/config-loader.js +89 -0
  136. package/tools/installer/lib/file-manager.js +169 -0
  137. package/tools/installer/lib/ide-setup.js +419 -0
  138. package/tools/installer/lib/installer.js +534 -0
  139. package/tools/installer/package-lock.json +704 -0
  140. package/tools/installer/package.json +43 -0
  141. package/tools/installer/templates/claude-commands.md +7 -0
  142. package/tools/installer/templates/cursor-rules.md +22 -0
  143. package/tools/installer/templates/windsurf-rules.md +22 -0
  144. package/tools/lib/dependency-resolver.js +179 -0
  145. package/tools/upgraders/v3-to-v4-upgrader.js +766 -0
  146. package/tools/version-bump.js +72 -0
  147. package/tools/yaml-format.js +211 -0
@@ -0,0 +1,61 @@
1
+ # Story {{EpicNum}}.{{StoryNum}}: {{Short Title Copied from Epic File specific story}}
2
+
3
+ ## Status: {{ Draft | Approved | InProgress | Review | Done }}
4
+
5
+ ## Story
6
+
7
+ - As a {{role}}
8
+ - I want {{action}}
9
+ - so that {{benefit}}
10
+
11
+ ## Acceptance Criteria (ACs)
12
+
13
+ {{ Copy of Acceptance Criteria numbered list }}
14
+
15
+ ## Tasks / Subtasks
16
+
17
+ - [ ] Task 1 (AC: # if applicable)
18
+ - [ ] Subtask1.1...
19
+ - [ ] Task 2 (AC: # if applicable)
20
+ - [ ] Subtask 2.1...
21
+ - [ ] Task 3 (AC: # if applicable)
22
+ - [ ] Subtask 3.1...
23
+
24
+ ## Dev Notes
25
+
26
+ [[LLM: populates relevant information, only what was pulled from actual artifacts from docs folder, relevant to this story. Do not invent information. Critical: If known add Relevant Source Tree info that relates to this story. If there were important notes from previous story that are relevant to this one, also include them here if it will help the dev agent. You do NOT need to repeat anything from coding standards or test standards as the dev agent is already aware of those. The dev agent should NEVER need to read the PRD or architecture documents or child documents though to complete this self contained story, because your critical mission is to share the specific items needed here extremely concisely for the Dev Agent LLM to comprehend with the least about of context overhead token usage needed.]]
27
+
28
+ ### Testing
29
+
30
+ [[LLM: Scrum Master use `test-strategy-and-standards.md` to leave instruction for developer agent in the following concise format, leave unchecked if no specific test requirement of that type]]
31
+ Dev Note: Story Requires the following tests:
32
+
33
+ - [ ] {{type f.e. Jest}} Unit Tests: (nextToFile: {{true|false}}), coverage requirement: {{from strategy or default 80%}}
34
+ - [ ] {{type f.e. Jest with in memory db}} Integration Test (Test Location): location: {{Integration test location f.e. `/tests/story-name/foo.spec.cs` or `next to handler`}}
35
+ - [ ] {{type f.e. Cypress}} E2E: location: {{f.e. `/e2e/{epic-name/bar.test.ts`}}
36
+
37
+ Manual Test Steps: [[LLM: Include how if possible the user can manually test the functionality when story is Ready for Review, if any]]
38
+
39
+ {{ f.e. `- dev will create a script with task 3 above that you can run with "npm run test-initiate-launch-sequence" and validate Armageddon is initiated`}}
40
+
41
+ ## Dev Agent Record
42
+
43
+ ### Agent Model Used: {{Agent Model Name/Version}}
44
+
45
+ ### Debug Log References
46
+
47
+ [[LLM: (SM Agent) When Drafting Story, leave next prompt in place for dev agent to remove and update]]
48
+ [[LLM: (Dev Agent) If the debug is logged to during the current story progress, create a table with the debug log and the specific task section in the debug log - do not repeat all the details in the story]]
49
+
50
+ ### Completion Notes List
51
+
52
+ [[LLM: (SM Agent) When Drafting Story, leave next prompt in place for dev agent to remove and update]]
53
+ [[LLM: (Dev Agent) Anything the SM needs to know that deviated from the story that might impact drafting the next story.]]
54
+
55
+ ### Change Log
56
+
57
+ [[LLM: (SM Agent) When Drafting Story, leave next prompt in place for dev agent to remove and update]]
58
+ [[LLM: (Dev Agent) Track document versions and changes during development that deviate from story dev start]]
59
+
60
+ | Date | Version | Description | Author |
61
+ | :--- | :------ | :---------- | :----- |
@@ -0,0 +1,39 @@
1
+ # Web Agent Bundle Instructions
2
+
3
+ You are now operating as a specialized AI agent from the BMAD-METHOD framework. This is a bundled web-compatible version containing all necessary resources for your role.
4
+
5
+ ## Important Instructions
6
+
7
+ 1. **Follow all startup commands**: Your agent configuration includes startup instructions that define your behavior, personality, and approach. These MUST be followed exactly.
8
+
9
+ 2. **Resource Navigation**: This bundle contains all resources you need. Resources are marked with tags like:
10
+
11
+ - `==================== START: folder#filename ====================`
12
+ - `==================== END: folder#filename ====================`
13
+
14
+ When you need to reference a resource mentioned in your instructions:
15
+
16
+ - Look for the corresponding START/END tags
17
+ - The format is always `folder#filename` (e.g., `personas#analyst`, `tasks#create-story`)
18
+ - If a section is specified (e.g., `tasks#create-story#section-name`), navigate to that section within the file
19
+
20
+ **Understanding YAML References**: In the agent configuration, resources are referenced in the dependencies section. For example:
21
+
22
+ ```yaml
23
+ dependencies:
24
+ utils:
25
+ - template-format
26
+ tasks:
27
+ - create-story
28
+ ```
29
+
30
+ These references map directly to bundle sections:
31
+
32
+ - `utils: template-format` → Look for `==================== START: utils#template-format ====================`
33
+ - `tasks: create-story` → Look for `==================== START: tasks#create-story ====================`
34
+
35
+ 3. **Execution Context**: You are operating in a web environment. All your capabilities and knowledge are contained within this bundle. Work within these constraints to provide the best possible assistance.
36
+
37
+ 4. **Primary Directive**: Your primary goal is defined in your agent configuration below. Focus on fulfilling your designated role according to the BMAD-METHOD framework.
38
+
39
+ ---
@@ -0,0 +1,112 @@
1
+ # Agent Switcher Instructions
2
+
3
+ ## Overview
4
+
5
+ This document provides instructions for switching between different IDE agent personas in the BMAD-METHOD framework.
6
+
7
+ ## Behavior
8
+
9
+ ### Listing Available Agents
10
+
11
+ When no agent name is provided:
12
+
13
+ 1. Read the `bmad-core/ide-agents/` directory
14
+ 2. Look for files matching the pattern `*.ide.md`
15
+ 3. Extract agent names from filenames (the part before `.ide.md`)
16
+ 4. Present a numbered list of available agents
17
+
18
+ ### Loading an Agent
19
+
20
+ When an agent name is provided:
21
+
22
+ 1. Attempt to load `bmad-core/ide-agents/{agent-name}.ide.md`
23
+ 2. If the file doesn't exist:
24
+ - List all available agents found in the directory
25
+ - Prompt for a valid selection
26
+ 3. If the file exists:
27
+ - Read and internalize the agent's instructions
28
+ - Note the agent's name and role from the Agent Profile section
29
+ - Embody that agent's persona, communication style, and capabilities
30
+ - Use the agent's name when referring to yourself (e.g., "I'm John, the Product Manager")
31
+ - Follow the agent's specific workflows and constraints
32
+
33
+ ### Active Agent Behavior
34
+
35
+ When successfully operating as an IDE agent:
36
+
37
+ - Strictly follow the agent's defined capabilities and limitations
38
+ - Only execute commands that the agent supports (typically prefixed with `*`)
39
+ - Maintain the agent identity and context until switched or exited
40
+ - If asked to perform tasks outside the agent's scope:
41
+ - Inform the user of the limitation
42
+ - Suggest the appropriate agent for that task
43
+
44
+ ### Exiting Agent Mode
45
+
46
+ When exiting agent mode:
47
+
48
+ - Immediately exit the current agent persona
49
+ - Return to standard assistant capabilities
50
+ - Clear any agent-specific context or workflows
51
+
52
+ ## Implementation Details
53
+
54
+ - Each agent maintains its own context and workflow state
55
+ - Switching agents clears the previous agent's context
56
+ - Agents are self-contained - no need to read additional files
57
+ - The system automatically adapts as agents are added or removed
58
+
59
+ ## Example Interactions
60
+
61
+ ### Example Listing Agents
62
+
63
+ ```text
64
+ User: [requests agent list]
65
+ Agent: Available IDE agents:
66
+ 1. architect
67
+ 2. dev
68
+ 3. devops
69
+ 4. pm
70
+ 5. po
71
+ 6. sm
72
+
73
+ Please select an agent by specifying: <agent-name>
74
+ ```
75
+
76
+ ### Example Loading an Agent
77
+
78
+ ```text
79
+ User: [requests dev agent]
80
+ Agent: [Loads dev.ide.md and operates as Dev agent]
81
+ ```
82
+
83
+ ### Example Invalid Agent Request
84
+
85
+ ```text
86
+ User: [requests designer agent]
87
+ Agent: Could not find IDE agent 'designer'. Available agents:
88
+ 1. architect
89
+ 2. dev
90
+ 3. devops
91
+ 4. pm
92
+ 5. po
93
+ 6. sm
94
+
95
+ Please select an agent by specifying: <agent-name>
96
+ ```
97
+
98
+ ### Example Task Outside Agent Scope
99
+
100
+ ```text
101
+ [While operating as Dev agent]
102
+ User: Create a PRD
103
+ Agent: I'm currently operating as the Dev agent, which doesn't have PRD creation capabilities.
104
+ The PM agent can create PRDs. Would you like me to switch to the PM agent?
105
+ ```
106
+
107
+ ### Example Exiting Agent Mode
108
+
109
+ ```text
110
+ User: [requests to exit agent mode]
111
+ Agent: Exited IDE agent mode. Returned to standard assistant capabilities.
112
+ ```
@@ -0,0 +1,26 @@
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
@@ -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.