bmad-method 5.0.0-beta.2 → 5.0.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 (131) hide show
  1. package/.github/ISSUE_TEMPLATE/bug_report.md +3 -3
  2. package/.github/ISSUE_TEMPLATE/feature_request.md +3 -3
  3. package/.github/workflows/discord.yaml +11 -2
  4. package/.github/workflows/format-check.yaml +42 -0
  5. package/.github/workflows/manual-release.yaml +173 -0
  6. package/.husky/pre-commit +3 -0
  7. package/.vscode/settings.json +26 -1
  8. package/CHANGELOG.md +0 -11
  9. package/README.md +2 -0
  10. package/bmad-core/agent-teams/team-all.yaml +1 -1
  11. package/bmad-core/agents/bmad-orchestrator.md +1 -1
  12. package/bmad-core/agents/dev.md +4 -4
  13. package/bmad-core/data/bmad-kb.md +1 -1
  14. package/bmad-core/data/test-levels-framework.md +12 -12
  15. package/bmad-core/tasks/facilitate-brainstorming-session.md +1 -1
  16. package/bmad-core/tasks/nfr-assess.md +10 -10
  17. package/bmad-core/tasks/qa-gate.md +23 -23
  18. package/bmad-core/tasks/review-story.md +18 -18
  19. package/bmad-core/tasks/risk-profile.md +25 -25
  20. package/bmad-core/tasks/test-design.md +9 -9
  21. package/bmad-core/tasks/trace-requirements.md +21 -21
  22. package/bmad-core/templates/architecture-tmpl.yaml +49 -49
  23. package/bmad-core/templates/brainstorming-output-tmpl.yaml +5 -5
  24. package/bmad-core/templates/brownfield-architecture-tmpl.yaml +31 -31
  25. package/bmad-core/templates/brownfield-prd-tmpl.yaml +13 -13
  26. package/bmad-core/templates/competitor-analysis-tmpl.yaml +19 -6
  27. package/bmad-core/templates/front-end-architecture-tmpl.yaml +21 -9
  28. package/bmad-core/templates/front-end-spec-tmpl.yaml +24 -24
  29. package/bmad-core/templates/fullstack-architecture-tmpl.yaml +122 -104
  30. package/bmad-core/templates/market-research-tmpl.yaml +2 -2
  31. package/bmad-core/templates/prd-tmpl.yaml +9 -9
  32. package/bmad-core/templates/project-brief-tmpl.yaml +4 -4
  33. package/bmad-core/templates/qa-gate-tmpl.yaml +9 -9
  34. package/bmad-core/templates/story-tmpl.yaml +12 -12
  35. package/bmad-core/workflows/brownfield-fullstack.yaml +9 -9
  36. package/bmad-core/workflows/brownfield-service.yaml +1 -1
  37. package/bmad-core/workflows/brownfield-ui.yaml +1 -1
  38. package/bmad-core/workflows/greenfield-fullstack.yaml +1 -1
  39. package/bmad-core/workflows/greenfield-service.yaml +1 -1
  40. package/bmad-core/workflows/greenfield-ui.yaml +1 -1
  41. package/common/utils/bmad-doc-template.md +5 -5
  42. package/dist/agents/analyst.txt +28 -15
  43. package/dist/agents/architect.txt +220 -190
  44. package/dist/agents/bmad-master.txt +298 -255
  45. package/dist/agents/bmad-orchestrator.txt +1 -1
  46. package/dist/agents/pm.txt +20 -20
  47. package/dist/agents/po.txt +11 -11
  48. package/dist/agents/qa.txt +275 -618
  49. package/dist/agents/sm.txt +11 -11
  50. package/dist/agents/ux-expert.txt +23 -23
  51. package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-designer.txt +109 -109
  52. package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-developer.txt +75 -77
  53. package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-sm.txt +41 -41
  54. package/dist/expansion-packs/bmad-2d-phaser-game-dev/teams/phaser-2d-nodejs-game-team.txt +483 -474
  55. package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-architect.txt +1 -1
  56. package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-designer.txt +149 -149
  57. package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-sm.txt +20 -20
  58. package/dist/expansion-packs/bmad-2d-unity-game-dev/teams/unity-2d-game-team.txt +371 -358
  59. package/dist/expansion-packs/bmad-infrastructure-devops/agents/infra-devops-platform.txt +25 -25
  60. package/dist/teams/team-all.txt +581 -881
  61. package/dist/teams/team-fullstack.txt +316 -273
  62. package/dist/teams/team-ide-minimal.txt +276 -619
  63. package/dist/teams/team-no-ui.txt +281 -238
  64. package/docs/versioning-and-releases.md +114 -44
  65. package/eslint.config.mjs +119 -0
  66. package/expansion-packs/Complete AI Agent System - Blank Templates & Google Cloud Setup/PART 1 - Google Cloud Vertex AI Setup Documentation/1.4 Deployment Configuration/1.4.2 - cloudbuild.yaml +26 -26
  67. package/expansion-packs/bmad-2d-phaser-game-dev/agents/game-developer.md +4 -4
  68. package/expansion-packs/bmad-2d-phaser-game-dev/agents/game-sm.md +1 -1
  69. package/expansion-packs/bmad-2d-phaser-game-dev/data/development-guidelines.md +26 -28
  70. package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-architecture-tmpl.yaml +50 -50
  71. package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-brief-tmpl.yaml +23 -23
  72. package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-design-doc-tmpl.yaml +24 -24
  73. package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-story-tmpl.yaml +42 -42
  74. package/expansion-packs/bmad-2d-phaser-game-dev/templates/level-design-doc-tmpl.yaml +65 -65
  75. package/expansion-packs/bmad-2d-phaser-game-dev/workflows/game-dev-greenfield.yaml +5 -5
  76. package/expansion-packs/bmad-2d-phaser-game-dev/workflows/game-prototype.yaml +1 -1
  77. package/expansion-packs/bmad-2d-unity-game-dev/agents/game-developer.md +3 -3
  78. package/expansion-packs/bmad-2d-unity-game-dev/data/bmad-kb.md +1 -1
  79. package/expansion-packs/bmad-2d-unity-game-dev/templates/game-brief-tmpl.yaml +23 -23
  80. package/expansion-packs/bmad-2d-unity-game-dev/templates/game-design-doc-tmpl.yaml +63 -63
  81. package/expansion-packs/bmad-2d-unity-game-dev/templates/game-story-tmpl.yaml +20 -20
  82. package/expansion-packs/bmad-2d-unity-game-dev/templates/level-design-doc-tmpl.yaml +65 -65
  83. package/expansion-packs/bmad-2d-unity-game-dev/workflows/game-dev-greenfield.yaml +5 -5
  84. package/expansion-packs/bmad-2d-unity-game-dev/workflows/game-prototype.yaml +1 -1
  85. package/expansion-packs/bmad-infrastructure-devops/templates/infrastructure-architecture-tmpl.yaml +20 -20
  86. package/expansion-packs/bmad-infrastructure-devops/templates/infrastructure-platform-from-arch-tmpl.yaml +7 -7
  87. package/package.json +62 -39
  88. package/prettier.config.mjs +32 -0
  89. package/release_notes.md +30 -0
  90. package/tools/bmad-npx-wrapper.js +10 -10
  91. package/tools/builders/web-builder.js +124 -130
  92. package/tools/bump-all-versions.js +42 -33
  93. package/tools/bump-expansion-version.js +23 -16
  94. package/tools/cli.js +10 -12
  95. package/tools/flattener/aggregate.js +10 -10
  96. package/tools/flattener/binary.js +44 -17
  97. package/tools/flattener/discovery.js +19 -18
  98. package/tools/flattener/files.js +6 -6
  99. package/tools/flattener/ignoreRules.js +125 -125
  100. package/tools/flattener/main.js +201 -304
  101. package/tools/flattener/projectRoot.js +75 -73
  102. package/tools/flattener/prompts.js +9 -9
  103. package/tools/flattener/stats.helpers.js +131 -67
  104. package/tools/flattener/stats.js +3 -3
  105. package/tools/flattener/test-matrix.js +201 -193
  106. package/tools/flattener/xml.js +33 -31
  107. package/tools/installer/bin/bmad.js +130 -89
  108. package/tools/installer/config/ide-agent-config.yaml +1 -1
  109. package/tools/installer/config/install.config.yaml +2 -2
  110. package/tools/installer/lib/config-loader.js +46 -42
  111. package/tools/installer/lib/file-manager.js +91 -113
  112. package/tools/installer/lib/ide-base-setup.js +57 -56
  113. package/tools/installer/lib/ide-setup.js +375 -343
  114. package/tools/installer/lib/installer.js +875 -714
  115. package/tools/installer/lib/memory-profiler.js +54 -53
  116. package/tools/installer/lib/module-manager.js +19 -15
  117. package/tools/installer/lib/resource-locator.js +26 -28
  118. package/tools/installer/package.json +19 -19
  119. package/tools/lib/dependency-resolver.js +26 -30
  120. package/tools/lib/yaml-utils.js +7 -7
  121. package/tools/preview-release-notes.js +66 -0
  122. package/tools/shared/bannerArt.js +3 -3
  123. package/tools/sync-installer-version.js +7 -9
  124. package/tools/update-expansion-version.js +14 -15
  125. package/tools/upgraders/v3-to-v4-upgrader.js +203 -294
  126. package/tools/version-bump.js +41 -26
  127. package/tools/yaml-format.js +56 -43
  128. package/.github/workflows/promote-to-stable.yml +0 -144
  129. package/.github/workflows/release.yaml +0 -60
  130. package/.releaserc.json +0 -21
  131. package/tools/semantic-release-sync-installer.js +0 -30
