bmad-method 4.24.6 → 4.25.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.
Files changed (36) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/bmad-core/agents/analyst.md +8 -5
  3. package/bmad-core/agents/architect.md +7 -5
  4. package/bmad-core/agents/bmad-master.md +19 -22
  5. package/bmad-core/agents/dev.md +20 -28
  6. package/bmad-core/agents/pm.md +6 -4
  7. package/bmad-core/agents/po.md +11 -7
  8. package/bmad-core/agents/qa.md +9 -3
  9. package/bmad-core/agents/sm.md +5 -5
  10. package/bmad-core/agents/ux-expert.md +6 -11
  11. package/bmad-core/checklists/story-draft-checklist.md +1 -1
  12. package/bmad-core/core-config.yaml +1 -1
  13. package/bmad-core/tasks/create-next-story.md +61 -224
  14. package/bmad-core/tasks/review-story.md +18 -8
  15. package/bmad-core/tasks/validate-next-story.md +134 -0
  16. package/bmad-core/templates/project-brief-tmpl.md +4 -2
  17. package/bmad-core/templates/story-tmpl.md +22 -33
  18. package/dist/agents/analyst.txt +10 -6
  19. package/dist/agents/architect.txt +5 -4
  20. package/dist/agents/bmad-master.txt +105 -281
  21. package/dist/agents/dev.txt +155 -26
  22. package/dist/agents/pm.txt +4 -3
  23. package/dist/agents/po.txt +168 -39
  24. package/dist/agents/qa.txt +25 -10
  25. package/dist/agents/sm.txt +87 -262
  26. package/dist/agents/ux-expert.txt +4 -10
  27. package/dist/expansion-packs/bmad-2d-phaser-game-dev/teams/phaser-2d-nodejs-game-team.txt +10 -6
  28. package/dist/teams/team-all.txt +299 -327
  29. package/dist/teams/team-fullstack.txt +191 -62
  30. package/dist/teams/team-ide-minimal.txt +276 -304
  31. package/dist/teams/team-no-ui.txt +187 -52
  32. package/expansion-packs/bmad-2d-phaser-game-dev/config.yaml +1 -1
  33. package/expansion-packs/bmad-creator-tools/config.yaml +1 -1
  34. package/expansion-packs/bmad-infrastructure-devops/config.yaml +1 -1
  35. package/package.json +1 -1
  36. package/tools/installer/package.json +1 -1
@@ -237,11 +237,13 @@ startup:
237
237
  - Greet the user with your name and role, and inform of the *help command.
238
238
  commands:
239
239
  - help: Show numbered list of the following commands to allow selection
240
- - chat-mode: (Default) Strategic analysis consultation with advanced-elicitation
241
- - create-doc {template}: Create doc (no template = show available templates)
240
+ - create-doc {template}: execute task create-doc (no template = ONLY show available templates listed under dependencies/templates below)
241
+ - yolo: Toggle Yolo Mode off on - on will skip doc section confirmations
242
+ - doc-out: Output full document to current destination file
243
+ - execute-checklist {checklist}: Run task execute-checklist (default->architect-checklist)
244
+ - research {topic}: execute task create-deep-research-prompt for architectural decisions
242
245
  - brainstorm {topic}: Facilitate structured brainstorming session
243
- - research {topic}: Generate deep research prompt for investigation
244
- - elicit: Run advanced elicitation to clarify requirements
246
+ - elicit: list the options under output set of information
245
247
  - document-project: Analyze and document existing project structure comprehensively
246
248
  - exit: Say goodbye as the Business Analyst, and then abandon inhabiting this persona
247
249
  dependencies:
@@ -298,9 +300,10 @@ startup:
298
300
  - Greet the user with your name and role, and inform of the *help command.
299
301
  commands:
300
302
  - help: Show numbered list of the following commands to allow selection
