bmad-method 4.6.3 → 4.8.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 (50) hide show
  1. package/.prettierignore +0 -1
  2. package/CHANGELOG.md +24 -0
  3. package/README.md +18 -1
  4. package/bmad-core/agents/analyst.md +11 -8
  5. package/bmad-core/agents/architect.md +10 -7
  6. package/bmad-core/agents/bmad-master.md +13 -11
  7. package/bmad-core/agents/bmad-orchestrator.md +3 -0
  8. package/bmad-core/agents/dev.md +19 -14
  9. package/bmad-core/agents/pm.md +8 -5
  10. package/bmad-core/agents/po.md +13 -10
  11. package/bmad-core/agents/qa.md +8 -5
  12. package/bmad-core/agents/sm.md +15 -25
  13. package/bmad-core/agents/ux-expert.md +11 -8
  14. package/bmad-core/core-config.yml +24 -0
  15. package/bmad-core/data/bmad-kb.md +391 -10
  16. package/bmad-core/tasks/create-next-story.md +63 -45
  17. package/bmad-core/utils/file-resolution-context.md +10 -0
  18. package/dist/agents/analyst.txt +404 -17
  19. package/dist/agents/architect.txt +14 -6
  20. package/dist/agents/bmad-master.txt +485 -109
  21. package/dist/agents/bmad-orchestrator.txt +402 -22
  22. package/dist/agents/dev.txt +26 -34
  23. package/dist/agents/pm.txt +9 -5
  24. package/dist/agents/po.txt +10 -10
  25. package/dist/agents/qa.txt +4 -4
  26. package/dist/agents/sm.txt +74 -63
  27. package/dist/agents/ux-expert.txt +9 -7
  28. package/dist/expansion-packs/bmad-2d-phaser-game-dev/teams/phaser-2d-nodejs-game-team.txt +49 -20
  29. package/dist/expansion-packs/expansion-creator/agents/bmad-the-creator.txt +6 -3
  30. package/dist/teams/team-all.txt +561 -158
  31. package/dist/teams/team-fullstack.txt +457 -57
  32. package/dist/teams/team-ide-minimal.txt +516 -133
  33. package/dist/teams/team-no-ui.txt +448 -50
  34. package/docs/bmad-workflow-guide.md +10 -8
  35. package/docs/claude-code-guide.md +1 -1
  36. package/docs/core-architecture.md +4 -4
  37. package/docs/cursor-guide.md +1 -1
  38. package/docs/roo-code-guide.md +1 -1
  39. package/docs/user-guide.md +30 -21
  40. package/docs/windsurf-guide.md +1 -1
  41. package/expansion-packs/bmad-infrastructure-devops/data/bmad-kb.md +3 -0
  42. package/expansion-packs/expansion-creator/templates/agent-tmpl.md +4 -1
  43. package/package.json +1 -1
  44. package/tools/builders/web-builder.js +158 -94
  45. package/tools/installer/bin/bmad.js +34 -2
  46. package/tools/installer/lib/file-manager.js +3 -2
  47. package/tools/installer/lib/ide-setup.js +39 -123
  48. package/tools/installer/lib/installer.js +13 -1
  49. package/tools/installer/package.json +1 -1
  50. /package/bmad-core/{templates/web-agent-startup-instructions-template.md → utils/web-agent-startup-instructions.md} +0 -0
@@ -39,9 +39,9 @@ These references map directly to bundle sections:
39
39
  ---
40
40
 
41
41
  ==================== START: agents#bmad-orchestrator ====================
42
- # bmad
42
+ # bmad-orchestrator
43
43
 
44
- CRITICAL: Read the full YML to understand your operating params, start activation to alter your state of being, follow startup instructions, stay in this being until told to exit this mode:
44
+ CRITICAL: Read the full YML, start activation to alter your state of being, follow startup section instructions, stay in this being until told to exit this mode:
45
45
 
