bmad-method 4.27.5 → 4.28.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 +14 -0
- package/bmad-core/agents/analyst.md +3 -4
- package/bmad-core/agents/architect.md +3 -4
- package/bmad-core/agents/bmad-master.md +9 -31
- package/bmad-core/agents/bmad-orchestrator.md +3 -8
- package/bmad-core/agents/dev.md +3 -4
- package/bmad-core/agents/pm.md +3 -4
- package/bmad-core/agents/po.md +3 -4
- package/bmad-core/agents/qa.md +3 -4
- package/bmad-core/agents/sm.md +3 -4
- package/bmad-core/agents/ux-expert.md +3 -4
- package/bmad-core/tasks/create-next-story.md +0 -1
- package/bmad-core/tasks/validate-next-story.md +1 -1
- package/bmad-core/workflows/brownfield-fullstack.yaml +1 -1
- package/bmad-core/workflows/brownfield-service.yaml +1 -1
- package/bmad-core/workflows/brownfield-ui.yaml +1 -1
- package/bmad-core/workflows/greenfield-fullstack.yaml +1 -1
- package/bmad-core/workflows/greenfield-ui.yaml +1 -1
- package/dist/agents/analyst.txt +3 -3
- package/dist/agents/bmad-master.txt +7 -324
- package/dist/agents/bmad-orchestrator.txt +3 -229
- package/dist/agents/dev.txt +1 -1
- package/dist/agents/po.txt +1 -1
- package/dist/agents/sm.txt +0 -1
- package/dist/expansion-packs/bmad-2d-phaser-game-dev/teams/phaser-2d-nodejs-game-team.txt +0 -226
- package/dist/teams/team-all.txt +9 -236
- package/dist/teams/team-fullstack.txt +9 -235
- package/dist/teams/team-ide-minimal.txt +4 -231
- package/dist/teams/team-no-ui.txt +5 -231
- package/docs/agentic-tools/claude-code-guide.md +1 -1
- package/docs/agentic-tools/gemini-cli-guide.md +6 -7
- package/docs/bmad-workflow-guide.md +1 -0
- package/expansion-packs/bmad-2d-phaser-game-dev/agents/game-designer.md +2 -3
- package/expansion-packs/bmad-2d-phaser-game-dev/agents/game-developer.md +2 -3
- package/expansion-packs/bmad-2d-phaser-game-dev/agents/game-sm.md +2 -3
- package/expansion-packs/bmad-creator-tools/agents/bmad-the-creator.md +2 -3
- package/expansion-packs/bmad-infrastructure-devops/agents/infra-devops-platform.md +2 -3
- package/package.json +1 -1
- package/tools/installer/config/install.config.yaml +7 -6
- package/tools/installer/lib/file-manager.js +77 -2
- package/tools/installer/lib/ide-setup.js +82 -38
- package/tools/installer/lib/installer.js +54 -25
- package/tools/installer/package.json +1 -1
- package/tools/upgraders/v3-to-v4-upgrader.js +1 -1
- package/bmad-core/utils/plan-management.md +0 -219
|
@@ -128,9 +128,6 @@ CRITICAL: Read the full YAML, start activation to alter your state of being, fol
|
|
|
128
128
|
```yaml
|
|
129
129
|
activation-instructions:
|
|
130
130
|
- Mention *help shows all available commands and options
|
|
131
|
-
- Check for active workflow plan using .bmad-2d-phaser-game-dev/utils/plan-management.md
|
|
132
|
-
- 'If plan exists: Show 📋 Active plan: {workflow} ({progress}% complete). Use *plan-status for details.'
|
|
133
|
-
- 'If plan exists: Suggest next action based on plan progress'
|
|
134
131
|
- Assess user goal against available agents and workflows in this bundle
|
|
135
132
|
- If clear match to an agent's expertise, suggest transformation with *agent command
|
|
136
133
|
- If project-oriented, suggest *workflow-guidance to explore options
|
|
@@ -252,7 +249,6 @@ dependencies:
|
|
|
252
249
|
- bmad-kb.md
|
|
253
250
|
- elicitation-methods.md
|
|
254
251
|
utils:
|
|
255
|
-
- plan-management.md
|
|
256
252
|
- workflow-management.md
|
|
257
253
|
```
|
|
258
254
|
==================== END: .bmad-2d-phaser-game-dev/agents/bmad-orchestrator.md ====================
|
|
@@ -3374,228 +3370,6 @@ The update is successful when:
|
|
|
3374
3370
|
- Prepare to continue without additional elicitation
|
|
3375
3371
|
==================== END: .bmad-2d-phaser-game-dev/data/elicitation-methods.md ====================
|
|
3376
3372
|
|
|
3377
|
-
==================== START: .bmad-2d-phaser-game-dev/utils/plan-management.md ====================
|
|
3378
|
-
# Plan Management Utility
|
|
3379
|
-
|
|
3380
|
-
## Purpose
|
|
3381
|
-
|
|
3382
|
-
Provides utilities for agents and tasks to interact with workflow plans, check progress, update status, and ensure workflow steps are executed in the appropriate sequence.
|
|
3383
|
-
|
|
3384
|
-
## Core Functions
|
|
3385
|
-
|
|
3386
|
-
### 1. Check Plan Existence
|
|
3387
|
-
|
|
3388
|
-
Check for workflow plan:
|
|
3389
|
-
|
|
3390
|
-
1. Look for docs/workflow-plan.md (default location)
|
|
3391
|
-
2. Return plan status to user (exists/not exists) - if not exists then HALT.
|
|
3392
|
-
|
|
3393
|
-
### 2. Parse Plan Status
|
|
3394
|
-
|
|
3395
|
-
[[LLM: Extract current progress from the plan document]]
|
|
3396
|
-
|
|
3397
|
-
**Plan Parsing Logic:**
|
|
3398
|
-
|
|
3399
|
-
1. **Identify Step Structure**:
|
|
3400
|
-
- Look for checkbox lines: `- [ ]` or `- [x]`
|
|
3401
|
-
- Extract step IDs from comments: `<!-- step-id: X.Y -->`
|
|
3402
|
-
- Identify agent assignments: `<!-- agent: pm -->`
|
|
3403
|
-
|
|
3404
|
-
2. **Determine Current State**:
|
|
3405
|
-
- Last completed step (highest numbered `[x]`)
|
|
3406
|
-
- Next expected step (first `[ ]` after completed steps)
|
|
3407
|
-
- Overall progress percentage
|
|
3408
|
-
|
|
3409
|
-
3. **Extract Metadata**:
|
|
3410
|
-
- Workflow type from plan header
|
|
3411
|
-
- Decision points and their status
|
|
3412
|
-
- Any deviation notes
|
|
3413
|
-
|
|
3414
|
-
### 3. Sequence Validation
|
|
3415
|
-
|
|
3416
|
-
[[LLM: Check if requested action aligns with plan sequence]]
|
|
3417
|
-
|
|
3418
|
-
**Validation Rules:**
|
|
3419
|
-
|
|
3420
|
-
1. **Strict Mode** (enforceSequence: true):
|
|
3421
|
-
- Must complete steps in exact order
|
|
3422
|
-
- Warn and block if out of sequence
|
|
3423
|
-
- Require explicit override justification
|
|
3424
|
-
|
|
3425
|
-
2. **Flexible Mode** (enforceSequence: false):
|
|
3426
|
-
- Warn about sequence deviation
|
|
3427
|
-
- Allow with confirmation
|
|
3428
|
-
- Log deviation reason
|
|
3429
|
-
|
|
3430
|
-
**Warning Templates:**
|
|
3431
|
-
|
|
3432
|
-
```text
|
|
3433
|
-
SEQUENCE WARNING:
|
|
3434
|
-
The workflow plan shows you should complete "{expected_step}" next.
|
|
3435
|
-
You're attempting to: "{requested_action}"
|
|
3436
|
-
|
|
3437
|
-
In strict mode: Block and require plan update
|
|
3438
|
-
In flexible mode: Allow with confirmation
|
|
3439
|
-
```
|
|
3440
|
-
|
|
3441
|
-
### 4. Plan Update Operations
|
|
3442
|
-
|
|
3443
|
-
[[LLM: Provide consistent way to update plan progress]]
|
|
3444
|
-
|
|
3445
|
-
**Update Actions:**
|
|
3446
|
-
|
|
3447
|
-
1. **Mark Step Complete**:
|
|
3448
|
-
- Change `- [ ]` to `- [x]`
|
|
3449
|
-
- Add completion timestamp comment
|
|
3450
|
-
- Update any status metadata
|
|
3451
|
-
|
|
3452
|
-
2. **Add Deviation Note**:
|
|
3453
|
-
- Insert note explaining why sequence changed
|
|
3454
|
-
- Reference the deviation in plan
|
|
3455
|
-
|
|
3456
|
-
3. **Update Current Step Pointer**:
|
|
3457
|
-
- Add/move `<!-- current-step -->` marker
|
|
3458
|
-
- Update last-modified timestamp
|
|
3459
|
-
|
|
3460
|
-
### 5. Integration Instructions
|
|
3461
|
-
|
|
3462
|
-
[[LLM: How agents and tasks should use this utility]]
|
|
3463
|
-
|
|
3464
|
-
**For Agents (startup sequence)**:
|
|
3465
|
-
|
|
3466
|
-
```text
|
|
3467
|
-
1. Check if plan exists using this utility
|
|
3468
|
-
2. If exists:
|
|
3469
|
-
- Parse current status
|
|
3470
|
-
- Show user: "Active workflow plan detected. Current step: {X}"
|
|
3471
|
-
- Suggest: "Next recommended action: {next_step}"
|
|
3472
|
-
3. Continue with normal startup
|
|
3473
|
-
```
|
|
3474
|
-
|
|
3475
|
-
**For Tasks (pre-execution)**:
|
|
3476
|
-
|
|
3477
|
-
```text
|
|
3478
|
-
1. Check if plan exists
|
|
3479
|
-
2. If exists:
|
|
3480
|
-
- Verify this task aligns with plan
|
|
3481
|
-
- If not aligned:
|
|
3482
|
-
- In strict mode: Show warning and stop
|
|
3483
|
-
- In flexible mode: Show warning and ask for confirmation
|
|
3484
|
-
3. After task completion:
|
|
3485
|
-
- Update plan if task was a planned step
|
|
3486
|
-
- Add note if task was unplanned
|
|
3487
|
-
```
|
|
3488
|
-
|
|
3489
|
-
### 6. Plan Status Report Format
|
|
3490
|
-
|
|
3491
|
-
[[LLM: Standard format for showing plan status]]
|
|
3492
|
-
|
|
3493
|
-
```text
|
|
3494
|
-
📋 Workflow Plan Status
|
|
3495
|
-
━━━━━━━━━━━━━━━━━━━━
|
|
3496
|
-
Workflow: {workflow_name}
|
|
3497
|
-
Progress: {X}% complete ({completed}/{total} steps)
|
|
3498
|
-
|
|
3499
|
-
✅ Completed:
|
|
3500
|
-
- {completed_step_1}
|
|
3501
|
-
- {completed_step_2}
|
|
3502
|
-
|
|
3503
|
-
🔄 Current Step:
|
|
3504
|
-
- {current_step_description}
|
|
3505
|
-
|
|
3506
|
-
📌 Upcoming:
|
|
3507
|
-
- {next_step_1}
|
|
3508
|
-
- {next_step_2}
|
|
3509
|
-
|
|
3510
|
-
⚠️ Notes:
|
|
3511
|
-
- {any_deviations_or_notes}
|
|
3512
|
-
```
|
|
3513
|
-
|
|
3514
|
-
### 7. Decision Point Handling
|
|
3515
|
-
|
|
3516
|
-
[[LLM: Special handling for workflow decision points]]
|
|
3517
|
-
|
|
3518
|
-
When encountering a decision point in the plan:
|
|
3519
|
-
|
|
3520
|
-
1. **Identify Decision Marker**: `<!-- decision: {decision_id} -->`
|
|
3521
|
-
2. **Check Decision Status**: Made/Pending
|
|
3522
|
-
3. **If Pending**:
|
|
3523
|
-
- Block progress until decision made
|
|
3524
|
-
- Show options to user
|
|
3525
|
-
- Record decision when made
|
|
3526
|
-
4. **If Made**:
|
|
3527
|
-
- Verify current path aligns with decision
|
|
3528
|
-
- Warn if attempting alternate path
|
|
3529
|
-
|
|
3530
|
-
### 8. Plan Abandonment
|
|
3531
|
-
|
|
3532
|
-
[[LLM: Graceful handling when user wants to stop following plan]]
|
|
3533
|
-
|
|
3534
|
-
If user wants to abandon plan:
|
|
3535
|
-
|
|
3536
|
-
1. Confirm abandonment intent
|
|
3537
|
-
2. Add abandonment note to plan
|
|
3538
|
-
3. Mark plan as "Abandoned" in header
|
|
3539
|
-
4. Stop plan checking for remainder of session
|
|
3540
|
-
5. Suggest creating new plan if needed
|
|
3541
|
-
|
|
3542
|
-
## Usage Examples
|
|
3543
|
-
|
|
3544
|
-
### Example 1: Agent Startup Check
|
|
3545
|
-
|
|
3546
|
-
```text
|
|
3547
|
-
BMad Master starting...
|
|
3548
|
-
|
|
3549
|
-
[Check for plan]
|
|
3550
|
-
Found active workflow plan: brownfield-fullstack
|
|
3551
|
-
Progress: 40% complete (4/10 steps)
|
|
3552
|
-
Current step: Create PRD (pm agent)
|
|
3553
|
-
|
|
3554
|
-
Suggestion: Based on your plan, you should work with the PM agent next.
|
|
3555
|
-
Use *agent pm to switch, or *plan-status to see full progress.
|
|
3556
|
-
```
|
|
3557
|
-
|
|
3558
|
-
### Example 2: Task Sequence Warning
|
|
3559
|
-
|
|
3560
|
-
```text
|
|
3561
|
-
User: *task create-next-story
|
|
3562
|
-
|
|
3563
|
-
[Plan check triggered]
|
|
3564
|
-
⚠️ SEQUENCE WARNING:
|
|
3565
|
-
Your workflow plan indicates the PRD hasn't been created yet.
|
|
3566
|
-
Creating stories before the PRD may lead to incomplete requirements.
|
|
3567
|
-
|
|
3568
|
-
Would you like to:
|
|
3569
|
-
1. Continue anyway (will note deviation in plan)
|
|
3570
|
-
2. Switch to creating PRD first (*agent pm)
|
|
3571
|
-
3. View plan status (*plan-status)
|
|
3572
|
-
```
|
|
3573
|
-
|
|
3574
|
-
### Example 3: Automatic Plan Update
|
|
3575
|
-
|
|
3576
|
-
```text
|
|
3577
|
-
[After completing create-doc task for PRD]
|
|
3578
|
-
|
|
3579
|
-
✅ Plan Updated: Marked "Create PRD" as complete
|
|
3580
|
-
📍 Next step: Create Architecture Document (architect agent)
|
|
3581
|
-
```
|
|
3582
|
-
|
|
3583
|
-
## Implementation Notes
|
|
3584
|
-
|
|
3585
|
-
- This utility should be lightweight and fast
|
|
3586
|
-
- Plan parsing should be resilient to format variations
|
|
3587
|
-
- Always preserve user agency - warnings not blocks (unless strict mode)
|
|
3588
|
-
- Plan updates should be atomic to prevent corruption
|
|
3589
|
-
- Consider plan versioning for rollback capability
|
|
3590
|
-
|
|
3591
|
-
## Error Handling
|
|
3592
|
-
|
|
3593
|
-
- Missing plan: Return null, don't error
|
|
3594
|
-
- Malformed plan: Warn but continue, treat as no plan
|
|
3595
|
-
- Update failures: Log but don't block task completion
|
|
3596
|
-
- Parse errors: Fallback to basic text search
|
|
3597
|
-
==================== END: .bmad-2d-phaser-game-dev/utils/plan-management.md ====================
|
|
3598
|
-
|
|
3599
3373
|
==================== START: .bmad-2d-phaser-game-dev/utils/workflow-management.md ====================
|
|
3600
3374
|
# Workflow Management
|
|
3601
3375
|
|
package/dist/teams/team-all.txt
CHANGED
|
@@ -64,9 +64,6 @@ CRITICAL: Read the full YAML, start activation to alter your state of being, fol
|
|
|
64
64
|
```yaml
|
|
65
65
|
activation-instructions:
|
|
66
66
|
- Mention *help shows all available commands and options
|
|
67
|
-
- Check for active workflow plan using .bmad-core/utils/plan-management.md
|
|
68
|
-
- 'If plan exists: Show 📋 Active plan: {workflow} ({progress}% complete). Use *plan-status for details.'
|
|
69
|
-
- 'If plan exists: Suggest next action based on plan progress'
|
|
70
67
|
- Assess user goal against available agents and workflows in this bundle
|
|
71
68
|
- If clear match to an agent's expertise, suggest transformation with *agent command
|
|
72
69
|
- If project-oriented, suggest *workflow-guidance to explore options
|
|
@@ -188,7 +185,6 @@ dependencies:
|
|
|
188
185
|
- bmad-kb.md
|
|
189
186
|
- elicitation-methods.md
|
|
190
187
|
utils:
|
|
191
|
-
- plan-management.md
|
|
192
188
|
- workflow-management.md
|
|
193
189
|
```
|
|
194
190
|
==================== END: .bmad-core/agents/bmad-orchestrator.md ====================
|
|
@@ -2188,7 +2184,7 @@ For full details, see `CONTRIBUTING.md`. Key points:
|
|
|
2188
2184
|
- Atomic commits - one logical change per commit
|
|
2189
2185
|
- Must align with guiding principles
|
|
2190
2186
|
|
|
2191
|
-
**Core Principles** (from GUIDING-PRINCIPLES.md):
|
|
2187
|
+
**Core Principles** (from docs/GUIDING-PRINCIPLES.md):
|
|
2192
2188
|
|
|
2193
2189
|
- **Dev Agents Must Be Lean**: Minimize dependencies, save context for code
|
|
2194
2190
|
- **Natural Language First**: Everything in markdown, no code in core
|
|
@@ -2258,8 +2254,8 @@ Use the **expansion-creator** pack to build your own:
|
|
|
2258
2254
|
|
|
2259
2255
|
## Getting Help
|
|
2260
2256
|
|
|
2261
|
-
- **Commands**: Use
|
|
2262
|
-
- **Agent Switching**: Use
|
|
2257
|
+
- **Commands**: Use `*/*help` in any environment to see available commands
|
|
2258
|
+
- **Agent Switching**: Use `*/*switch agent-name` with orchestrator for role changes
|
|
2263
2259
|
- **Documentation**: Check `docs/` folder for project-specific context
|
|
2264
2260
|
- **Community**: Discord and GitHub resources available for support
|
|
2265
2261
|
- **Contributing**: See `CONTRIBUTING.md` for full guidelines
|
|
@@ -2402,228 +2398,6 @@ Use the **expansion-creator** pack to build your own:
|
|
|
2402
2398
|
- Prepare to continue without additional elicitation
|
|
2403
2399
|
==================== END: .bmad-core/data/elicitation-methods.md ====================
|
|
2404
2400
|
|
|
2405
|
-
==================== START: .bmad-core/utils/plan-management.md ====================
|
|
2406
|
-
# Plan Management Utility
|
|
2407
|
-
|
|
2408
|
-
## Purpose
|
|
2409
|
-
|
|
2410
|
-
Provides utilities for agents and tasks to interact with workflow plans, check progress, update status, and ensure workflow steps are executed in the appropriate sequence.
|
|
2411
|
-
|
|
2412
|
-
## Core Functions
|
|
2413
|
-
|
|
2414
|
-
### 1. Check Plan Existence
|
|
2415
|
-
|
|
2416
|
-
Check for workflow plan:
|
|
2417
|
-
|
|
2418
|
-
1. Look for docs/workflow-plan.md (default location)
|
|
2419
|
-
2. Return plan status to user (exists/not exists) - if not exists then HALT.
|
|
2420
|
-
|
|
2421
|
-
### 2. Parse Plan Status
|
|
2422
|
-
|
|
2423
|
-
[[LLM: Extract current progress from the plan document]]
|
|
2424
|
-
|
|
2425
|
-
**Plan Parsing Logic:**
|
|
2426
|
-
|
|
2427
|
-
1. **Identify Step Structure**:
|
|
2428
|
-
- Look for checkbox lines: `- [ ]` or `- [x]`
|
|
2429
|
-
- Extract step IDs from comments: `<!-- step-id: X.Y -->`
|
|
2430
|
-
- Identify agent assignments: `<!-- agent: pm -->`
|
|
2431
|
-
|
|
2432
|
-
2. **Determine Current State**:
|
|
2433
|
-
- Last completed step (highest numbered `[x]`)
|
|
2434
|
-
- Next expected step (first `[ ]` after completed steps)
|
|
2435
|
-
- Overall progress percentage
|
|
2436
|
-
|
|
2437
|
-
3. **Extract Metadata**:
|
|
2438
|
-
- Workflow type from plan header
|
|
2439
|
-
- Decision points and their status
|
|
2440
|
-
- Any deviation notes
|
|
2441
|
-
|
|
2442
|
-
### 3. Sequence Validation
|
|
2443
|
-
|
|
2444
|
-
[[LLM: Check if requested action aligns with plan sequence]]
|
|
2445
|
-
|
|
2446
|
-
**Validation Rules:**
|
|
2447
|
-
|
|
2448
|
-
1. **Strict Mode** (enforceSequence: true):
|
|
2449
|
-
- Must complete steps in exact order
|
|
2450
|
-
- Warn and block if out of sequence
|
|
2451
|
-
- Require explicit override justification
|
|
2452
|
-
|
|
2453
|
-
2. **Flexible Mode** (enforceSequence: false):
|
|
2454
|
-
- Warn about sequence deviation
|
|
2455
|
-
- Allow with confirmation
|
|
2456
|
-
- Log deviation reason
|
|
2457
|
-
|
|
2458
|
-
**Warning Templates:**
|
|
2459
|
-
|
|
2460
|
-
```text
|
|
2461
|
-
SEQUENCE WARNING:
|
|
2462
|
-
The workflow plan shows you should complete "{expected_step}" next.
|
|
2463
|
-
You're attempting to: "{requested_action}"
|
|
2464
|
-
|
|
2465
|
-
In strict mode: Block and require plan update
|
|
2466
|
-
In flexible mode: Allow with confirmation
|
|
2467
|
-
```
|
|
2468
|
-
|
|
2469
|
-
### 4. Plan Update Operations
|
|
2470
|
-
|
|
2471
|
-
[[LLM: Provide consistent way to update plan progress]]
|
|
2472
|
-
|
|
2473
|
-
**Update Actions:**
|
|
2474
|
-
|
|
2475
|
-
1. **Mark Step Complete**:
|
|
2476
|
-
- Change `- [ ]` to `- [x]`
|
|
2477
|
-
- Add completion timestamp comment
|
|
2478
|
-
- Update any status metadata
|
|
2479
|
-
|
|
2480
|
-
2. **Add Deviation Note**:
|
|
2481
|
-
- Insert note explaining why sequence changed
|
|
2482
|
-
- Reference the deviation in plan
|
|
2483
|
-
|
|
2484
|
-
3. **Update Current Step Pointer**:
|
|
2485
|
-
- Add/move `<!-- current-step -->` marker
|
|
2486
|
-
- Update last-modified timestamp
|
|
2487
|
-
|
|
2488
|
-
### 5. Integration Instructions
|
|
2489
|
-
|
|
2490
|
-
[[LLM: How agents and tasks should use this utility]]
|
|
2491
|
-
|
|
2492
|
-
**For Agents (startup sequence)**:
|
|
2493
|
-
|
|
2494
|
-
```text
|
|
2495
|
-
1. Check if plan exists using this utility
|
|
2496
|
-
2. If exists:
|
|
2497
|
-
- Parse current status
|
|
2498
|
-
- Show user: "Active workflow plan detected. Current step: {X}"
|
|
2499
|
-
- Suggest: "Next recommended action: {next_step}"
|
|
2500
|
-
3. Continue with normal startup
|
|
2501
|
-
```
|
|
2502
|
-
|
|
2503
|
-
**For Tasks (pre-execution)**:
|
|
2504
|
-
|
|
2505
|
-
```text
|
|
2506
|
-
1. Check if plan exists
|
|
2507
|
-
2. If exists:
|
|
2508
|
-
- Verify this task aligns with plan
|
|
2509
|
-
- If not aligned:
|
|
2510
|
-
- In strict mode: Show warning and stop
|
|
2511
|
-
- In flexible mode: Show warning and ask for confirmation
|
|
2512
|
-
3. After task completion:
|
|
2513
|
-
- Update plan if task was a planned step
|
|
2514
|
-
- Add note if task was unplanned
|
|
2515
|
-
```
|
|
2516
|
-
|
|
2517
|
-
### 6. Plan Status Report Format
|
|
2518
|
-
|
|
2519
|
-
[[LLM: Standard format for showing plan status]]
|
|
2520
|
-
|
|
2521
|
-
```text
|
|
2522
|
-
📋 Workflow Plan Status
|
|
2523
|
-
━━━━━━━━━━━━━━━━━━━━
|
|
2524
|
-
Workflow: {workflow_name}
|
|
2525
|
-
Progress: {X}% complete ({completed}/{total} steps)
|
|
2526
|
-
|
|
2527
|
-
✅ Completed:
|
|
2528
|
-
- {completed_step_1}
|
|
2529
|
-
- {completed_step_2}
|
|
2530
|
-
|
|
2531
|
-
🔄 Current Step:
|
|
2532
|
-
- {current_step_description}
|
|
2533
|
-
|
|
2534
|
-
📌 Upcoming:
|
|
2535
|
-
- {next_step_1}
|
|
2536
|
-
- {next_step_2}
|
|
2537
|
-
|
|
2538
|
-
⚠️ Notes:
|
|
2539
|
-
- {any_deviations_or_notes}
|
|
2540
|
-
```
|
|
2541
|
-
|
|
2542
|
-
### 7. Decision Point Handling
|
|
2543
|
-
|
|
2544
|
-
[[LLM: Special handling for workflow decision points]]
|
|
2545
|
-
|
|
2546
|
-
When encountering a decision point in the plan:
|
|
2547
|
-
|
|
2548
|
-
1. **Identify Decision Marker**: `<!-- decision: {decision_id} -->`
|
|
2549
|
-
2. **Check Decision Status**: Made/Pending
|
|
2550
|
-
3. **If Pending**:
|
|
2551
|
-
- Block progress until decision made
|
|
2552
|
-
- Show options to user
|
|
2553
|
-
- Record decision when made
|
|
2554
|
-
4. **If Made**:
|
|
2555
|
-
- Verify current path aligns with decision
|
|
2556
|
-
- Warn if attempting alternate path
|
|
2557
|
-
|
|
2558
|
-
### 8. Plan Abandonment
|
|
2559
|
-
|
|
2560
|
-
[[LLM: Graceful handling when user wants to stop following plan]]
|
|
2561
|
-
|
|
2562
|
-
If user wants to abandon plan:
|
|
2563
|
-
|
|
2564
|
-
1. Confirm abandonment intent
|
|
2565
|
-
2. Add abandonment note to plan
|
|
2566
|
-
3. Mark plan as "Abandoned" in header
|
|
2567
|
-
4. Stop plan checking for remainder of session
|
|
2568
|
-
5. Suggest creating new plan if needed
|
|
2569
|
-
|
|
2570
|
-
## Usage Examples
|
|
2571
|
-
|
|
2572
|
-
### Example 1: Agent Startup Check
|
|
2573
|
-
|
|
2574
|
-
```text
|
|
2575
|
-
BMad Master starting...
|
|
2576
|
-
|
|
2577
|
-
[Check for plan]
|
|
2578
|
-
Found active workflow plan: brownfield-fullstack
|
|
2579
|
-
Progress: 40% complete (4/10 steps)
|
|
2580
|
-
Current step: Create PRD (pm agent)
|
|
2581
|
-
|
|
2582
|
-
Suggestion: Based on your plan, you should work with the PM agent next.
|
|
2583
|
-
Use *agent pm to switch, or *plan-status to see full progress.
|
|
2584
|
-
```
|
|
2585
|
-
|
|
2586
|
-
### Example 2: Task Sequence Warning
|
|
2587
|
-
|
|
2588
|
-
```text
|
|
2589
|
-
User: *task create-next-story
|
|
2590
|
-
|
|
2591
|
-
[Plan check triggered]
|
|
2592
|
-
⚠️ SEQUENCE WARNING:
|
|
2593
|
-
Your workflow plan indicates the PRD hasn't been created yet.
|
|
2594
|
-
Creating stories before the PRD may lead to incomplete requirements.
|
|
2595
|
-
|
|
2596
|
-
Would you like to:
|
|
2597
|
-
1. Continue anyway (will note deviation in plan)
|
|
2598
|
-
2. Switch to creating PRD first (*agent pm)
|
|
2599
|
-
3. View plan status (*plan-status)
|
|
2600
|
-
```
|
|
2601
|
-
|
|
2602
|
-
### Example 3: Automatic Plan Update
|
|
2603
|
-
|
|
2604
|
-
```text
|
|
2605
|
-
[After completing create-doc task for PRD]
|
|
2606
|
-
|
|
2607
|
-
✅ Plan Updated: Marked "Create PRD" as complete
|
|
2608
|
-
📍 Next step: Create Architecture Document (architect agent)
|
|
2609
|
-
```
|
|
2610
|
-
|
|
2611
|
-
## Implementation Notes
|
|
2612
|
-
|
|
2613
|
-
- This utility should be lightweight and fast
|
|
2614
|
-
- Plan parsing should be resilient to format variations
|
|
2615
|
-
- Always preserve user agency - warnings not blocks (unless strict mode)
|
|
2616
|
-
- Plan updates should be atomic to prevent corruption
|
|
2617
|
-
- Consider plan versioning for rollback capability
|
|
2618
|
-
|
|
2619
|
-
## Error Handling
|
|
2620
|
-
|
|
2621
|
-
- Missing plan: Return null, don't error
|
|
2622
|
-
- Malformed plan: Warn but continue, treat as no plan
|
|
2623
|
-
- Update failures: Log but don't block task completion
|
|
2624
|
-
- Parse errors: Fallback to basic text search
|
|
2625
|
-
==================== END: .bmad-core/utils/plan-management.md ====================
|
|
2626
|
-
|
|
2627
2401
|
==================== START: .bmad-core/utils/workflow-management.md ====================
|
|
2628
2402
|
# Workflow Management
|
|
2629
2403
|
|
|
@@ -7140,7 +6914,7 @@ To comprehensively validate a story draft before implementation begins, ensuring
|
|
|
7140
6914
|
|
|
7141
6915
|
### 0. Load Core Configuration and Inputs
|
|
7142
6916
|
|
|
7143
|
-
- Load `.bmad-core/core-config.yaml`
|
|
6917
|
+
- Load `.bmad-core/core-config.yaml`
|
|
7144
6918
|
- If the file does not exist, HALT and inform the user: "core-config.yaml not found. This file is required for story validation."
|
|
7145
6919
|
- Extract key configurations: `devStoryLocation`, `prd.*`, `architecture.*`
|
|
7146
6920
|
- Identify and load the following inputs:
|
|
@@ -9750,7 +9524,6 @@ To identify the next logical story based on project progress and epic definition
|
|
|
9750
9524
|
- Load `.bmad-core/core-config.yaml` from the project root
|
|
9751
9525
|
- If the file does not exist, HALT and inform the user: "core-config.yaml not found. This file is required for story creation. You can either: 1) Copy it from GITHUB bmad-core/core-config.yaml and configure it for your project OR 2) Run the BMad installer against your project to upgrade and add the file automatically. Please add and configure core-config.yaml before proceeding."
|
|
9752
9526
|
- Extract key configurations: `devStoryLocation`, `prd.*`, `architecture.*`, `workflow.*`
|
|
9753
|
-
- If `workflow.trackProgress: true`, use `utils/plan-management.md` to check plan sequence and warn if out of order
|
|
9754
9527
|
|
|
9755
9528
|
### 1. Identify Next Story for Preparation
|
|
9756
9529
|
|
|
@@ -10603,7 +10376,7 @@ workflow:
|
|
|
10603
10376
|
All stories implemented and reviewed!
|
|
10604
10377
|
Project development phase complete.
|
|
10605
10378
|
|
|
10606
|
-
Reference: data
|
|
10379
|
+
Reference: .bmad-core/data/bmad-kb.md#IDE Development Workflow
|
|
10607
10380
|
|
|
10608
10381
|
flow_diagram: |
|
|
10609
10382
|
```mermaid
|
|
@@ -10849,7 +10622,7 @@ workflow:
|
|
|
10849
10622
|
All stories implemented and reviewed!
|
|
10850
10623
|
Project development phase complete.
|
|
10851
10624
|
|
|
10852
|
-
Reference: data
|
|
10625
|
+
Reference: .bmad-core/data/bmad-kb.md#IDE Development Workflow
|
|
10853
10626
|
|
|
10854
10627
|
flow_diagram: |
|
|
10855
10628
|
```mermaid
|
|
@@ -11046,7 +10819,7 @@ workflow:
|
|
|
11046
10819
|
All stories implemented and reviewed!
|
|
11047
10820
|
Project development phase complete.
|
|
11048
10821
|
|
|
11049
|
-
Reference: data
|
|
10822
|
+
Reference: .bmad-core/data/bmad-kb.md#IDE Development Workflow
|
|
11050
10823
|
|
|
11051
10824
|
flow_diagram: |
|
|
11052
10825
|
```mermaid
|
|
@@ -11271,7 +11044,7 @@ workflow:
|
|
|
11271
11044
|
All stories implemented and reviewed!
|
|
11272
11045
|
Project development phase complete.
|
|
11273
11046
|
|
|
11274
|
-
Reference: data
|
|
11047
|
+
Reference: .bmad-core/data/bmad-kb.md#IDE Development Workflow
|
|
11275
11048
|
|
|
11276
11049
|
flow_diagram: |
|
|
11277
11050
|
```mermaid
|
|
@@ -11718,7 +11491,7 @@ workflow:
|
|
|
11718
11491
|
All stories implemented and reviewed!
|
|
11719
11492
|
Project development phase complete.
|
|
11720
11493
|
|
|
11721
|
-
Reference: data
|
|
11494
|
+
Reference: .bmad-core/data/bmad-kb.md#IDE Development Workflow
|
|
11722
11495
|
|
|
11723
11496
|
flow_diagram: |
|
|
11724
11497
|
```mermaid
|