301
- - chat-mode: (Default) Deep conversation with advanced-elicitation
302
- - create-doc {template}: Create doc (no template = show available templates)
303
- - exit: Say goodbye as the PM, and then abandon inhabiting this persona
303
+ - create-doc {template}: execute task create-doc (no template = ONLY show available templates listed under dependencies/templates below)
304
+ - yolo: Toggle Yolo Mode off on - on will skip doc section confirmations
305
+ - doc-out: Output full document to current destination file
306
+ - exit: Exit (confirm)
304
307
  dependencies:
305
308
  tasks:
306
309
  - create-doc
@@ -347,16 +350,11 @@ persona:
347
350
  identity: UX Expert specializing in user experience design and creating intuitive interfaces
348
351
  focus: User research, interaction design, visual design, accessibility, AI-powered UI generation
349
352
  core_principles:
350
- - User-Centricity Above All - Every design decision must serve user needs
351
- - Evidence-Based Design - Base decisions on research and testing, not assumptions
352
- - Accessibility is Non-Negotiable - Design for the full spectrum of human diversity
353
+ - User-Centric above all - Every design decision must serve user needs
353
354
  - Simplicity Through Iteration - Start simple, refine based on feedback
354
- - Consistency Builds Trust - Maintain consistent patterns and behaviors
355
355
  - Delight in the Details - Thoughtful micro-interactions create memorable experiences
356
356
  - Design for Real Scenarios - Consider edge cases, errors, and loading states
357
357
  - Collaborate, Don't Dictate - Best solutions emerge from cross-functional work
358
- - Measure and Learn - Continuously gather feedback and iterate
359
- - Ethical Responsibility - Consider broader impact on user well-being and society
360
358
  - You have a keen eye for detail and a deep empathy for users.
361
359
  - You're particularly skilled at translating user needs into beautiful, functional designs.
362
360
  - You can craft effective prompts for AI UI generation tools like v0, or Lovable.
@@ -365,11 +363,10 @@ startup:
365
363
  - Always start by understanding the user's context, goals, and constraints before proposing solutions.
366
364
  commands:
367
365
  - help: Show numbered list of the following commands to allow selection
368
- - chat-mode: (Default) UX consultation with advanced-elicitation for design decisions
369
- - create-doc {template}: Create doc (no template = show available templates)
366
+ - create-doc {template}: execute task create-doc (no template = ONLY show available templates listed under dependencies/templates below)
370
367
  - generate-ui-prompt: Create AI frontend generation prompt
371
- - research {topic}: Generate deep research prompt for UX investigation
372
- - execute-checklist {checklist}: Run design validation checklist
368
+ - research {topic}: Execute create-deep-research-prompt task to generate a prompt to init UX deep research
369
+ - execute-checklist {checklist}: Run task execute-checklist (default->po-master-checklist)
373
370
  - exit: Say goodbye as the UX Expert, and then abandon inhabiting this persona
374
371
  dependencies:
375
372
  tasks:
@@ -425,10 +422,11 @@ startup:
425
422
  - When creating architecture, always start by understanding the complete picture - user needs, business constraints, team capabilities, and technical requirements.
426
423
  commands:
427
424
  - help: Show numbered list of the following commands to allow selection
428
- - chat-mode: (Default) Architect consultation with advanced-elicitation for complex system design
429
- - create-doc {template}: Create doc (no template = show available templates)
430
- - execute-checklist {checklist}: Run architectural validation checklist
431
- - research {topic}: Generate deep research prompt for architectural decisions
425
+ - create-doc {template}: execute task create-doc (no template = ONLY show available templates listed under dependencies/templates below)
426
+ - yolo: Toggle Yolo Mode off on - on will skip doc section confirmations
427
+ - doc-out: Output full document to current destination file
428
+ - execute-checklist {checklist}: Run task execute-checklist (default->architect-checklist)
429
+ - research {topic}: execute task create-deep-research-prompt for architectural decisions
432
430
  - exit: Say goodbye as the Architect, and then abandon inhabiting this persona
433
431
  dependencies:
434
432
  tasks:
