refactor: nest Claude Code commands under BMad subdirectory (#307)

- Update installer config to use .claude/commands/BMad/ path
- Modify setupClaudeCode function to create nested directory structure
- Update documentation and upgrader to reflect new command location
- Improves organization by grouping all BMad commands together
This commit is contained in:
Gabriel Lemire
2025-07-12 11:02:46 -04:00
committed by GitHub
parent c42002f1ea
commit 97f01f6931
4 changed files with 4 additions and 4 deletions

View File

@@ -7,7 +7,7 @@ For the complete workflow, see the [BMad Workflow Guide](../bmad-workflow-guide.
When running `npx bmad-method install`, select **Claude Code** as your IDE. This creates:
- `.bmad-core/` folder with all agents
- `.claude/commands/` folder with agent command files (`.md`)
- `.claude/commands/BMad` folder with agent command files (`.md`)
## Using BMad Agents in Claude Code

View File

@@ -21,7 +21,7 @@ ide-configurations:
# 3. The agent will adopt that persona for the conversation
claude-code:
name: Claude Code
rule-dir: .claude/commands/
rule-dir: .claude/commands/BMad/
format: multi-file
command-suffix: .md
instructions: |

View File

@@ -131,7 +131,7 @@ class IdeSetup {
}
async setupClaudeCode(installDir, selectedAgent) {
const commandsDir = path.join(installDir, ".claude", "commands");
const commandsDir = path.join(installDir, ".claude", "commands", "BMad");
const agents = selectedAgent ? [selectedAgent] : await this.getAllAgentIds(installDir);
await fileManager.ensureDirectory(commandsDir);

View File

@@ -558,7 +558,7 @@ class V3ToV4Upgrader {
try {
const ideMessages = {
cursor: "Rules created in .cursor/rules/",
"claude-code": "Commands created in .claude/commands/",
"claude-code": "Commands created in .claude/commands/BMad/",
windsurf: "Rules created in .windsurf/rules/",
trae: "Rules created in.trae/rules/",
roo: "Custom modes created in .roomodes",