bmad-method 4.24.6 → 4.25.1

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 (47) hide show
  1. package/.vscode/settings.json +36 -1
  2. package/CHANGELOG.md +19 -0
  3. package/README.md +2 -0
  4. package/bmad-core/agents/analyst.md +8 -5
  5. package/bmad-core/agents/architect.md +7 -5
  6. package/bmad-core/agents/bmad-master.md +19 -22
  7. package/bmad-core/agents/dev.md +20 -28
  8. package/bmad-core/agents/pm.md +6 -4
  9. package/bmad-core/agents/po.md +11 -7
  10. package/bmad-core/agents/qa.md +9 -3
  11. package/bmad-core/agents/sm.md +5 -5
  12. package/bmad-core/agents/ux-expert.md +6 -11
  13. package/bmad-core/checklists/story-draft-checklist.md +1 -1
  14. package/bmad-core/core-config.yaml +1 -1
  15. package/bmad-core/data/bmad-kb.md +5 -3
  16. package/bmad-core/tasks/create-next-story.md +61 -224
  17. package/bmad-core/tasks/review-story.md +18 -8
  18. package/bmad-core/tasks/validate-next-story.md +134 -0
  19. package/bmad-core/templates/project-brief-tmpl.md +4 -2
  20. package/bmad-core/templates/story-tmpl.md +22 -33
  21. package/dist/agents/analyst.txt +15 -9
  22. package/dist/agents/architect.txt +5 -4
  23. package/dist/agents/bmad-master.txt +110 -284
  24. package/dist/agents/bmad-orchestrator.txt +5 -3
  25. package/dist/agents/dev.txt +155 -26
  26. package/dist/agents/pm.txt +4 -3
  27. package/dist/agents/po.txt +168 -39
  28. package/dist/agents/qa.txt +25 -10
  29. package/dist/agents/sm.txt +87 -262
  30. package/dist/agents/ux-expert.txt +4 -10
  31. package/dist/expansion-packs/bmad-2d-phaser-game-dev/teams/phaser-2d-nodejs-game-team.txt +10 -6
  32. package/dist/teams/team-all.txt +304 -330
  33. package/dist/teams/team-fullstack.txt +196 -65
  34. package/dist/teams/team-ide-minimal.txt +281 -307
  35. package/dist/teams/team-no-ui.txt +192 -55
  36. package/docs/agentic-tools/trae-guide.md +14 -0
  37. package/docs/bmad-workflow-guide.md +3 -2
  38. package/docs/user-guide.md +2 -2
  39. package/expansion-packs/bmad-2d-phaser-game-dev/config.yaml +1 -1
  40. package/expansion-packs/bmad-creator-tools/config.yaml +1 -1
  41. package/expansion-packs/bmad-infrastructure-devops/config.yaml +1 -1
  42. package/package.json +1 -1
  43. package/tools/installer/bin/bmad.js +2 -1
  44. package/tools/installer/config/install.config.yaml +9 -0
  45. package/tools/installer/lib/ide-setup.js +51 -0
  46. package/tools/installer/package.json +1 -1
  47. package/tools/upgraders/v3-to-v4-upgrader.js +1 -0
@@ -232,11 +232,13 @@ startup:
232
232
  - Greet the user with your name and role, and inform of the *help command.
233
233
  commands:
234
234
  - help: Show numbered list of the following commands to allow selection
235
- - chat-mode: (Default) Strategic analysis consultation with advanced-elicitation
236
- - create-doc {template}: Create doc (no template = show available templates)
235
+ - create-doc {template}: execute task create-doc (no template = ONLY show available templates listed under dependencies/templates below)
236
+ - yolo: Toggle Yolo Mode off on - on will skip doc section confirmations
237
+ - doc-out: Output full document to current destination file
238
+ - execute-checklist {checklist}: Run task execute-checklist (default->architect-checklist)
239
+ - research {topic}: execute task create-deep-research-prompt for architectural decisions
237
240
  - brainstorm {topic}: Facilitate structured brainstorming session
238
- - research {topic}: Generate deep research prompt for investigation
239
- - elicit: Run advanced elicitation to clarify requirements
241
+ - elicit: list the options under output set of information
240
242
  - document-project: Analyze and document existing project structure comprehensively