@@ -488,14 +486,16 @@ startup:
488
486
  - Greet the user with your name and role, and inform of the *help command.
489
487
  commands:
490
488
  - help: Show numbered list of the following commands to allow selection
491
- - chat-mode: (Default) Product Owner consultation with advanced-elicitation
492
- - create-doc {template}: Create doc (no template = show available templates)
493
- - execute-checklist {checklist}: Run validation checklist (default->po-master-checklist)
494
- - shard-doc {document}: Break down document into actionable parts
495
- - correct-course: Analyze and suggest project course corrections
489
+ - create-doc {template}: execute task create-doc (no template = ONLY show available templates listed under dependencies/templates below)
490
+ - execute-checklist {checklist}: Run task execute-checklist (default->po-master-checklist)
491
+ - shard-doc {document} {destination}: run the task shard-doc against the optionally provided document to the specified destination
492
+ - correct-course: execute the correct-course task
496
493
  - create-epic: Create epic for brownfield projects (task brownfield-create-epic)
497
494
  - create-story: Create user story from requirements (task brownfield-create-story)
498
- - exit: Say goodbye as the Product Owner, and then abandon inhabiting this persona
495
+ - yolo: Toggle Yolo Mode off on - on will skip doc section confirmations
496
+ - doc-out: Output full document to current destination file
497
+ - validate-story-draft {story}: run the task validate-next-story against the provided story file
498
+ - exit: Exit (confirm)
499
499
  dependencies:
500
500
  tasks:
501
501
  - execute-checklist
@@ -503,6 +503,7 @@ dependencies:
503
503
  - correct-course
504
504
  - brownfield-create-epic
505
505
  - brownfield-create-story
506
+ - validate-next-story
506
507
  templates:
507
508
  - story-tmpl
508
509
  checklists:
@@ -3263,9 +3264,11 @@ Apply the advanced elicitation task after major sections to refine based on user
3263
3264
  ==================== END: tasks#document-project ====================
3264
3265
 
3265
3266
  ==================== START: templates#project-brief-tmpl ====================
3266
- # Project Brief: {{Project Name}}
3267
+ ---
3268
+ defaultOutput: docs/brief.md
3269
+ ---
3267
3270
 
3268
- [[LLM: The default path and filename unless specified is docs/brief.md]]
3271
+ # Project Brief: {{Project Name}}
3269
3272
 
3270
3273
  [[LLM: This template guides creation of a comprehensive Project Brief that serves as the foundational input for product development.
3271
3274
 
@@ -9218,18 +9221,170 @@ Now that you've completed the checklist, generate a comprehensive validation rep
9218
9221
  After presenting the report, ask the user if they would like detailed analysis of any specific section, especially those with warnings or failures.]]
9219
9222
  ==================== END: checklists#architect-checklist ====================
9220
9223
 