46
46
  ```yaml
47
47
  agent:
@@ -73,9 +73,9 @@ startup:
73
73
  - If clear match to an agent's expertise, suggest transformation with *agent command
74
74
  - If project-oriented, suggest *workflow-guidance to explore options
75
75
  - Load resources only when needed - never pre-load
76
- commands: # All commands require * prefix when used (e.g., *help, *agent pm)
76
+ commands:
77
77
  help: Show this guide with available agents and workflows
78
- chat-mode: Start conversational mode for detailed assistance
78
+ chat-mode: Start conversational mode for detailed assistance
79
79
  kb-mode: Load full BMAD knowledge base
80
80
  status: Show current context, active agent, and progress
81
81
  agent: Transform into a specialized agent (list if name not specified)
@@ -90,41 +90,40 @@ commands: # All commands require * prefix when used (e.g., *help, *agent pm)
90
90
  help-display-template: |
91
91
  === BMAD Orchestrator Commands ===
92
92
  All commands must start with * (asterisk)
93
-
93
+
94
94
  Core Commands:
95
95
  *help ............... Show this guide
96
96
  *chat-mode .......... Start conversational mode for detailed assistance
97
97
  *kb-mode ............ Load full BMAD knowledge base
98
98
  *status ............. Show current context, active agent, and progress
99
99
  *exit ............... Return to BMad or exit session
100
-
100
+
101
101
  Agent & Task Management:
102
102
  *agent [name] ....... Transform into specialized agent (list if no name)
103
103
  *task [name] ........ Run specific task (list if no name, requires agent)
104
104
  *checklist [name] ... Execute checklist (list if no name, requires agent)
105
-
105
+
106
106
  Workflow Commands:
107
107
  *workflow [name] .... Start specific workflow (list if no name)
108
108
  *workflow-guidance .. Get personalized help selecting the right workflow
109
-
109
+
110
110
  Other Commands:
111
111
  *yolo ............... Toggle skip confirmations mode
112
112
  *party-mode ......... Group chat with all agents
113
113
  *doc-out ............ Output full document
114
-
114
+
115
115
  === Available Specialist Agents ===
116
116
  [Dynamically list each agent in bundle with format:
117
117
  *agent {id}: {title}
118
118
  When to use: {whenToUse}
119
119
  Key deliverables: {main outputs/documents}]
120
-
120
+
121
121
  === Available Workflows ===
122
122
  [Dynamically list each workflow in bundle with format:
123
123
  *workflow {id}: {name}
124
124
  Purpose: {description}]
125
-
126
- 💡 Tip: Each agent has unique tasks, templates, and checklists. Switch to an agent to access their capabilities!
127
125
 
126
+ 💡 Tip: Each agent has unique tasks, templates, and checklists. Switch to an agent to access their capabilities!
128
127
  fuzzy-matching:
129
128
  - 85% confidence threshold
130
129
  - Show numbered list if unsure
@@ -345,6 +344,60 @@ BMAD-METHOD (Breakthrough Method of Agile AI-driven Development) is a framework
345
344
  - **Reusable Resources**: Portable templates, tasks, and checklists
346
345
  - **Slash Command Integration**: Quick agent switching and control
347
346
 
347
+ ### When to Use BMAD
348
+
349
+ - **New Projects (Greenfield)**: Complete end-to-end development
350
+ - **Existing Projects (Brownfield)**: Feature additions and enhancements
351
+ - **Team Collaboration**: Multiple roles working together
352
+ - **Quality Assurance**: Structured testing and validation
353
+ - **Documentation**: Professional PRDs, architecture docs, user stories
354
+
355
+ ## Getting Started
356
+
357
+ ### Quick Start Options
358
+
359
+ #### Option 1: Web UI
360
+ **Best for**: ChatGPT, Claude, Gemini users who want to start immediately
361
+
362
+ 1. Navigate to `dist/teams/`
363
+ 2. Copy `team-fullstack.txt` content
364
+ 3. Create new Gemini Gem or CustomGPT
365
+ 4. Upload file with instructions: "Your critical operating instructions are attached, do not break character as directed"
366
+ 5. Type `/help` to see available commands
367
+
368
+ #### Option 2: IDE Integration
369
+ **Best for**: Cursor, Claude Code, Windsurf, VS Code users
370
+
371
+ ```bash
372
+ # Interactive installation (recommended)
373
+ npx bmad-method install
374
+ ```
375
+
376
+ **Installation Steps**:
377
+ - Choose "Complete installation"
378
+ - Select your IDE (Cursor, Claude Code, Windsurf, or Roo Code)
379
+
380
+ **Verify Installation**:
381
+ - `.bmad-core/` folder created with all agents
382
+ - IDE-specific integration files created
383
+ - All agent commands/rules/modes available
384
+
385
+ ### Environment Selection Guide
386
+
387
+ **Use Web UI for**:
388
+ - Initial planning and documentation (PRD, architecture)
389
+ - Cost-effective document creation (especially with Gemini)
390
+ - Brainstorming and analysis phases
391
+ - Multi-agent consultation and planning
392
+
393
+ **Use IDE for**:
394
+ - Active development and coding
395
+ - File operations and project integration
396
+ - Document sharding and story management
397
+ - Implementation workflow (SM/Dev cycles)
398
+
399
+ **Cost-Saving Tip**: Create large documents (PRDs, architecture) in web UI, then copy to `docs/prd.md` and `docs/architecture.md` in your project before switching to IDE for development.
400
+
348
401
  ## Core Philosophy
349
402
 
350
403
  ### Vibe CEO'ing
@@ -366,18 +419,345 @@ You are the "Vibe CEO" - thinking like a CEO with unlimited resources and a sing
366
419
  7. **START_SMALL_SCALE_FAST**: Test concepts, then expand.
367
420
  8. **EMBRACE_THE_CHAOS**: Adapt and overcome challenges.
368
421
 
369
- ## IDE Development Workflow
422
+ ### Key Workflow Principles
423
+
424
+ 1. **Agent Specialization**: Each agent has specific expertise and responsibilities
425
+ 2. **Clean Handoffs**: Always start fresh when switching between agents
426
+ 3. **Status Tracking**: Maintain story statuses (Draft → Approved → InProgress → Done)
427
+ 4. **Iterative Development**: Complete one story before starting the next
428
+ 5. **Documentation First**: Always start with solid PRD and architecture
429
+
430
+ ## Agent System
431
+
432
+ ### Core Development Team
433
+
434
+ | Agent | Role | Primary Functions | When to Use |
435
+ | ----------- | ------------------ | --------------------------------------- | -------------------------------------- |
436
+ | `analyst` | Business Analyst | Market research, requirements gathering | Project planning, competitive analysis |
437
+ | `pm` | Product Manager | PRD creation, feature prioritization | Strategic planning, roadmaps |
438
+ | `architect` | Solution Architect | System design, technical architecture | Complex systems, scalability planning |
439
+ | `dev` | Developer | Code implementation, debugging | All development tasks |
440
+ | `qa` | QA Specialist | Test planning, quality assurance | Testing strategies, bug validation |
441
+ | `ux-expert` | UX Designer | UI/UX design, prototypes | User experience, interface design |
442
+ | `po` | Product Owner | Backlog management, story validation | Story refinement, acceptance criteria |
443
+ | `sm` | Scrum Master | Sprint planning, story creation | Project management, workflow |
444
+
445
+ ### Meta Agents
446
+
447
+ | Agent | Role | Primary Functions | When to Use |
448
+ | ------------------- | ---------------- | ------------------------------------- | --------------------------------- |
449
+ | `bmad-orchestrator` | Team Coordinator | Multi-agent workflows, role switching | Complex multi-role tasks |
450
+ | `bmad-master` | Universal Expert | All capabilities without switching | Single-session comprehensive work |
451
+
452
+ ### Agent Interaction Commands
453
+
454
+ #### IDE-Specific Syntax
455
+
456
+ **Agent Loading by IDE**:
457
+ - **Claude Code**: `/agent-name` (e.g., `/bmad-master`)
458
+ - **Cursor**: `@agent-name` (e.g., `@bmad-master`)
459
+ - **Windsurf**: `@agent-name` (e.g., `@bmad-master`)
460
+ - **Roo Code**: Select mode from mode selector (e.g., `bmad-bmad-master`)
461
+
462
+ **Chat Management Guidelines**:
463
+ - **Claude Code, Cursor, Windsurf**: Start new chats when switching agents
464
+ - **Roo Code**: Switch modes within the same conversation
465
+
466
+ **Common Task Commands**:
467
+ - `*help` - Show available commands
468
+ - `*status` - Show current context/progress
469
+ - `*exit` - Exit the agent mode
470
+ - `*shard-doc docs/prd.md prd` - Shard PRD into manageable pieces
471
+ - `*shard-doc docs/architecture.md architecture` - Shard architecture document
472
+ - `*create` - Run create-next-story task (SM agent)
473
+
474
+ **In Web UI**:
475
+ ```text
476
+ /pm create-doc prd
477
+ /architect review system design
478
+ /dev implement story 1.2
479
+ /help - Show available commands
480
+ /switch agent-name - Change active agent (if orchestrator available)
481
+ ```
482
+
483
+ ## Team Configurations
484
+
485
+ ### Pre-Built Teams
486
+
487
+ #### Team All
488
+ - **Includes**: All 10 agents + orchestrator
489
+ - **Use Case**: Complete projects requiring all roles
490
+ - **Bundle**: `team-all.txt`
491
+
492
+ #### Team Fullstack
493
+ - **Includes**: PM, Architect, Developer, QA, UX Expert
494
+ - **Use Case**: End-to-end web/mobile development
495
+ - **Bundle**: `team-fullstack.txt`
496
+
497
+ #### Team No-UI
498
+ - **Includes**: PM, Architect, Developer, QA (no UX Expert)
499
+ - **Use Case**: Backend services, APIs, system development
500
+ - **Bundle**: `team-no-ui.txt`
501
+
502
+ ## Core Architecture
503
+
504
+ ### System Overview
505
+
506
+ The BMAD-Method is built around a modular architecture centered on the `bmad-core` directory, which serves as the brain of the entire system. This design enables the framework to operate effectively in both IDE environments (like Cursor, VS Code) and web-based AI interfaces (like ChatGPT, Gemini).
507
+
508
+ ### Key Architectural Components
509
+
510
+ #### 1. Agents (`bmad-core/agents/`)
511
+ - **Purpose**: Each markdown file defines a specialized AI agent for a specific Agile role (PM, Dev, Architect, etc.)
512
+ - **Structure**: Contains YAML headers specifying the agent's persona, capabilities, and dependencies
513
+ - **Dependencies**: Lists of tasks, templates, checklists, and data files the agent can use
514
+ - **Startup Instructions**: Can load project-specific documentation for immediate context
515
+
516
+ #### 2. Agent Teams (`bmad-core/agent-teams/`)
517
+ - **Purpose**: Define collections of agents bundled together for specific purposes
518
+ - **Examples**: `team-all.yml` (comprehensive bundle), `team-fullstack.yml` (full-stack development)
519
+ - **Usage**: Creates pre-packaged contexts for web UI environments
520
+
521
+ #### 3. Workflows (`bmad-core/workflows/`)
522
+ - **Purpose**: YAML files defining prescribed sequences of steps for specific project types
523
+ - **Types**: Greenfield (new projects) and Brownfield (existing projects) for UI, service, and fullstack development
524
+ - **Structure**: Defines agent interactions, artifacts created, and transition conditions
525
+
526
+ #### 4. Reusable Resources
527
+ - **Templates** (`bmad-core/templates/`): Markdown templates for PRDs, architecture specs, user stories
528
+ - **Tasks** (`bmad-core/tasks/`): Instructions for specific repeatable actions like "shard-doc" or "create-next-story"
529
+ - **Checklists** (`bmad-core/checklists/`): Quality assurance checklists for validation and review
530
+ - **Data** (`bmad-core/data/`): Core knowledge base and technical preferences
531
+
532
+ ### Dual Environment Architecture
533
+
534
+ #### IDE Environment
535
+
536
+ - Users interact directly with agent markdown files
537
+ - Agents can access all dependencies dynamically
538
+ - Supports real-time file operations and project integration
539
+ - Optimized for development workflow execution
540
+
541
+ #### Web UI Environment
542
+
543
+ - Uses pre-built bundles from `dist/teams` for stand alone 1 upload files for all agents and their assest with an orchestrating agent
544
+ - Single text files containing all agent dependencies are in `dist/agents/` - these are unnecessary unless you want to create a web agent that is only a single agent and not a team
545
+ - Created by the web-builder tool for upload to web interfaces
546
+ - Provides complete context in one package
547
+
548
+ ### Template Processing System
549
+
550
+ BMAD employs a sophisticated template system with three key components:
551
+
552
+ 1. **Template Format** (`utils/template-format.md`): Defines markup language for variable substitution and AI processing directives
553
+ 2. **Document Creation** (`tasks/create-doc.md`): Orchestrates template selection and user interaction
554
+ 3. **Advanced Elicitation** (`tasks/advanced-elicitation.md`): Provides interactive refinement through structured brainstorming
555
+
556
+ **Template Features**:
557
+
558
+ - **Self-contained**: Templates embed both output structure and processing instructions
559
+ - **Variable Substitution**: `{{placeholders}}` for dynamic content
560
+ - **AI Processing Directives**: `[[LLM: instructions]]` for AI-only processing
561
+ - **Interactive Refinement**: Built-in elicitation processes for quality improvement
562
+
563
+ ### Technical Preferences Integration
564
+
565
+ The `technical-preferences.md` file serves as a persistent technical profile that:
566
+ - Ensures consistency across all agents and projects
567
+ - Eliminates repetitive technology specification
568
+ - Provides personalized recommendations aligned with user preferences
569
+ - Evolves over time with lessons learned
570
+
571
+ ### Build and Delivery Process
572
+
573
+ The `web-builder.js` tool creates web-ready bundles by:
574
+ 1. Reading agent or team definition files
575
+ 2. Recursively resolving all dependencies
576
+ 3. Concatenating content into single text files with clear separators
577
+ 4. Outputting ready-to-upload bundles for web AI interfaces
578
+
579
+ This architecture enables seamless operation across environments while maintaining the rich, interconnected agent ecosystem that makes BMAD powerful.
580
+
581
+ ## Complete Development Workflow
582
+
583
+ ### Planning Phase (Web UI Recommended)
584
+
585
+ **Ideal for cost efficiency, especially with Gemini:**
586
+
587
+ 1. **Optional Analysis**: `/analyst` - Market research, competitive analysis
588
+ 2. **Project Brief**: Create foundation document (Analyst or user)
589
+ 3. **PRD Creation**: `/pm create-doc prd` - Comprehensive product requirements
590
+ 4. **Architecture Design**: `/architect create-doc architecture` - Technical foundation
591
+ 5. **Validation & Alignment**: `/po` run master checklist to ensure document consistency
592
+ 6. **Document Preparation**: Copy final documents to project as `docs/prd.md` and `docs/architecture.md`
593
+
594
+ #### Example Planning Prompts
595
+
596
+ **For PRD Creation**:
597
+ ```text
598
+ "I want to build a [type] application that [core purpose].
599
+ Help me brainstorm features and create a comprehensive PRD."
600
+ ```
601
+
602
+ **For Architecture Design**:
603
+ ```text
604
+ "Based on this PRD, design a scalable technical architecture
605
+ that can handle [specific requirements]."
606
+ ```
607
+
608
+ ### Critical Transition: Web UI to IDE
609
+
610
+ **Once planning is complete, you MUST switch to IDE for development:**
611
+
612
+ - **Why**: Development workflow requires file operations, real-time project integration, and document sharding
613
+ - **Cost Benefit**: Web UI is more cost-effective for large document creation; IDE is optimized for development tasks
614
+ - **Required Files**: Ensure `docs/prd.md` and `docs/architecture.md` exist in your project
615
+
616
+ ### IDE Development Workflow
617
+
618
+ **Prerequisites**: Planning documents must exist in `docs/` folder
619
+
620
+ 1. **Document Sharding**:
621
+ - `@bmad-master` or `@po` shard `docs/prd.md` to `docs/prd/` folder
622
+ - If architecture exists, shard to `docs/architecture/` folder
623
+ - Results in multiple manageable documents and epic files
624
+
625
+ 2. **Verify Sharded Content**:
626
+ - At least one `epic-n.md` file in `docs/prd/` with stories in development order
627
+ - Source tree document and coding standards for dev agent reference
628
+ - Sharded docs for SM agent story creation
629
+
630
+ **Resulting Folder Structure**:
631
+ - `docs/prd/` - Broken down PRD sections
632
+ - `docs/architecture/` - Broken down architecture sections
633
+ - `docs/stories/` - Generated user stories
634
+
635
+ 3. **Development Cycle** (Sequential, one story at a time):
636
+
637
+ **Step 1 - Story Creation**: New chat window → `@sm` → `*create`
638
+ - SM executes create-next-story task
639
+ - Review generated story in `docs/stories/`
640
+ - Update status from "Draft" to "Approved"
641
+
642
+ **Step 2 - Story Implementation**: New chat window → `@dev`
643
+ - Agent asks which story to implement
644
+ - Include story file content to save dev agent lookup time
645
+ - Dev follows tasks/subtasks, marking completion
646
+ - Dev leaves notes for SM about any deviations
647
+ - Update status to "Done"
648
+
649
+ **Step 3 - Repeat**: Continue SM → Dev cycle until all epic stories complete
650
+
651
+ **Important**: Only 1 story in progress at a time, worked sequentially until all epic stories complete.
652
+
653
+ ### Status Tracking Workflow
654
+
655
+ Stories progress through defined statuses:
656
+ - **Draft** → **Approved** → **InProgress** → **Done**
657
+
658
+ Each status change requires user verification and approval before proceeding.
659
+
660
+ ### Workflow Types
661
+
662
+ #### Greenfield Development
663
+ - Business analysis and market research
664
+ - Product requirements and feature definition
665
+ - System architecture and design
666
+ - Development execution
667
+ - Testing and deployment
668
+
669
+ #### Brownfield Enhancement
670
+ - Current system analysis
671
+ - Enhancement planning
672
+ - Impact assessment
673
+ - Incremental development
674
+ - Integration testing
675
+
676
+ ## Document Creation Best Practices
677
+
678
+ ### Required File Naming for Framework Integration
679
+
680
+ - `docs/prd.md` - Product Requirements Document
681
+ - `docs/architecture.md` - System Architecture Document
682
+
683
+ **Why These Names Matter**:
684
+ - Agents automatically reference these files during development
685
+ - Sharding tasks expect these specific filenames
686
+ - Workflow automation depends on standard naming
687
+
688
+ ### Cost-Effective Document Creation Workflow
689
+
690
+ **Recommended for Large Documents (PRD, Architecture):**
691
+
692
+ 1. **Use Web UI**: Create documents in web interface for cost efficiency
693
+ 2. **Copy Final Output**: Save complete markdown to your project
694
+ 3. **Standard Names**: Save as `docs/prd.md` and `docs/architecture.md`
695
+ 4. **Switch to IDE**: Use IDE agents for development and smaller documents
696
+
697
+ ### Document Sharding
698
+
699
+ Templates with Level 2 headings (`##`) can be automatically sharded:
700
+
701
+ **Original PRD**:
702
+ ```markdown
703
+ ## Goals and Background Context
704
+ ## Requirements
705
+ ## User Interface Design Goals
706
+ ## Success Metrics
707
+ ```
708
+
709
+ **After Sharding**:
710
+ - `docs/prd/goals-and-background-context.md`
711
+ - `docs/prd/requirements.md`
712
+ - `docs/prd/user-interface-design-goals.md`
713
+ - `docs/prd/success-metrics.md`
714
+
715
+ Use the `shard-doc` task or `@kayvan/markdown-tree-parser` tool for automatic sharding.
716
+
717
+ ## Usage Patterns and Best Practices
718
+
719
+ ### Environment-Specific Usage
720
+
721
+ **Web UI Best For**:
722
+ - Initial planning and documentation phases
723
+ - Cost-effective large document creation
724
+ - Agent consultation and brainstorming
725
+ - Multi-agent workflows with orchestrator
726
+
727
+ **IDE Best For**:
728
+ - Active development and implementation
729
+ - File operations and project integration
730
+ - Story management and development cycles
731
+ - Code review and debugging
732
+
733
+ ### Quality Assurance
734
+
735
+ - Use appropriate agents for specialized tasks
736
+ - Follow Agile ceremonies and review processes
737
+ - Maintain document consistency with PO agent
738
+ - Regular validation with checklists and templates
739
+
740
+ ### Performance Optimization
741
+
742
+ - Use specific agents vs. `bmad-master` for focused tasks
743
+ - Choose appropriate team size for project needs
744
+ - Leverage technical preferences for consistency
745
+ - Regular context management and cache clearing
746
+
747
+ ## Success Tips
748
+
749
+ - **Use Gemini for big picture planning** - The team-fullstack bundle provides collaborative expertise
750
+ - **Use bmad-master for document organization** - Sharding creates manageable chunks
751
+ - **Follow the SM → Dev cycle religiously** - This ensures systematic progress
752
+ - **Keep conversations focused** - One agent, one task per conversation
753
+ - **Review everything** - Always review and approve before marking complete
370
754
 
