bmad-method 4.27.4 → 4.27.6
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/CONTRIBUTING.md +2 -2
- package/bmad-core/agents/analyst.md +3 -4
- package/bmad-core/agents/architect.md +3 -4
- package/bmad-core/agents/bmad-master.md +9 -32
- 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/data/bmad-kb.md +3 -3
- 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/{GUIDING-PRINCIPLES.md → docs/GUIDING-PRINCIPLES.md} +19 -13
- package/docs/template-markup-references.md +86 -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/expansion-packs/bmad-infrastructure-devops/data/bmad-kb.md +307 -2
- package/package.json +1 -1
- package/tools/installer/bin/bmad.js +83 -0
- package/tools/installer/lib/file-manager.js +105 -2
- package/tools/installer/lib/ide-setup.js +41 -33
- package/tools/installer/lib/installer.js +62 -26
- package/tools/installer/package.json +1 -1
- package/bmad-core/utils/plan-management.md +0 -219
|
@@ -47,50 +47,31 @@ CRITICAL: Read the full YAML, start activation to alter your state of being, fol
|
|
|
47
47
|
```yaml
|
|
48
48
|
activation-instructions:
|
|
49
49
|
- Greet the user with your name and role, and inform of the *help command.
|
|
50
|
-
- Check for active workflow plan using the utils plan-management
|
|
51
50
|
agent:
|
|
52
51
|
name: BMad Master
|
|
53
52
|
id: bmad-master
|
|
54
53
|
title: BMad Master Task Executor
|
|
55
54
|
icon: 🧙
|
|
56
|
-
whenToUse: Use when you need comprehensive expertise across all domains or
|
|
55
|
+
whenToUse: Use when you need comprehensive expertise across all domains, running 1 off tasks that do not require a persona, or just wanting to use the same agent for many things.
|
|
57
56
|
persona:
|
|
58
57
|
role: Master Task Executor & BMad Method Expert
|
|
59
|
-
style: Efficient, direct, action-oriented. Executes any BMad task/template/util/checklist with precision
|
|
60
58
|
identity: Universal executor of all BMad-Method capabilities, directly runs any resource
|
|
61
|
-
focus: Direct execution without transformation, load resources only when needed
|
|
62
59
|
core_principles:
|
|
63
60
|
- Execute any resource directly without persona transformation
|
|
64
61
|
- Load resources at runtime, never pre-load
|
|
65
|
-
- Expert knowledge of all BMad resources
|
|
66
|
-
-
|
|
67
|
-
- Use numbered lists for choices
|
|
62
|
+
- Expert knowledge of all BMad resources if using *kb
|
|
63
|
+
- Always presents numbered lists for choices
|
|
68
64
|
- Process (*) commands immediately, All commands require * prefix when used (e.g., *help)
|
|
69
65
|
commands:
|
|
70
66
|
- help: Show these listed commands in a numbered list
|
|
71
|
-
- kb: Toggle KB mode off (default) or on, when on will load and reference the data/bmad-kb and converse with the user answering his questions with this informational resource
|
|
67
|
+
- kb: Toggle KB mode off (default) or on, when on will load and reference the data/bmad-kb.md and converse with the user answering his questions with this informational resource
|
|
72
68
|
- task {task}: Execute task, if not found or none specified, ONLY list available dependencies/tasks listed below
|
|
73
|
-
- list {task|template|util|checklist|workflow}: List resources by type ONLY from the corresponding dependencies sub item below
|
|
74
69
|
- create-doc {template}: execute task create-doc (no template = ONLY show available templates listed under dependencies/templates below)
|
|
75
|
-
- create-prd-alpha: Execute task create-doc2 with .bmad-core/templates/prd-tmpl2.yaml (EXPERIMENTAL)
|
|
76
70
|
- execute-checklist {checklist}: Run task execute-checklist (no checklist = ONLY show available checklists listed under dependencies/checklist below)
|
|
77
71
|
- shard-doc {document} {destination}: run the task shard-doc against the optionally provided document to the specified destination
|
|
78
|
-
- plan: Execute the task Create workflow plan
|
|
79
|
-
- plan-status: Show current workflow plan progress
|
|
80
|
-
- plan-update: Update workflow plan status
|
|
81
72
|
- yolo: Toggle Yolo Mode
|
|
82
73
|
- doc-out: Output full document to current destination file
|
|
83
74
|
- exit: Exit (confirm)
|
|
84
|
-
workflow-guidance:
|
|
85
|
-
- When user asks about workflows, offer: (Experimental-Feature) Would you like me to create a workflow plan first? (*plan)
|
|
86
|
-
- For complex projects, suggest planning before execution
|
|
87
|
-
- Plan command maps to create-workflow-plan task
|
|
88
|
-
execution:
|
|
89
|
-
- NEVER use tools during startup - only announce and wait
|
|
90
|
-
- Runtime discovery ONLY when user requests specific resources
|
|
91
|
-
- Workflow: User request → Runtime discovery → Load resource → Execute instructions → Guide inputs → Provide feedback
|
|
92
|
-
- For workflow requests: Suggest *plan command first for complex projects
|
|
93
|
-
- Suggest related resources after completion
|
|
94
75
|
dependencies:
|
|
95
76
|
tasks:
|
|
96
77
|
- advanced-elicitation.md
|
|
@@ -125,9 +106,6 @@ dependencies:
|
|
|
125
106
|
- brainstorming-techniques.md
|
|
126
107
|
- elicitation-methods.md
|
|
127
108
|
- technical-preferences.md
|
|
128
|
-
utils:
|
|
129
|
-
- plan-management.md
|
|
130
|
-
- workflow-management.md
|
|
131
109
|
workflows:
|
|
132
110
|
- brownfield-fullstack.md
|
|
133
111
|
- brownfield-service.md
|
|
@@ -1805,7 +1783,6 @@ To identify the next logical story based on project progress and epic definition
|
|
|
1805
1783
|
- Load `.bmad-core/core-config.yaml` from the project root
|
|
1806
1784
|
- 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."
|
|
1807
1785
|
- Extract key configurations: `devStoryLocation`, `prd.*`, `architecture.*`, `workflow.*`
|
|
1808
|
-
- If `workflow.trackProgress: true`, use `utils/plan-management.md` to check plan sequence and warn if out of order
|
|
1809
1786
|
|
|
1810
1787
|
### 1. Identify Next Story for Preparation
|
|
1811
1788
|
|
|
@@ -9034,7 +9011,7 @@ For full details, see `CONTRIBUTING.md`. Key points:
|
|
|
9034
9011
|
- Atomic commits - one logical change per commit
|
|
9035
9012
|
- Must align with guiding principles
|
|
9036
9013
|
|
|
9037
|
-
**Core Principles** (from GUIDING-PRINCIPLES.md):
|
|
9014
|
+
**Core Principles** (from docs/GUIDING-PRINCIPLES.md):
|
|
9038
9015
|
|
|
9039
9016
|
- **Dev Agents Must Be Lean**: Minimize dependencies, save context for code
|
|
9040
9017
|
- **Natural Language First**: Everything in markdown, no code in core
|
|
@@ -9104,8 +9081,8 @@ Use the **expansion-creator** pack to build your own:
|
|
|
9104
9081
|
|
|
9105
9082
|
## Getting Help
|
|
9106
9083
|
|
|
9107
|
-
- **Commands**: Use
|
|
9108
|
-
- **Agent Switching**: Use
|
|
9084
|
+
- **Commands**: Use `*/*help` in any environment to see available commands
|
|
9085
|
+
- **Agent Switching**: Use `*/*switch agent-name` with orchestrator for role changes
|
|
9109
9086
|
- **Documentation**: Check `docs/` folder for project-specific context
|
|
9110
9087
|
- **Community**: Discord and GitHub resources available for support
|
|
9111
9088
|
- **Contributing**: See `CONTRIBUTING.md` for full guidelines
|
|
@@ -9292,297 +9269,3 @@ Use the **expansion-creator** pack to build your own:
|
|
|
9292
9269
|
|
|
9293
9270
|
None Listed
|
|
9294
9271
|
==================== END: .bmad-core/data/technical-preferences.md ====================
|
|
9295
|
-
|
|
9296
|
-
==================== START: .bmad-core/utils/plan-management.md ====================
|
|
9297
|
-
# Plan Management Utility
|
|
9298
|
-
|
|
9299
|
-
## Purpose
|
|
9300
|
-
|
|
9301
|
-
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.
|
|
9302
|
-
|
|
9303
|
-
## Core Functions
|
|
9304
|
-
|
|
9305
|
-
### 1. Check Plan Existence
|
|
9306
|
-
|
|
9307
|
-
Check for workflow plan:
|
|
9308
|
-
|
|
9309
|
-
1. Look for docs/workflow-plan.md (default location)
|
|
9310
|
-
2. Return plan status to user (exists/not exists) - if not exists then HALT.
|
|
9311
|
-
|
|
9312
|
-
### 2. Parse Plan Status
|
|
9313
|
-
|
|
9314
|
-
[[LLM: Extract current progress from the plan document]]
|
|
9315
|
-
|
|
9316
|
-
**Plan Parsing Logic:**
|
|
9317
|
-
|
|
9318
|
-
1. **Identify Step Structure**:
|
|
9319
|
-
- Look for checkbox lines: `- [ ]` or `- [x]`
|
|
9320
|
-
- Extract step IDs from comments: `<!-- step-id: X.Y -->`
|
|
9321
|
-
- Identify agent assignments: `<!-- agent: pm -->`
|
|
9322
|
-
|
|
9323
|
-
2. **Determine Current State**:
|
|
9324
|
-
- Last completed step (highest numbered `[x]`)
|
|
9325
|
-
- Next expected step (first `[ ]` after completed steps)
|
|
9326
|
-
- Overall progress percentage
|
|
9327
|
-
|
|
9328
|
-
3. **Extract Metadata**:
|
|
9329
|
-
- Workflow type from plan header
|
|
9330
|
-
- Decision points and their status
|
|
9331
|
-
- Any deviation notes
|
|
9332
|
-
|
|
9333
|
-
### 3. Sequence Validation
|
|
9334
|
-
|
|
9335
|
-
[[LLM: Check if requested action aligns with plan sequence]]
|
|
9336
|
-
|
|
9337
|
-
**Validation Rules:**
|
|
9338
|
-
|
|
9339
|
-
1. **Strict Mode** (enforceSequence: true):
|
|
9340
|
-
- Must complete steps in exact order
|
|
9341
|
-
- Warn and block if out of sequence
|
|
9342
|
-
- Require explicit override justification
|
|
9343
|
-
|
|
9344
|
-
2. **Flexible Mode** (enforceSequence: false):
|
|
9345
|
-
- Warn about sequence deviation
|
|
9346
|
-
- Allow with confirmation
|
|
9347
|
-
- Log deviation reason
|
|
9348
|
-
|
|
9349
|
-
**Warning Templates:**
|
|
9350
|
-
|
|
9351
|
-
```text
|
|
9352
|
-
SEQUENCE WARNING:
|
|
9353
|
-
The workflow plan shows you should complete "{expected_step}" next.
|
|
9354
|
-
You're attempting to: "{requested_action}"
|
|
9355
|
-
|
|
9356
|
-
In strict mode: Block and require plan update
|
|
9357
|
-
In flexible mode: Allow with confirmation
|
|
9358
|
-
```
|
|
9359
|
-
|
|
9360
|
-
### 4. Plan Update Operations
|
|
9361
|
-
|
|
9362
|
-
[[LLM: Provide consistent way to update plan progress]]
|
|
9363
|
-
|
|
9364
|
-
**Update Actions:**
|
|
9365
|
-
|
|
9366
|
-
1. **Mark Step Complete**:
|
|
9367
|
-
- Change `- [ ]` to `- [x]`
|
|
9368
|
-
- Add completion timestamp comment
|
|
9369
|
-
- Update any status metadata
|
|
9370
|
-
|
|
9371
|
-
2. **Add Deviation Note**:
|
|
9372
|
-
- Insert note explaining why sequence changed
|
|
9373
|
-
- Reference the deviation in plan
|
|
9374
|
-
|
|
9375
|
-
3. **Update Current Step Pointer**:
|
|
9376
|
-
- Add/move `<!-- current-step -->` marker
|
|
9377
|
-
- Update last-modified timestamp
|
|
9378
|
-
|
|
9379
|
-
### 5. Integration Instructions
|
|
9380
|
-
|
|
9381
|
-
[[LLM: How agents and tasks should use this utility]]
|
|
9382
|
-
|
|
9383
|
-
**For Agents (startup sequence)**:
|
|
9384
|
-
|
|
9385
|
-
```text
|
|
9386
|
-
1. Check if plan exists using this utility
|
|
9387
|
-
2. If exists:
|
|
9388
|
-
- Parse current status
|
|
9389
|
-
- Show user: "Active workflow plan detected. Current step: {X}"
|
|
9390
|
-
- Suggest: "Next recommended action: {next_step}"
|
|
9391
|
-
3. Continue with normal startup
|
|
9392
|
-
```
|
|
9393
|
-
|
|
9394
|
-
**For Tasks (pre-execution)**:
|
|
9395
|
-
|
|
9396
|
-
```text
|
|
9397
|
-
1. Check if plan exists
|
|
9398
|
-
2. If exists:
|
|
9399
|
-
- Verify this task aligns with plan
|
|
9400
|
-
- If not aligned:
|
|
9401
|
-
- In strict mode: Show warning and stop
|
|
9402
|
-
- In flexible mode: Show warning and ask for confirmation
|
|
9403
|
-
3. After task completion:
|
|
9404
|
-
- Update plan if task was a planned step
|
|
9405
|
-
- Add note if task was unplanned
|
|
9406
|
-
```
|
|
9407
|
-
|
|
9408
|
-
### 6. Plan Status Report Format
|
|
9409
|
-
|
|
9410
|
-
[[LLM: Standard format for showing plan status]]
|
|
9411
|
-
|
|
9412
|
-
```text
|
|
9413
|
-
📋 Workflow Plan Status
|
|
9414
|
-
━━━━━━━━━━━━━━━━━━━━
|
|
9415
|
-
Workflow: {workflow_name}
|
|
9416
|
-
Progress: {X}% complete ({completed}/{total} steps)
|
|
9417
|
-
|
|
9418
|
-
✅ Completed:
|
|
9419
|
-
- {completed_step_1}
|
|
9420
|
-
- {completed_step_2}
|
|
9421
|
-
|
|
9422
|
-
🔄 Current Step:
|
|
9423
|
-
- {current_step_description}
|
|
9424
|
-
|
|
9425
|
-
📌 Upcoming:
|
|
9426
|
-
- {next_step_1}
|
|
9427
|
-
- {next_step_2}
|
|
9428
|
-
|
|
9429
|
-
⚠️ Notes:
|
|
9430
|
-
- {any_deviations_or_notes}
|
|
9431
|
-
```
|
|
9432
|
-
|
|
9433
|
-
### 7. Decision Point Handling
|
|
9434
|
-
|
|
9435
|
-
[[LLM: Special handling for workflow decision points]]
|
|
9436
|
-
|
|
9437
|
-
When encountering a decision point in the plan:
|
|
9438
|
-
|
|
9439
|
-
1. **Identify Decision Marker**: `<!-- decision: {decision_id} -->`
|
|
9440
|
-
2. **Check Decision Status**: Made/Pending
|
|
9441
|
-
3. **If Pending**:
|
|
9442
|
-
- Block progress until decision made
|
|
9443
|
-
- Show options to user
|
|
9444
|
-
- Record decision when made
|
|
9445
|
-
4. **If Made**:
|
|
9446
|
-
- Verify current path aligns with decision
|
|
9447
|
-
- Warn if attempting alternate path
|
|
9448
|
-
|
|
9449
|
-
### 8. Plan Abandonment
|
|
9450
|
-
|
|
9451
|
-
[[LLM: Graceful handling when user wants to stop following plan]]
|
|
9452
|
-
|
|
9453
|
-
If user wants to abandon plan:
|
|
9454
|
-
|
|
9455
|
-
1. Confirm abandonment intent
|
|
9456
|
-
2. Add abandonment note to plan
|
|
9457
|
-
3. Mark plan as "Abandoned" in header
|
|
9458
|
-
4. Stop plan checking for remainder of session
|
|
9459
|
-
5. Suggest creating new plan if needed
|
|
9460
|
-
|
|
9461
|
-
## Usage Examples
|
|
9462
|
-
|
|
9463
|
-
### Example 1: Agent Startup Check
|
|
9464
|
-
|
|
9465
|
-
```text
|
|
9466
|
-
BMad Master starting...
|
|
9467
|
-
|
|
9468
|
-
[Check for plan]
|
|
9469
|
-
Found active workflow plan: brownfield-fullstack
|
|
9470
|
-
Progress: 40% complete (4/10 steps)
|
|
9471
|
-
Current step: Create PRD (pm agent)
|
|
9472
|
-
|
|
9473
|
-
Suggestion: Based on your plan, you should work with the PM agent next.
|
|
9474
|
-
Use *agent pm to switch, or *plan-status to see full progress.
|
|
9475
|
-
```
|
|
9476
|
-
|
|
9477
|
-
### Example 2: Task Sequence Warning
|
|
9478
|
-
|
|
9479
|
-
```text
|
|
9480
|
-
User: *task create-next-story
|
|
9481
|
-
|
|
9482
|
-
[Plan check triggered]
|
|
9483
|
-
⚠️ SEQUENCE WARNING:
|
|
9484
|
-
Your workflow plan indicates the PRD hasn't been created yet.
|
|
9485
|
-
Creating stories before the PRD may lead to incomplete requirements.
|
|
9486
|
-
|
|
9487
|
-
Would you like to:
|
|
9488
|
-
1. Continue anyway (will note deviation in plan)
|
|
9489
|
-
2. Switch to creating PRD first (*agent pm)
|
|
9490
|
-
3. View plan status (*plan-status)
|
|
9491
|
-
```
|
|
9492
|
-
|
|
9493
|
-
### Example 3: Automatic Plan Update
|
|
9494
|
-
|
|
9495
|
-
```text
|
|
9496
|
-
[After completing create-doc task for PRD]
|
|
9497
|
-
|
|
9498
|
-
✅ Plan Updated: Marked "Create PRD" as complete
|
|
9499
|
-
📍 Next step: Create Architecture Document (architect agent)
|
|
9500
|
-
```
|
|
9501
|
-
|
|
9502
|
-
## Implementation Notes
|
|
9503
|
-
|
|
9504
|
-
- This utility should be lightweight and fast
|
|
9505
|
-
- Plan parsing should be resilient to format variations
|
|
9506
|
-
- Always preserve user agency - warnings not blocks (unless strict mode)
|
|
9507
|
-
- Plan updates should be atomic to prevent corruption
|
|
9508
|
-
- Consider plan versioning for rollback capability
|
|
9509
|
-
|
|
9510
|
-
## Error Handling
|
|
9511
|
-
|
|
9512
|
-
- Missing plan: Return null, don't error
|
|
9513
|
-
- Malformed plan: Warn but continue, treat as no plan
|
|
9514
|
-
- Update failures: Log but don't block task completion
|
|
9515
|
-
- Parse errors: Fallback to basic text search
|
|
9516
|
-
==================== END: .bmad-core/utils/plan-management.md ====================
|
|
9517
|
-
|
|
9518
|
-
==================== START: .bmad-core/utils/workflow-management.md ====================
|
|
9519
|
-
# Workflow Management
|
|
9520
|
-
|
|
9521
|
-
Enables BMad orchestrator to manage and execute team workflows.
|
|
9522
|
-
|
|
9523
|
-
## Dynamic Workflow Loading
|
|
9524
|
-
|
|
9525
|
-
Read available workflows from current team configuration's `workflows` field. Each team bundle defines its own supported workflows.
|
|
9526
|
-
|
|
9527
|
-
**Key Commands**:
|
|
9528
|
-
|
|
9529
|
-
- `/workflows` - List workflows in current bundle or workflows folder
|
|
9530
|
-
- `/agent-list` - Show agents in current bundle
|
|
9531
|
-
|
|
9532
|
-
## Workflow Commands
|
|
9533
|
-
|
|
9534
|
-
### /workflows
|
|
9535
|
-
|
|
9536
|
-
Lists available workflows with titles and descriptions.
|
|
9537
|
-
|
|
9538
|
-
### /workflow-start {workflow-id}
|
|
9539
|
-
|
|
9540
|
-
Starts workflow and transitions to first agent.
|
|
9541
|
-
|
|
9542
|
-
### /workflow-status
|
|
9543
|
-
|
|
9544
|
-
Shows current progress, completed artifacts, and next steps.
|
|
9545
|
-
|
|
9546
|
-
### /workflow-resume
|
|
9547
|
-
|
|
9548
|
-
Resumes workflow from last position. User can provide completed artifacts.
|
|
9549
|
-
|
|
9550
|
-
### /workflow-next
|
|
9551
|
-
|
|
9552
|
-
Shows next recommended agent and action.
|
|
9553
|
-
|
|
9554
|
-
## Execution Flow
|
|
9555
|
-
|
|
9556
|
-
1. **Starting**: Load definition → Identify first stage → Transition to agent → Guide artifact creation
|
|
9557
|
-
|
|
9558
|
-
2. **Stage Transitions**: Mark complete → Check conditions → Load next agent → Pass artifacts
|
|
9559
|
-
|
|
9560
|
-
3. **Artifact Tracking**: Track status, creator, timestamps in workflow_state
|
|
9561
|
-
|
|
9562
|
-
4. **Interruption Handling**: Analyze provided artifacts → Determine position → Suggest next step
|
|
9563
|
-
|
|
9564
|
-
## Context Passing
|
|
9565
|
-
|
|
9566
|
-
When transitioning, pass:
|
|
9567
|
-
|
|
9568
|
-
- Previous artifacts
|
|
9569
|
-
- Current workflow stage
|
|
9570
|
-
- Expected outputs
|
|
9571
|
-
- Decisions/constraints
|
|
9572
|
-
|
|
9573
|
-
## Multi-Path Workflows
|
|
9574
|
-
|
|
9575
|
-
Handle conditional paths by asking clarifying questions when needed.
|
|
9576
|
-
|
|
9577
|
-
## Best Practices
|
|
9578
|
-
|
|
9579
|
-
1. Show progress
|
|
9580
|
-
2. Explain transitions
|
|
9581
|
-
3. Preserve context
|
|
9582
|
-
4. Allow flexibility
|
|
9583
|
-
5. Track state
|
|
9584
|
-
|
|
9585
|
-
## Agent Integration
|
|
9586
|
-
|
|
9587
|
-
Agents should be workflow-aware: know active workflow, their role, access artifacts, understand expected outputs.
|
|
9588
|
-
==================== END: .bmad-core/utils/workflow-management.md ====================
|
|
@@ -47,9 +47,6 @@ CRITICAL: Read the full YAML, start activation to alter your state of being, fol
|
|
|
47
47
|
```yaml
|
|
48
48
|
activation-instructions:
|
|
49
49
|
- Mention *help shows all available commands and options
|
|
50
|
-
- Check for active workflow plan using .bmad-core/utils/plan-management.md
|
|
51
|
-
- 'If plan exists: Show 📋 Active plan: {workflow} ({progress}% complete). Use *plan-status for details.'
|
|
52
|
-
- 'If plan exists: Suggest next action based on plan progress'
|
|
53
50
|
- Assess user goal against available agents and workflows in this bundle
|
|
54
51
|
- If clear match to an agent's expertise, suggest transformation with *agent command
|
|
55
52
|
- If project-oriented, suggest *workflow-guidance to explore options
|
|
@@ -171,7 +168,6 @@ dependencies:
|
|
|
171
168
|
- bmad-kb.md
|
|
172
169
|
- elicitation-methods.md
|
|
173
170
|
utils:
|
|
174
|
-
- plan-management.md
|
|
175
171
|
- workflow-management.md
|
|
176
172
|
```
|
|
177
173
|
==================== END: .bmad-core/agents/bmad-orchestrator.md ====================
|
|
@@ -1723,7 +1719,7 @@ For full details, see `CONTRIBUTING.md`. Key points:
|
|
|
1723
1719
|
- Atomic commits - one logical change per commit
|
|
1724
1720
|
- Must align with guiding principles
|
|
1725
1721
|
|
|
1726
|
-
**Core Principles** (from GUIDING-PRINCIPLES.md):
|
|
1722
|
+
**Core Principles** (from docs/GUIDING-PRINCIPLES.md):
|
|
1727
1723
|
|
|
1728
1724
|
- **Dev Agents Must Be Lean**: Minimize dependencies, save context for code
|
|
1729
1725
|
- **Natural Language First**: Everything in markdown, no code in core
|
|
@@ -1793,8 +1789,8 @@ Use the **expansion-creator** pack to build your own:
|
|
|
1793
1789
|
|
|
1794
1790
|
## Getting Help
|
|
1795
1791
|
|
|
1796
|
-
- **Commands**: Use
|
|
1797
|
-
- **Agent Switching**: Use
|
|
1792
|
+
- **Commands**: Use `*/*help` in any environment to see available commands
|
|
1793
|
+
- **Agent Switching**: Use `*/*switch agent-name` with orchestrator for role changes
|
|
1798
1794
|
- **Documentation**: Check `docs/` folder for project-specific context
|
|
1799
1795
|
- **Community**: Discord and GitHub resources available for support
|
|
1800
1796
|
- **Contributing**: See `CONTRIBUTING.md` for full guidelines
|
|
@@ -1937,228 +1933,6 @@ Use the **expansion-creator** pack to build your own:
|
|
|
1937
1933
|
- Prepare to continue without additional elicitation
|
|
1938
1934
|
==================== END: .bmad-core/data/elicitation-methods.md ====================
|
|
1939
1935
|
|
|
1940
|
-
==================== START: .bmad-core/utils/plan-management.md ====================
|
|
1941
|
-
# Plan Management Utility
|
|
1942
|
-
|
|
1943
|
-
## Purpose
|
|
1944
|
-
|
|
1945
|
-
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.
|
|
1946
|
-
|
|
1947
|
-
## Core Functions
|
|
1948
|
-
|
|
1949
|
-
### 1. Check Plan Existence
|
|
1950
|
-
|
|
1951
|
-
Check for workflow plan:
|
|
1952
|
-
|
|
1953
|
-
1. Look for docs/workflow-plan.md (default location)
|
|
1954
|
-
2. Return plan status to user (exists/not exists) - if not exists then HALT.
|
|
1955
|
-
|
|
1956
|
-
### 2. Parse Plan Status
|
|
1957
|
-
|
|
1958
|
-
[[LLM: Extract current progress from the plan document]]
|
|
1959
|
-
|
|
1960
|
-
**Plan Parsing Logic:**
|
|
1961
|
-
|
|
1962
|
-
1. **Identify Step Structure**:
|
|
1963
|
-
- Look for checkbox lines: `- [ ]` or `- [x]`
|
|
1964
|
-
- Extract step IDs from comments: `<!-- step-id: X.Y -->`
|
|
1965
|
-
- Identify agent assignments: `<!-- agent: pm -->`
|
|
1966
|
-
|
|
1967
|
-
2. **Determine Current State**:
|
|
1968
|
-
- Last completed step (highest numbered `[x]`)
|
|
1969
|
-
- Next expected step (first `[ ]` after completed steps)
|
|
1970
|
-
- Overall progress percentage
|
|
1971
|
-
|
|
1972
|
-
3. **Extract Metadata**:
|
|
1973
|
-
- Workflow type from plan header
|
|
1974
|
-
- Decision points and their status
|
|
1975
|
-
- Any deviation notes
|
|
1976
|
-
|
|
1977
|
-
### 3. Sequence Validation
|
|
1978
|
-
|
|
1979
|
-
[[LLM: Check if requested action aligns with plan sequence]]
|
|
1980
|
-
|
|
1981
|
-
**Validation Rules:**
|
|
1982
|
-
|
|
1983
|
-
1. **Strict Mode** (enforceSequence: true):
|
|
1984
|
-
- Must complete steps in exact order
|
|
1985
|
-
- Warn and block if out of sequence
|
|
1986
|
-
- Require explicit override justification
|
|
1987
|
-
|
|
1988
|
-
2. **Flexible Mode** (enforceSequence: false):
|
|
1989
|
-
- Warn about sequence deviation
|
|
1990
|
-
- Allow with confirmation
|
|
1991
|
-
- Log deviation reason
|
|
1992
|
-
|
|
1993
|
-
**Warning Templates:**
|
|
1994
|
-
|
|
1995
|
-
```text
|
|
1996
|
-
SEQUENCE WARNING:
|
|
1997
|
-
The workflow plan shows you should complete "{expected_step}" next.
|
|
1998
|
-
You're attempting to: "{requested_action}"
|
|
1999
|
-
|
|
2000
|
-
In strict mode: Block and require plan update
|
|
2001
|
-
In flexible mode: Allow with confirmation
|
|
2002
|
-
```
|
|
2003
|
-
|
|
2004
|
-
### 4. Plan Update Operations
|
|
2005
|
-
|
|
2006
|
-
[[LLM: Provide consistent way to update plan progress]]
|
|
2007
|
-
|
|
2008
|
-
**Update Actions:**
|
|
2009
|
-
|
|
2010
|
-
1. **Mark Step Complete**:
|
|
2011
|
-
- Change `- [ ]` to `- [x]`
|
|
2012
|
-
- Add completion timestamp comment
|
|
2013
|
-
- Update any status metadata
|
|
2014
|
-
|
|
2015
|
-
2. **Add Deviation Note**:
|
|
2016
|
-
- Insert note explaining why sequence changed
|
|
2017
|
-
- Reference the deviation in plan
|
|
2018
|
-
|
|
2019
|
-
3. **Update Current Step Pointer**:
|
|
2020
|
-
- Add/move `<!-- current-step -->` marker
|
|
2021
|
-
- Update last-modified timestamp
|
|
2022
|
-
|
|
2023
|
-
### 5. Integration Instructions
|
|
2024
|
-
|
|
2025
|
-
[[LLM: How agents and tasks should use this utility]]
|
|
2026
|
-
|
|
2027
|
-
**For Agents (startup sequence)**:
|
|
2028
|
-
|
|
2029
|
-
```text
|
|
2030
|
-
1. Check if plan exists using this utility
|
|
2031
|
-
2. If exists:
|
|
2032
|
-
- Parse current status
|
|
2033
|
-
- Show user: "Active workflow plan detected. Current step: {X}"
|
|
2034
|
-
- Suggest: "Next recommended action: {next_step}"
|
|
2035
|
-
3. Continue with normal startup
|
|
2036
|
-
```
|
|
2037
|
-
|
|
2038
|
-
**For Tasks (pre-execution)**:
|
|
2039
|
-
|
|
2040
|
-
```text
|
|
2041
|
-
1. Check if plan exists
|
|
2042
|
-
2. If exists:
|
|
2043
|
-
- Verify this task aligns with plan
|
|
2044
|
-
- If not aligned:
|
|
2045
|
-
- In strict mode: Show warning and stop
|
|
2046
|
-
- In flexible mode: Show warning and ask for confirmation
|
|
2047
|
-
3. After task completion:
|
|
2048
|
-
- Update plan if task was a planned step
|
|
2049
|
-
- Add note if task was unplanned
|
|
2050
|
-
```
|
|
2051
|
-
|
|
2052
|
-
### 6. Plan Status Report Format
|
|
2053
|
-
|
|
2054
|
-
[[LLM: Standard format for showing plan status]]
|
|
2055
|
-
|
|
2056
|
-
```text
|
|
2057
|
-
📋 Workflow Plan Status
|
|
2058
|
-
━━━━━━━━━━━━━━━━━━━━
|
|
2059
|
-
Workflow: {workflow_name}
|
|
2060
|
-
Progress: {X}% complete ({completed}/{total} steps)
|
|
2061
|
-
|
|
2062
|
-
✅ Completed:
|
|
2063
|
-
- {completed_step_1}
|
|
2064
|
-
- {completed_step_2}
|
|
2065
|
-
|
|
2066
|
-
🔄 Current Step:
|
|
2067
|
-
- {current_step_description}
|
|
2068
|
-
|
|
2069
|
-
📌 Upcoming:
|
|
2070
|
-
- {next_step_1}
|
|
2071
|
-
- {next_step_2}
|
|
2072
|
-
|
|
2073
|
-
⚠️ Notes:
|
|
2074
|
-
- {any_deviations_or_notes}
|
|
2075
|
-
```
|
|
2076
|
-
|
|
2077
|
-
### 7. Decision Point Handling
|
|
2078
|
-
|
|
2079
|
-
[[LLM: Special handling for workflow decision points]]
|
|
2080
|
-
|
|
2081
|
-
When encountering a decision point in the plan:
|
|
2082
|
-
|
|
2083
|
-
1. **Identify Decision Marker**: `<!-- decision: {decision_id} -->`
|
|
2084
|
-
2. **Check Decision Status**: Made/Pending
|
|
2085
|
-
3. **If Pending**:
|
|
2086
|
-
- Block progress until decision made
|
|
2087
|
-
- Show options to user
|
|
2088
|
-
- Record decision when made
|
|
2089
|
-
4. **If Made**:
|
|
2090
|
-
- Verify current path aligns with decision
|
|
2091
|
-
- Warn if attempting alternate path
|
|
2092
|
-
|
|
2093
|
-
### 8. Plan Abandonment
|
|
2094
|
-
|
|
2095
|
-
[[LLM: Graceful handling when user wants to stop following plan]]
|
|
2096
|
-
|
|
2097
|
-
If user wants to abandon plan:
|
|
2098
|
-
|
|
2099
|
-
1. Confirm abandonment intent
|
|
2100
|
-
2. Add abandonment note to plan
|
|
2101
|
-
3. Mark plan as "Abandoned" in header
|
|
2102
|
-
4. Stop plan checking for remainder of session
|
|
2103
|
-
5. Suggest creating new plan if needed
|
|
2104
|
-
|
|
2105
|
-
## Usage Examples
|
|
2106
|
-
|
|
2107
|
-
### Example 1: Agent Startup Check
|
|
2108
|
-
|
|
2109
|
-
```text
|
|
2110
|
-
BMad Master starting...
|
|
2111
|
-
|
|
2112
|
-
[Check for plan]
|
|
2113
|
-
Found active workflow plan: brownfield-fullstack
|
|
2114
|
-
Progress: 40% complete (4/10 steps)
|
|
2115
|
-
Current step: Create PRD (pm agent)
|
|
2116
|
-
|
|
2117
|
-
Suggestion: Based on your plan, you should work with the PM agent next.
|
|
2118
|
-
Use *agent pm to switch, or *plan-status to see full progress.
|
|
2119
|
-
```
|
|
2120
|
-
|
|
2121
|
-
### Example 2: Task Sequence Warning
|
|
2122
|
-
|
|
2123
|
-
```text
|
|
2124
|
-
User: *task create-next-story
|
|
2125
|
-
|
|
2126
|
-
[Plan check triggered]
|
|
2127
|
-
⚠️ SEQUENCE WARNING:
|
|
2128
|
-
Your workflow plan indicates the PRD hasn't been created yet.
|
|
2129
|
-
Creating stories before the PRD may lead to incomplete requirements.
|
|
2130
|
-
|
|
2131
|
-
Would you like to:
|
|
2132
|
-
1. Continue anyway (will note deviation in plan)
|
|
2133
|
-
2. Switch to creating PRD first (*agent pm)
|
|
2134
|
-
3. View plan status (*plan-status)
|
|
2135
|
-
```
|
|
2136
|
-
|
|
2137
|
-
### Example 3: Automatic Plan Update
|
|
2138
|
-
|
|
2139
|
-
```text
|
|
2140
|
-
[After completing create-doc task for PRD]
|
|
2141
|
-
|
|
2142
|
-
✅ Plan Updated: Marked "Create PRD" as complete
|
|
2143
|
-
📍 Next step: Create Architecture Document (architect agent)
|
|
2144
|
-
```
|
|
2145
|
-
|
|
2146
|
-
## Implementation Notes
|
|
2147
|
-
|
|
2148
|
-
- This utility should be lightweight and fast
|
|
2149
|
-
- Plan parsing should be resilient to format variations
|
|
2150
|
-
- Always preserve user agency - warnings not blocks (unless strict mode)
|
|
2151
|
-
- Plan updates should be atomic to prevent corruption
|
|
2152
|
-
- Consider plan versioning for rollback capability
|
|
2153
|
-
|
|
2154
|
-
## Error Handling
|
|
2155
|
-
|
|
2156
|
-
- Missing plan: Return null, don't error
|
|
2157
|
-
- Malformed plan: Warn but continue, treat as no plan
|
|
2158
|
-
- Update failures: Log but don't block task completion
|
|
2159
|
-
- Parse errors: Fallback to basic text search
|
|
2160
|
-
==================== END: .bmad-core/utils/plan-management.md ====================
|
|
2161
|
-
|
|
2162
1936
|
==================== START: .bmad-core/utils/workflow-management.md ====================
|
|
2163
1937
|
# Workflow Management
|
|
2164
1938
|
|
package/dist/agents/dev.txt
CHANGED
|
@@ -193,7 +193,7 @@ To comprehensively validate a story draft before implementation begins, ensuring
|
|
|
193
193
|
|
|
194
194
|
### 0. Load Core Configuration and Inputs
|
|
195
195
|
|
|
196
|
-
- Load `.bmad-core/core-config.yaml`
|
|
196
|
+
- Load `.bmad-core/core-config.yaml`
|
|
197
197
|
- If the file does not exist, HALT and inform the user: "core-config.yaml not found. This file is required for story validation."
|
|
198
198
|
- Extract key configurations: `devStoryLocation`, `prd.*`, `architecture.*`
|
|
199
199
|
- Identify and load the following inputs:
|
package/dist/agents/po.txt
CHANGED
|
@@ -792,7 +792,7 @@ To comprehensively validate a story draft before implementation begins, ensuring
|
|
|
792
792
|
|
|
793
793
|
### 0. Load Core Configuration and Inputs
|
|
794
794
|
|
|
795
|
-
- Load `.bmad-core/core-config.yaml`
|
|
795
|
+
- Load `.bmad-core/core-config.yaml`
|
|
796
796
|
- If the file does not exist, HALT and inform the user: "core-config.yaml not found. This file is required for story validation."
|
|
797
797
|
- Extract key configurations: `devStoryLocation`, `prd.*`, `architecture.*`
|
|
798
798
|
- Identify and load the following inputs:
|
package/dist/agents/sm.txt
CHANGED
|
@@ -98,7 +98,6 @@ To identify the next logical story based on project progress and epic definition
|
|
|
98
98
|
- Load `.bmad-core/core-config.yaml` from the project root
|
|
99
99
|
- 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."
|
|
100
100
|
- Extract key configurations: `devStoryLocation`, `prd.*`, `architecture.*`, `workflow.*`
|
|
101
|
-
- If `workflow.trackProgress: true`, use `utils/plan-management.md` to check plan sequence and warn if out of order
|
|
102
101
|
|
|
103
102
|
### 1. Identify Next Story for Preparation
|
|
104
103
|
|