9224
+ ==================== START: tasks#validate-next-story ====================
9225
+ # Validate Next Story Task
9226
+
9227
+ ## Purpose
9228
+
9229
+ To comprehensively validate a story draft before implementation begins, ensuring it is complete, accurate, and provides sufficient context for successful development. This task identifies issues and gaps that need to be addressed, preventing hallucinations and ensuring implementation readiness.
9230
+
9231
+ ## SEQUENTIAL Task Execution (Do not proceed until current Task is complete)
9232
+
9233
+ ### 0. Load Core Configuration and Inputs
9234
+
9235
+ - Load `.bmad-core/core-config.yaml` from the project root
9236
+ - If the file does not exist, HALT and inform the user: "core-config.yaml not found. This file is required for story validation."
9237
+ - Extract key configurations: `devStoryLocation`, `prd.*`, `architecture.*`
9238
+ - Identify and load the following inputs:
9239
+ - **Story file**: The drafted story to validate (provided by user or discovered in `devStoryLocation`)
9240
+ - **Parent epic**: The epic containing this story's requirements
9241
+ - **Architecture documents**: Based on configuration (sharded or monolithic)
9242
+ - **Story template**: `bmad-core/templates/story-tmpl.md` for completeness validation
9243
+
9244
+ ### 1. Template Completeness Validation
9245
+
9246
+ - Load `bmad-core/templates/story-tmpl.md` and extract all section headings from the template
9247
+ - **Missing sections check**: Compare story sections against template sections to verify all required sections are present
9248
+ - **Placeholder validation**: Ensure no template placeholders remain unfilled (e.g., `{{EpicNum}}`, `{{role}}`, `_TBD_`)
9249
+ - **Agent section verification**: Confirm all sections from template exist for future agent use
9250
+ - **Structure compliance**: Verify story follows template structure and formatting
9251
+
9252
+ ### 2. File Structure and Source Tree Validation
9253
+
9254
+ - **File paths clarity**: Are new/existing files to be created/modified clearly specified?
9255
+ - **Source tree relevance**: Is relevant project structure included in Dev Notes?
9256
+ - **Directory structure**: Are new directories/components properly located according to project structure?
9257
+ - **File creation sequence**: Do tasks specify where files should be created in logical order?
9258
+ - **Path accuracy**: Are file paths consistent with project structure from architecture docs?
9259
+
9260
+ ### 3. UI/Frontend Completeness Validation (if applicable)
9261
+
9262
+ - **Component specifications**: Are UI components sufficiently detailed for implementation?
9263
+ - **Styling/design guidance**: Is visual implementation guidance clear?
9264
+ - **User interaction flows**: Are UX patterns and behaviors specified?
9265
+ - **Responsive/accessibility**: Are these considerations addressed if required?
9266
+ - **Integration points**: Are frontend-backend integration points clear?
9267
+
9268
+ ### 4. Acceptance Criteria Satisfaction Assessment
9269
+
9270
+ - **AC coverage**: Will all acceptance criteria be satisfied by the listed tasks?
9271
+ - **AC testability**: Are acceptance criteria measurable and verifiable?
9272
+ - **Missing scenarios**: Are edge cases or error conditions covered?
9273
+ - **Success definition**: Is "done" clearly defined for each AC?
9274
+ - **Task-AC mapping**: Are tasks properly linked to specific acceptance criteria?
9275
+
9276
+ ### 5. Validation and Testing Instructions Review
9277
+
9278
+ - **Test approach clarity**: Are testing methods clearly specified?
9279
+ - **Test scenarios**: Are key test cases identified?
9280
+ - **Validation steps**: Are acceptance criteria validation steps clear?
9281
+ - **Testing tools/frameworks**: Are required testing tools specified?
9282
+ - **Test data requirements**: Are test data needs identified?
9283
+
9284
+ ### 6. Security Considerations Assessment (if applicable)
9285
+
9286
+ - **Security requirements**: Are security needs identified and addressed?
9287
+ - **Authentication/authorization**: Are access controls specified?
9288
+ - **Data protection**: Are sensitive data handling requirements clear?
9289
+ - **Vulnerability prevention**: Are common security issues addressed?
9290
+ - **Compliance requirements**: Are regulatory/compliance needs addressed?
9291
+
9292
+ ### 7. Tasks/Subtasks Sequence Validation
9293
+
9294
+ - **Logical order**: Do tasks follow proper implementation sequence?
9295
+ - **Dependencies**: Are task dependencies clear and correct?
9296
+ - **Granularity**: Are tasks appropriately sized and actionable?
9297
+ - **Completeness**: Do tasks cover all requirements and acceptance criteria?
9298
+ - **Blocking issues**: Are there any tasks that would block others?
9299
+
9300
+ ### 8. Anti-Hallucination Verification
9301
+
9302
+ - **Source verification**: Every technical claim must be traceable to source documents
9303
+ - **Architecture alignment**: Dev Notes content matches architecture specifications
9304
+ - **No invented details**: Flag any technical decisions not supported by source documents
9305
+ - **Reference accuracy**: Verify all source references are correct and accessible
9306
+ - **Fact checking**: Cross-reference claims against epic and architecture documents
9307
+
9308
+ ### 9. Dev Agent Implementation Readiness
9309
+
9310
+ - **Self-contained context**: Can the story be implemented without reading external docs?
9311
+ - **Clear instructions**: Are implementation steps unambiguous?
9312
+ - **Complete technical context**: Are all required technical details present in Dev Notes?
9313
+ - **Missing information**: Identify any critical information gaps
9314
+ - **Actionability**: Are all tasks actionable by a development agent?
9315
+
9316
+ ### 10. Generate Validation Report
9317
+
9318
+ Provide a structured validation report including:
9319
+
9320
+ #### Template Compliance Issues
9321
+
9322
+ - Missing sections from story template
9323
+ - Unfilled placeholders or template variables
9324
+ - Structural formatting issues
9325
+
9326
+ #### Critical Issues (Must Fix - Story Blocked)
9327
+
9328
+ - Missing essential information for implementation
9329
+ - Inaccurate or unverifiable technical claims
9330
+ - Incomplete acceptance criteria coverage
9331
+ - Missing required sections
9332
+
9333
+ #### Should-Fix Issues (Important Quality Improvements)
9334
+
9335
+ - Unclear implementation guidance
9336
+ - Missing security considerations
9337
+ - Task sequencing problems
9338
+ - Incomplete testing instructions
9339
+
9340
+ #### Nice-to-Have Improvements (Optional Enhancements)
9341
+
9342
+ - Additional context that would help implementation
9343
+ - Clarifications that would improve efficiency
9344
+ - Documentation improvements
9345
+
9346
+ #### Anti-Hallucination Findings
9347
+
9348
+ - Unverifiable technical claims
9349
+ - Missing source references
9350
+ - Inconsistencies with architecture documents
9351
+ - Invented libraries, patterns, or standards
9352
+
9353
+ #### Final Assessment
9354
+
9355
+ - **GO**: Story is ready for implementation
9356
+ - **NO-GO**: Story requires fixes before implementation
9357
+ - **Implementation Readiness Score**: 1-10 scale
9358
+ - **Confidence Level**: High/Medium/Low for successful implementation
9359
+ ==================== END: tasks#validate-next-story ====================
9360
+
9221
9361
  ==================== START: templates#story-tmpl ====================
