bmad-method 4.22.1 → 4.24.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/CHANGELOG.md +19 -0
- package/README.md +3 -2
- package/bmad-core/agents/bmad-master.md +14 -1
- package/bmad-core/agents/bmad-orchestrator.md +14 -0
- package/bmad-core/core-config.yml +5 -0
- package/bmad-core/data/bmad-kb.md +3 -1
- package/bmad-core/tasks/create-brownfield-story.md +355 -0
- package/bmad-core/tasks/create-next-story.md +25 -0
- package/bmad-core/tasks/create-workflow-plan.md +289 -0
- package/bmad-core/tasks/update-workflow-plan.md +248 -0
- package/bmad-core/templates/brownfield-prd-tmpl.md +52 -28
- package/bmad-core/utils/plan-management.md +223 -0
- package/bmad-core/workflows/brownfield-fullstack.yml +240 -55
- package/bmad-core/workflows/brownfield-service.yml +110 -36
- package/bmad-core/workflows/brownfield-ui.yml +110 -36
- package/bmad-core/workflows/greenfield-fullstack.yml +110 -36
- package/bmad-core/workflows/greenfield-service.yml +110 -36
- package/bmad-core/workflows/greenfield-ui.yml +110 -36
- package/common/tasks/create-doc.md +21 -1
- package/dist/agents/analyst.txt +24 -2
- package/dist/agents/architect.txt +21 -1
- package/dist/agents/bmad-master.txt +884 -31
- package/dist/agents/bmad-orchestrator.txt +807 -2
- package/dist/agents/pm.txt +73 -29
- package/dist/agents/sm.txt +25 -0
- package/dist/agents/ux-expert.txt +21 -1
- package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-designer.txt +21 -1
- package/dist/expansion-packs/bmad-2d-phaser-game-dev/teams/phaser-2d-nodejs-game-team.txt +804 -1
- package/dist/expansion-packs/bmad-infrastructure-devops/agents/infra-devops-platform.txt +21 -1
- package/dist/teams/team-all.txt +1676 -267
- package/dist/teams/team-fullstack.txt +1651 -267
- package/dist/teams/team-ide-minimal.txt +832 -2
- package/dist/teams/team-no-ui.txt +1080 -103
- package/docs/bmad-workflow-guide.md +2 -1
- package/docs/core-architecture.md +2 -1
- package/package.json +1 -1
- package/tools/installer/bin/bmad.js +3 -2
- package/tools/installer/config/install.config.yml +13 -0
- package/tools/installer/lib/ide-setup.js +214 -1
- package/tools/installer/lib/installer.js +3 -13
- package/tools/installer/package.json +1 -1
- package/tools/lib/dependency-resolver.js +2 -2
package/dist/agents/pm.txt
CHANGED
|
@@ -115,11 +115,22 @@ Generate documents from templates by EXECUTING (not just reading) embedded instr
|
|
|
115
115
|
|
|
116
116
|
## Execution Flow
|
|
117
117
|
|
|
118
|
+
### 0. Check Workflow Plan (if configured)
|
|
119
|
+
|
|
120
|
+
[[LLM: Check if plan tracking is enabled in core-config.yml]]
|
|
121
|
+
|
|
122
|
+
- If `workflow.trackProgress: true`, check for active plan using utils#plan-management
|
|
123
|
+
- If plan exists and this document creation is part of the plan:
|
|
124
|
+
- Verify this is the expected next step
|
|
125
|
+
- If out of sequence and `enforceSequence: true`, warn user and halt without user override
|
|
126
|
+
- If out of sequence and `enforceSequence: false`, ask for confirmation
|
|
127
|
+
- Continue with normal execution after plan check
|
|
128
|
+
|
|
118
129
|
### 1. Identify Template
|
|
119
130
|
|
|
120
131
|
- Load from `templates#*` or `{root}/templates directory`
|
|
121
132
|
- Agent-specific templates are listed in agent's dependencies
|
|
122
|
-
- If agent has `templates: [prd-tmpl, architecture-tmpl]
|
|
133
|
+
- If agent has `templates: [prd-tmpl, architecture-tmpl]` for example, then offer to create "PRD" and "Architecture" documents
|
|
123
134
|
|
|
124
135
|
### 2. Ask Interaction Mode
|
|
125
136
|
|
|
@@ -156,6 +167,15 @@ Generate documents from templates by EXECUTING (not just reading) embedded instr
|
|
|
156
167
|
- Begin directly with content (no preamble)
|
|
157
168
|
- Include any handoff prompts from template
|
|
158
169
|
|
|
170
|
+
### 6. Update Workflow Plan (if applicable)
|
|
171
|
+
|
|
172
|
+
[[LLM: After successful document creation]]
|
|
173
|
+
|
|
174
|
+
- If plan tracking is enabled and document was part of plan:
|
|
175
|
+
- Call update-workflow-plan task to mark step complete
|
|
176
|
+
- Parameters: task: create-doc, step_id: {from plan}, status: complete
|
|
177
|
+
- Show next recommended step from plan
|
|
178
|
+
|
|
159
179
|
## Common Mistakes to Avoid
|
|
160
180
|
|
|
161
181
|
❌ Skipping elicitation tasks
|
|
@@ -1386,34 +1406,45 @@ Do not proceed with any recommendations until the user has validated your unders
|
|
|
1386
1406
|
|
|
1387
1407
|
### Existing Project Overview
|
|
1388
1408
|
|
|
1389
|
-
[[LLM:
|
|
1409
|
+
[[LLM: Check if document-project analysis was already performed. If yes, reference that output instead of re-analyzing.]]
|
|
1390
1410
|
|
|
1391
|
-
**
|
|
1411
|
+
**Analysis Source**: [[LLM: Indicate one of the following:
|
|
1412
|
+
- Document-project output available at: {{path}}
|
|
1413
|
+
- IDE-based fresh analysis
|
|
1414
|
+
- User-provided information
|
|
1415
|
+
]]
|
|
1392
1416
|
|
|
1393
|
-
**Current Project State**: [[LLM:
|
|
1417
|
+
**Current Project State**: [[LLM:
|
|
1418
|
+
- If document-project output exists: Extract summary from "High Level Architecture" and "Technical Summary" sections
|
|
1419
|
+
- Otherwise: Brief description of what the project currently does and its primary purpose
|
|
1420
|
+
]]
|
|
1394
1421
|
|
|
1395
1422
|
### Available Documentation Analysis
|
|
1396
1423
|
|
|
1397
|
-
[[LLM:
|
|
1424
|
+
[[LLM:
|
|
1425
|
+
If document-project was run:
|
|
1426
|
+
- Note: "Document-project analysis available - using existing technical documentation"
|
|
1427
|
+
- List key documents created by document-project
|
|
1428
|
+
- Skip the missing documentation check below
|
|
1398
1429
|
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
- Coding standards
|
|
1402
|
-
- API documentation or OpenAPI specs
|
|
1403
|
-
- External API integrations
|
|
1404
|
-
- UX/UI guidelines or existing patterns]]
|
|
1430
|
+
Otherwise, check for existing documentation:
|
|
1431
|
+
]]
|
|
1405
1432
|
|
|
1406
1433
|
**Available Documentation**:
|
|
1407
1434
|
|
|
1408
|
-
- [ ] Tech Stack Documentation
|
|
1409
|
-
- [ ] Source Tree/Architecture
|
|
1410
|
-
- [ ] Coding Standards
|
|
1411
|
-
- [ ] API Documentation
|
|
1412
|
-
- [ ] External API Documentation
|
|
1413
|
-
- [ ] UX/UI Guidelines
|
|
1435
|
+
- [ ] Tech Stack Documentation [[LLM: If from document-project, check ✓]]
|
|
1436
|
+
- [ ] Source Tree/Architecture [[LLM: If from document-project, check ✓]]
|
|
1437
|
+
- [ ] Coding Standards [[LLM: If from document-project, may be partial]]
|
|
1438
|
+
- [ ] API Documentation [[LLM: If from document-project, check ✓]]
|
|
1439
|
+
- [ ] External API Documentation [[LLM: If from document-project, check ✓]]
|
|
1440
|
+
- [ ] UX/UI Guidelines [[LLM: May not be in document-project]]
|
|
1441
|
+
- [ ] Technical Debt Documentation [[LLM: If from document-project, check ✓]]
|
|
1414
1442
|
- [ ] Other: \***\*\_\_\_\*\***
|
|
1415
1443
|
|
|
1416
|
-
[[LLM:
|
|
1444
|
+
[[LLM:
|
|
1445
|
+
- If document-project was already run: "Using existing project analysis from document-project output."
|
|
1446
|
+
- If critical documentation is missing and no document-project: "I recommend running the document-project task first..."
|
|
1447
|
+
]]
|
|
1417
1448
|
|
|
1418
1449
|
### Enhancement Scope Definition
|
|
1419
1450
|
|
|
@@ -1503,13 +1534,19 @@ Do not proceed with any recommendations until the user has validated your unders
|
|
|
1503
1534
|
|
|
1504
1535
|
### Existing Technology Stack
|
|
1505
1536
|
|
|
1506
|
-
[[LLM:
|
|
1537
|
+
[[LLM:
|
|
1538
|
+
If document-project output available:
|
|
1539
|
+
- Extract from "Actual Tech Stack" table in High Level Architecture section
|
|
1540
|
+
- Include version numbers and any noted constraints
|
|
1507
1541
|
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
**
|
|
1512
|
-
**
|
|
1542
|
+
Otherwise, document the current technology stack:
|
|
1543
|
+
]]
|
|
1544
|
+
|
|
1545
|
+
**Languages**: [[LLM: From document-project or fresh analysis]]
|
|
1546
|
+
**Frameworks**: [[LLM: From document-project or fresh analysis]]
|
|
1547
|
+
**Database**: [[LLM: From document-project or fresh analysis]]
|
|
1548
|
+
**Infrastructure**: [[LLM: From document-project or fresh analysis]]
|
|
1549
|
+
**External Dependencies**: [[LLM: From document-project "External Services" section or fresh analysis]]
|
|
1513
1550
|
|
|
1514
1551
|
### Integration Approach
|
|
1515
1552
|
|
|
@@ -1540,12 +1577,19 @@ Do not proceed with any recommendations until the user has validated your unders
|
|
|
1540
1577
|
|
|
1541
1578
|
### Risk Assessment and Mitigation
|
|
1542
1579
|
|
|
1543
|
-
[[LLM:
|
|
1580
|
+
[[LLM:
|
|
1581
|
+
If document-project output available:
|
|
1582
|
+
- Reference "Technical Debt and Known Issues" section
|
|
1583
|
+
- Include "Workarounds and Gotchas" that might impact enhancement
|
|
1584
|
+
- Note any identified constraints from "Critical Technical Debt"
|
|
1585
|
+
|
|
1586
|
+
Build risk assessment incorporating existing known issues:
|
|
1587
|
+
]]
|
|
1544
1588
|
|
|
1545
|
-
**Technical Risks**: [[LLM:
|
|
1546
|
-
**Integration Risks**: [[LLM:
|
|
1547
|
-
**Deployment Risks**: [[LLM:
|
|
1548
|
-
**Mitigation Strategies**: [[LLM:
|
|
1589
|
+
**Technical Risks**: [[LLM: Include risks from document-project + new enhancement risks]]
|
|
1590
|
+
**Integration Risks**: [[LLM: Reference integration constraints from document-project]]
|
|
1591
|
+
**Deployment Risks**: [[LLM: Include deployment gotchas from document-project]]
|
|
1592
|
+
**Mitigation Strategies**: [[LLM: Address both existing and new risks]]
|
|
1549
1593
|
|
|
1550
1594
|
## Epic and Story Structure
|
|
1551
1595
|
|
package/dist/agents/sm.txt
CHANGED
|
@@ -118,6 +118,22 @@ To identify the next logical story based on project progress and epic definition
|
|
|
118
118
|
- `architecture.architectureSharded`: Whether architecture is sharded
|
|
119
119
|
- `architecture.architectureFile`: Location of monolithic architecture
|
|
120
120
|
- `architecture.architectureShardedLocation`: Location of sharded architecture files
|
|
121
|
+
- `workflow.trackProgress`: Whether workflow plan tracking is enabled
|
|
122
|
+
- `workflow.planFile`: Location of workflow plan (if tracking enabled)
|
|
123
|
+
|
|
124
|
+
### 0.5 Check Workflow Plan (if configured)
|
|
125
|
+
|
|
126
|
+
[[LLM: Check if workflow plan tracking is enabled]]
|
|
127
|
+
|
|
128
|
+
- If `workflow.trackProgress: true`, check for active plan at `workflow.planFile`
|
|
129
|
+
- If plan exists:
|
|
130
|
+
- Parse plan to check if story creation is the expected next step
|
|
131
|
+
- If out of sequence and `workflow.enforceSequence: true`:
|
|
132
|
+
- Show warning: "The workflow plan indicates you should complete {expected_step} before creating stories."
|
|
133
|
+
- Block execution unless user explicitly overrides
|
|
134
|
+
- If out of sequence and `workflow.enforceSequence: false`:
|
|
135
|
+
- Show warning but allow continuation with confirmation
|
|
136
|
+
- Continue with story identification after plan check
|
|
121
137
|
|
|
122
138
|
### 1. Identify Next Story for Preparation
|
|
123
139
|
|
|
@@ -341,6 +357,15 @@ Provide a summary to the user including:
|
|
|
341
357
|
- Recommendations for story review before approval
|
|
342
358
|
- Next steps: Story should be reviewed by PO for approval before dev work begins
|
|
343
359
|
|
|
360
|
+
### 10. Update Workflow Plan (if applicable)
|
|
361
|
+
|
|
362
|
+
[[LLM: After successful story creation]]
|
|
363
|
+
|
|
364
|
+
- If `workflow.trackProgress: true` and `workflow.updateOnCompletion: true`:
|
|
365
|
+
- Call update-workflow-plan task to mark story creation step complete
|
|
366
|
+
- Parameters: task: create-next-story, step_id: {from plan}, status: complete
|
|
367
|
+
- If plan shows next step, mention it in completion message
|
|
368
|
+
|
|
344
369
|
[[LLM: Remember - The success of this task depends on extracting real, specific technical details from the architecture shards. The dev agent should have everything they need in the story file without having to search through multiple documents.]]
|
|
345
370
|
==================== END: tasks#create-next-story ====================
|
|
346
371
|
|
|
@@ -475,11 +475,22 @@ Generate documents from templates by EXECUTING (not just reading) embedded instr
|
|
|
475
475
|
|
|
476
476
|
## Execution Flow
|
|
477
477
|
|
|
478
|
+
### 0. Check Workflow Plan (if configured)
|
|
479
|
+
|
|
480
|
+
[[LLM: Check if plan tracking is enabled in core-config.yml]]
|
|
481
|
+
|
|
482
|
+
- If `workflow.trackProgress: true`, check for active plan using utils#plan-management
|
|
483
|
+
- If plan exists and this document creation is part of the plan:
|
|
484
|
+
- Verify this is the expected next step
|
|
485
|
+
- If out of sequence and `enforceSequence: true`, warn user and halt without user override
|
|
486
|
+
- If out of sequence and `enforceSequence: false`, ask for confirmation
|
|
487
|
+
- Continue with normal execution after plan check
|
|
488
|
+
|
|
478
489
|
### 1. Identify Template
|
|
479
490
|
|
|
480
491
|
- Load from `templates#*` or `{root}/templates directory`
|
|
481
492
|
- Agent-specific templates are listed in agent's dependencies
|
|
482
|
-
- If agent has `templates: [prd-tmpl, architecture-tmpl]
|
|
493
|
+
- If agent has `templates: [prd-tmpl, architecture-tmpl]` for example, then offer to create "PRD" and "Architecture" documents
|
|
483
494
|
|
|
484
495
|
### 2. Ask Interaction Mode
|
|
485
496
|
|
|
@@ -516,6 +527,15 @@ Generate documents from templates by EXECUTING (not just reading) embedded instr
|
|
|
516
527
|
- Begin directly with content (no preamble)
|
|
517
528
|
- Include any handoff prompts from template
|
|
518
529
|
|
|
530
|
+
### 6. Update Workflow Plan (if applicable)
|
|
531
|
+
|
|
532
|
+
[[LLM: After successful document creation]]
|
|
533
|
+
|
|
534
|
+
- If plan tracking is enabled and document was part of plan:
|
|
535
|
+
- Call update-workflow-plan task to mark step complete
|
|
536
|
+
- Parameters: task: create-doc, step_id: {from plan}, status: complete
|
|
537
|
+
- Show next recommended step from plan
|
|
538
|
+
|
|
519
539
|
## Common Mistakes to Avoid
|
|
520
540
|
|
|
521
541
|
❌ Skipping elicitation tasks
|
|
@@ -115,11 +115,22 @@ Generate documents from templates by EXECUTING (not just reading) embedded instr
|
|
|
115
115
|
|
|
116
116
|
## Execution Flow
|
|
117
117
|
|
|
118
|
+
### 0. Check Workflow Plan (if configured)
|
|
119
|
+
|
|
120
|
+
[[LLM: Check if plan tracking is enabled in core-config.yml]]
|
|
121
|
+
|
|
122
|
+
- If `workflow.trackProgress: true`, check for active plan using utils#plan-management
|
|
123
|
+
- If plan exists and this document creation is part of the plan:
|
|
124
|
+
- Verify this is the expected next step
|
|
125
|
+
- If out of sequence and `enforceSequence: true`, warn user and halt without user override
|
|
126
|
+
- If out of sequence and `enforceSequence: false`, ask for confirmation
|
|
127
|
+
- Continue with normal execution after plan check
|
|
128
|
+
|
|
118
129
|
### 1. Identify Template
|
|
119
130
|
|
|
120
131
|
- Load from `templates#*` or `{root}/templates directory`
|
|
121
132
|
- Agent-specific templates are listed in agent's dependencies
|
|
122
|
-
- If agent has `templates: [prd-tmpl, architecture-tmpl]
|
|
133
|
+
- If agent has `templates: [prd-tmpl, architecture-tmpl]` for example, then offer to create "PRD" and "Architecture" documents
|
|
123
134
|
|
|
124
135
|
### 2. Ask Interaction Mode
|
|
125
136
|
|
|
@@ -156,6 +167,15 @@ Generate documents from templates by EXECUTING (not just reading) embedded instr
|
|
|
156
167
|
- Begin directly with content (no preamble)
|
|
157
168
|
- Include any handoff prompts from template
|
|
158
169
|
|
|
170
|
+
### 6. Update Workflow Plan (if applicable)
|
|
171
|
+
|
|
172
|
+
[[LLM: After successful document creation]]
|
|
173
|
+
|
|
174
|
+
- If plan tracking is enabled and document was part of plan:
|
|
175
|
+
- Call update-workflow-plan task to mark step complete
|
|
176
|
+
- Parameters: task: create-doc, step_id: {from plan}, status: complete
|
|
177
|
+
- Show next recommended step from plan
|
|
178
|
+
|
|
159
179
|
## Common Mistakes to Avoid
|
|
160
180
|
|
|
161
181
|
❌ Skipping elicitation tasks
|