@@ -552,18 +552,18 @@ sections:
552
552
  - id: initial-setup
553
553
  instruction: |
554
554
  Initial Setup
555
-
555
+
556
556
  1. Replace {{project_name}} with the actual project name throughout the document
557
557
  2. Gather and review required inputs:
558
558
  - Product Requirements Document (PRD) - Required for business needs and scale requirements
559
559
  - Main System Architecture - Required for infrastructure dependencies
560
560
  - Technical Preferences/Tech Stack Document - Required for technology choices
561
561
  - PRD Technical Assumptions - Required for cross-referencing repository and service architecture
562
-
562
+
563
563
  If any required documents are missing, ask user: "I need the following documents to create a comprehensive infrastructure architecture: [list missing]. Would you like to proceed with available information or provide the missing documents first?"
564
-
564
+
565
565
  3. <critical_rule>Cross-reference with PRD Technical Assumptions to ensure infrastructure decisions align with repository and service architecture decisions made in the system architecture.</critical_rule>
566
-
566
+
567
567
  Output file location: `docs/infrastructure-architecture.md`
568
568
 
569
569
  - id: infrastructure-overview
@@ -592,7 +592,7 @@ sections:
592
592
  - Repository Structure
593
593
  - State Management
594
594
  - Dependency Management
595
-
595
+
596
596
  <critical_rule>All infrastructure must be defined as code. No manual resource creation in production environments.</critical_rule>