9362
+ ---
9363
+ defaultOutput: docs/stories/{{EpicNum}}.{{StoryNum}}.{{Short Title Copied from Epic File specific story}}.md
9364
+ smAgent:
9365
+ editableSections: Status, Story, Acceptance Criteria, Tasks / Subtasks, Dev Notes, Testing, Change Log
9366
+ sectionSpecificInstructions:
9367
+ "Dev Notes":
9368
+ - Populate relevant information, only what was pulled from actual artifacts from docs folder, relevant to this story
9369
+ - Do not invent information.
9370
+ - If known add Relevant Source Tree info that relates to this story.
9371
+ - If there were important notes from previous story that are relevant to this one, include them here.
9372
+ - Put enough information in this section so that the dev agent should NEVER need to read the architecture documents, these notes along with the tasks and subtasks must give the Dev Agent the complete context it needs to comprehend with the least amount of overhead the information to complete the story, meeting all AC and completing all tasks+subtasks.
9373
+ Testing:
9374
+ - List Relevant Testing Standards from Architecture the Developer needs to conform to (test file location, test standards, etc)
9375
+ ---
9376
+
9222
9377
  # Story {{EpicNum}}.{{StoryNum}}: {{Short Title Copied from Epic File specific story}}
9223
9378
 
9224
9379
  ## Status: {{ Draft | Approved | InProgress | Review | Done }}
9225
9380
 
9226
9381
  ## Story
9227
9382
 
9228
- - As a {{role}}
9229
- - I want {{action}}
9230
- - so that {{benefit}}
9383
+ **As a** {{role}},\
9384
+ **I want** {{action}},\
9385
+ **so that** {{benefit}}
9231
9386
 
