bmad-method 4.9.2 → 4.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [4.10.0](https://github.com/bmadcode/BMAD-METHOD/compare/v4.9.2...v4.10.0) (2025-06-19)
2
+
3
+
4
+ ### Features
5
+
6
+ * Core Config and doc sharding is now optional in v4 ([ff6112d](https://github.com/bmadcode/BMAD-METHOD/commit/ff6112d6c2f822ed22c75046f5a14f05e36041c2))
7
+
1
8
  ## [4.9.2](https://github.com/bmadcode/BMAD-METHOD/compare/v4.9.1...v4.9.2) (2025-06-19)
2
9
 
3
10
 
package/README.md CHANGED
@@ -172,11 +172,37 @@ The upgrade process will:
172
172
 
173
173
  After upgrading:
174
174
 
175
- 1. Review your documents in the `docs/` folder
176
- 2. Use `@bmad-master` agent to run the `doc-migration-task` to align your documents with V4 templates
177
- 3. If you have separate front-end and backend architecture docs, the migration task will help merge them into a unified `full-stack-architecture.md`
175
+ 1. Review your documents in the `docs/` folder - if you had a PRD or architecture in your old project, copy it from the backup to the docs folder if they are not there.
176
+ 2. Optionally run the `doc-migration-task` to align your documents with V4 templates - you can do this with your agent my saying something like: 'run {drag in task} against {drag prd or arch file from docs} to align with {drag the template from .bmad-core/templates/full-stack-architecture.md}
177
+ 3. If you have separate front-end and backend architecture docs you can modify step 2 to merge both into a single full stack architecture or separate Front and Back end.
178
178
 
179
- **Note**: The agents in `.bmad-core/` fully replace the items in `bmad-agent/`.
179
+ The reason #2 and 3 are optional is because now BMad V4 makes sharding optional for the SM. See [Core Configuration](#-core-configuration-new-in-v4)
180
+
181
+ **Note**: The agents in `.bmad-core/` fully replace the items in `bmad-agent/` - you can remove the backup folder versions.
182
+
183
+ ### 🔧 Core Configuration (NEW in V4)
184
+
185
+ **Critical**: V4 introduces `bmad-core/core-config.yml` - a powerful configuration file that enables BMAD to work seamlessly with any project structure, whether it's V4-optimized or legacy. You can even now use non-standard PRDs and architectures!
186
+
187
+ #### What is core-config.yml?
188
+
189
+ This configuration file tells BMAD agents exactly where to find your project documents and how they're structured. It's the key to V4's flexibility and backwards compatibility.
190
+
191
+ #### Key Features:
192
+
193
+ - **Version Awareness**: Agents understand if your PRD/Architecture follows V4 conventions or earlier versions
194
+ - **Flexible Document Locations**: Works whether your epics are embedded in PRD or properly sharded
195
+ - **Developer Context**: Define which files the dev agent should always load
196
+ - **Debug Support**: Built-in logging for troubleshooting story implementation
197
+
198
+ #### Why It Matters:
199
+
200
+ - **Use BMAD with ANY project structure** - V3, V4, or custom layouts
201
+ - **No forced migrations** - Keep your existing document organization
202
+ - **Customize developer workflow** - Specify exactly which files provide context
203
+ - **Seamless upgrades** - Start with V3 docs and gradually adopt V4 patterns
204
+
205
+ See the [detailed core-config.yml guide](docs/user-guide.md#core-configuration-coreconfigyml) for configuration examples and best practices.
180
206
 
181
207
  ## Teams & Workflows
182
208
 
@@ -99,6 +99,11 @@ loading:
99
99
  - Agents: Only when transforming
100
100
  - Templates/Tasks: Only when executing
101
101
  - Always indicate loading
102
+ kb-mode-behavior:
103
+ - When *kb-mode is invoked, use kb-mode-interaction task
104
+ - Don't dump all KB content immediately
105
+ - Present topic areas and wait for user selection
106
+ - Provide focused, contextual responses
102
107
  workflow-guidance:
103
108
  - Discover available workflows in the bundle at runtime
104
109
  - Understand each workflow's purpose, options, and decision points
@@ -112,6 +117,7 @@ dependencies:
112
117
  tasks:
113
118
  - advanced-elicitation
114
119
  - create-doc
120
+ - kb-mode-interaction
115
121
  data:
116
122
  - bmad-kb
117
123
  utils:
@@ -66,6 +66,64 @@ npx bmad-method install
66
66
 
67
67
  **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.
68
68
 
69
+ ## Core Configuration (core-config.yml)
70
+
71
+ **New in V4**: The `bmad-core/core-config.yml` file is a critical innovation that enables BMAD to work seamlessly with any project structure, providing maximum flexibility and backwards compatibility.
72
+
73
+ ### What is core-config.yml?
74
+
75
+ This configuration file acts as a map for BMAD agents, telling them exactly where to find your project documents and how they're structured. It enables:
76
+
77
+ - **Version Flexibility**: Work with V3, V4, or custom document structures
78
+ - **Custom Locations**: Define where your documents and shards live
79
+ - **Developer Context**: Specify which files the dev agent should always load
80
+ - **Debug Support**: Built-in logging for troubleshooting
81
+
82
+ ### Key Configuration Areas
83
+
84
+ #### PRD Configuration
85
+ - **prdVersion**: Tells agents if PRD follows v3 or v4 conventions
86
+ - **prdSharded**: Whether epics are embedded (false) or in separate files (true)
87
+ - **prdShardedLocation**: Where to find sharded epic files
88
+ - **epicFilePattern**: Pattern for epic filenames (e.g., `epic-{n}*.md`)
89
+
90
+ #### Architecture Configuration
91
+ - **architectureVersion**: v3 (monolithic) or v4 (sharded)
92
+ - **architectureSharded**: Whether architecture is split into components
93
+ - **architectureShardedLocation**: Where sharded architecture files live
94
+
95
+ #### Developer Files
96
+ - **devLoadAlwaysFiles**: List of files the dev agent loads for every task
97
+ - **devDebugLog**: Where dev agent logs repeated failures
98
+ - **agentCoreDump**: Export location for chat conversations
99
+
100
+ ### Why It Matters
101
+
102
+ 1. **No Forced Migrations**: Keep your existing document structure
103
+ 2. **Gradual Adoption**: Start with V3 and migrate to V4 at your pace
104
+ 3. **Custom Workflows**: Configure BMAD to match your team's process
105
+ 4. **Intelligent Agents**: Agents automatically adapt to your configuration
106
+
107
+ ### Common Configurations
108
+
109
+ **Legacy V3 Project**:
110
+ ```yaml
111
+ prdVersion: v3
112
+ prdSharded: false
113
+ architectureVersion: v3
114
+ architectureSharded: false
115
+ ```
116
+
117
+ **V4 Optimized Project**:
118
+ ```yaml
119
+ prdVersion: v4
120
+ prdSharded: true
121
+ prdShardedLocation: docs/prd
122
+ architectureVersion: v4
123
+ architectureSharded: true
124
+ architectureShardedLocation: docs/architecture
125
+ ```
126
+
69
127
  ## Core Philosophy
70
128
 
71
129
  ### Vibe CEO'ing
@@ -0,0 +1,70 @@
1
+ # KB Mode Interaction Task
2
+
3
+ ## Purpose
4
+ Provide a user-friendly interface to the BMAD knowledge base without overwhelming users with information upfront.
5
+
6
+ ## Instructions
7
+
8
+ When entering KB mode (*kb-mode), follow these steps:
9
+
10
+ ### 1. Welcome and Guide
11
+ Announce entering KB mode with a brief, friendly introduction:
12
+
13
+ "I've entered KB mode and have access to the full BMAD knowledge base. I can help you with detailed information about any aspect of BMAD-METHOD."
14
+
15
+ ### 2. Present Topic Areas
16
+ Offer a concise list of main topic areas the user might want to explore:
17
+
18
+ **What would you like to know more about?**
19
+
20
+ 1. **Setup & Installation** - Getting started with BMAD
21
+ 2. **Workflows** - Choosing the right workflow for your project
22
+ 3. **Web vs IDE** - When to use each environment
23
+ 4. **Agents** - Understanding specialized agents and their roles
24
+ 5. **Documents** - PRDs, Architecture, Stories, and more
25
+ 6. **Agile Process** - How BMAD implements Agile methodologies
26
+ 7. **Configuration** - Customizing BMAD for your needs
27
+ 8. **Best Practices** - Tips for effective BMAD usage
28
+
29
+ Or ask me about anything else related to BMAD-METHOD!
30
+
31
+ ### 3. Respond Contextually
32
+ - Wait for user's specific question or topic selection
33
+ - Provide focused, relevant information from the knowledge base
34
+ - Offer to dive deeper or explore related topics
35
+ - Keep responses concise unless user asks for detailed explanations
36
+
37
+ ### 4. Interactive Exploration
38
+ - After answering, suggest related topics they might find helpful
39
+ - Maintain conversational flow rather than data dumping
40
+ - Use examples when appropriate
41
+ - Reference specific documentation sections when relevant
42
+
43
+ ### 5. Exit Gracefully
44
+ When user is done or wants to exit KB mode:
45
+ - Summarize key points discussed if helpful
46
+ - Remind them they can return to KB mode anytime with *kb-mode
47
+ - Suggest next steps based on what was discussed
48
+
49
+ ## Example Interaction
50
+
51
+ **User**: *kb-mode
52
+
53
+ **Assistant**: I've entered KB mode and have access to the full BMAD knowledge base. I can help you with detailed information about any aspect of BMAD-METHOD.
54
+
55
+ **What would you like to know more about?**
56
+
57
+ 1. **Setup & Installation** - Getting started with BMAD
58
+ 2. **Workflows** - Choosing the right workflow for your project
59
+ 3. **Web vs IDE** - When to use each environment
60
+ 4. **Agents** - Understanding specialized agents and their roles
61
+ 5. **Documents** - PRDs, Architecture, Stories, and more
62
+ 6. **Agile Process** - How BMAD implements Agile methodologies
63
+ 7. **Configuration** - Customizing BMAD for your needs
64
+ 8. **Best Practices** - Tips for effective BMAD usage
65
+
66
+ Or ask me about anything else related to BMAD-METHOD!
67
+
68
+ **User**: Tell me about workflows
69
+
70
+ **Assistant**: [Provides focused information about workflows from the KB, then offers to explore specific workflow types or related topics]
@@ -884,6 +884,248 @@ This file allows you to define your preferred technologies, patterns, and standa
884
884
 
885
885
  When creating custom web bundles or uploading to AI platforms, include your `technical-preferences.md` content to ensure agents have your preferences from the start of any conversation.
886
886
 
887
+ ### Core Configuration (core-config.yml)
888
+
889
+ The `bmad-core/core-config.yml` file is a critical V4 innovation that enables BMAD to work seamlessly with any project structure, providing maximum flexibility and backwards compatibility.
890
+
891
+ #### Understanding core-config.yml
892
+
893
+ This configuration file acts as a map for BMAD agents, telling them exactly where to find your project documents and how they're structured. It's what makes V4 agents intelligent enough to work with V3 projects, custom layouts, or any document organization you prefer.
894
+
895
+ #### Configuration Structure
896
+
897
+ ```yaml
898
+ core-project-information:
899
+ dev-story-location: docs/stories # Where completed stories are saved
900
+
901
+ prd:
902
+ prd-file: docs/prd.md
903
+ prdVersion: v4 # v3 or v4
904
+ prdSharded: true # false if epics are embedded in PRD
905
+ prdShardedLocation: docs/prd # Where sharded epics live
906
+ epicFilePattern: epic-{n}*.md # Pattern for epic files
907
+
908
+ architecture:
909
+ architecture-file: docs/architecture.md
910
+ architectureVersion: v4 # v3 or v4
911
+ architectureSharded: true # false if monolithic
912
+ architectureShardedLocation: docs/architecture
913
+
914
+ customTechnicalDocuments: null # Additional docs for SM
915
+
916
+ devLoadAlwaysFiles: # Files dev agent always loads
917
+ - docs/architecture/coding-standards.md
918
+ - docs/architecture/tech-stack.md
919
+ - docs/architecture/project-structure.md
920
+
921
+ devDebugLog: .ai/debug-log.md # Dev agent debug tracking
922
+ agentCoreDump: .ai/core-dump{n}.md # Export chat contents
923
+ ```
924
+
925
+ #### Key Configuration Options
926
+
927
+ ##### PRD Configuration
928
+
929
+ The Scrum Master agent uses these settings to locate epics:
930
+
931
+ **V4 Sharded Structure:**
932
+
933
+ ```yaml
934
+ prd:
935
+ prd-file: docs/prd.md
936
+ prdVersion: v4
937
+ prdSharded: true
938
+ prdShardedLocation: docs/prd
939
+ epicFilePattern: epic-{n}*.md
940
+ ```
941
+
942
+ **V3 Embedded Epics:**
943
+
944
+ ```yaml
945
+ prd:
946
+ prd-file: docs/prd.md
947
+ prdVersion: v3
948
+ prdSharded: false # Epics are inside PRD
949
+ ```
950
+
951
+ **Custom Sharded Location:**
952
+
953
+ ```yaml
954
+ prd:
955
+ prd-file: docs/product-requirements.md
956
+ prdVersion: v4
957
+ prdSharded: true
958
+ prdShardedLocation: docs # Epics in docs/ not docs/prd/
959
+ epicFilePattern: epic-*.md
960
+ ```
961
+
962
+ ##### Architecture Configuration
963
+
964
+ Similar flexibility for architecture documents:
965
+
966
+ **V4 Sharded Architecture:**
967
+
968
+ ```yaml
969
+ architecture:
970
+ architecture-file: docs/architecture.md
971
+ architectureVersion: v4
972
+ architectureSharded: true
973
+ architectureShardedLocation: docs/architecture
974
+ ```
975
+
976
+ **V3 Monolithic Architecture:**
977
+
978
+ ```yaml
979
+ architecture:
980
+ architecture-file: docs/technical-architecture.md
981
+ architectureVersion: v3
982
+ architectureSharded: false # All in one file
983
+ ```
984
+
985
+ ##### Developer Context Files
986
+
987
+ Define which files the dev agent should always load:
988
+
989
+ ```yaml
990
+ devLoadAlwaysFiles:
991
+ - docs/architecture/coding-standards.md
992
+ - docs/architecture/tech-stack.md
993
+ - docs/architecture/project-structure.md
994
+ - docs/api-contracts.yaml
995
+ - docs/database-schema.md
996
+ - .env.example
997
+ ```
998
+
999
+ This ensures the dev agent always has critical context without needing to search for it.
1000
+
1001
+ ##### Debug and Export Options
1002
+
1003
+ **Debug Log:**
1004
+
1005
+ ```yaml
1006
+ devDebugLog: .ai/debug-log.md
1007
+ ```
1008
+
1009
+ When the dev agent encounters repeated failures implementing a story, it logs issues here to avoid repeating the same mistakes.
1010
+
1011
+ **Core Dump:**
1012
+
1013
+ ```yaml
1014
+ agentCoreDump: .ai/core-dump{n}.md
1015
+ ```
1016
+
1017
+ Export entire chat conversations for preservation or analysis. The `{n}` is replaced with a number.
1018
+
1019
+ #### Common Configurations
1020
+
1021
+ ##### Legacy V3 Project
1022
+
1023
+ ```yaml
1024
+ core-project-information:
1025
+ dev-story-location: docs/stories
1026
+ prd:
1027
+ prd-file: docs/prd.md
1028
+ prdVersion: v3
1029
+ prdSharded: false
1030
+ architecture:
1031
+ architecture-file: docs/architecture.md
1032
+ architectureVersion: v3
1033
+ architectureSharded: false
1034
+ devLoadAlwaysFiles: []
1035
+ ```
1036
+
1037
+ ##### Hybrid Project (V3 PRD, V4 Architecture)
1038
+
1039
+ ```yaml
1040
+ core-project-information:
1041
+ dev-story-location: .ai/stories
1042
+ prd:
1043
+ prd-file: docs/product-requirements.md
1044
+ prdVersion: v3
1045
+ prdSharded: false
1046
+ architecture:
1047
+ architecture-file: docs/architecture.md
1048
+ architectureVersion: v4
1049
+ architectureSharded: true
1050
+ architectureShardedLocation: docs/architecture
1051
+ devLoadAlwaysFiles:
1052
+ - docs/architecture/tech-stack.md
1053
+ ```
1054
+
1055
+ ##### Custom Organization
1056
+
1057
+ ```yaml
1058
+ core-project-information:
1059
+ dev-story-location: development/completed-stories
1060
+ prd:
1061
+ prd-file: planning/requirements.md
1062
+ prdVersion: v4
1063
+ prdSharded: true
1064
+ prdShardedLocation: planning/epics
1065
+ epicFilePattern: requirement-{n}.md
1066
+ architecture:
1067
+ architecture-file: technical/system-design.md
1068
+ architectureVersion: v4
1069
+ architectureSharded: true
1070
+ architectureShardedLocation: technical/components
1071
+ customTechnicalDocuments:
1072
+ - technical/api-guide.md
1073
+ - technical/deployment.md
1074
+ devLoadAlwaysFiles:
1075
+ - technical/coding-guidelines.md
1076
+ - technical/git-workflow.md
1077
+ ```
1078
+
1079
+ #### Migration Strategies
1080
+
1081
+ ##### Gradual V3 to V4 Migration
1082
+
1083
+ Start with V3 documents and gradually adopt V4 patterns:
1084
+
1085
+ 1. **Initial State**: Set `prdVersion: v3` and `prdSharded: false`
1086
+ 2. **Shard PRD**: Use PO agent to shard, then update to `prdSharded: true`
1087
+ 3. **Update Version**: Change to `prdVersion: v4` after using V4 templates
1088
+ 4. **Repeat for Architecture**: Same process for architecture documents
1089
+
1090
+ ##### Working with Mixed Teams
1091
+
1092
+ If some team members use V3 and others use V4:
1093
+
1094
+ ```yaml
1095
+ # Support both patterns
1096
+ customTechnicalDocuments:
1097
+ - docs/legacy-requirements.md # V3 format
1098
+ - docs/prd.md # V4 format
1099
+ ```
1100
+
1101
+ #### Best Practices
1102
+
1103
+ 1. **Always Configure for Your Structure**: Don't force your project to match BMAD defaults
1104
+ 2. **Keep devLoadAlwaysFiles Focused**: Only include files needed for every dev task
1105
+ 3. **Use Debug Log**: Enable when troubleshooting story implementation issues
1106
+ 4. **Version Control core-config.yml**: Track changes to understand project evolution
1107
+ 5. **Document Custom Patterns**: If using custom epicFilePattern, document it
1108
+
1109
+ #### Troubleshooting
1110
+
1111
+ **Scrum Master Can't Find Epics:**
1112
+
1113
+ - Check `prdSharded` matches your structure
1114
+ - Verify `prdShardedLocation` path exists
1115
+ - Confirm `epicFilePattern` matches your files
1116
+
1117
+ **Dev Agent Missing Context:**
1118
+
1119
+ - Add critical files to `devLoadAlwaysFiles`
1120
+ - Ensure file paths are correct
1121
+ - Check files exist and are readable
1122
+
1123
+ **Architecture Not Loading:**
1124
+
1125
+ - Verify `architecture-file` path
1126
+ - Check `architectureVersion` setting
1127
+ - Confirm sharding configuration matches reality
1128
+
887
1129
  ### Extension Packs
888
1130
 
889
1131
  Add specialized capabilities:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bmad-method",
3
- "version": "4.9.2",
3
+ "version": "4.10.0",
4
4
  "description": "Breakthrough Method of Agile AI-driven Development",
5
5
  "main": "tools/cli.js",
6
6
  "bin": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bmad-method",
3
- "version": "4.9.2",
3
+ "version": "4.10.0",
4
4
  "description": "BMAD Method installer - AI-powered Agile development framework",
5
5
  "main": "lib/installer.js",
6
6
  "bin": {