241
243
  - exit: Say goodbye as the Business Analyst, and then abandon inhabiting this persona
242
244
  dependencies:
@@ -293,9 +295,10 @@ startup:
293
295
  - Greet the user with your name and role, and inform of the *help command.
294
296
  commands:
295
297
  - help: Show numbered list of the following commands to allow selection
296
- - chat-mode: (Default) Deep conversation with advanced-elicitation
297
- - create-doc {template}: Create doc (no template = show available templates)
298
- - exit: Say goodbye as the PM, and then abandon inhabiting this persona
298
+ - create-doc {template}: execute task create-doc (no template = ONLY show available templates listed under dependencies/templates below)
299
+ - yolo: Toggle Yolo Mode off on - on will skip doc section confirmations
300
+ - doc-out: Output full document to current destination file
301
+ - exit: Exit (confirm)
299
302
  dependencies:
300
303
  tasks:
301
304
  - create-doc
@@ -357,10 +360,11 @@ startup:
357
360
  - When creating architecture, always start by understanding the complete picture - user needs, business constraints, team capabilities, and technical requirements.
358
361
  commands:
359
362
  - help: Show numbered list of the following commands to allow selection
360
- - chat-mode: (Default) Architect consultation with advanced-elicitation for complex system design
361
- - create-doc {template}: Create doc (no template = show available templates)
362
- - execute-checklist {checklist}: Run architectural validation checklist
363
- - research {topic}: Generate deep research prompt for architectural decisions
363
+ - create-doc {template}: execute task create-doc (no template = ONLY show available templates listed under dependencies/templates below)
364
+ - yolo: Toggle Yolo Mode off on - on will skip doc section confirmations
365
+ - doc-out: Output full document to current destination file
366
+ - execute-checklist {checklist}: Run task execute-checklist (default->architect-checklist)
367
+ - research {topic}: execute task create-deep-research-prompt for architectural decisions
364
368
  - exit: Say goodbye as the Architect, and then abandon inhabiting this persona
365
369
  dependencies:
366
370
  tasks:
@@ -420,14 +424,16 @@ startup:
420
424
  - Greet the user with your name and role, and inform of the *help command.
421
425
  commands:
422
426
  - help: Show numbered list of the following commands to allow selection
423
- - chat-mode: (Default) Product Owner consultation with advanced-elicitation
424
- - create-doc {template}: Create doc (no template = show available templates)
425
- - execute-checklist {checklist}: Run validation checklist (default->po-master-checklist)
426
- - shard-doc {document}: Break down document into actionable parts
427
- - correct-course: Analyze and suggest project course corrections
427
+ - create-doc {template}: execute task create-doc (no template = ONLY show available templates listed under dependencies/templates below)
428
+ - execute-checklist {checklist}: Run task execute-checklist (default->po-master-checklist)
429
+ - shard-doc {document} {destination}: run the task shard-doc against the optionally provided document to the specified destination
430
+ - correct-course: execute the correct-course task
428
431
  - create-epic: Create epic for brownfield projects (task brownfield-create-epic)
429
432
  - create-story: Create user story from requirements (task brownfield-create-story)
430
- - exit: Say goodbye as the Product Owner, and then abandon inhabiting this persona
433
+ - yolo: Toggle Yolo Mode off on - on will skip doc section confirmations
434
+ - doc-out: Output full document to current destination file
435
+ - validate-story-draft {story}: run the task validate-next-story against the provided story file
436
+ - exit: Exit (confirm)
431
437
  dependencies:
432
438
  tasks:
433
439
  - execute-checklist
@@ -435,6 +441,7 @@ dependencies:
435
441
  - correct-course
436
442
  - brownfield-create-epic
437
443
  - brownfield-create-story
444
+ - validate-next-story
438
445
  templates:
439
446
  - story-tmpl
440
447
  checklists:
@@ -1331,7 +1338,7 @@ BMad transforms you into a "Vibe CEO" - directing a team of specialized AI agent
1331
1338
  5. Type `/help` to see available commands
1332
1339
 
1333
1340
  #### Option 2: IDE Integration
1334
- **Best for**: Cursor, Claude Code, Windsurf, Cline, Roo Code, Github Copilot users
1341
+ **Best for**: Cursor, Claude Code, Windsurf, Trae, Cline, Roo Code, Github Copilot users
1335
1342
 
