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:
@@ -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
|
||||
|
||||
|
||||
@@ -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: |
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user