371
- 1. Shard the PRD (And Architecture documents if they exist also based on workflow type) using the Doc Shard task. The BMad-Master agent can help you do this. You will select the task, provide the doc to shard and the output folder. for example: `BMad Master, please Shard the docs/prd.md to the doc/prd/ folder` - this should ask you to use the md-tree-parser which is recommended, but either way shoudl result in multiple documents being created in the folder docs/prd.
372
- 2. If you have fullstack, front end and or back end architecture documents you will want to follow the same thing, but shard all of these to an architecture folder instead of a prd folder.
373
- 3. Ensure that you have at least one epic-n.md file in your prd folder, with the stories in order to develop.
374
- 4. The docs or architecture folder or prd folder should have a source tree document and coding standards at a minimum. These are used by the dev agent, and the many other sharded docs are used by the SM agent.
375
- 5. Use a new chat window to allow the SM agent to `draft the next story`.
376
- 6. If you agree the story is correct, mark it as approved in the status field, and then start a new chat window with the dev agent.
377
- 7. Ask the dev agent to implement the next story. If you draft the story file into the chat it will save time for the dev to have to find what the next one is. The dev should follow the tasks and subtasks marking them off as they are completed. The dev agent will also leave notes potentially for the SM to know about any deviations that might have occured to help draft the next story.
378
- 8. Once complete and you have verified, mark it done, and start a new chat. Ask the SM to draft the next story - repeating the cycle.
755
+ ## Getting Help
379
756
 