1336
1343
  ```bash
1337
1344
  # Interactive installation (recommended)
@@ -1344,6 +1351,7 @@ npx bmad-method install
1344
1351
  - **Cursor**: Native AI integration
1345
1352
  - **Claude Code**: Anthropic's official IDE
1346
1353
  - **Windsurf**: Built-in AI capabilities
1354
+ - **Trae**: Built-in AI capabilities
1347
1355
  - **Cline**: VS Code extension with AI features
1348
1356
  - **Roo Code**: Web-based IDE with agent support
1349
1357
  - **Github Copilot**: AI-powered coding assistant
@@ -1531,11 +1539,12 @@ You are the "Vibe CEO" - thinking like a CEO with unlimited resources and a sing
1531
1539
  - **Claude Code**: `/agent-name` (e.g., `/bmad-master`)
1532
1540
  - **Cursor**: `@agent-name` (e.g., `@bmad-master`)
1533
1541
  - **Windsurf**: `@agent-name` (e.g., `@bmad-master`)
1542
+ - **Trae**: `@agent-name` (e.g., `@bmad-master`)
1534
1543
  - **Roo Code**: Select mode from mode selector (e.g., `bmad-bmad-master`)
1535
1544
  - **Github Copilot**: Open the Chat view (`⌃⌘I` on Mac, `Ctrl+Alt+I` on Windows/Linux) and select **Agent** from the chat mode selector.
1536
1545
 
1537
1546
  **Chat Management Guidelines**:
1538
- - **Claude Code, Cursor, Windsurf**: Start new chats when switching agents
1547
+ - **Claude Code, Cursor, Windsurf, Trae**: Start new chats when switching agents
1539
1548
  - **Roo Code**: Switch modes within the same conversation
1540
1549
 
1541
1550
  **Common Task Commands**:
@@ -1615,7 +1624,7 @@ The BMad-Method is built around a modular architecture centered on the `bmad-cor
1615
1624
 
1616
1625
  #### Web UI Environment
1617
1626
 
1618
- - Uses pre-built bundles from `dist/teams` for stand alone 1 upload files for all agents and their assest with an orchestrating agent
1627
+ - Uses pre-built bundles from `dist/teams` for stand alone 1 upload files for all agents and their assets with an orchestrating agent
1619
1628
  - 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
1620
1629
  - Created by the web-builder tool for upload to web interfaces
1621
1630
  - Provides complete context in one package
@@ -3195,9 +3204,11 @@ Apply the advanced elicitation task after major sections to refine based on user
3195
3204
  ==================== END: tasks#document-project ====================
3196
3205
 
3197
3206
  ==================== START: templates#project-brief-tmpl ====================
3198
- # Project Brief: {{Project Name}}
3207
+ ---
3208
+ defaultOutput: docs/brief.md
3209
+ ---
3199
3210
 
3200
- [[LLM: The default path and filename unless specified is docs/brief.md]]
3211
+ # Project Brief: {{Project Name}}
3201
3212
 
3202
3213
  [[LLM: This template guides creation of a comprehensive Project Brief that serves as the foundational input for product development.
3203
3214
 
@@ -8680,18 +8691,170 @@ Now that you've completed the checklist, generate a comprehensive validation rep
8680
8691
  After presenting the report, ask the user if they would like detailed analysis of any specific section, especially those with warnings or failures.]]
8681
8692
  ==================== END: checklists#architect-checklist ====================
8682
8693
 
