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
|
@@ -68,9 +68,6 @@ CRITICAL: Read the full YAML, start activation to alter your state of being, fol
|
|
|
68
68
|
```yaml
|
|
69
69
|
activation-instructions:
|
|
70
70
|
- Mention *help shows all available commands and options
|
|
71
|
-
- Check for active workflow plan using .bmad-core/utils/plan-management.md
|
|
72
|
-
- 'If plan exists: Show 📋 Active plan: {workflow} ({progress}% complete). Use *plan-status for details.'
|
|
73
|
-
- 'If plan exists: Suggest next action based on plan progress'
|
|
74
71
|
- Assess user goal against available agents and workflows in this bundle
|
|
75
72
|
- If clear match to an agent's expertise, suggest transformation with *agent command
|
|
76
73
|
- If project-oriented, suggest *workflow-guidance to explore options
|
|
@@ -192,7 +189,6 @@ dependencies:
|
|
|
192
189
|
- bmad-kb.md
|
|
193
190
|
- elicitation-methods.md
|
|
194
191
|
utils:
|
|
195
|
-
- plan-management.md
|
|
196
192
|
- workflow-management.md
|
|
197
193
|
```
|
|
198
194
|
==================== END: .bmad-core/agents/bmad-orchestrator.md ====================
|
|
@@ -2046,7 +2042,7 @@ For full details, see `CONTRIBUTING.md`. Key points:
|
|
|
2046
2042
|
- Atomic commits - one logical change per commit
|
|
2047
2043
|
- Must align with guiding principles
|
|
2048
2044
|
|
|
2049
|
-
**Core Principles** (from GUIDING-PRINCIPLES.md):
|
|
2045
|
+
**Core Principles** (from docs/GUIDING-PRINCIPLES.md):
|
|
2050
2046
|
|
|
2051
2047
|
- **Dev Agents Must Be Lean**: Minimize dependencies, save context for code
|
|
2052
2048
|
- **Natural Language First**: Everything in markdown, no code in core
|
|
@@ -2116,8 +2112,8 @@ Use the **expansion-creator** pack to build your own:
|
|
|
2116
2112
|
|
|
2117
2113
|
## Getting Help
|
|
2118
2114
|
|
|
2119
|
-
- **Commands**: Use
|
|
2120
|
-
- **Agent Switching**: Use
|
|
2115
|
+
- **Commands**: Use `*/*help` in any environment to see available commands
|
|
2116
|
+
- **Agent Switching**: Use `*/*switch agent-name` with orchestrator for role changes
|
|
2121
2117
|
- **Documentation**: Check `docs/` folder for project-specific context
|
|
2122
2118
|
- **Community**: Discord and GitHub resources available for support
|
|
2123
2119
|
- **Contributing**: See `CONTRIBUTING.md` for full guidelines
|
|
@@ -2260,228 +2256,6 @@ Use the **expansion-creator** pack to build your own:
|
|
|
2260
2256
|
- Prepare to continue without additional elicitation
|
|
2261
2257
|
==================== END: .bmad-core/data/elicitation-methods.md ====================
|
|
2262
2258
|
|
|
2263
|
-
==================== START: .bmad-core/utils/plan-management.md ====================
|
|
2264
|
-
# Plan Management Utility
|
|
2265
|
-
|
|
2266
|
-
## Purpose
|
|
2267
|
-
|
|
2268
|
-
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.
|
|
2269
|
-
|
|
2270
|
-
## Core Functions
|
|
2271
|
-
|
|
2272
|
-
### 1. Check Plan Existence
|
|
2273
|
-
|
|
2274
|
-
Check for workflow plan:
|
|
2275
|
-
|
|
2276
|
-
1. Look for docs/workflow-plan.md (default location)
|
|
2277
|
-
2. Return plan status to user (exists/not exists) - if not exists then HALT.
|
|
2278
|
-
|
|
2279
|
-
### 2. Parse Plan Status
|
|
2280
|
-
|
|
2281
|
-
[[LLM: Extract current progress from the plan document]]
|
|
2282
|
-
|
|
2283
|
-
**Plan Parsing Logic:**
|
|
2284
|
-
|
|
2285
|
-
1. **Identify Step Structure**:
|
|
2286
|
-
- Look for checkbox lines: `- [ ]` or `- [x]`
|
|
2287
|
-
- Extract step IDs from comments: `<!-- step-id: X.Y -->`
|
|
2288
|
-
- Identify agent assignments: `<!-- agent: pm -->`
|
|
2289
|
-
|
|
2290
|
-
2. **Determine Current State**:
|
|
2291
|
-
- Last completed step (highest numbered `[x]`)
|
|
2292
|
-
- Next expected step (first `[ ]` after completed steps)
|
|
2293
|
-
- Overall progress percentage
|
|
2294
|
-
|
|
2295
|
-
3. **Extract Metadata**:
|
|
2296
|
-
- Workflow type from plan header
|
|
2297
|
-
- Decision points and their status
|
|
2298
|
-
- Any deviation notes
|
|
2299
|
-
|
|
2300
|
-
### 3. Sequence Validation
|
|
2301
|
-
|
|
2302
|
-
[[LLM: Check if requested action aligns with plan sequence]]
|
|
2303
|
-
|
|
2304
|
-
**Validation Rules:**
|
|
2305
|
-
|
|
2306
|
-
1. **Strict Mode** (enforceSequence: true):
|
|
2307
|
-
- Must complete steps in exact order
|
|
2308
|
-
- Warn and block if out of sequence
|
|
2309
|
-
- Require explicit override justification
|
|
2310
|
-
|
|
2311
|
-
2. **Flexible Mode** (enforceSequence: false):
|
|
2312
|
-
- Warn about sequence deviation
|
|
2313
|
-
- Allow with confirmation
|
|
2314
|
-
- Log deviation reason
|
|
2315
|
-
|
|
2316
|
-
**Warning Templates:**
|
|
2317
|
-
|
|
2318
|
-
```text
|
|
2319
|
-
SEQUENCE WARNING:
|
|
2320
|
-
The workflow plan shows you should complete "{expected_step}" next.
|
|
2321
|
-
You're attempting to: "{requested_action}"
|
|
2322
|
-
|
|
2323
|
-
In strict mode: Block and require plan update
|
|
2324
|
-
In flexible mode: Allow with confirmation
|
|
2325
|
-
```
|
|
2326
|
-
|
|
2327
|
-
### 4. Plan Update Operations
|
|
2328
|
-
|
|
2329
|
-
[[LLM: Provide consistent way to update plan progress]]
|
|
2330
|
-
|
|
2331
|
-
**Update Actions:**
|
|
2332
|
-
|
|
2333
|
-
1. **Mark Step Complete**:
|
|
2334
|
-
- Change `- [ ]` to `- [x]`
|
|
2335
|
-
- Add completion timestamp comment
|
|
2336
|
-
- Update any status metadata
|
|
2337
|
-
|
|
2338
|
-
2. **Add Deviation Note**:
|
|
2339
|
-
- Insert note explaining why sequence changed
|
|
2340
|
-
- Reference the deviation in plan
|
|
2341
|
-
|
|
2342
|
-
3. **Update Current Step Pointer**:
|
|
2343
|
-
- Add/move `<!-- current-step -->` marker
|
|
2344
|
-
- Update last-modified timestamp
|
|
2345
|
-
|
|
2346
|
-
### 5. Integration Instructions
|
|
2347
|
-
|
|
2348
|
-
[[LLM: How agents and tasks should use this utility]]
|
|
2349
|
-
|
|
2350
|
-
**For Agents (startup sequence)**:
|
|
2351
|
-
|
|
2352
|
-
```text
|
|
2353
|
-
1. Check if plan exists using this utility
|
|
2354
|
-
2. If exists:
|
|
2355
|
-
- Parse current status
|
|
2356
|
-
- Show user: "Active workflow plan detected. Current step: {X}"
|
|
2357
|
-
- Suggest: "Next recommended action: {next_step}"
|
|
2358
|
-
3. Continue with normal startup
|
|
2359
|
-
```
|
|
2360
|
-
|
|
2361
|
-
**For Tasks (pre-execution)**:
|
|
2362
|
-
|
|
2363
|
-
```text
|
|
2364
|
-
1. Check if plan exists
|
|
2365
|
-
2. If exists:
|
|
2366
|
-
- Verify this task aligns with plan
|
|
2367
|
-
- If not aligned:
|
|
2368
|
-
- In strict mode: Show warning and stop
|
|
2369
|
-
- In flexible mode: Show warning and ask for confirmation
|
|
2370
|
-
3. After task completion:
|
|
2371
|
-
- Update plan if task was a planned step
|
|
2372
|
-
- Add note if task was unplanned
|
|
2373
|
-
```
|
|
2374
|
-
|
|
2375
|
-
### 6. Plan Status Report Format
|
|
2376
|
-
|
|
2377
|
-
[[LLM: Standard format for showing plan status]]
|
|
2378
|
-
|
|
2379
|
-
```text
|
|
2380
|
-
📋 Workflow Plan Status
|
|
2381
|
-
━━━━━━━━━━━━━━━━━━━━
|
|
2382
|
-
Workflow: {workflow_name}
|
|
2383
|
-
Progress: {X}% complete ({completed}/{total} steps)
|
|
2384
|
-
|
|
2385
|
-
✅ Completed:
|
|
2386
|
-
- {completed_step_1}
|
|
2387
|
-
- {completed_step_2}
|
|
2388
|
-
|
|
2389
|
-
🔄 Current Step:
|
|
2390
|
-
- {current_step_description}
|
|
2391
|
-
|
|
2392
|
-
📌 Upcoming:
|
|
2393
|
-
- {next_step_1}
|
|
2394
|
-
- {next_step_2}
|
|
2395
|
-
|
|
2396
|
-
⚠️ Notes:
|
|
2397
|
-
- {any_deviations_or_notes}
|
|
2398
|
-
```
|
|
2399
|
-
|
|
2400
|
-
### 7. Decision Point Handling
|
|
2401
|
-
|
|
2402
|
-
[[LLM: Special handling for workflow decision points]]
|
|
2403
|
-
|
|
2404
|
-
When encountering a decision point in the plan:
|
|
2405
|
-
|
|
2406
|
-
1. **Identify Decision Marker**: `<!-- decision: {decision_id} -->`
|
|
2407
|
-
2. **Check Decision Status**: Made/Pending
|
|
2408
|
-
3. **If Pending**:
|
|
2409
|
-
- Block progress until decision made
|
|
2410
|
-
- Show options to user
|
|
2411
|
-
- Record decision when made
|
|
2412
|
-
4. **If Made**:
|
|
2413
|
-
- Verify current path aligns with decision
|
|
2414
|
-
- Warn if attempting alternate path
|
|
2415
|
-
|
|
2416
|
-
### 8. Plan Abandonment
|
|
2417
|
-
|
|
2418
|
-
[[LLM: Graceful handling when user wants to stop following plan]]
|
|
2419
|
-
|
|
2420
|
-
If user wants to abandon plan:
|
|
2421
|
-
|
|
2422
|
-
1. Confirm abandonment intent
|
|
2423
|
-
2. Add abandonment note to plan
|
|
2424
|
-
3. Mark plan as "Abandoned" in header
|
|
2425
|
-
4. Stop plan checking for remainder of session
|
|
2426
|
-
5. Suggest creating new plan if needed
|
|
2427
|
-
|
|
2428
|
-
## Usage Examples
|
|
2429
|
-
|
|
2430
|
-
### Example 1: Agent Startup Check
|
|
2431
|
-
|
|
2432
|
-
```text
|
|
2433
|
-
BMad Master starting...
|
|
2434
|
-
|
|
2435
|
-
[Check for plan]
|
|
2436
|
-
Found active workflow plan: brownfield-fullstack
|
|
2437
|
-
Progress: 40% complete (4/10 steps)
|
|
2438
|
-
Current step: Create PRD (pm agent)
|
|
2439
|
-
|
|
2440
|
-
Suggestion: Based on your plan, you should work with the PM agent next.
|
|
2441
|
-
Use *agent pm to switch, or *plan-status to see full progress.
|
|
2442
|
-
```
|
|
2443
|
-
|
|
2444
|
-
### Example 2: Task Sequence Warning
|
|
2445
|
-
|
|
2446
|
-
```text
|
|
2447
|
-
User: *task create-next-story
|
|
2448
|
-
|
|
2449
|
-
[Plan check triggered]
|
|
2450
|
-
⚠️ SEQUENCE WARNING:
|
|
2451
|
-
Your workflow plan indicates the PRD hasn't been created yet.
|
|
2452
|
-
Creating stories before the PRD may lead to incomplete requirements.
|
|
2453
|
-
|
|
2454
|
-
Would you like to:
|
|
2455
|
-
1. Continue anyway (will note deviation in plan)
|
|
2456
|
-
2. Switch to creating PRD first (*agent pm)
|
|
2457
|
-
3. View plan status (*plan-status)
|
|
2458
|
-
```
|
|
2459
|
-
|
|
2460
|
-
### Example 3: Automatic Plan Update
|
|
2461
|
-
|
|
2462
|
-
```text
|
|
2463
|
-
[After completing create-doc task for PRD]
|
|
2464
|
-
|
|
2465
|
-
✅ Plan Updated: Marked "Create PRD" as complete
|
|
2466
|
-
📍 Next step: Create Architecture Document (architect agent)
|
|
2467
|
-
```
|
|
2468
|
-
|
|
2469
|
-
## Implementation Notes
|
|
2470
|
-
|
|
2471
|
-
- This utility should be lightweight and fast
|
|
2472
|
-
- Plan parsing should be resilient to format variations
|
|
2473
|
-
- Always preserve user agency - warnings not blocks (unless strict mode)
|
|
2474
|
-
- Plan updates should be atomic to prevent corruption
|
|
2475
|
-
- Consider plan versioning for rollback capability
|
|
2476
|
-
|
|
2477
|
-
## Error Handling
|
|
2478
|
-
|
|
2479
|
-
- Missing plan: Return null, don't error
|
|
2480
|
-
- Malformed plan: Warn but continue, treat as no plan
|
|
2481
|
-
- Update failures: Log but don't block task completion
|
|
2482
|
-
- Parse errors: Fallback to basic text search
|
|
2483
|
-
==================== END: .bmad-core/utils/plan-management.md ====================
|
|
2484
|
-
|
|
2485
2259
|
==================== START: .bmad-core/utils/workflow-management.md ====================
|
|
2486
2260
|
# Workflow Management
|
|
2487
2261
|
|
|
@@ -9038,7 +8812,7 @@ To comprehensively validate a story draft before implementation begins, ensuring
|
|
|
9038
8812
|
|
|
9039
8813
|
### 0. Load Core Configuration and Inputs
|
|
9040
8814
|
|
|
9041
|
-
- Load `.bmad-core/core-config.yaml`
|
|
8815
|
+
- Load `.bmad-core/core-config.yaml`
|
|
9042
8816
|
- If the file does not exist, HALT and inform the user: "core-config.yaml not found. This file is required for story validation."
|
|
9043
8817
|
- Extract key configurations: `devStoryLocation`, `prd.*`, `architecture.*`
|
|
9044
8818
|
- Identify and load the following inputs:
|
|
@@ -9933,7 +9707,7 @@ workflow:
|
|
|
9933
9707
|
All stories implemented and reviewed!
|
|
9934
9708
|
Project development phase complete.
|
|
9935
9709
|
|
|
9936
|
-
Reference: data
|
|
9710
|
+
Reference: .bmad-core/data/bmad-kb.md#IDE Development Workflow
|
|
9937
9711
|
|
|
9938
9712
|
flow_diagram: |
|
|
9939
9713
|
```mermaid
|
|
@@ -10179,7 +9953,7 @@ workflow:
|
|
|
10179
9953
|
All stories implemented and reviewed!
|
|
10180
9954
|
Project development phase complete.
|
|
10181
9955
|
|
|
10182
|
-
Reference: data
|
|
9956
|
+
Reference: .bmad-core/data/bmad-kb.md#IDE Development Workflow
|
|
10183
9957
|
|
|
10184
9958
|
flow_diagram: |
|
|
10185
9959
|
```mermaid
|
|
@@ -10376,7 +10150,7 @@ workflow:
|
|
|
10376
10150
|
All stories implemented and reviewed!
|
|
10377
10151
|
Project development phase complete.
|
|
10378
10152
|
|
|
10379
|
-
Reference: data
|
|
10153
|
+
Reference: .bmad-core/data/bmad-kb.md#IDE Development Workflow
|
|
10380
10154
|
|
|
10381
10155
|
flow_diagram: |
|
|
10382
10156
|
```mermaid
|
|
@@ -10601,7 +10375,7 @@ workflow:
|
|
|
10601
10375
|
All stories implemented and reviewed!
|
|
10602
10376
|
Project development phase complete.
|
|
10603
10377
|
|
|
10604
|
-
Reference: data
|
|
10378
|
+
Reference: .bmad-core/data/bmad-kb.md#IDE Development Workflow
|
|
10605
10379
|
|
|
10606
10380
|
flow_diagram: |
|
|
10607
10381
|
```mermaid
|
|
@@ -11048,7 +10822,7 @@ workflow:
|
|
|
11048
10822
|
All stories implemented and reviewed!
|
|
11049
10823
|
Project development phase complete.
|
|
11050
10824
|
|
|
11051
|
-
Reference: data
|
|
10825
|
+
Reference: .bmad-core/data/bmad-kb.md#IDE Development Workflow
|
|
11052
10826
|
|
|
11053
10827
|
flow_diagram: |
|
|
11054
10828
|
```mermaid
|
|
@@ -60,9 +60,6 @@ CRITICAL: Read the full YAML, start activation to alter your state of being, fol
|
|
|
60
60
|
```yaml
|
|
61
61
|
activation-instructions:
|
|
62
62
|
- Mention *help shows all available commands and options
|
|
63
|
-
- Check for active workflow plan using .bmad-core/utils/plan-management.md
|
|
64
|
-
- 'If plan exists: Show 📋 Active plan: {workflow} ({progress}% complete). Use *plan-status for details.'
|
|
65
|
-
- 'If plan exists: Suggest next action based on plan progress'
|
|
66
63
|
- Assess user goal against available agents and workflows in this bundle
|
|
67
64
|
- If clear match to an agent's expertise, suggest transformation with *agent command
|
|
68
65
|
- If project-oriented, suggest *workflow-guidance to explore options
|
|
@@ -184,7 +181,6 @@ dependencies:
|
|
|
184
181
|
- bmad-kb.md
|
|
185
182
|
- elicitation-methods.md
|
|
186
183
|
utils:
|
|
187
|
-
- plan-management.md
|
|
188
184
|
- workflow-management.md
|
|
189
185
|
```
|
|
190
186
|
==================== END: .bmad-core/agents/bmad-orchestrator.md ====================
|
|
@@ -1945,7 +1941,7 @@ For full details, see `CONTRIBUTING.md`. Key points:
|
|
|
1945
1941
|
- Atomic commits - one logical change per commit
|
|
1946
1942
|
- Must align with guiding principles
|
|
1947
1943
|
|
|
1948
|
-
**Core Principles** (from GUIDING-PRINCIPLES.md):
|
|
1944
|
+
**Core Principles** (from docs/GUIDING-PRINCIPLES.md):
|
|
1949
1945
|
|
|
1950
1946
|
- **Dev Agents Must Be Lean**: Minimize dependencies, save context for code
|
|
1951
1947
|
- **Natural Language First**: Everything in markdown, no code in core
|
|
@@ -2015,8 +2011,8 @@ Use the **expansion-creator** pack to build your own:
|
|
|
2015
2011
|
|
|
2016
2012
|
## Getting Help
|
|
2017
2013
|
|
|
2018
|
-
- **Commands**: Use
|
|
2019
|
-
- **Agent Switching**: Use
|
|
2014
|
+
- **Commands**: Use `*/*help` in any environment to see available commands
|
|
2015
|
+
- **Agent Switching**: Use `*/*switch agent-name` with orchestrator for role changes
|
|
2020
2016
|
- **Documentation**: Check `docs/` folder for project-specific context
|
|
2021
2017
|
- **Community**: Discord and GitHub resources available for support
|
|
2022
2018
|
- **Contributing**: See `CONTRIBUTING.md` for full guidelines
|
|
@@ -2159,228 +2155,6 @@ Use the **expansion-creator** pack to build your own:
|
|
|
2159
2155
|
- Prepare to continue without additional elicitation
|
|
2160
2156
|
==================== END: .bmad-core/data/elicitation-methods.md ====================
|
|
2161
2157
|
|
|
2162
|
-
==================== START: .bmad-core/utils/plan-management.md ====================
|
|
2163
|
-
# Plan Management Utility
|
|
2164
|
-
|
|
2165
|
-
## Purpose
|
|
2166
|
-
|
|
2167
|
-
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.
|
|
2168
|
-
|
|
2169
|
-
## Core Functions
|
|
2170
|
-
|
|
2171
|
-
### 1. Check Plan Existence
|
|
2172
|
-
|
|
2173
|
-
Check for workflow plan:
|
|
2174
|
-
|
|
2175
|
-
1. Look for docs/workflow-plan.md (default location)
|
|
2176
|
-
2. Return plan status to user (exists/not exists) - if not exists then HALT.
|
|
2177
|
-
|
|
2178
|
-
### 2. Parse Plan Status
|
|
2179
|
-
|
|
2180
|
-
[[LLM: Extract current progress from the plan document]]
|
|
2181
|
-
|
|
2182
|
-
**Plan Parsing Logic:**
|
|
2183
|
-
|
|
2184
|
-
1. **Identify Step Structure**:
|
|
2185
|
-
- Look for checkbox lines: `- [ ]` or `- [x]`
|
|
2186
|
-
- Extract step IDs from comments: `<!-- step-id: X.Y -->`
|
|
2187
|
-
- Identify agent assignments: `<!-- agent: pm -->`
|
|
2188
|
-
|
|
2189
|
-
2. **Determine Current State**:
|
|
2190
|
-
- Last completed step (highest numbered `[x]`)
|
|
2191
|
-
- Next expected step (first `[ ]` after completed steps)
|
|
2192
|
-
- Overall progress percentage
|
|
2193
|
-
|
|
2194
|
-
3. **Extract Metadata**:
|
|
2195
|
-
- Workflow type from plan header
|
|
2196
|
-
- Decision points and their status
|
|
2197
|
-
- Any deviation notes
|
|
2198
|
-
|
|
2199
|
-
### 3. Sequence Validation
|
|
2200
|
-
|
|
2201
|
-
[[LLM: Check if requested action aligns with plan sequence]]
|
|
2202
|
-
|
|
2203
|
-
**Validation Rules:**
|
|
2204
|
-
|
|
2205
|
-
1. **Strict Mode** (enforceSequence: true):
|
|
2206
|
-
- Must complete steps in exact order
|
|
2207
|
-
- Warn and block if out of sequence
|
|
2208
|
-
- Require explicit override justification
|
|
2209
|
-
|
|
2210
|
-
2. **Flexible Mode** (enforceSequence: false):
|
|
2211
|
-
- Warn about sequence deviation
|
|
2212
|
-
- Allow with confirmation
|
|
2213
|
-
- Log deviation reason
|
|
2214
|
-
|
|
2215
|
-
**Warning Templates:**
|
|
2216
|
-
|
|
2217
|
-
```text
|
|
2218
|
-
SEQUENCE WARNING:
|
|
2219
|
-
The workflow plan shows you should complete "{expected_step}" next.
|
|
2220
|
-
You're attempting to: "{requested_action}"
|
|
2221
|
-
|
|
2222
|
-
In strict mode: Block and require plan update
|
|
2223
|
-
In flexible mode: Allow with confirmation
|
|
2224
|
-
```
|
|
2225
|
-
|
|
2226
|
-
### 4. Plan Update Operations
|
|
2227
|
-
|
|
2228
|
-
[[LLM: Provide consistent way to update plan progress]]
|
|
2229
|
-
|
|
2230
|
-
**Update Actions:**
|
|
2231
|
-
|
|
2232
|
-
1. **Mark Step Complete**:
|
|
2233
|
-
- Change `- [ ]` to `- [x]`
|
|
2234
|
-
- Add completion timestamp comment
|
|
2235
|
-
- Update any status metadata
|
|
2236
|
-
|
|
2237
|
-
2. **Add Deviation Note**:
|
|
2238
|
-
- Insert note explaining why sequence changed
|
|
2239
|
-
- Reference the deviation in plan
|
|
2240
|
-
|
|
2241
|
-
3. **Update Current Step Pointer**:
|
|
2242
|
-
- Add/move `<!-- current-step -->` marker
|
|
2243
|
-
- Update last-modified timestamp
|
|
2244
|
-
|
|
2245
|
-
### 5. Integration Instructions
|
|
2246
|
-
|
|
2247
|
-
[[LLM: How agents and tasks should use this utility]]
|
|
2248
|
-
|
|
2249
|
-
**For Agents (startup sequence)**:
|
|
2250
|
-
|
|
2251
|
-
```text
|
|
2252
|
-
1. Check if plan exists using this utility
|
|
2253
|
-
2. If exists:
|
|
2254
|
-
- Parse current status
|
|
2255
|
-
- Show user: "Active workflow plan detected. Current step: {X}"
|
|
2256
|
-
- Suggest: "Next recommended action: {next_step}"
|
|
2257
|
-
3. Continue with normal startup
|
|
2258
|
-
```
|
|
2259
|
-
|
|
2260
|
-
**For Tasks (pre-execution)**:
|
|
2261
|
-
|
|
2262
|
-
```text
|
|
2263
|
-
1. Check if plan exists
|
|
2264
|
-
2. If exists:
|
|
2265
|
-
- Verify this task aligns with plan
|
|
2266
|
-
- If not aligned:
|
|
2267
|
-
- In strict mode: Show warning and stop
|
|
2268
|
-
- In flexible mode: Show warning and ask for confirmation
|
|
2269
|
-
3. After task completion:
|
|
2270
|
-
- Update plan if task was a planned step
|
|
2271
|
-
- Add note if task was unplanned
|
|
2272
|
-
```
|
|
2273
|
-
|
|
2274
|
-
### 6. Plan Status Report Format
|
|
2275
|
-
|
|
2276
|
-
[[LLM: Standard format for showing plan status]]
|
|
2277
|
-
|
|
2278
|
-
```text
|
|
2279
|
-
📋 Workflow Plan Status
|
|
2280
|
-
━━━━━━━━━━━━━━━━━━━━
|
|
2281
|
-
Workflow: {workflow_name}
|
|
2282
|
-
Progress: {X}% complete ({completed}/{total} steps)
|
|
2283
|
-
|
|
2284
|
-
✅ Completed:
|
|
2285
|
-
- {completed_step_1}
|
|
2286
|
-
- {completed_step_2}
|
|
2287
|
-
|
|
2288
|
-
🔄 Current Step:
|
|
2289
|
-
- {current_step_description}
|
|
2290
|
-
|
|
2291
|
-
📌 Upcoming:
|
|
2292
|
-
- {next_step_1}
|
|
2293
|
-
- {next_step_2}
|
|
2294
|
-
|
|
2295
|
-
⚠️ Notes:
|
|
2296
|
-
- {any_deviations_or_notes}
|
|
2297
|
-
```
|
|
2298
|
-
|
|
2299
|
-
### 7. Decision Point Handling
|
|
2300
|
-
|
|
2301
|
-
[[LLM: Special handling for workflow decision points]]
|
|
2302
|
-
|
|
2303
|
-
When encountering a decision point in the plan:
|
|
2304
|
-
|
|
2305
|
-
1. **Identify Decision Marker**: `<!-- decision: {decision_id} -->`
|
|
2306
|
-
2. **Check Decision Status**: Made/Pending
|
|
2307
|
-
3. **If Pending**:
|
|
2308
|
-
- Block progress until decision made
|
|
2309
|
-
- Show options to user
|
|
2310
|
-
- Record decision when made
|
|
2311
|
-
4. **If Made**:
|
|
2312
|
-
- Verify current path aligns with decision
|
|
2313
|
-
- Warn if attempting alternate path
|
|
2314
|
-
|
|
2315
|
-
### 8. Plan Abandonment
|
|
2316
|
-
|
|
2317
|
-
[[LLM: Graceful handling when user wants to stop following plan]]
|
|
2318
|
-
|
|
2319
|
-
If user wants to abandon plan:
|
|
2320
|
-
|
|
2321
|
-
1. Confirm abandonment intent
|
|
2322
|
-
2. Add abandonment note to plan
|
|
2323
|
-
3. Mark plan as "Abandoned" in header
|
|
2324
|
-
4. Stop plan checking for remainder of session
|
|
2325
|
-
5. Suggest creating new plan if needed
|
|
2326
|
-
|
|
2327
|
-
## Usage Examples
|
|
2328
|
-
|
|
2329
|
-
### Example 1: Agent Startup Check
|
|
2330
|
-
|
|
2331
|
-
```text
|
|
2332
|
-
BMad Master starting...
|
|
2333
|
-
|
|
2334
|
-
[Check for plan]
|
|
2335
|
-
Found active workflow plan: brownfield-fullstack
|
|
2336
|
-
Progress: 40% complete (4/10 steps)
|
|
2337
|
-
Current step: Create PRD (pm agent)
|
|
2338
|
-
|
|
2339
|
-
Suggestion: Based on your plan, you should work with the PM agent next.
|
|
2340
|
-
Use *agent pm to switch, or *plan-status to see full progress.
|
|
2341
|
-
```
|
|
2342
|
-
|
|
2343
|
-
### Example 2: Task Sequence Warning
|
|
2344
|
-
|
|
2345
|
-
```text
|
|
2346
|
-
User: *task create-next-story
|
|
2347
|
-
|
|
2348
|
-
[Plan check triggered]
|
|
2349
|
-
⚠️ SEQUENCE WARNING:
|
|
2350
|
-
Your workflow plan indicates the PRD hasn't been created yet.
|
|
2351
|
-
Creating stories before the PRD may lead to incomplete requirements.
|
|
2352
|
-
|
|
2353
|
-
Would you like to:
|
|
2354
|
-
1. Continue anyway (will note deviation in plan)
|
|
2355
|
-
2. Switch to creating PRD first (*agent pm)
|
|
2356
|
-
3. View plan status (*plan-status)
|
|
2357
|
-
```
|
|
2358
|
-
|
|
2359
|
-
### Example 3: Automatic Plan Update
|
|
2360
|
-
|
|
2361
|
-
```text
|
|
2362
|
-
[After completing create-doc task for PRD]
|
|
2363
|
-
|
|
2364
|
-
✅ Plan Updated: Marked "Create PRD" as complete
|
|
2365
|
-
📍 Next step: Create Architecture Document (architect agent)
|
|
2366
|
-
```
|
|
2367
|
-
|
|
2368
|
-
## Implementation Notes
|
|
2369
|
-
|
|
2370
|
-
- This utility should be lightweight and fast
|
|
2371
|
-
- Plan parsing should be resilient to format variations
|
|
2372
|
-
- Always preserve user agency - warnings not blocks (unless strict mode)
|
|
2373
|
-
- Plan updates should be atomic to prevent corruption
|
|
2374
|
-
- Consider plan versioning for rollback capability
|
|
2375
|
-
|
|
2376
|
-
## Error Handling
|
|
2377
|
-
|
|
2378
|
-
- Missing plan: Return null, don't error
|
|
2379
|
-
- Malformed plan: Warn but continue, treat as no plan
|
|
2380
|
-
- Update failures: Log but don't block task completion
|
|
2381
|
-
- Parse errors: Fallback to basic text search
|
|
2382
|
-
==================== END: .bmad-core/utils/plan-management.md ====================
|
|
2383
|
-
|
|
2384
2158
|
==================== START: .bmad-core/utils/workflow-management.md ====================
|
|
2385
2159
|
# Workflow Management
|
|
2386
2160
|
|
|
@@ -3143,7 +2917,7 @@ To comprehensively validate a story draft before implementation begins, ensuring
|
|
|
3143
2917
|
|
|
3144
2918
|
### 0. Load Core Configuration and Inputs
|
|
3145
2919
|
|
|
3146
|
-
- Load `.bmad-core/core-config.yaml`
|
|
2920
|
+
- Load `.bmad-core/core-config.yaml`
|
|
3147
2921
|
- If the file does not exist, HALT and inform the user: "core-config.yaml not found. This file is required for story validation."
|
|
3148
2922
|
- Extract key configurations: `devStoryLocation`, `prd.*`, `architecture.*`
|
|
3149
2923
|
- Identify and load the following inputs:
|
|
@@ -4052,7 +3826,6 @@ To identify the next logical story based on project progress and epic definition
|
|
|
4052
3826
|
- Load `.bmad-core/core-config.yaml` from the project root
|
|
4053
3827
|
- 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."
|
|
4054
3828
|
- Extract key configurations: `devStoryLocation`, `prd.*`, `architecture.*`, `workflow.*`
|
|
4055
|
-
- If `workflow.trackProgress: true`, use `utils/plan-management.md` to check plan sequence and warn if out of order
|
|
4056
3829
|
|
|
4057
3830
|
### 1. Identify Next Story for Preparation
|
|
4058
3831
|
|