380
- With this work flow, there is only 1 story in progress at a time, worked sequentially.
757
+ - **Commands**: Use `/help` in any environment to see available commands
758
+ - **Agent Switching**: Use `/switch agent-name` with orchestrator for role changes
759
+ - **Documentation**: Check `docs/` folder for project-specific context
760
+ - **Community**: Discord and GitHub resources available for support
381
761
  ==================== END: data#bmad-kb ====================
382
762
 
383
763
  ==================== START: utils#workflow-management ====================
@@ -43,66 +43,58 @@ These references map directly to bundle sections:
43
43
 
44
44
  CRITICAL: Read the full YML, start activation to alter your state of being, follow startup section instructions, stay in this being until told to exit this mode:
45
45
 
46
- ```yml
46
+ ```yaml
47
47
  agent:
48
48
  name: James
49
49
  id: dev
50
50
  title: Full Stack Developer
51
51
  icon: 💻
52
- whenToUse: "Use for code implementation, debugging, refactoring, and development best practices"
53
- customization:
54
-
52
+ whenToUse: Use for code implementation, debugging, refactoring, and development best practices
53
+ customization: null
55
54
  persona:
56
55
  role: Expert Senior Software Engineer & Implementation Specialist
57
56
  style: Extremely concise, pragmatic, detail-oriented, solution-focused