8694
+ ==================== START: tasks#validate-next-story ====================
8695
+ # Validate Next Story Task
8696
+
8697
+ ## Purpose
8698
+
8699
+ 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.
8700
+
8701
+ ## SEQUENTIAL Task Execution (Do not proceed until current Task is complete)
8702
+
8703
+ ### 0. Load Core Configuration and Inputs
8704
+
8705
+ - Load `.bmad-core/core-config.yaml` from the project root
8706
+ - If the file does not exist, HALT and inform the user: "core-config.yaml not found. This file is required for story validation."
8707
+ - Extract key configurations: `devStoryLocation`, `prd.*`, `architecture.*`
8708
+ - Identify and load the following inputs:
8709
+ - **Story file**: The drafted story to validate (provided by user or discovered in `devStoryLocation`)
8710
+ - **Parent epic**: The epic containing this story's requirements
8711
+ - **Architecture documents**: Based on configuration (sharded or monolithic)
8712
+ - **Story template**: `bmad-core/templates/story-tmpl.md` for completeness validation
8713
+
8714
+ ### 1. Template Completeness Validation
8715
+
8716
+ - Load `bmad-core/templates/story-tmpl.md` and extract all section headings from the template
8717
+ - **Missing sections check**: Compare story sections against template sections to verify all required sections are present
8718
+ - **Placeholder validation**: Ensure no template placeholders remain unfilled (e.g., `{{EpicNum}}`, `{{role}}`, `_TBD_`)
8719
+ - **Agent section verification**: Confirm all sections from template exist for future agent use
8720
+ - **Structure compliance**: Verify story follows template structure and formatting
8721
+
8722
+ ### 2. File Structure and Source Tree Validation
8723
+
8724
+ - **File paths clarity**: Are new/existing files to be created/modified clearly specified?
8725
+ - **Source tree relevance**: Is relevant project structure included in Dev Notes?
8726
+ - **Directory structure**: Are new directories/components properly located according to project structure?
8727
+ - **File creation sequence**: Do tasks specify where files should be created in logical order?
8728
+ - **Path accuracy**: Are file paths consistent with project structure from architecture docs?
8729
+
8730
+ ### 3. UI/Frontend Completeness Validation (if applicable)
8731
+
8732
+ - **Component specifications**: Are UI components sufficiently detailed for implementation?
8733
+ - **Styling/design guidance**: Is visual implementation guidance clear?
8734
+ - **User interaction flows**: Are UX patterns and behaviors specified?
8735
+ - **Responsive/accessibility**: Are these considerations addressed if required?
8736
+ - **Integration points**: Are frontend-backend integration points clear?
8737
+
8738
+ ### 4. Acceptance Criteria Satisfaction Assessment
8739
+
8740
+ - **AC coverage**: Will all acceptance criteria be satisfied by the listed tasks?
8741
+ - **AC testability**: Are acceptance criteria measurable and verifiable?
8742
+ - **Missing scenarios**: Are edge cases or error conditions covered?
8743
+ - **Success definition**: Is "done" clearly defined for each AC?
8744
+ - **Task-AC mapping**: Are tasks properly linked to specific acceptance criteria?
8745
+
8746
+ ### 5. Validation and Testing Instructions Review
8747
+
8748
+ - **Test approach clarity**: Are testing methods clearly specified?
8749
+ - **Test scenarios**: Are key test cases identified?
8750
+ - **Validation steps**: Are acceptance criteria validation steps clear?
8751
+ - **Testing tools/frameworks**: Are required testing tools specified?
8752
+ - **Test data requirements**: Are test data needs identified?
8753
+
8754
+ ### 6. Security Considerations Assessment (if applicable)
8755
+
8756
+ - **Security requirements**: Are security needs identified and addressed?
8757
+ - **Authentication/authorization**: Are access controls specified?
8758
+ - **Data protection**: Are sensitive data handling requirements clear?
8759
+ - **Vulnerability prevention**: Are common security issues addressed?
8760
+ - **Compliance requirements**: Are regulatory/compliance needs addressed?
8761
+
8762
+ ### 7. Tasks/Subtasks Sequence Validation
8763
+
8764
+ - **Logical order**: Do tasks follow proper implementation sequence?
8765
+ - **Dependencies**: Are task dependencies clear and correct?
8766
+ - **Granularity**: Are tasks appropriately sized and actionable?
8767
+ - **Completeness**: Do tasks cover all requirements and acceptance criteria?
8768
+ - **Blocking issues**: Are there any tasks that would block others?
8769
+
8770
+ ### 8. Anti-Hallucination Verification
8771
+
8772
+ - **Source verification**: Every technical claim must be traceable to source documents
8773
+ - **Architecture alignment**: Dev Notes content matches architecture specifications
8774
+ - **No invented details**: Flag any technical decisions not supported by source documents
8775
+ - **Reference accuracy**: Verify all source references are correct and accessible
8776
+ - **Fact checking**: Cross-reference claims against epic and architecture documents
8777
+
8778
+ ### 9. Dev Agent Implementation Readiness
8779
+
8780
+ - **Self-contained context**: Can the story be implemented without reading external docs?
8781
+ - **Clear instructions**: Are implementation steps unambiguous?
8782
+ - **Complete technical context**: Are all required technical details present in Dev Notes?
8783
+ - **Missing information**: Identify any critical information gaps
8784
+ - **Actionability**: Are all tasks actionable by a development agent?
8785
+
8786
+ ### 10. Generate Validation Report
8787
+
8788
+ Provide a structured validation report including:
8789
+
8790
+ #### Template Compliance Issues
8791
+
8792
+ - Missing sections from story template
8793
+ - Unfilled placeholders or template variables
8794
+ - Structural formatting issues
8795
+
8796
+ #### Critical Issues (Must Fix - Story Blocked)
8797
+
8798
+ - Missing essential information for implementation
8799
+ - Inaccurate or unverifiable technical claims
8800
+ - Incomplete acceptance criteria coverage
8801
+ - Missing required sections
8802
+
8803
+ #### Should-Fix Issues (Important Quality Improvements)
8804
+
8805
+ - Unclear implementation guidance
8806
+ - Missing security considerations
8807
+ - Task sequencing problems
8808
+ - Incomplete testing instructions
8809
+
8810
+ #### Nice-to-Have Improvements (Optional Enhancements)
8811
+
8812
+ - Additional context that would help implementation
8813
+ - Clarifications that would improve efficiency
8814
+ - Documentation improvements
8815
+
8816
+ #### Anti-Hallucination Findings
8817
+
8818
+ - Unverifiable technical claims
8819
+ - Missing source references
8820
+ - Inconsistencies with architecture documents
8821
+ - Invented libraries, patterns, or standards
8822
+
8823
+ #### Final Assessment
8824
+
8825
+ - **GO**: Story is ready for implementation
8826
+ - **NO-GO**: Story requires fixes before implementation
8827
+ - **Implementation Readiness Score**: 1-10 scale
8828
+ - **Confidence Level**: High/Medium/Low for successful implementation
8829
+ ==================== END: tasks#validate-next-story ====================
8830
+
8683
8831
  ==================== START: templates#story-tmpl ====================