597
597
 
598
598
  - id: environment-configuration
@@ -628,7 +628,7 @@ sections:
628
628
  title: Network Architecture
629
629
  instruction: |
630
630
  Design network topology considering security zones, traffic patterns, and compliance requirements. Reference main architecture for service communication patterns.
631
-
631
+
632
632
  Create Mermaid diagram showing:
633
633
  - VPC/Network structure
634
634
  - Security zones and boundaries
@@ -691,7 +691,7 @@ sections:
691
691
  title: Data Resources
692
692
  instruction: |
693
693
  Design data infrastructure based on data architecture from main system design. Consider data volumes, access patterns, compliance, and recovery requirements.
694
-
694
+
695
695
  Create data flow diagram showing:
696
696
  - Database topology
697
697
  - Replication patterns
@@ -712,7 +712,7 @@ sections:
712
712
  - Data Encryption
713
713
  - Compliance Controls
714
714
  - Security Scanning & Monitoring
715
-
715
+
716
716
  <critical_rule>Apply principle of least privilege for all access controls. Document all security exceptions with business justification.</critical_rule>
717
717
 
718
718
  - id: shared-responsibility
@@ -748,7 +748,7 @@ sections:
748
748
  title: CI/CD Pipeline
749
749
  instruction: |
750
750
  Design deployment pipeline that balances speed with safety. Include progressive deployment strategies and automated quality gates.
751
-
751
+
752
752
  Create pipeline diagram showing:
753
753
  - Build stages
754
754
  - Test gates
@@ -779,7 +779,7 @@ sections:
779
779
  - Recovery Procedures
780
780
  - RTO & RPO Targets
781
781
  - DR Testing Approach
782
-
782
+
783
783
  <critical_rule>DR procedures must be tested at least quarterly. Document test results and improvement actions.</critical_rule>
784
784
 
785
785
  - id: cost-optimization
@@ -821,15 +821,15 @@ sections:
821
821
  title: DevOps/Platform Feasibility Review
822
822
  instruction: |
823
823
  CRITICAL STEP - Present architectural blueprint summary to DevOps/Platform Engineering Agent for feasibility review. Request specific feedback on:
824
-
824
+
825
825
  - **Operational Complexity:** Are the proposed patterns implementable with current tooling and expertise?
826
826
  - **Resource Constraints:** Do infrastructure requirements align with available resources and budgets?
827
827
  - **Security Implementation:** Are security patterns achievable with current security toolchain?
828
828
  - **Operational Overhead:** Will the proposed architecture create excessive operational burden?
829
829
  - **Technology Constraints:** Are selected technologies compatible with existing infrastructure?
830
-
830
+
831
831
  Document all feasibility feedback and concerns raised. Iterate on architectural decisions based on operational constraints and feedback.