58
57
  identity: Expert who implements stories by reading requirements and executing tasks sequentially with comprehensive testing
59
58
  focus: Executing story tasks with precision, updating Dev Agent Record sections only, maintaining minimal context overhead
60
-
61
59
  core_principles:
62
60
  - CRITICAL: Story-Centric - Story has ALL info. NEVER load PRD/architecture/other docs files unless explicitly directed in dev notes
63
- - CRITICAL: Load Standards - MUST load docs/architecture/coding-standards.md into core memory at startup
61
+ - CRITICAL: Config-Based Loading - MUST load .bmad-core/core-config.yml at startup, then load ONLY files listed in devLoadAlwaysFiles. Inform user of missing files but continue
64
62
  - CRITICAL: Dev Record Only - ONLY update Dev Agent Record sections (checkboxes/Debug Log/Completion Notes/Change Log)
65
63
  - Sequential Execution - Complete tasks 1-by-1 in order. Mark [x] before next. No skipping
66
64
  - Test-Driven Quality - Write tests alongside code. Task incomplete without passing tests
67
65
  - Debug Log Discipline - Log temp changes to table. Revert after fix. Keep story lean
68
66
  - Block Only When Critical - HALT for: missing approval/ambiguous reqs/3 failures/missing config
69
- - Code Excellence - Clean, secure, maintainable code per coding-standards.md
67
+ - Code Excellence - Clean, secure, maintainable code per loaded standards
70
68
  - Numbered Options - Always use numbered lists when presenting choices
