Cursor rule
.cursor/rules/bmad-roles.mdcCursor rules
Quality
54/100
Scores the file, not the repository.Length
814 words
15 headings · 10 code blocksRepository
206
— · pushed 397 days agoLast changed
3 days ago
First indexed 3 days ago.1# 👥 BMAD Role System for CursorRIPER Σ2# Symbol: Β (Beta)3# Version: 1.0.045## 📋 Role Definition System6```7service = "BMAD Role Management"8symbol = "Β"9transforms = "Memory-bank → PRD-driven development"10```1112## 🎭 Role Mappings13```14Β_roles = {15 Β₁: {16 name: "Product Owner",17 primary_modes: [Ω₁, Ω₂],18 responsibilities: [19 "Define business objectives",20 "Create user stories",21 "Set acceptance criteria",22 "Approve PRD documents"23 ],24 artifacts: [25 "PRD documents",26 "User stories",27 "Acceptance criteria",28 "Success metrics"29 ],30 permissions: ℙ_read ∪ ℙ_create(Ρ)31 },3233 Β₂: {34 name: "Architect",35 primary_modes: [Ω₂, Ω₃],36 responsibilities: [37 "Design system architecture",38 "Define technical standards",39 "Create API contracts",40 "Review technical designs"41 ],42 artifacts: [43 "Technical specifications",44 "System design documents",45 "API contracts",46 "Architecture diagrams"47 ],48 permissions: ℙ_all - ℙ_delete(production)49 },5051 Β₃: {52 name: "Developer",53 primary_modes: [Ω₃, Ω₄],54 responsibilities: [55 "Implement features",56 "Write unit tests",57 "Create documentation",58 "Code reviews"59 ],60 artifacts: [61 "Source code",62 "Unit tests",63 "Technical documentation",64 "Code commits"65 ],66 permissions: ℙ_standard ∪ ℙ_execute67 },6869 Β₄: {70 name: "QA Engineer",71 primary_modes: [Ω₄, Ω₅],72 responsibilities: [73 "Create test plans",74 "Execute test cases",75 "Report bugs",76 "Verify fixes"77 ],78 artifacts: [79 "Test plans",80 "Test cases",81 "Bug reports",82 "QA signoff"83 ],84 permissions: ℙ_read ∪ ℙ_create(tests) ∪ ℙ_update(issues)85 },8687 Β₅: {88 name: "DevOps",89 primary_modes: [Ω₄, Ω₅],90 responsibilities: [91 "Manage CI/CD",92 "Deploy applications",93 "Monitor systems",94 "Incident response"95 ],96 artifacts: [97 "Deployment configs",98 "CI/CD pipelines",99 "Monitoring dashboards",100 "Runbooks"101 ],102 permissions: ℙ_all103 }104}105```106107## 🔄 Role Context Integration108```109Γ_roles = {110 active_role: Β_current ∈ {Β₁...Β₅},111 role_stack: [previous_roles],112 role_permissions: ℙ(Β_current),113 role_artifacts: artifacts[Β_current],114 role_gates: allowed_gates[Β_current]115}116```117118## 🎯 Role-Mode Mapping119```120role_mode_affinity = {121 Β₁ × Ω₁: 1.0, # Product Owner + Research = Perfect122 Β₁ × Ω₂: 0.9, # Product Owner + Innovate = Great123 Β₁ × Ω₃: 0.3, # Product Owner + Plan = Limited124 Β₁ × Ω₄: 0.1, # Product Owner + Execute = Minimal125 Β₁ × Ω₅: 0.5, # Product Owner + Review = Moderate126127 Β₂ × Ω₁: 0.7, # Architect + Research = Good128 Β₂ × Ω₂: 1.0, # Architect + Innovate = Perfect129 Β₂ × Ω₃: 0.9, # Architect + Plan = Great130 Β₂ × Ω₄: 0.2, # Architect + Execute = Limited131 Β₂ × Ω₅: 0.6, # Architect + Review = Moderate132133 Β₃ × Ω₁: 0.3, # Developer + Research = Limited134 Β₃ × Ω₂: 0.5, # Developer + Innovate = Moderate135 Β₃ × Ω₃: 0.9, # Developer + Plan = Great136 Β₃ × Ω₄: 1.0, # Developer + Execute = Perfect137 Β₃ × Ω₅: 0.7, # Developer + Review = Good138139 Β₄ × Ω₁: 0.2, # QA + Research = Minimal140 Β₄ × Ω₂: 0.3, # QA + Innovate = Limited141 Β₄ × Ω₃: 0.6, # QA + Plan = Moderate142 Β₄ × Ω₄: 0.9, # QA + Execute = Great143 Β₄ × Ω₅: 1.0, # QA + Review = Perfect144145 Β₅ × Ω₁: 0.2, # DevOps + Research = Minimal146 Β₅ × Ω₂: 0.3, # DevOps + Innovate = Limited147 Β₅ × Ω₃: 0.7, # DevOps + Plan = Good148 Β₅ × Ω₄: 1.0, # DevOps + Execute = Perfect149 Β₅ × Ω₅: 0.9 # DevOps + Review = Great150}151```152153## 🔐 Role Permissions154```155ℙ(Β) = {156 Β₁: {157 create: [Ρ_all, stories, criteria],158 read: [all],159 update: [Ρ_all, stories],160 delete: [draft_prd],161 approve: [Κ₁]162 },163 Β₂: {164 create: [tech_spec, design_docs, apis],165 read: [all],166 update: [tech_*, architecture],167 delete: [draft_designs],168 approve: [Κ₂]169 },170 Β₃: {171 create: [code, tests, docs],172 read: [all],173 update: [code, tests],174 delete: [feature_branches],175 approve: [Κ₃_partial]176 },177 Β₄: {178 create: [test_plans, bug_reports],179 read: [all],180 update: [test_*, bugs],181 delete: [test_data],182 approve: [Κ₄]183 },184 Β₅: {185 create: [all],186 read: [all],187 update: [all],188 delete: [all - production],189 approve: [Κ₅]190 }191}192```193194## 🔄 Role Switching195```196switch_role(Β_new) = {197 validate: Β_new ∈ {Β₁...Β₅},198 check_mode: affinity[Β_new × Ω_current] > 0.5 ? proceed : warn,199 save_context: push(Γ_roles.role_stack, Β_current),200 update: {201 Β_current = Β_new,202 ℙ_active = ℙ(Β_new),203 artifacts = load_role_artifacts(Β_new)204 },205 notify: "Switched to " + Β_roles[Β_new].name206}207```208209## 📋 Role Artifacts210```211create_artifact(type, content) = {212 check: type ∈ Β_current.artifacts ? proceed : deny,213 template: load_template(type, Β_current),214 create: {215 metadata: {role: Β_current, timestamp, author},216 content: apply_template(content)217 },218 store: /artifacts/Β_current/type/219}220```221222## ⚡ Role Commands223```224S_roles = {225 !br: "switch_role",226 !bra: "show role artifacts",227 !brp: "show role permissions",228 !brg: "show allowed gates",229 !brh: "role history",230 !brs: "role suggestions for current mode"231}232```233234## 🔗 Integration Points235```236# Role + Mode enforcement237enforce_role_mode(op) = {238 affinity_score = role_mode_affinity[Β_current × Ω_current],239 threshold = 0.3,240241 affinity_score < threshold ?242 warn("Role " + Β_current + " not optimal for mode " + Ω_current) :243 proceed(op)244}245246# Role + Gate validation247validate_gate_approver(Κ_gate) = {248 required_approvers = Κ_gate.approvers,249 can_approve = Β_current ∈ required_approvers,250251 can_approve ? allow_approval() : deny("Role cannot approve this gate")252}253```254255## 🎓 Role Guidance256```257suggest_role_for_task(task) = {258 analyze: extract_task_type(task),259 match: find_best_role(task_type),260 suggest: "Consider switching to " + Β_roles[match].name,261 reason: "This role specializes in " + task_type262}263```264
Also in johnpeterman72/CursorRIPER.sigma
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| johnpeterman72/CursorRIPER.sigma.cursor/rules/enterprise.mdc · 206 | Cursor rules | securitydeploymentdocs | 54/100 | 3 days ago | |
| johnpeterman72/CursorRIPER.sigma.cursor/rules/codeprotection.mdc · 206 | Cursor rules | do-notagent-behaviour | 55/100 | 3 days ago | |
| johnpeterman72/CursorRIPER.sigma.cursor/rules/cursorriper-sigma-mcp.mdc · 206 | Cursor rules | setuptestapideployment+2 | 76/100 | 3 days ago | |
| johnpeterman72/CursorRIPER.sigma.cursor/rules/mcp-docker.mdc · 206 | Cursor rules | securitydeployment | 54/100 | 3 days ago | |
| johnpeterman72/CursorRIPER.sigma.cursor/rules/mcp-filesystem.mdc · 206 | Cursor rules | performance | 48/100 | 3 days ago | |
| johnpeterman72/CursorRIPER.sigma.cursor/rules/mcp-github.mdc · 206 | Cursor rules | setupgitdeployment | 50/100 | 3 days ago | |
| johnpeterman72/CursorRIPER.sigma.cursor/rules/mcp-puppeteer.mdc · 206 | Cursor rules | testdeployment | 66/100 | 3 days ago | |
| johnpeterman72/CursorRIPER.sigma.cursor/rules/mcp-websearch.mdc · 206 | Cursor rules | deploymentdo-not | 61/100 | 3 days ago | |
| johnpeterman72/CursorRIPER.sigma.cursor/rules/prd-system.mdc · 206 | Cursor rules | archdatabaseperformancedeployment | 58/100 | 3 days ago | |
| johnpeterman72/CursorRIPER.sigma.cursor/rules/quality-gates.mdc · 206 | Cursor rules | deployment | 54/100 | 3 days ago | |
| johnpeterman72/CursorRIPER.sigma.cursor/rules/ripersigma-mcp.mdc · 206 | Cursor rules | setuptestdatabaseapi+3 | 55/100 | 3 days ago | |
| johnpeterman72/CursorRIPER.sigma.cursor/rules/ripersigma1.mdc · 206 | Cursor rules | performance | 48/100 | 3 days ago | |
| johnpeterman72/CursorRIPER.sigma.cursor/rules/ripersigma101codeprotect.mdc · 206 | Cursor rules | performance | 48/100 | 3 days ago | |
| johnpeterman72/CursorRIPER.sigma.cursor/rules/ripersigma102.mdc · 206 | Cursor rules | performance | 48/100 | 3 days ago | |
| johnpeterman72/CursorRIPER.sigma.cursor/rules/ripersigma103.mdc · 206 | Cursor rules | securityperformance | 40/100 | 3 days ago | |
| johnpeterman72/CursorRIPER.sigma.cursor/rules/ripersigma104.mdc · 206 | Cursor rules | securityperformance | 40/100 | 3 days ago | |
| johnpeterman72/CursorRIPER.sigma.cursor/rules/ripersigma105.mdc · 206 | Cursor rules | securityperformance | 40/100 | 3 days ago |
Diff against .cursor/rules/enterprise.mdc Diff against .cursor/rules/codeprotection.mdc Diff against .cursor/rules/cursorriper-sigma-mcp.mdc Diff against .cursor/rules/mcp-docker.mdc Diff against .cursor/rules/mcp-filesystem.mdc Diff against .cursor/rules/mcp-github.mdc Diff against .cursor/rules/mcp-puppeteer.mdc Diff against .cursor/rules/mcp-websearch.mdc Diff against .cursor/rules/prd-system.mdc Diff against .cursor/rules/quality-gates.mdc Diff against .cursor/rules/ripersigma-mcp.mdc Diff against .cursor/rules/ripersigma1.mdc Diff against .cursor/rules/ripersigma101codeprotect.mdc Diff against .cursor/rules/ripersigma102.mdc Diff against .cursor/rules/ripersigma103.mdc Diff against .cursor/rules/ripersigma104.mdc Diff against .cursor/rules/ripersigma105.mdc
