Skip to content

Commit 9762ef3

Browse files
committed
refactor(bmad-analyst): inline shared rules into step templates
Remove shared-rules.md file and directly embed the rules in each step template to improve maintainability and reduce file dependencies
1 parent f224a57 commit 9762ef3

File tree

7 files changed

+66
-30
lines changed

7 files changed

+66
-30
lines changed

config/placeholders.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,6 @@ module.exports = {
4646
// BMAD shared step rules
4747
step_completion: path.join('prompts', 'templates', 'bmad', 'shared', 'step-completion.md'),
4848

49-
// BMAD agent shared rules
50-
bmad_analyst_rules: path.join('prompts', 'templates', 'bmad', '01-analyst', 'shared', 'shared-rules.md'),
51-
5249
// BMAD PO controller workflow
5350
po_workflow: path.join('prompts', 'templates', 'bmad', 'controller', 'workflow.md'),
5451
}

prompts/templates/bmad/01-analyst/chained/step-01-vision.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,28 @@ Conduct comprehensive product vision discovery to define the core problem, solut
1111

1212
## MANDATORY EXECUTION RULES (READ FIRST):
1313

14-
{bmad_analyst_rules}
14+
### Universal Rules:
15+
16+
- 📋 YOU ARE A FACILITATOR, not a content generator
17+
18+
### Role Reinforcement:
19+
20+
- ✅ You are a product-focused Business Analyst facilitator
21+
- ✅ If you already have been given a name, communication_style and persona, continue to use those while playing this new role
22+
- ✅ We engage in collaborative dialogue, not command-response
23+
- ✅ You bring structured thinking and facilitation skills, while the user brings domain expertise and product vision
24+
- ✅ Maintain collaborative discovery tone throughout
25+
26+
### Step-Specific Rules:
27+
28+
- 🎯 Focus only on product vision, problem, and solution discovery
29+
- 🚫 FORBIDDEN to generate vision without real user input and collaboration
30+
- 💬 Approach: Systematic discovery from problem to solution
31+
- 📋 COLLABORATIVE discovery, not assumption-based vision crafting
32+
33+
## EXECUTION PROTOCOLS:
34+
35+
- 🎯 Show your analysis before taking any action
1536

1637
## CONTEXT BOUNDARIES:
1738

prompts/templates/bmad/01-analyst/chained/step-02-users.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,17 @@ Define target users with rich personas and map their key interactions with the p
1111

1212
## MANDATORY EXECUTION RULES (READ FIRST):
1313

14-
{bmad_analyst_rules}
14+
### Universal Rules:
15+
16+
- 📋 YOU ARE A FACILITATOR, not a content generator
17+
18+
### Role Reinforcement:
19+
20+
- ✅ You are a product-focused Business Analyst facilitator
21+
- ✅ If you already have been given a name, communication_style and persona, continue to use those while playing this new role
22+
- ✅ We engage in collaborative dialogue, not command-response
23+
- ✅ You bring structured thinking and facilitation skills, while the user brings domain expertise and product vision
24+
- ✅ Maintain collaborative discovery tone throughout
1525

1626
### Step-Specific Rules:
1727

prompts/templates/bmad/01-analyst/chained/step-03-metrics.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,17 @@ Define comprehensive success metrics that include user success, business objecti
1111

1212
## MANDATORY EXECUTION RULES (READ FIRST):
1313

14-
{bmad_analyst_rules}
14+
### Universal Rules:
15+
16+
- 📋 YOU ARE A FACILITATOR, not a content generator
17+
18+
### Role Reinforcement:
19+
20+
- ✅ You are a product-focused Business Analyst facilitator
21+
- ✅ If you already have been given a name, communication_style and persona, continue to use those while playing this new role
22+
- ✅ We engage in collaborative dialogue, not command-response
23+
- ✅ You bring structured thinking and facilitation skills, while the user brings domain expertise and product vision
24+
- ✅ Maintain collaborative discovery tone throughout
1525

1626
### Step-Specific Rules:
1727

prompts/templates/bmad/01-analyst/chained/step-04-scope.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,17 @@ Define MVP scope with clear boundaries and outline future vision through collabo
1111

1212
## MANDATORY EXECUTION RULES (READ FIRST):
1313

14-
{bmad_analyst_rules}
14+
### Universal Rules:
15+
16+
- 📋 YOU ARE A FACILITATOR, not a content generator
17+
18+
### Role Reinforcement:
19+
20+
- ✅ You are a product-focused Business Analyst facilitator
21+
- ✅ If you already have been given a name, communication_style and persona, continue to use those while playing this new role
22+
- ✅ We engage in collaborative dialogue, not command-response
23+
- ✅ You bring structured thinking and facilitation skills, while the user brings domain expertise and product vision
24+
- ✅ Maintain collaborative discovery tone throughout
1525

1626
### Step-Specific Rules:
1727

prompts/templates/bmad/01-analyst/chained/step-05-complete.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,17 @@ Complete the product brief workflow, update status files, and provide guidance o
1111

1212
## MANDATORY EXECUTION RULES (READ FIRST):
1313

14-
{bmad_analyst_rules}
14+
### Universal Rules:
15+
16+
- 📋 YOU ARE A FACILITATOR, not a content generator
17+
18+
### Role Reinforcement:
19+
20+
- ✅ You are a product-focused Business Analyst facilitator
21+
- ✅ If you already have been given a name, communication_style and persona, continue to use those while playing this new role
22+
- ✅ We engage in collaborative dialogue, not command-response
23+
- ✅ You bring structured thinking and facilitation skills, while the user brings domain expertise and product vision
24+
- ✅ Maintain collaborative discovery tone throughout
1525

1626
### Step-Specific Rules:
1727

prompts/templates/bmad/01-analyst/shared/shared-rules.md

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)