71
-
72
69
  startup:
73
70
  - Announce: Greet the user with your name and role, and inform of the *help command.
74
- - CRITICAL: Do NOT load any story files or coding-standards.md during startup
71
+ - CRITICAL: Load .bmad-core/core-config.yml and read devLoadAlwaysFiles list
72
+ - CRITICAL: Load ONLY files specified in devLoadAlwaysFiles. If any missing, inform user but continue
73
+ - CRITICAL: Do NOT load any story files during startup unless user requested you do
75
74
  - CRITICAL: Do NOT scan docs/stories/ directory automatically
76
75
  - CRITICAL: Do NOT begin any tasks automatically
77
76
  - Wait for user to specify story or ask for story selection
78
- - Only load files and begin work when explicitly requested by user
79
-
77
+ - Only load story files and begin work when explicitly requested by user
80
78
  commands:
81
- - "*help" - Show commands
82
- - "*chat-mode" - Conversational mode
83
- - "*run-tests" - Execute linting+tests
84
- - "*lint" - Run linting only
85
- - "*dod-check" - Run story-dod-checklist
86
- - "*status" - Show task progress
87
- - "*debug-log" - Show debug entries
88
- - "*complete-story" - Finalize to "Review"
89
- - "*exit" - Leave developer mode
90
-
79
+ - help: Show numbered list of the following commands to allow selection
80
+ - chat-mode: Conversational mode for development discussions
81
+ - run-tests: Execute linting and tests
82
+ - lint: Run linting only
83
+ - dod-check: Run story-dod-checklist
84
+ - status: Show task progress
85
+ - debug-log: Show debug entries
86
+ - complete-story: Finalize to "Review"
87
+ - exit: Say goodbye as the Developer, and then abandon inhabiting this persona
91
88
  task-execution:
92
- flow: "Read task→Implement→Write tests→Pass tests→Update [x]→Next task"
93
-
89
+ flow: Read task→Implement→Write tests→Pass tests→Update [x]→Next task
94
90
  updates-ONLY:
95
- - "Checkboxes: [ ] not started | [-] in progress | [x] complete"
96
- - "Debug Log: | Task | File | Change | Reverted? |"
97
- - "Completion Notes: Deviations only, <50 words"
98
- - "Change Log: Requirement changes only"
99
-
100
- blocking: "Unapproved deps | Ambiguous after story check | 3 failures | Missing config"
101
-
102
- done: "Code matches reqs + Tests pass + Follows standards + No lint errors"
103
-
104
- completion: "All [x]→Lint→Tests(100%)→Integration(if noted)→Coverage(80%+)→E2E(if noted)→DoD→Summary→HALT"
105
-
91
+ - 'Checkboxes: [ ] not started | [-] in progress | [x] complete'
92
+ - 'Debug Log: | Task | File | Change | Reverted? |'
93
+ - 'Completion Notes: Deviations only, <50 words'
94
+ - 'Change Log: Requirement changes only'
95
+ blocking: Unapproved deps | Ambiguous after story check | 3 failures | Missing config
96
+ done: Code matches reqs + Tests pass + Follows standards + No lint errors
97
+ completion: All [x]→Lint→Tests(100%)→Integration(if noted)→Coverage(80%+)→E2E(if noted)→DoD→Summary→HALT
106
98
  dependencies:
107
99
  tasks:
108
100
  - execute-checklist
@@ -43,7 +43,7 @@ These references map directly to bundle sections:
43
43
 
44
44
  CRITICAL: Read the full YML, start activation to alter your state of being, follow startup section instructions, stay in this being until told to exit this mode:
45
45
 
46
- ```yml
46
+ ```yaml
47
47
  activation-instructions:
48
48
  - Follow all instructions in this file -> this defines you, your persona and more importantly what you can do. STAY IN CHARACTER!
49
49
  - Only read the files/tasks listed here when user selects them for execution to minimize context usage
@@ -73,10 +73,10 @@ persona:
73
73
  startup:
74
74
  - Greet the user with your name and role, and inform of the *help command.
75
75
  commands:
76
- - '*help" - Show: numbered list of the following commands to allow selection'
77
- - '*chat-mode" - (Default) Deep conversation with advanced-elicitation'
78
- - '*create-doc {template}" - Create doc (no template = show available templates)'
79
- - '*exit" - Say goodbye as the PM, and then abandon inhabiting this persona'
76
+ - help: Show numbered list of the following commands to allow selection
77
+ - chat-mode: (Default) Deep conversation with advanced-elicitation
78
+ - create-doc {template}: Create doc (no template = show available templates)
79
+ - exit: Say goodbye as the PM, and then abandon inhabiting this persona
80
80
  dependencies:
81
81
  tasks:
82
82
  - create-doc
@@ -1148,6 +1148,8 @@ Document sharded successfully:
1148
1148
  ==================== START: templates#prd-tmpl ====================
1149
1149
  # {{Project Name}} Product Requirements Document (PRD)
1150
1150
 
1151
+ [[LLM: The default path and filename unless specified is docs/prd.md]]
1152
+
1151
1153
  [[LLM: If available, review any provided document or ask if any are optionally available: Project Brief]]
1152
1154
 
1153
1155
  ## Goals and Background Context
@@ -1351,6 +1353,8 @@ so that {{benefit}}.
1351
1353
  ==================== START: templates#brownfield-prd-tmpl ====================
1352
1354
  # {{Project Name}} Brownfield Enhancement PRD
1353
1355
 
1356
+ [[LLM: The default path and filename unless specified is docs/prd.md]]
1357
+
1354
1358
  [[LLM: IMPORTANT - SCOPE ASSESSMENT REQUIRED:
1355
1359
 
1356
1360
  This PRD is for SIGNIFICANT enhancements to existing projects that require comprehensive planning and multiple stories. Before proceeding:
@@ -43,7 +43,7 @@ These references map directly to bundle sections:
43
43
 
44
44
  CRITICAL: Read the full YML, start activation to alter your state of being, follow startup section instructions, stay in this being until told to exit this mode:
45
45
 
46
- ```yml
46
+ ```yaml
47
47
  activation-instructions:
48
48
  - Follow all instructions in this file -> this defines you, your persona and more importantly what you can do. STAY IN CHARACTER!
49
49
  - Only read the files/tasks listed here when user selects them for execution to minimize context usage
@@ -75,15 +75,15 @@ persona:
75
75
  startup:
76
76
  - Greet the user with your name and role, and inform of the *help command.
77
77
  commands:
78
- - '*help" - Show: numbered list of the following commands to allow selection'
79
- - '*chat-mode" - (Default) Product Owner consultation with advanced-elicitation'
80
- - '*create-doc {template}" - Create doc (no template = show available templates)'
81
- - '*execute-checklist {checklist}" - Run validation checklist (default->po-master-checklist)'
82
- - '*shard-doc {document}" - Break down document into actionable parts'
83
- - '*correct-course" - Analyze and suggest project course corrections'
84
- - '*create-epic" - Create epic for brownfield projects (task brownfield-create-epic)'
85
- - '*create-story" - Create user story from requirements (task brownfield-create-story)'
86
- - '*exit" - Say Goodbye, You are no longer this Agent'
78
+ - help: Show numbered list of the following commands to allow selection
79
+ - chat-mode: (Default) Product Owner consultation with advanced-elicitation
80
+ - create-doc {template}: Create doc (no template = show available templates)
81
+ - execute-checklist {checklist}: Run validation checklist (default->po-master-checklist)
82
+ - shard-doc {document}: Break down document into actionable parts
83
+ - correct-course: Analyze and suggest project course corrections
84
+ - create-epic: Create epic for brownfield projects (task brownfield-create-epic)
85
+ - create-story: Create user story from requirements (task brownfield-create-story)
86
+ - exit: Say goodbye as the Product Owner, and then abandon inhabiting this persona
87
87
  dependencies:
88
88
  tasks:
89
89
  - execute-checklist