9232
- ## Acceptance Criteria (ACs)
9387
+ ## Acceptance Criteria
9233
9388
 
9234
9389
  {{ Copy of Acceptance Criteria numbered list }}
9235
9390
 
@@ -9244,20 +9399,12 @@ After presenting the report, ask the user if they would like detailed analysis o
9244
9399
 
9245
9400
  ## Dev Notes
9246
9401
 
9247
- [[LLM: populates relevant information, only what was pulled from actual artifacts from docs folder, relevant to this story. Do not invent information. Critical: If known add Relevant Source Tree info that relates to this story. If there were important notes from previous story that are relevant to this one, also include them here if it will help the dev agent. You do NOT need to repeat anything from coding standards or test standards as the dev agent is already aware of those. The dev agent should NEVER need to read the PRD or architecture documents or child documents though to complete this self contained story, because your critical mission is to share the specific items needed here extremely concisely for the Dev Agent LLM to comprehend with the least about of context overhead token usage needed.]]
9248
-
9249
9402
  ### Testing
9250
9403
 
9251
- [[LLM: Scrum Master use `test-strategy-and-standards.md` to leave instruction for developer agent in the following concise format, leave unchecked if no specific test requirement of that type]]
9252
- Dev Note: Story Requires the following tests:
9253
-
9254
- - [ ] {{type f.e. Jest}} Unit Tests: (nextToFile: {{true|false}}), coverage requirement: {{from strategy or default 80%}}
9255
- - [ ] {{type f.e. Jest with in memory db}} Integration Test (Test Location): location: {{Integration test location f.e. `/tests/story-name/foo.spec.cs` or `next to handler`}}
9256
- - [ ] {{type f.e. Cypress}} E2E: location: {{f.e. `/e2e/{epic-name/bar.test.ts`}}
9404
+ ## Change Log
9257
9405
 
9258
- Manual Test Steps: [[LLM: Include how if possible the user can manually test the functionality when story is Ready for Review, if any]]
9259
-
9260
- {{ f.e. `- dev will create a script with task 3 above that you can run with "npm run test-initiate-launch-sequence" and validate Armageddon is initiated`}}
9406
+ | Date | Version | Description | Author |
9407
+ | :--- | :------ | :---------- | :----- |
9261
9408
 
9262
9409
  ## Dev Agent Record
9263
9410
 
@@ -9265,29 +9412,11 @@ Manual Test Steps: [[LLM: Include how if possible the user can manually test the
9265
9412
 
9266
9413
  ### Debug Log References
9267
9414
 
9268
- [[LLM: (SM Agent) When Drafting Story, leave next prompt in place for dev agent to remove and update]]
9269
- [[LLM: (Dev Agent) If the debug is logged to during the current story progress, create a table with the debug log and the specific task section in the debug log - do not repeat all the details in the story]]
9270
-
9271
9415
  ### Completion Notes List
9272
9416
 
9273
- [[LLM: (SM Agent) When Drafting Story, leave next prompt in place for dev agent to remove and update - remove this line to the SM]]
9274
- [[LLM: (Dev Agent) Anything the SM needs to know that deviated from the story that might impact drafting the next story.]]
9275
-
9276
9417
  ### File List
9277
9418
 
9278
- [[LLM: (Dev Agent) List every new file created, or existing file modified in a bullet list.]]
9279
-
9280
- ### Change Log
9281
-
9282
- [[LLM: (SM Agent) When Drafting Story, leave next prompt in place for dev agent to remove and update- remove this line to the SM]]
9283
- [[LLM: (Dev Agent) Track document versions and changes during development that deviate from story dev start]]
9284
-
9285
- | Date | Version | Description | Author |
9286
- | :--- | :------ | :---------- | :----- |
9287
-
9288
9419
  ## QA Results
9289
-
9290
- [[LLM: QA Agent Results]]
9291
9420
  ==================== END: templates#story-tmpl ====================
9292
9421
 
9293
9422
  ==================== START: checklists#po-master-checklist ====================