8832
+ ---
8833
+ defaultOutput: docs/stories/{{EpicNum}}.{{StoryNum}}.{{Short Title Copied from Epic File specific story}}.md
8834
+ smAgent:
8835
+ editableSections: Status, Story, Acceptance Criteria, Tasks / Subtasks, Dev Notes, Testing, Change Log
8836
+ sectionSpecificInstructions:
8837
+ "Dev Notes":
8838
+ - Populate relevant information, only what was pulled from actual artifacts from docs folder, relevant to this story
8839
+ - Do not invent information.
8840
+ - If known add Relevant Source Tree info that relates to this story.
8841
+ - If there were important notes from previous story that are relevant to this one, include them here.
8842
+ - 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.
8843
+ Testing:
8844
+ - List Relevant Testing Standards from Architecture the Developer needs to conform to (test file location, test standards, etc)
8845
+ ---
8846
+
8684
8847
  # Story {{EpicNum}}.{{StoryNum}}: {{Short Title Copied from Epic File specific story}}
8685
8848
 
8686
8849
  ## Status: {{ Draft | Approved | InProgress | Review | Done }}
8687
8850
 
8688
8851
  ## Story
8689
8852
 
8690
- - As a {{role}}
8691
- - I want {{action}}
8692
- - so that {{benefit}}
8853
+ **As a** {{role}},\
8854
+ **I want** {{action}},\
8855
+ **so that** {{benefit}}
8693
8856
 
8694
- ## Acceptance Criteria (ACs)
8857
+ ## Acceptance Criteria
8695
8858
 
8696
8859
  {{ Copy of Acceptance Criteria numbered list }}
8697
8860
 
@@ -8706,20 +8869,12 @@ After presenting the report, ask the user if they would like detailed analysis o
8706
8869
 
8707
8870
  ## Dev Notes
8708
8871
 
8709
- [[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.]]
8710
-
8711
8872
  ### Testing
8712
8873
 
