diff --git a/dist/agents/analyst.txt b/dist/agents/analyst.txt index 103950fc..dd942376 100644 --- a/dist/agents/analyst.txt +++ b/dist/agents/analyst.txt @@ -1679,6 +1679,64 @@ npx bmad-method install **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. +## Core Configuration (core-config.yml) + +**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. + +### What is core-config.yml? + +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: + +- **Version Flexibility**: Work with V3, V4, or custom document structures +- **Custom Locations**: Define where your documents and shards live +- **Developer Context**: Specify which files the dev agent should always load +- **Debug Support**: Built-in logging for troubleshooting + +### Key Configuration Areas + +#### PRD Configuration +- **prdVersion**: Tells agents if PRD follows v3 or v4 conventions +- **prdSharded**: Whether epics are embedded (false) or in separate files (true) +- **prdShardedLocation**: Where to find sharded epic files +- **epicFilePattern**: Pattern for epic filenames (e.g., `epic-{n}*.md`) + +#### Architecture Configuration +- **architectureVersion**: v3 (monolithic) or v4 (sharded) +- **architectureSharded**: Whether architecture is split into components +- **architectureShardedLocation**: Where sharded architecture files live + +#### Developer Files +- **devLoadAlwaysFiles**: List of files the dev agent loads for every task +- **devDebugLog**: Where dev agent logs repeated failures +- **agentCoreDump**: Export location for chat conversations + +### Why It Matters + +1. **No Forced Migrations**: Keep your existing document structure +2. **Gradual Adoption**: Start with V3 and migrate to V4 at your pace +3. **Custom Workflows**: Configure BMAD to match your team's process +4. **Intelligent Agents**: Agents automatically adapt to your configuration + +### Common Configurations + +**Legacy V3 Project**: +```yaml +prdVersion: v3 +prdSharded: false +architectureVersion: v3 +architectureSharded: false +``` + +**V4 Optimized Project**: +```yaml +prdVersion: v4 +prdSharded: true +prdShardedLocation: docs/prd +architectureVersion: v4 +architectureSharded: true +architectureShardedLocation: docs/architecture +``` + ## Core Philosophy ### Vibe CEO'ing diff --git a/dist/agents/bmad-master.txt b/dist/agents/bmad-master.txt index 01fce852..8694808c 100644 --- a/dist/agents/bmad-master.txt +++ b/dist/agents/bmad-master.txt @@ -1774,12 +1774,40 @@ To identify the next logical story based on project progress and epic definition ``` - Proceed only if user selects option 3 (Override) or if the last story was 'Done'. - - If proceeding: Look for the Epic File for `{lastEpicNum}` (e.g., `epic-{lastEpicNum}*.md`) and check for a story numbered `{lastStoryNum + 1}`. If it exists and its prerequisites (per Epic File) are met, this is the next story. - - Else (story not found or prerequisites not met): The next story is the first story in the next Epic File (e.g., look for `epic-{lastEpicNum + 1}*.md`, then `epic-{lastEpicNum + 2}*.md`, etc.) whose prerequisites are met. + - If proceeding: Look for the Epic File for `{lastEpicNum}` (e.g., `epic-{lastEpicNum}*.md`) and parse it to find ALL stories in that epic. **ALWAYS select the next sequential story** (e.g., if last was 2.2, next MUST be 2.3). + - If the next sequential story has unmet prerequisites, present this to the user: + + ```plaintext + ALERT: Next story has unmet prerequisites: + Story: {epicNum}.{storyNum} - {Story Title} + Prerequisites not met: [list specific prerequisites] + + Would you like to: + 1. Create the story anyway (mark prerequisites as pending) + 2. Skip to a different story (requires your specific instruction) + 3. Cancel story creation + + Please choose an option (1/2/3): + ``` + + - If there are no more stories in the current epic (e.g., 2.9 was done and there is no 2.10): + + ```plaintext + Epic {epicNum} Complete: All stories in Epic {epicNum} have been completed. + + Would you like to: + 1. Begin Epic {epicNum + 1} with story {epicNum + 1}.1 + 2. Select a specific story to work on + 3. Cancel story creation + + Please choose an option (1/2/3): + ``` + + - **CRITICAL**: NEVER automatically skip to another epic or non-sequential story. The user MUST explicitly instruct which story to create if skipping the sequential order. - **If no story files exist in `docs/stories/`:** - - The next story is the first story in the first epic file (look for `epic-1-*.md`, then `epic-2-*.md`, etc.) whose prerequisites are met. -- If no suitable story with met prerequisites is found, report to the user that story creation is blocked, specifying what prerequisites are pending. HALT task. + - The next story is ALWAYS 1.1 (the first story of the first epic). + - If story 1.1 has unmet prerequisites, follow the same alert process as above. - Announce the identified story to the user: "Identified next story for preparation: {epicNum}.{storyNum} - {Story Title}". ### 2. Gather Core Story Requirements (from Epic) @@ -8486,6 +8514,64 @@ npx bmad-method install **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. +## Core Configuration (core-config.yml) + +**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. + +### What is core-config.yml? + +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: + +- **Version Flexibility**: Work with V3, V4, or custom document structures +- **Custom Locations**: Define where your documents and shards live +- **Developer Context**: Specify which files the dev agent should always load +- **Debug Support**: Built-in logging for troubleshooting + +### Key Configuration Areas + +#### PRD Configuration +- **prdVersion**: Tells agents if PRD follows v3 or v4 conventions +- **prdSharded**: Whether epics are embedded (false) or in separate files (true) +- **prdShardedLocation**: Where to find sharded epic files +- **epicFilePattern**: Pattern for epic filenames (e.g., `epic-{n}*.md`) + +#### Architecture Configuration +- **architectureVersion**: v3 (monolithic) or v4 (sharded) +- **architectureSharded**: Whether architecture is split into components +- **architectureShardedLocation**: Where sharded architecture files live + +#### Developer Files +- **devLoadAlwaysFiles**: List of files the dev agent loads for every task +- **devDebugLog**: Where dev agent logs repeated failures +- **agentCoreDump**: Export location for chat conversations + +### Why It Matters + +1. **No Forced Migrations**: Keep your existing document structure +2. **Gradual Adoption**: Start with V3 and migrate to V4 at your pace +3. **Custom Workflows**: Configure BMAD to match your team's process +4. **Intelligent Agents**: Agents automatically adapt to your configuration + +### Common Configurations + +**Legacy V3 Project**: +```yaml +prdVersion: v3 +prdSharded: false +architectureVersion: v3 +architectureSharded: false +``` + +**V4 Optimized Project**: +```yaml +prdVersion: v4 +prdSharded: true +prdShardedLocation: docs/prd +architectureVersion: v4 +architectureSharded: true +architectureShardedLocation: docs/architecture +``` + ## Core Philosophy ### Vibe CEO'ing diff --git a/dist/agents/bmad-orchestrator.txt b/dist/agents/bmad-orchestrator.txt index 6a5e230a..9af4b07a 100644 --- a/dist/agents/bmad-orchestrator.txt +++ b/dist/agents/bmad-orchestrator.txt @@ -136,6 +136,11 @@ loading: - Agents: Only when transforming - Templates/Tasks: Only when executing - Always indicate loading +kb-mode-behavior: + - When *kb-mode is invoked, use kb-mode-interaction task + - Don't dump all KB content immediately + - Present topic areas and wait for user selection + - Provide focused, contextual responses workflow-guidance: - Discover available workflows in the bundle at runtime - Understand each workflow's purpose, options, and decision points @@ -149,6 +154,7 @@ dependencies: tasks: - advanced-elicitation - create-doc + - kb-mode-interaction data: - bmad-kb utils: @@ -329,6 +335,79 @@ If template specifies a checklist: - Template markup is for AI processing only - never expose to users ==================== END: tasks#create-doc ==================== +==================== START: tasks#kb-mode-interaction ==================== +# KB Mode Interaction Task + +## Purpose +Provide a user-friendly interface to the BMAD knowledge base without overwhelming users with information upfront. + +## Instructions + +When entering KB mode (*kb-mode), follow these steps: + +### 1. Welcome and Guide +Announce entering KB mode with a brief, friendly introduction: + +"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." + +### 2. Present Topic Areas +Offer a concise list of main topic areas the user might want to explore: + +**What would you like to know more about?** + +1. **Setup & Installation** - Getting started with BMAD +2. **Workflows** - Choosing the right workflow for your project +3. **Web vs IDE** - When to use each environment +4. **Agents** - Understanding specialized agents and their roles +5. **Documents** - PRDs, Architecture, Stories, and more +6. **Agile Process** - How BMAD implements Agile methodologies +7. **Configuration** - Customizing BMAD for your needs +8. **Best Practices** - Tips for effective BMAD usage + +Or ask me about anything else related to BMAD-METHOD! + +### 3. Respond Contextually +- Wait for user's specific question or topic selection +- Provide focused, relevant information from the knowledge base +- Offer to dive deeper or explore related topics +- Keep responses concise unless user asks for detailed explanations + +### 4. Interactive Exploration +- After answering, suggest related topics they might find helpful +- Maintain conversational flow rather than data dumping +- Use examples when appropriate +- Reference specific documentation sections when relevant + +### 5. Exit Gracefully +When user is done or wants to exit KB mode: +- Summarize key points discussed if helpful +- Remind them they can return to KB mode anytime with *kb-mode +- Suggest next steps based on what was discussed + +## Example Interaction + +**User**: *kb-mode + +**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. + +**What would you like to know more about?** + +1. **Setup & Installation** - Getting started with BMAD +2. **Workflows** - Choosing the right workflow for your project +3. **Web vs IDE** - When to use each environment +4. **Agents** - Understanding specialized agents and their roles +5. **Documents** - PRDs, Architecture, Stories, and more +6. **Agile Process** - How BMAD implements Agile methodologies +7. **Configuration** - Customizing BMAD for your needs +8. **Best Practices** - Tips for effective BMAD usage + +Or ask me about anything else related to BMAD-METHOD! + +**User**: Tell me about workflows + +**Assistant**: [Provides focused information about workflows from the KB, then offers to explore specific workflow types or related topics] +==================== END: tasks#kb-mode-interaction ==================== + ==================== START: data#bmad-kb ==================== # BMAD Knowledge Base @@ -398,6 +477,64 @@ npx bmad-method install **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. +## Core Configuration (core-config.yml) + +**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. + +### What is core-config.yml? + +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: + +- **Version Flexibility**: Work with V3, V4, or custom document structures +- **Custom Locations**: Define where your documents and shards live +- **Developer Context**: Specify which files the dev agent should always load +- **Debug Support**: Built-in logging for troubleshooting + +### Key Configuration Areas + +#### PRD Configuration +- **prdVersion**: Tells agents if PRD follows v3 or v4 conventions +- **prdSharded**: Whether epics are embedded (false) or in separate files (true) +- **prdShardedLocation**: Where to find sharded epic files +- **epicFilePattern**: Pattern for epic filenames (e.g., `epic-{n}*.md`) + +#### Architecture Configuration +- **architectureVersion**: v3 (monolithic) or v4 (sharded) +- **architectureSharded**: Whether architecture is split into components +- **architectureShardedLocation**: Where sharded architecture files live + +#### Developer Files +- **devLoadAlwaysFiles**: List of files the dev agent loads for every task +- **devDebugLog**: Where dev agent logs repeated failures +- **agentCoreDump**: Export location for chat conversations + +### Why It Matters + +1. **No Forced Migrations**: Keep your existing document structure +2. **Gradual Adoption**: Start with V3 and migrate to V4 at your pace +3. **Custom Workflows**: Configure BMAD to match your team's process +4. **Intelligent Agents**: Agents automatically adapt to your configuration + +### Common Configurations + +**Legacy V3 Project**: +```yaml +prdVersion: v3 +prdSharded: false +architectureVersion: v3 +architectureSharded: false +``` + +**V4 Optimized Project**: +```yaml +prdVersion: v4 +prdSharded: true +prdShardedLocation: docs/prd +architectureVersion: v4 +architectureSharded: true +architectureShardedLocation: docs/architecture +``` + ## Core Philosophy ### Vibe CEO'ing diff --git a/dist/agents/sm.txt b/dist/agents/sm.txt index 6cd356c3..1df9d5f8 100644 --- a/dist/agents/sm.txt +++ b/dist/agents/sm.txt @@ -149,12 +149,40 @@ To identify the next logical story based on project progress and epic definition ``` - Proceed only if user selects option 3 (Override) or if the last story was 'Done'. - - If proceeding: Look for the Epic File for `{lastEpicNum}` (e.g., `epic-{lastEpicNum}*.md`) and check for a story numbered `{lastStoryNum + 1}`. If it exists and its prerequisites (per Epic File) are met, this is the next story. - - Else (story not found or prerequisites not met): The next story is the first story in the next Epic File (e.g., look for `epic-{lastEpicNum + 1}*.md`, then `epic-{lastEpicNum + 2}*.md`, etc.) whose prerequisites are met. + - If proceeding: Look for the Epic File for `{lastEpicNum}` (e.g., `epic-{lastEpicNum}*.md`) and parse it to find ALL stories in that epic. **ALWAYS select the next sequential story** (e.g., if last was 2.2, next MUST be 2.3). + - If the next sequential story has unmet prerequisites, present this to the user: + + ```plaintext + ALERT: Next story has unmet prerequisites: + Story: {epicNum}.{storyNum} - {Story Title} + Prerequisites not met: [list specific prerequisites] + + Would you like to: + 1. Create the story anyway (mark prerequisites as pending) + 2. Skip to a different story (requires your specific instruction) + 3. Cancel story creation + + Please choose an option (1/2/3): + ``` + + - If there are no more stories in the current epic (e.g., 2.9 was done and there is no 2.10): + + ```plaintext + Epic {epicNum} Complete: All stories in Epic {epicNum} have been completed. + + Would you like to: + 1. Begin Epic {epicNum + 1} with story {epicNum + 1}.1 + 2. Select a specific story to work on + 3. Cancel story creation + + Please choose an option (1/2/3): + ``` + + - **CRITICAL**: NEVER automatically skip to another epic or non-sequential story. The user MUST explicitly instruct which story to create if skipping the sequential order. - **If no story files exist in `docs/stories/`:** - - The next story is the first story in the first epic file (look for `epic-1-*.md`, then `epic-2-*.md`, etc.) whose prerequisites are met. -- If no suitable story with met prerequisites is found, report to the user that story creation is blocked, specifying what prerequisites are pending. HALT task. + - The next story is ALWAYS 1.1 (the first story of the first epic). + - If story 1.1 has unmet prerequisites, follow the same alert process as above. - Announce the identified story to the user: "Identified next story for preparation: {epicNum}.{storyNum} - {Story Title}". ### 2. Gather Core Story Requirements (from Epic) diff --git a/dist/expansion-packs/bmad-2d-phaser-game-dev/teams/phaser-2d-nodejs-game-team.txt b/dist/expansion-packs/bmad-2d-phaser-game-dev/teams/phaser-2d-nodejs-game-team.txt index d5105f84..437fd4a0 100644 --- a/dist/expansion-packs/bmad-2d-phaser-game-dev/teams/phaser-2d-nodejs-game-team.txt +++ b/dist/expansion-packs/bmad-2d-phaser-game-dev/teams/phaser-2d-nodejs-game-team.txt @@ -214,6 +214,11 @@ loading: - Agents: Only when transforming - Templates/Tasks: Only when executing - Always indicate loading +kb-mode-behavior: + - When *kb-mode is invoked, use kb-mode-interaction task + - Don't dump all KB content immediately + - Present topic areas and wait for user selection + - Provide focused, contextual responses workflow-guidance: - Discover available workflows in the bundle at runtime - Understand each workflow's purpose, options, and decision points @@ -227,6 +232,7 @@ dependencies: tasks: - advanced-elicitation - create-doc + - kb-mode-interaction data: - bmad-kb utils: @@ -2234,6 +2240,79 @@ Templates in the BMAD method use standardized markup for AI processing. These co - All template-specific instructions are embedded within templates ==================== END: utils#template-format ==================== +==================== START: tasks#kb-mode-interaction ==================== +# KB Mode Interaction Task + +## Purpose +Provide a user-friendly interface to the BMAD knowledge base without overwhelming users with information upfront. + +## Instructions + +When entering KB mode (*kb-mode), follow these steps: + +### 1. Welcome and Guide +Announce entering KB mode with a brief, friendly introduction: + +"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." + +### 2. Present Topic Areas +Offer a concise list of main topic areas the user might want to explore: + +**What would you like to know more about?** + +1. **Setup & Installation** - Getting started with BMAD +2. **Workflows** - Choosing the right workflow for your project +3. **Web vs IDE** - When to use each environment +4. **Agents** - Understanding specialized agents and their roles +5. **Documents** - PRDs, Architecture, Stories, and more +6. **Agile Process** - How BMAD implements Agile methodologies +7. **Configuration** - Customizing BMAD for your needs +8. **Best Practices** - Tips for effective BMAD usage + +Or ask me about anything else related to BMAD-METHOD! + +### 3. Respond Contextually +- Wait for user's specific question or topic selection +- Provide focused, relevant information from the knowledge base +- Offer to dive deeper or explore related topics +- Keep responses concise unless user asks for detailed explanations + +### 4. Interactive Exploration +- After answering, suggest related topics they might find helpful +- Maintain conversational flow rather than data dumping +- Use examples when appropriate +- Reference specific documentation sections when relevant + +### 5. Exit Gracefully +When user is done or wants to exit KB mode: +- Summarize key points discussed if helpful +- Remind them they can return to KB mode anytime with *kb-mode +- Suggest next steps based on what was discussed + +## Example Interaction + +**User**: *kb-mode + +**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. + +**What would you like to know more about?** + +1. **Setup & Installation** - Getting started with BMAD +2. **Workflows** - Choosing the right workflow for your project +3. **Web vs IDE** - When to use each environment +4. **Agents** - Understanding specialized agents and their roles +5. **Documents** - PRDs, Architecture, Stories, and more +6. **Agile Process** - How BMAD implements Agile methodologies +7. **Configuration** - Customizing BMAD for your needs +8. **Best Practices** - Tips for effective BMAD usage + +Or ask me about anything else related to BMAD-METHOD! + +**User**: Tell me about workflows + +**Assistant**: [Provides focused information about workflows from the KB, then offers to explore specific workflow types or related topics] +==================== END: tasks#kb-mode-interaction ==================== + ==================== START: utils#workflow-management ==================== # Workflow Management diff --git a/dist/teams/team-all.txt b/dist/teams/team-all.txt index 33b9416c..380a85e1 100644 --- a/dist/teams/team-all.txt +++ b/dist/teams/team-all.txt @@ -153,6 +153,11 @@ loading: - Agents: Only when transforming - Templates/Tasks: Only when executing - Always indicate loading +kb-mode-behavior: + - When *kb-mode is invoked, use kb-mode-interaction task + - Don't dump all KB content immediately + - Present topic areas and wait for user selection + - Provide focused, contextual responses workflow-guidance: - Discover available workflows in the bundle at runtime - Understand each workflow's purpose, options, and decision points @@ -166,6 +171,7 @@ dependencies: tasks: - advanced-elicitation - create-doc + - kb-mode-interaction data: - bmad-kb utils: @@ -816,6 +822,79 @@ If template specifies a checklist: - Template markup is for AI processing only - never expose to users ==================== END: tasks#create-doc ==================== +==================== START: tasks#kb-mode-interaction ==================== +# KB Mode Interaction Task + +## Purpose +Provide a user-friendly interface to the BMAD knowledge base without overwhelming users with information upfront. + +## Instructions + +When entering KB mode (*kb-mode), follow these steps: + +### 1. Welcome and Guide +Announce entering KB mode with a brief, friendly introduction: + +"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." + +### 2. Present Topic Areas +Offer a concise list of main topic areas the user might want to explore: + +**What would you like to know more about?** + +1. **Setup & Installation** - Getting started with BMAD +2. **Workflows** - Choosing the right workflow for your project +3. **Web vs IDE** - When to use each environment +4. **Agents** - Understanding specialized agents and their roles +5. **Documents** - PRDs, Architecture, Stories, and more +6. **Agile Process** - How BMAD implements Agile methodologies +7. **Configuration** - Customizing BMAD for your needs +8. **Best Practices** - Tips for effective BMAD usage + +Or ask me about anything else related to BMAD-METHOD! + +### 3. Respond Contextually +- Wait for user's specific question or topic selection +- Provide focused, relevant information from the knowledge base +- Offer to dive deeper or explore related topics +- Keep responses concise unless user asks for detailed explanations + +### 4. Interactive Exploration +- After answering, suggest related topics they might find helpful +- Maintain conversational flow rather than data dumping +- Use examples when appropriate +- Reference specific documentation sections when relevant + +### 5. Exit Gracefully +When user is done or wants to exit KB mode: +- Summarize key points discussed if helpful +- Remind them they can return to KB mode anytime with *kb-mode +- Suggest next steps based on what was discussed + +## Example Interaction + +**User**: *kb-mode + +**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. + +**What would you like to know more about?** + +1. **Setup & Installation** - Getting started with BMAD +2. **Workflows** - Choosing the right workflow for your project +3. **Web vs IDE** - When to use each environment +4. **Agents** - Understanding specialized agents and their roles +5. **Documents** - PRDs, Architecture, Stories, and more +6. **Agile Process** - How BMAD implements Agile methodologies +7. **Configuration** - Customizing BMAD for your needs +8. **Best Practices** - Tips for effective BMAD usage + +Or ask me about anything else related to BMAD-METHOD! + +**User**: Tell me about workflows + +**Assistant**: [Provides focused information about workflows from the KB, then offers to explore specific workflow types or related topics] +==================== END: tasks#kb-mode-interaction ==================== + ==================== START: data#bmad-kb ==================== # BMAD Knowledge Base @@ -885,6 +964,64 @@ npx bmad-method install **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. +## Core Configuration (core-config.yml) + +**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. + +### What is core-config.yml? + +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: + +- **Version Flexibility**: Work with V3, V4, or custom document structures +- **Custom Locations**: Define where your documents and shards live +- **Developer Context**: Specify which files the dev agent should always load +- **Debug Support**: Built-in logging for troubleshooting + +### Key Configuration Areas + +#### PRD Configuration +- **prdVersion**: Tells agents if PRD follows v3 or v4 conventions +- **prdSharded**: Whether epics are embedded (false) or in separate files (true) +- **prdShardedLocation**: Where to find sharded epic files +- **epicFilePattern**: Pattern for epic filenames (e.g., `epic-{n}*.md`) + +#### Architecture Configuration +- **architectureVersion**: v3 (monolithic) or v4 (sharded) +- **architectureSharded**: Whether architecture is split into components +- **architectureShardedLocation**: Where sharded architecture files live + +#### Developer Files +- **devLoadAlwaysFiles**: List of files the dev agent loads for every task +- **devDebugLog**: Where dev agent logs repeated failures +- **agentCoreDump**: Export location for chat conversations + +### Why It Matters + +1. **No Forced Migrations**: Keep your existing document structure +2. **Gradual Adoption**: Start with V3 and migrate to V4 at your pace +3. **Custom Workflows**: Configure BMAD to match your team's process +4. **Intelligent Agents**: Agents automatically adapt to your configuration + +### Common Configurations + +**Legacy V3 Project**: +```yaml +prdVersion: v3 +prdSharded: false +architectureVersion: v3 +architectureSharded: false +``` + +**V4 Optimized Project**: +```yaml +prdVersion: v4 +prdSharded: true +prdShardedLocation: docs/prd +architectureVersion: v4 +architectureSharded: true +architectureShardedLocation: docs/architecture +``` + ## Core Philosophy ### Vibe CEO'ing @@ -8559,12 +8696,40 @@ To identify the next logical story based on project progress and epic definition ``` - Proceed only if user selects option 3 (Override) or if the last story was 'Done'. - - If proceeding: Look for the Epic File for `{lastEpicNum}` (e.g., `epic-{lastEpicNum}*.md`) and check for a story numbered `{lastStoryNum + 1}`. If it exists and its prerequisites (per Epic File) are met, this is the next story. - - Else (story not found or prerequisites not met): The next story is the first story in the next Epic File (e.g., look for `epic-{lastEpicNum + 1}*.md`, then `epic-{lastEpicNum + 2}*.md`, etc.) whose prerequisites are met. + - If proceeding: Look for the Epic File for `{lastEpicNum}` (e.g., `epic-{lastEpicNum}*.md`) and parse it to find ALL stories in that epic. **ALWAYS select the next sequential story** (e.g., if last was 2.2, next MUST be 2.3). + - If the next sequential story has unmet prerequisites, present this to the user: + + ```plaintext + ALERT: Next story has unmet prerequisites: + Story: {epicNum}.{storyNum} - {Story Title} + Prerequisites not met: [list specific prerequisites] + + Would you like to: + 1. Create the story anyway (mark prerequisites as pending) + 2. Skip to a different story (requires your specific instruction) + 3. Cancel story creation + + Please choose an option (1/2/3): + ``` + + - If there are no more stories in the current epic (e.g., 2.9 was done and there is no 2.10): + + ```plaintext + Epic {epicNum} Complete: All stories in Epic {epicNum} have been completed. + + Would you like to: + 1. Begin Epic {epicNum + 1} with story {epicNum + 1}.1 + 2. Select a specific story to work on + 3. Cancel story creation + + Please choose an option (1/2/3): + ``` + + - **CRITICAL**: NEVER automatically skip to another epic or non-sequential story. The user MUST explicitly instruct which story to create if skipping the sequential order. - **If no story files exist in `docs/stories/`:** - - The next story is the first story in the first epic file (look for `epic-1-*.md`, then `epic-2-*.md`, etc.) whose prerequisites are met. -- If no suitable story with met prerequisites is found, report to the user that story creation is blocked, specifying what prerequisites are pending. HALT task. + - The next story is ALWAYS 1.1 (the first story of the first epic). + - If story 1.1 has unmet prerequisites, follow the same alert process as above. - Announce the identified story to the user: "Identified next story for preparation: {epicNum}.{storyNum} - {Story Title}". ### 2. Gather Core Story Requirements (from Epic) @@ -9452,7 +9617,7 @@ workflow: sequence: - step: service_analysis - agent: architect + agent: architect action: analyze existing project and use task document-project creates: multiple documents per the document-project template notes: "Review existing service documentation, codebase, performance metrics, and identify integration dependencies." diff --git a/dist/teams/team-fullstack.txt b/dist/teams/team-fullstack.txt index 40ff4198..be16020c 100644 --- a/dist/teams/team-fullstack.txt +++ b/dist/teams/team-fullstack.txt @@ -157,6 +157,11 @@ loading: - Agents: Only when transforming - Templates/Tasks: Only when executing - Always indicate loading +kb-mode-behavior: + - When *kb-mode is invoked, use kb-mode-interaction task + - Don't dump all KB content immediately + - Present topic areas and wait for user selection + - Provide focused, contextual responses workflow-guidance: - Discover available workflows in the bundle at runtime - Understand each workflow's purpose, options, and decision points @@ -170,6 +175,7 @@ dependencies: tasks: - advanced-elicitation - create-doc + - kb-mode-interaction data: - bmad-kb utils: @@ -663,6 +669,79 @@ If template specifies a checklist: - Template markup is for AI processing only - never expose to users ==================== END: tasks#create-doc ==================== +==================== START: tasks#kb-mode-interaction ==================== +# KB Mode Interaction Task + +## Purpose +Provide a user-friendly interface to the BMAD knowledge base without overwhelming users with information upfront. + +## Instructions + +When entering KB mode (*kb-mode), follow these steps: + +### 1. Welcome and Guide +Announce entering KB mode with a brief, friendly introduction: + +"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." + +### 2. Present Topic Areas +Offer a concise list of main topic areas the user might want to explore: + +**What would you like to know more about?** + +1. **Setup & Installation** - Getting started with BMAD +2. **Workflows** - Choosing the right workflow for your project +3. **Web vs IDE** - When to use each environment +4. **Agents** - Understanding specialized agents and their roles +5. **Documents** - PRDs, Architecture, Stories, and more +6. **Agile Process** - How BMAD implements Agile methodologies +7. **Configuration** - Customizing BMAD for your needs +8. **Best Practices** - Tips for effective BMAD usage + +Or ask me about anything else related to BMAD-METHOD! + +### 3. Respond Contextually +- Wait for user's specific question or topic selection +- Provide focused, relevant information from the knowledge base +- Offer to dive deeper or explore related topics +- Keep responses concise unless user asks for detailed explanations + +### 4. Interactive Exploration +- After answering, suggest related topics they might find helpful +- Maintain conversational flow rather than data dumping +- Use examples when appropriate +- Reference specific documentation sections when relevant + +### 5. Exit Gracefully +When user is done or wants to exit KB mode: +- Summarize key points discussed if helpful +- Remind them they can return to KB mode anytime with *kb-mode +- Suggest next steps based on what was discussed + +## Example Interaction + +**User**: *kb-mode + +**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. + +**What would you like to know more about?** + +1. **Setup & Installation** - Getting started with BMAD +2. **Workflows** - Choosing the right workflow for your project +3. **Web vs IDE** - When to use each environment +4. **Agents** - Understanding specialized agents and their roles +5. **Documents** - PRDs, Architecture, Stories, and more +6. **Agile Process** - How BMAD implements Agile methodologies +7. **Configuration** - Customizing BMAD for your needs +8. **Best Practices** - Tips for effective BMAD usage + +Or ask me about anything else related to BMAD-METHOD! + +**User**: Tell me about workflows + +**Assistant**: [Provides focused information about workflows from the KB, then offers to explore specific workflow types or related topics] +==================== END: tasks#kb-mode-interaction ==================== + ==================== START: data#bmad-kb ==================== # BMAD Knowledge Base @@ -732,6 +811,64 @@ npx bmad-method install **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. +## Core Configuration (core-config.yml) + +**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. + +### What is core-config.yml? + +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: + +- **Version Flexibility**: Work with V3, V4, or custom document structures +- **Custom Locations**: Define where your documents and shards live +- **Developer Context**: Specify which files the dev agent should always load +- **Debug Support**: Built-in logging for troubleshooting + +### Key Configuration Areas + +#### PRD Configuration +- **prdVersion**: Tells agents if PRD follows v3 or v4 conventions +- **prdSharded**: Whether epics are embedded (false) or in separate files (true) +- **prdShardedLocation**: Where to find sharded epic files +- **epicFilePattern**: Pattern for epic filenames (e.g., `epic-{n}*.md`) + +#### Architecture Configuration +- **architectureVersion**: v3 (monolithic) or v4 (sharded) +- **architectureSharded**: Whether architecture is split into components +- **architectureShardedLocation**: Where sharded architecture files live + +#### Developer Files +- **devLoadAlwaysFiles**: List of files the dev agent loads for every task +- **devDebugLog**: Where dev agent logs repeated failures +- **agentCoreDump**: Export location for chat conversations + +### Why It Matters + +1. **No Forced Migrations**: Keep your existing document structure +2. **Gradual Adoption**: Start with V3 and migrate to V4 at your pace +3. **Custom Workflows**: Configure BMAD to match your team's process +4. **Intelligent Agents**: Agents automatically adapt to your configuration + +### Common Configurations + +**Legacy V3 Project**: +```yaml +prdVersion: v3 +prdSharded: false +architectureVersion: v3 +architectureSharded: false +``` + +**V4 Optimized Project**: +```yaml +prdVersion: v4 +prdSharded: true +prdShardedLocation: docs/prd +architectureVersion: v4 +architectureSharded: true +architectureShardedLocation: docs/architecture +``` + ## Core Philosophy ### Vibe CEO'ing @@ -8809,7 +8946,7 @@ workflow: sequence: - step: service_analysis - agent: architect + agent: architect action: analyze existing project and use task document-project creates: multiple documents per the document-project template notes: "Review existing service documentation, codebase, performance metrics, and identify integration dependencies." diff --git a/dist/teams/team-ide-minimal.txt b/dist/teams/team-ide-minimal.txt index 5a8894cc..ac86560d 100644 --- a/dist/teams/team-ide-minimal.txt +++ b/dist/teams/team-ide-minimal.txt @@ -149,6 +149,11 @@ loading: - Agents: Only when transforming - Templates/Tasks: Only when executing - Always indicate loading +kb-mode-behavior: + - When *kb-mode is invoked, use kb-mode-interaction task + - Don't dump all KB content immediately + - Present topic areas and wait for user selection + - Provide focused, contextual responses workflow-guidance: - Discover available workflows in the bundle at runtime - Understand each workflow's purpose, options, and decision points @@ -162,6 +167,7 @@ dependencies: tasks: - advanced-elicitation - create-doc + - kb-mode-interaction data: - bmad-kb utils: @@ -562,6 +568,79 @@ If template specifies a checklist: - Template markup is for AI processing only - never expose to users ==================== END: tasks#create-doc ==================== +==================== START: tasks#kb-mode-interaction ==================== +# KB Mode Interaction Task + +## Purpose +Provide a user-friendly interface to the BMAD knowledge base without overwhelming users with information upfront. + +## Instructions + +When entering KB mode (*kb-mode), follow these steps: + +### 1. Welcome and Guide +Announce entering KB mode with a brief, friendly introduction: + +"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." + +### 2. Present Topic Areas +Offer a concise list of main topic areas the user might want to explore: + +**What would you like to know more about?** + +1. **Setup & Installation** - Getting started with BMAD +2. **Workflows** - Choosing the right workflow for your project +3. **Web vs IDE** - When to use each environment +4. **Agents** - Understanding specialized agents and their roles +5. **Documents** - PRDs, Architecture, Stories, and more +6. **Agile Process** - How BMAD implements Agile methodologies +7. **Configuration** - Customizing BMAD for your needs +8. **Best Practices** - Tips for effective BMAD usage + +Or ask me about anything else related to BMAD-METHOD! + +### 3. Respond Contextually +- Wait for user's specific question or topic selection +- Provide focused, relevant information from the knowledge base +- Offer to dive deeper or explore related topics +- Keep responses concise unless user asks for detailed explanations + +### 4. Interactive Exploration +- After answering, suggest related topics they might find helpful +- Maintain conversational flow rather than data dumping +- Use examples when appropriate +- Reference specific documentation sections when relevant + +### 5. Exit Gracefully +When user is done or wants to exit KB mode: +- Summarize key points discussed if helpful +- Remind them they can return to KB mode anytime with *kb-mode +- Suggest next steps based on what was discussed + +## Example Interaction + +**User**: *kb-mode + +**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. + +**What would you like to know more about?** + +1. **Setup & Installation** - Getting started with BMAD +2. **Workflows** - Choosing the right workflow for your project +3. **Web vs IDE** - When to use each environment +4. **Agents** - Understanding specialized agents and their roles +5. **Documents** - PRDs, Architecture, Stories, and more +6. **Agile Process** - How BMAD implements Agile methodologies +7. **Configuration** - Customizing BMAD for your needs +8. **Best Practices** - Tips for effective BMAD usage + +Or ask me about anything else related to BMAD-METHOD! + +**User**: Tell me about workflows + +**Assistant**: [Provides focused information about workflows from the KB, then offers to explore specific workflow types or related topics] +==================== END: tasks#kb-mode-interaction ==================== + ==================== START: data#bmad-kb ==================== # BMAD Knowledge Base @@ -631,6 +710,64 @@ npx bmad-method install **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. +## Core Configuration (core-config.yml) + +**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. + +### What is core-config.yml? + +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: + +- **Version Flexibility**: Work with V3, V4, or custom document structures +- **Custom Locations**: Define where your documents and shards live +- **Developer Context**: Specify which files the dev agent should always load +- **Debug Support**: Built-in logging for troubleshooting + +### Key Configuration Areas + +#### PRD Configuration +- **prdVersion**: Tells agents if PRD follows v3 or v4 conventions +- **prdSharded**: Whether epics are embedded (false) or in separate files (true) +- **prdShardedLocation**: Where to find sharded epic files +- **epicFilePattern**: Pattern for epic filenames (e.g., `epic-{n}*.md`) + +#### Architecture Configuration +- **architectureVersion**: v3 (monolithic) or v4 (sharded) +- **architectureSharded**: Whether architecture is split into components +- **architectureShardedLocation**: Where sharded architecture files live + +#### Developer Files +- **devLoadAlwaysFiles**: List of files the dev agent loads for every task +- **devDebugLog**: Where dev agent logs repeated failures +- **agentCoreDump**: Export location for chat conversations + +### Why It Matters + +1. **No Forced Migrations**: Keep your existing document structure +2. **Gradual Adoption**: Start with V3 and migrate to V4 at your pace +3. **Custom Workflows**: Configure BMAD to match your team's process +4. **Intelligent Agents**: Agents automatically adapt to your configuration + +### Common Configurations + +**Legacy V3 Project**: +```yaml +prdVersion: v3 +prdSharded: false +architectureVersion: v3 +architectureSharded: false +``` + +**V4 Optimized Project**: +```yaml +prdVersion: v4 +prdSharded: true +prdShardedLocation: docs/prd +architectureVersion: v4 +architectureSharded: true +architectureShardedLocation: docs/architecture +``` + ## Core Philosophy ### Vibe CEO'ing @@ -2666,12 +2803,40 @@ To identify the next logical story based on project progress and epic definition ``` - Proceed only if user selects option 3 (Override) or if the last story was 'Done'. - - If proceeding: Look for the Epic File for `{lastEpicNum}` (e.g., `epic-{lastEpicNum}*.md`) and check for a story numbered `{lastStoryNum + 1}`. If it exists and its prerequisites (per Epic File) are met, this is the next story. - - Else (story not found or prerequisites not met): The next story is the first story in the next Epic File (e.g., look for `epic-{lastEpicNum + 1}*.md`, then `epic-{lastEpicNum + 2}*.md`, etc.) whose prerequisites are met. + - If proceeding: Look for the Epic File for `{lastEpicNum}` (e.g., `epic-{lastEpicNum}*.md`) and parse it to find ALL stories in that epic. **ALWAYS select the next sequential story** (e.g., if last was 2.2, next MUST be 2.3). + - If the next sequential story has unmet prerequisites, present this to the user: + + ```plaintext + ALERT: Next story has unmet prerequisites: + Story: {epicNum}.{storyNum} - {Story Title} + Prerequisites not met: [list specific prerequisites] + + Would you like to: + 1. Create the story anyway (mark prerequisites as pending) + 2. Skip to a different story (requires your specific instruction) + 3. Cancel story creation + + Please choose an option (1/2/3): + ``` + + - If there are no more stories in the current epic (e.g., 2.9 was done and there is no 2.10): + + ```plaintext + Epic {epicNum} Complete: All stories in Epic {epicNum} have been completed. + + Would you like to: + 1. Begin Epic {epicNum + 1} with story {epicNum + 1}.1 + 2. Select a specific story to work on + 3. Cancel story creation + + Please choose an option (1/2/3): + ``` + + - **CRITICAL**: NEVER automatically skip to another epic or non-sequential story. The user MUST explicitly instruct which story to create if skipping the sequential order. - **If no story files exist in `docs/stories/`:** - - The next story is the first story in the first epic file (look for `epic-1-*.md`, then `epic-2-*.md`, etc.) whose prerequisites are met. -- If no suitable story with met prerequisites is found, report to the user that story creation is blocked, specifying what prerequisites are pending. HALT task. + - The next story is ALWAYS 1.1 (the first story of the first epic). + - If story 1.1 has unmet prerequisites, follow the same alert process as above. - Announce the identified story to the user: "Identified next story for preparation: {epicNum}.{storyNum} - {Story Title}". ### 2. Gather Core Story Requirements (from Epic) diff --git a/dist/teams/team-no-ui.txt b/dist/teams/team-no-ui.txt index e2079c2d..7d592d6a 100644 --- a/dist/teams/team-no-ui.txt +++ b/dist/teams/team-no-ui.txt @@ -152,6 +152,11 @@ loading: - Agents: Only when transforming - Templates/Tasks: Only when executing - Always indicate loading +kb-mode-behavior: + - When *kb-mode is invoked, use kb-mode-interaction task + - Don't dump all KB content immediately + - Present topic areas and wait for user selection + - Provide focused, contextual responses workflow-guidance: - Discover available workflows in the bundle at runtime - Understand each workflow's purpose, options, and decision points @@ -165,6 +170,7 @@ dependencies: tasks: - advanced-elicitation - create-doc + - kb-mode-interaction data: - bmad-kb utils: @@ -595,6 +601,79 @@ If template specifies a checklist: - Template markup is for AI processing only - never expose to users ==================== END: tasks#create-doc ==================== +==================== START: tasks#kb-mode-interaction ==================== +# KB Mode Interaction Task + +## Purpose +Provide a user-friendly interface to the BMAD knowledge base without overwhelming users with information upfront. + +## Instructions + +When entering KB mode (*kb-mode), follow these steps: + +### 1. Welcome and Guide +Announce entering KB mode with a brief, friendly introduction: + +"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." + +### 2. Present Topic Areas +Offer a concise list of main topic areas the user might want to explore: + +**What would you like to know more about?** + +1. **Setup & Installation** - Getting started with BMAD +2. **Workflows** - Choosing the right workflow for your project +3. **Web vs IDE** - When to use each environment +4. **Agents** - Understanding specialized agents and their roles +5. **Documents** - PRDs, Architecture, Stories, and more +6. **Agile Process** - How BMAD implements Agile methodologies +7. **Configuration** - Customizing BMAD for your needs +8. **Best Practices** - Tips for effective BMAD usage + +Or ask me about anything else related to BMAD-METHOD! + +### 3. Respond Contextually +- Wait for user's specific question or topic selection +- Provide focused, relevant information from the knowledge base +- Offer to dive deeper or explore related topics +- Keep responses concise unless user asks for detailed explanations + +### 4. Interactive Exploration +- After answering, suggest related topics they might find helpful +- Maintain conversational flow rather than data dumping +- Use examples when appropriate +- Reference specific documentation sections when relevant + +### 5. Exit Gracefully +When user is done or wants to exit KB mode: +- Summarize key points discussed if helpful +- Remind them they can return to KB mode anytime with *kb-mode +- Suggest next steps based on what was discussed + +## Example Interaction + +**User**: *kb-mode + +**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. + +**What would you like to know more about?** + +1. **Setup & Installation** - Getting started with BMAD +2. **Workflows** - Choosing the right workflow for your project +3. **Web vs IDE** - When to use each environment +4. **Agents** - Understanding specialized agents and their roles +5. **Documents** - PRDs, Architecture, Stories, and more +6. **Agile Process** - How BMAD implements Agile methodologies +7. **Configuration** - Customizing BMAD for your needs +8. **Best Practices** - Tips for effective BMAD usage + +Or ask me about anything else related to BMAD-METHOD! + +**User**: Tell me about workflows + +**Assistant**: [Provides focused information about workflows from the KB, then offers to explore specific workflow types or related topics] +==================== END: tasks#kb-mode-interaction ==================== + ==================== START: data#bmad-kb ==================== # BMAD Knowledge Base @@ -664,6 +743,64 @@ npx bmad-method install **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. +## Core Configuration (core-config.yml) + +**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. + +### What is core-config.yml? + +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: + +- **Version Flexibility**: Work with V3, V4, or custom document structures +- **Custom Locations**: Define where your documents and shards live +- **Developer Context**: Specify which files the dev agent should always load +- **Debug Support**: Built-in logging for troubleshooting + +### Key Configuration Areas + +#### PRD Configuration +- **prdVersion**: Tells agents if PRD follows v3 or v4 conventions +- **prdSharded**: Whether epics are embedded (false) or in separate files (true) +- **prdShardedLocation**: Where to find sharded epic files +- **epicFilePattern**: Pattern for epic filenames (e.g., `epic-{n}*.md`) + +#### Architecture Configuration +- **architectureVersion**: v3 (monolithic) or v4 (sharded) +- **architectureSharded**: Whether architecture is split into components +- **architectureShardedLocation**: Where sharded architecture files live + +#### Developer Files +- **devLoadAlwaysFiles**: List of files the dev agent loads for every task +- **devDebugLog**: Where dev agent logs repeated failures +- **agentCoreDump**: Export location for chat conversations + +### Why It Matters + +1. **No Forced Migrations**: Keep your existing document structure +2. **Gradual Adoption**: Start with V3 and migrate to V4 at your pace +3. **Custom Workflows**: Configure BMAD to match your team's process +4. **Intelligent Agents**: Agents automatically adapt to your configuration + +### Common Configurations + +**Legacy V3 Project**: +```yaml +prdVersion: v3 +prdSharded: false +architectureVersion: v3 +architectureSharded: false +``` + +**V4 Optimized Project**: +```yaml +prdVersion: v4 +prdSharded: true +prdShardedLocation: docs/prd +architectureVersion: v4 +architectureSharded: true +architectureShardedLocation: docs/architecture +``` + ## Core Philosophy ### Vibe CEO'ing @@ -8291,7 +8428,7 @@ workflow: sequence: - step: service_analysis - agent: architect + agent: architect action: analyze existing project and use task document-project creates: multiple documents per the document-project template notes: "Review existing service documentation, codebase, performance metrics, and identify integration dependencies."