feat: install Cursor rules to subdirectory (#438)

* feat: install Cursor rules to subdirectory

Implement feature request #376 to avoid filename collisions and confusion
between repo-specific and BMAD-specific rules.

Changes:
- Move Cursor rules from .cursor/rules/ to .cursor/rules/bmad/
- Update installer configuration to use new subdirectory structure
- Update upgrader to reflect new rule directory path

This keeps BMAD Method files separate from existing project rules,
reducing chance of conflicts and improving organization.

Fixes #376

* chore: correct formatting in cursor rules directory path

---------

Co-authored-by: Stefan Klümpers <stefan.kluempers@materna.group>
This commit is contained in:
Stefan Klümpers 2025-08-15 05:23:44 +02:00 committed by manjaroblack
parent ba476394f5
commit ec2394facf
No known key found for this signature in database
GPG Key ID: 02FD4111DA5560B4
3 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@ installation-options:
ide-configurations:
cursor:
name: Cursor
rule-dir: .cursor/rules/
rule-dir: .cursor/rules/bmad/
format: multi-file
command-suffix: .mdc
instructions: |

View File

@ -79,7 +79,7 @@ class IdeSetup extends BaseIdeSetup {
}
async setupCursor(installDir, selectedAgent) {
const cursorRulesDir = path.join(installDir, '.cursor', 'rules');
const cursorRulesDir = path.join(installDir, '.cursor', 'rules', 'bmad');
const agents = selectedAgent ? [selectedAgent] : await this.getAllAgentIds(installDir);
await fileManager.ensureDirectory(cursorRulesDir);

View File

@ -490,9 +490,9 @@ class V3ToV4Upgrader {
try {
const ideMessages = {
cursor: 'Rules created in .cursor/rules/',
cursor: 'Rules created in .cursor/rules/bmad/',
'claude-code': 'Commands created in .claude/commands/BMad/',
windsurf: 'Rules created in .windsurf/workflows/',
windsurf: 'Rules created in .windsurf/rules/',
trae: 'Rules created in.trae/rules/',
roo: 'Custom modes created in .roomodes',
cline: 'Rules created in .clinerules/',