8713
- [[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]]
8714
- Dev Note: Story Requires the following tests:
8715
-
8716
- - [ ] {{type f.e. Jest}} Unit Tests: (nextToFile: {{true|false}}), coverage requirement: {{from strategy or default 80%}}
8717
- - [ ] {{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`}}
8718
- - [ ] {{type f.e. Cypress}} E2E: location: {{f.e. `/e2e/{epic-name/bar.test.ts`}}
8874
+ ## Change Log
8719
8875
 
8720
- Manual Test Steps: [[LLM: Include how if possible the user can manually test the functionality when story is Ready for Review, if any]]
8721
-
8722
- {{ 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`}}
8876
+ | Date | Version | Description | Author |
8877
+ | :--- | :------ | :---------- | :----- |
8723
8878
 
8724
8879
  ## Dev Agent Record
8725
8880
 
@@ -8727,29 +8882,11 @@ Manual Test Steps: [[LLM: Include how if possible the user can manually test the
8727
8882
 
8728
8883
  ### Debug Log References
8729
8884
 
8730
- [[LLM: (SM Agent) When Drafting Story, leave next prompt in place for dev agent to remove and update]]
8731
- [[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]]
8732
-
8733
8885
  ### Completion Notes List
8734
8886
 
8735
- [[LLM: (SM Agent) When Drafting Story, leave next prompt in place for dev agent to remove and update - remove this line to the SM]]
8736
- [[LLM: (Dev Agent) Anything the SM needs to know that deviated from the story that might impact drafting the next story.]]
8737
-
8738
8887
  ### File List
8739
8888
 
8740
- [[LLM: (Dev Agent) List every new file created, or existing file modified in a bullet list.]]
8741
-
8742
- ### Change Log
8743
-
8744
- [[LLM: (SM Agent) When Drafting Story, leave next prompt in place for dev agent to remove and update- remove this line to the SM]]
8745
- [[LLM: (Dev Agent) Track document versions and changes during development that deviate from story dev start]]
8746
-
8747
- | Date | Version | Description | Author |
8748
- | :--- | :------ | :---------- | :----- |
8749
-
8750
8889
  ## QA Results
8751
-
8752
- [[LLM: QA Agent Results]]
8753
8890
  ==================== END: templates#story-tmpl ====================
8754
8891
 
8755
8892
  ==================== START: checklists#po-master-checklist ====================
@@ -0,0 +1,14 @@
1
+ # BMad Method Guide for Trae
2
+
3
+ For the complete workflow, see the [BMad Workflow Guide](../bmad-workflow-guide.md).
4
+
5
+ ## Installation
6
+
7
+ When running `npx bmad-method install`, select **Trae** as your IDE. This creates:
8
+
9
+ - `.bmad-core/` folder with all agents
10
+ - `.trae/rules/` folder with agent rule files (`.md`)
11
+
12
+ ## Using BMad Agents in Trae
13
+
14
+ Type `@agent-name` in chat to activate an agent.
@@ -22,7 +22,7 @@ The BMad Method follows a structured approach to AI-assisted software developmen
22
22
  ```
23
23
 
24
24
  - Choose "Complete installation"
25
- - Select your IDE (Cursor, Claude Code, Windsurf, Roo Code, or Github Copilot)
25
+ - Select your IDE (Cursor, Claude Code, Windsurf, Trae, Roo Code, or Github Copilot)
26
26
 
27
27
  2. **Verify installation**:
28
28
  - `.bmad-core/` folder created with all agents
@@ -112,12 +112,13 @@ Follow the SM → Dev cycle for systematic story development:
112
112
  - **Claude Code**: `/agent-name` (e.g., `/bmad-master`)
113
113
  - **Cursor**: `@agent-name` (e.g., `@bmad-master`)
114
114
  - **Windsurf**: `@agent-name` (e.g., `@bmad-master`)
115
+ - **Trae**: `@agent-name` (e.g., `@bmad-master`)
115
116
  - **Roo Code**: Select mode from mode selector (e.g., `bmad-bmad-master`)
116
117
  - **Github Copilot**: Open the Chat view (`⌃⌘I` on Mac, `Ctrl+Alt+I` on Windows/Linux) and select **Agent** from the chat mode selector.
117
118
 
118
119
  ### Chat Management:
119
120
 
120
- - **Claude Code, Cursor, Windsurf**: Start new chats when switching agents
121
+ - **Claude Code, Cursor, Windsurf, Trae**: Start new chats when switching agents
121
122
  - **Roo Code**: Switch modes within the same conversation
122
123
 
123
124
  ## Available Agents
@@ -120,7 +120,7 @@ dependencies:
120
120
  **In IDE:**
121
121
 
122
122
  ```bash
123
- # Cursor or Windsurf (manual rules - loaded with @)
123
+ # Cursor, Windsurf, or Trae (manual rules - loaded with @)
124
124
  @pm Create a PRD for a task management app
125
125
  @architect Design the system architecture
126
126
  @dev Implement the user authentication
@@ -275,7 +275,7 @@ graph TD
275
275
  **Critical Transition Point**: Once the PO confirms document alignment, you must switch from web UI to IDE to begin the development workflow:
276
276
 
277
277
  1. **Copy Documents to Project**: Ensure `docs/prd.md` and `docs/architecture.md` are in your project
278
- 2. **Switch to IDE**: Open your project in your preferred IDE (Cursor, Claude Code, Windsurf)
278
+ 2. **Switch to IDE**: Open your project in your preferred IDE (Cursor, Claude Code, Windsurf, Trae)
279
279
  3. **Document Sharding**: Use PO agent to shard large documents into manageable pieces
280
280
  4. **Begin Development**: Start the SM/Dev cycle for implementation
281
281
 
@@ -1,5 +1,5 @@
1
1
  name: bmad-2d-phaser-game-dev
2
- version: 1.5.0
2
+ version: 1.6.0
3
3
  short-title: 2D game development with Phaser 3 & TypeScript
4
4
  description: >-
5
5
  2D Game Development expansion pack for BMad Method - Phaser 3 & TypeScript
@@ -1,5 +1,5 @@
1
1
  name: bmad-creator-tools
2
- version: 1.4.0
2
+ version: 1.5.0
3
3
  short-title: Tools for creating BMad framework components
4
4
  description: Tools for creating and extending BMad framework components.
5
5
  author: Brian (BMad)
@@ -1,5 +1,5 @@
1
1
  name: bmad-infrastructure-devops
2
- version: 1.4.0
2
+ version: 1.5.0
3
3
  short-title: Infrastructure and DevOps capabilities
4
4
  description: >-
5
5
  This expansion pack extends BMad Method with comprehensive infrastructure and
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bmad-method",
3
- "version": "4.24.6",
3
+ "version": "4.25.1",
4
4
  "description": "Breakthrough Method of Agile AI-driven Development",
5
5
  "main": "tools/cli.js",
6
6
  "bin": {
@@ -50,7 +50,7 @@ program
50
50
  .option('-f, --full', 'Install complete BMad Method')
51
51
  .option('-x, --expansion-only', 'Install only expansion packs (no bmad-core)')
52
52
  .option('-d, --directory <path>', 'Installation directory')
53
- .option('-i, --ide <ide...>', 'Configure for specific IDE(s) - can specify multiple (cursor, claude-code, windsurf, roo, cline, gemini, github-copilot, other)')
53
+ .option('-i, --ide <ide...>', 'Configure for specific IDE(s) - can specify multiple (cursor, claude-code, windsurf, trae, roo, cline, gemini, github-copilot, other)')
54
54
  .option('-e, --expansion-packs <packs...>', 'Install specific expansion packs (can specify multiple)')
55
55
  .action(async (options) => {
56
56
  try {
@@ -234,6 +234,7 @@ async function promptInstallation() {
234
234
  { name: 'Cursor', value: 'cursor' },
235
235
  { name: 'Claude Code', value: 'claude-code' },
236
236
  { name: 'Windsurf', value: 'windsurf' },
237
+ { name: 'Trae', value: 'trae' }, // { name: 'Trae', value: 'trae'}
237
238
  { name: 'Roo Code', value: 'roo' },
238
239
  { name: 'Cline', value: 'cline' },
239
240
  { name: 'Gemini CLI', value: 'gemini' },
@@ -37,6 +37,15 @@ ide-configurations:
37
37
  # To use BMad agents in Windsurf:
38
38
  # 1. Type @agent-name (e.g., "@dev", "@pm")
39
39
  # 2. Windsurf will adopt that agent's persona
40
+ trae:
41
+ name: Trae
42
+ rule-dir: .trae/rules/
43
+ format: multi-file
44
+ command-suffix: .md
45
+ instructions: |
46
+ # To use BMad agents in Trae:
47
+ # 1. Type @agent-name (e.g., "@dev", "@pm", "@architect")
48
+ # 2. Trae will adopt that agent's persona
40
49
  roo:
41
50
  name: Roo Code
42
51
  format: custom-modes
@@ -57,6 +57,8 @@ class IdeSetup {
57
57
  return this.setupClaudeCode(installDir, selectedAgent);
58
58
  case "windsurf":
59
59
  return this.setupWindsurf(installDir, selectedAgent);
60
+ case "trae":
61
+ return this.setupTrae(installDir, selectedAgent);
60
62
  case "roo":
61
63
  return this.setupRoo(installDir, selectedAgent);
62
64
  case "cline":
@@ -210,6 +212,55 @@ class IdeSetup {
210
212
  return true;
211
213
  }
212
214
 
215
+ async setupTrae(installDir, selectedAgent) {
216
+ const traeRulesDir = path.join(installDir, ".trae", "rules");
217
+ const agents = selectedAgent? [selectedAgent] : await this.getAllAgentIds(installDir);
218
+
219
+ await fileManager.ensureDirectory(traeRulesDir);
220
+
221
+ for (const agentId of agents) {
222
+ // Find the agent file
223
+ const agentPath = await this.findAgentPath(agentId, installDir);
224
+
225
+ if (agentPath) {
226
+ const agentContent = await fileManager.readFile(agentPath);
227
+ const mdPath = path.join(traeRulesDir, `${agentId}.md`);
228
+
229
+ // Create MD content (similar to Cursor but without frontmatter)
230
+ let mdContent = `# ${agentId.toUpperCase()} Agent Rule\n\n`;
231
+ mdContent += `This rule is triggered when the user types \`@${agentId}\` and activates the ${await this.getAgentTitle(
232
+ agentId,
233
+ installDir
234
+ )} agent persona.\n\n`;
235
+ mdContent += "## Agent Activation\n\n";
236
+ mdContent +=
237
+ "CRITICAL: Read the full YAML, start activation to alter your state of being, follow startup section instructions, stay in this being until told to exit this mode:\n\n";
238
+ mdContent += "```yaml\n";
239
+ // Extract just the YAML content from the agent file
240
+ const yamlContent = extractYamlFromAgent(agentContent);
241
+ if (yamlContent) {
242
+ mdContent += yamlContent;
243
+ }
244
+ else {
245
+ // If no YAML found, include the whole content minus the header
246
+ mdContent += agentContent.replace(/^#.*$/m, "").trim();
247
+ }
248
+ mdContent += "\n```\n\n";
249
+ mdContent += "## File Reference\n\n";
250
+ const relativePath = path.relative(installDir, agentPath).replace(/\\/g, '/');
251
+ mdContent += `The complete agent definition is available in [${relativePath}](${relativePath}).\n\n`;
252
+ mdContent += "## Usage\n\n";
253
+ mdContent += `When the user types \`@${agentId}\`, activate this ${await this.getAgentTitle(
254
+ agentId,
255
+ installDir
256
+ )} persona and follow all instructions defined in the YAML configuration above.\n`;
257
+
258
+ await fileManager.writeFile(mdPath, mdContent);
259
+ console.log(chalk.green(`✓ Created rule: ${agentId}.md`));
260
+ }
261
+ }
262
+ }
263
+
213
264
  async findAgentPath(agentId, installDir) {
214
265
  // Try to find the agent file in various locations
215
266
  const possiblePaths = [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bmad-method",
3
- "version": "4.24.6",
3
+ "version": "4.25.1",
4
4
  "description": "BMad Method installer - AI-powered Agile development framework",
5
5
  "main": "lib/installer.js",
6
6
  "bin": {
@@ -560,6 +560,7 @@ class V3ToV4Upgrader {
560
560
  cursor: "Rules created in .cursor/rules/",
561
561
  "claude-code": "Commands created in .claude/commands/",
562
562
  windsurf: "Rules created in .windsurf/rules/",
563
+ trae: "Rules created in.trae/rules/",
563
564
  roo: "Custom modes created in .roomodes",
564
565
  cline: "Rules created in .clinerules/",
565
566
  };