832
-
832
+
833
833
  <critical_rule>Address all critical feasibility concerns before proceeding to final architecture documentation. If critical blockers identified, revise architecture before continuing.</critical_rule>
834
834
  sections:
835
835
  - id: feasibility-results
@@ -847,7 +847,7 @@ sections:
847
847
  title: Validation Framework
848
848
  content: |
849
849
  This infrastructure architecture will be validated using the comprehensive `infrastructure-checklist.md`, with particular focus on Section 12: Architecture Documentation Validation. The checklist ensures:
850
-
850
+
851
851
  - Completeness of architecture documentation
852
852
  - Consistency with broader system architecture
853
853
  - Appropriate level of detail for different stakeholders
@@ -857,12 +857,12 @@ sections:
857
857
  title: Validation Process
858
858
  content: |
859
859
  The architecture documentation validation should be performed:
860
-
860
+
861
861
  - After initial architecture development
862
862
  - After significant architecture changes
863
863
  - Before major implementation phases
864
864
  - During periodic architecture reviews
865
-
865
+
866
866
  The Platform Engineer should use the infrastructure checklist to systematically validate all aspects of this architecture document.
867
867
 
868
868
  - id: implementation-handoff
@@ -873,7 +873,7 @@ sections:
873
873
  title: Architecture Decision Records (ADRs)
874
874
  content: |
875
875
  Create ADRs for key infrastructure decisions:
876
-
876
+
877
877
  - Cloud provider selection rationale
878
878
  - Container orchestration platform choice
879
879
  - Networking architecture decisions
@@ -883,7 +883,7 @@ sections:
883
883
  title: Implementation Validation Criteria
884
884
  content: |
885
885
  Define specific criteria for validating correct implementation:
886
-
886
+
887
887
  - Infrastructure as Code quality gates
888
888
  - Security compliance checkpoints
889
889
  - Performance benchmarks
@@ -943,7 +943,7 @@ sections:
943
943
  instruction: Final Review - Ensure all sections are complete and consistent. Verify feasibility review was conducted and all concerns addressed. Apply final validation against infrastructure checklist.
944
944
  content: |
945
945
  ---
946
-
946
+
947
947
  _Document Version: 1.0_
948
948
  _Last Updated: {{current_date}}_
949
949
  _Next Review: {{review_date}}_
@@ -980,7 +980,7 @@ sections:
980
980
  - id: initial-setup
981
981
  instruction: |
982
982
  Initial Setup
983
-
983
+
984
984
  1. Replace {{project_name}} with the actual project name throughout the document
985
985
  2. Gather and review required inputs:
986
986
  - **Infrastructure Architecture Document** (Primary input - REQUIRED)
@@ -989,10 +989,10 @@ sections:
989
989
  - Technology Stack Document
990
990
  - Infrastructure Checklist
991
991
  - NOTE: If Infrastructure Architecture Document is missing, HALT and request: "I need the Infrastructure Architecture Document to proceed with platform implementation. This document defines the infrastructure design that we'll be implementing."
992
-
992
+
993
993
  3. Validate that the infrastructure architecture has been reviewed and approved
994
994
  4. <critical_rule>All platform implementation must align with the approved infrastructure architecture. Any deviations require architect approval.</critical_rule>
995
-
995
+
996
996
  Output file location: `docs/platform-infrastructure/platform-implementation.md`
997
997
 
998
998
  - id: executive-summary
@@ -1065,7 +1065,7 @@ sections:
1065
1065
  # Example Terraform for VPC setup
1066
1066
  module "vpc" {
1067
1067
  source = "./modules/vpc"
1068
-
1068
+
1069
1069
  cidr_block = "{{vpc_cidr}}"
1070
1070
  availability_zones = {{availability_zones}}
1071
1071
  public_subnets = {{public_subnets}}
@@ -1460,7 +1460,7 @@ sections:
1460
1460
  // K6 Load Test Example
1461
1461
  import http from 'k6/http';
1462
1462
  import { check } from 'k6';
1463
-
1463
+
1464
1464
  export let options = {
1465
1465
  stages: [
1466
1466
  { duration: '5m', target: {{target_users}} },
@@ -1574,7 +1574,7 @@ sections:
1574
1574
  instruction: Final Review - Ensure all platform layers are properly implemented, integrated, and documented. Verify that the implementation fully supports the BMAD methodology and all agent workflows. Confirm successful validation against the infrastructure checklist.
1575
1575
  content: |
1576
1576
  ---
1577
-
1577
+
1578
1578
  _Platform Version: 1.0_
1579
1579
  _Implementation Date: {{implementation_date}}_
1580
1580
  _Next Review: {{review_date}}_