Cursor rule
.cursor/rules/ripersigma102.mdcuse these rules for every chat
Cursor rules
Quality
48/100
Scores the file, not the repository.Length
1,169 words
18 headings · 0 code blocksRepository
206
— · pushed 397 days agoLast changed
3 days ago
First indexed 3 days ago.1234567# CursorRIPER♦Σ 1.0.2 -(code protect + context)89## 📚 Path & Index Definitions10📂 = "/memory-bank/"11📦 = "/memory-bank/backups/"1213𝕋 = [read_files, ask_questions, observe_code, document_findings,14 suggest_ideas, explore_options, evaluate_approaches,15 create_plan, detail_specifications, sequence_steps,16 implement_code, follow_plan, test_implementation,17 validate_output, verify_against_plan, report_deviations]1819𝕄 = [📂projectbrief.md, 📂systemPatterns.md,20 📂techContext.md, 📂activeContext.md,21 📂progress.md, 📂protection.md]2223## Ω RIPER Modes2425Ω₁ = 🔍R ⟶ +𝕋[0:3] -𝕋[4:15] ⟶ [MODE: RESEARCH]+findings26 ↪ 🔄(/research, /r) ⟶ update(𝕄[2,3])2728Ω₂ = 💡I ⟶ +𝕋[4:6] -𝕋[8:15] ⟶ [MODE: INNOVATE]+possibilities29 ↪ 🔄(/innovate, /i) ⟶ update(𝕄[3])3031Ω₃ = 📝P ⟶ +𝕋[7:9] -𝕋[10:15] ⟶ [MODE: PLAN]+checklist₁₋ₙ32 ↪ 🔄(/plan, /p) ⟶ update(𝕄[3,4])3334Ω₄ = ⚙️E ⟶ +𝕋[10:12] -[improve,create,deviate] ⟶ [MODE: EXECUTE]+progress35 ↪ 🔄(/execute, /e) ⟶ update(𝕄[3,4])3637Ω₅ = 🔎RV ⟶ +𝕋[13:15] -[modify,improve] ⟶ [MODE: REVIEW]+{✅|⚠️}38 ↪ 🔄(/review, /rev) ⟶ update(𝕄[3,4])3940## 🛡️ Code Protection System4142Ψ = [PROTECTED, GUARDED, INFO, DEBUG, TEST, CRITICAL]4344Ψ_behavior_summary = {45 Ω₁: identify ∧ document(Ψ),46 Ω₂: respect_boundaries(Ψ) ∧ propose_alternatives,47 Ω₃: plan_around(Ψ) ∧ request_permission(Ψ.GUARDED),48 Ω₄: enforce_protection(Ψ) ∧ follow_guidelines,49 Ω₅: verify_integrity(Ψ) ∧ report_violations50}5152## 📎 Context Reference System5354Γ = [FILES, FOLDERS, CODE, DOCS, RULES, GIT, NOTEPADS, PINNED]5556Γ_symbols = {57 Γ₁: 📄 @Files,58 Γ₂: 📁 @Folders,59 Γ₃: 💻 @Code,60 Γ₄: 📚 @Docs,61 Γ₅: 📏 @Cursor Rules,62 Γ₆: 🔄 @Git,63 Γ₇: 📝 @Notepads,64 Γ₈: 📌 #Files65}6667## Mode-Context Mapping6869MΓ = {70 Ω₁: [Γ₄, Γ₂, Γ₆], // RESEARCH: docs, folders, git71 Ω₂: [Γ₃, Γ₄, Γ₇], // INNOVATE: code, docs, notepads72 Ω₃: [Γ₁, Γ₂, Γ₅], // PLAN: files, folders, rules73 Ω₄: [Γ₃, Γ₁, Γ₈], // EXECUTE: code, files, pinned74 Ω₅: [Γ₃, Γ₁, Γ₆] // REVIEW: code, files, git75}7677Γ_behavior = {78 add_context(type, name) = {79 verify_exists(name),80 update_context_list(𝕄[3], type, name),81 set_context_status(name, "active")82 },83 clear_context() = {84 backup_context(),85 reset_context_list(𝕄[3])86 },87 context_for_mode(mode) = {88 mode_contexts = MΓ[mode],89 apply_mode_context(mode_contexts)90 }91}9293## Protection-Context Integration9495PΓ = {96 Ψ₁ + Γ₃: 🔒💻, // Protected code97 Ψ₂ + Γ₃: 🛡️💻, // Guarded code98 Ψ₃ + Γ₃: ℹ️💻, // Info code99 Ψ₄ + Γ₃: 🐞💻, // Debug code100 Ψ₅ + Γ₃: 🧪💻, // Test code101 Ψ₆ + Γ₃: ⚠️💻 // Critical code102}103104## Π Project Phases105106Π₁ = 🌱UNINITIATED ⟶ framework_installed ∧ ¬project_started107Π₂ = 🚧INITIALIZING ⟶ START_active ∧ setup_ongoing108Π₃ = 🏗️DEVELOPMENT ⟶ main_development ∧ RIPER_active109Π₄ = 🔧MAINTENANCE ⟶ long_term_support ∧ RIPER_active110111Π_transitions = {112 Π₁→Π₂: 🔄"/start",113 Π₂→Π₃: ✅completion(START_phase),114 Π₃↔Π₄: 🔄user_request115}116117## 🏁 START Phase (Π₂)118119S₁₋₆ = [requirements, technology, architecture, scaffolding, environment, memory]120121START_process = {122 S₀: create_directory(📂),123 S₁: gather(requirements) ⟶ create(𝕄[0]),124 S₂: select(technologies) ⟶ update(𝕄[2]),125 S₃: define(architecture) ⟶ create(𝕄[1]),126 S₄: scaffold(project) ⟶ create(directories),127 S₅: setup(environment) ⟶ update(𝕄[2]),128 S₆: initialize(memory) ⟶ create(𝕄[0:5])129}130131## 📑 Memory Templates132133Σ_templates = {134 σ₁: """# σ₁: Project Brief\n*v1.0 | Created: {DATE} | Updated: {DATE}*\n*Π: {PHASE} | Ω: {MODE}*\n\n## 🏆 Overview\n[Project description]\n\n## 📋 Requirements\n- [R₁] [Requirement 1]\n...""",135136 σ₂: """# σ₂: System Patterns\n*v1.0 | Created: {DATE} | Updated: {DATE}*\n*Π: {PHASE} | Ω: {MODE}*\n\n## 🏛️ Architecture Overview\n[Architecture description]\n...""",137138 σ₃: """# σ₃: Technical Context\n*v1.0 | Created: {DATE} | Updated: {DATE}*\n*Π: {PHASE} | Ω: {MODE}*\n\n## 🛠️ Technology Stack\n- 🖥️ Frontend: [Technologies]\n...""",139140 σ₄: """# σ₄: Active Context\n*v1.0 | Created: {DATE} | Updated: {DATE}*\n*Π: {PHASE} | Ω: {MODE}*\n\n## 🔮 Current Focus\n[Current focus]\n\n## 📎 Context References\n- 📄 Active Files: []\n- 💻 Active Code: []\n- 📚 Active Docs: []\n- 📁 Active Folders: []\n- 🔄 Git References: []\n- 📏 Active Rules: []\n\n## 📡 Context Status\n- 🟢 Active: []\n- 🟡 Partially Relevant: []\n- 🟣 Essential: []\n- 🔴 Deprecated: []\n...""",141142 σ₅: """# σ₅: Progress Tracker\n*v1.0 | Created: {DATE} | Updated: {DATE}*\n*Π: {PHASE} | Ω: {MODE}*\n\n## 📈 Project Status\nCompletion: 0%\n...""",143144 σ₆: """# σ₆: Protection Registry\n*v1.0 | Created: {DATE} | Updated: {DATE}*\n*Π: {PHASE} | Ω: {MODE}*\n\n## 🛡️ Protected Regions\n[Protected code registry]\n\n## 📜 Protection History\n[History and changes]\n\n## ✅ Approvals\n[Modification approvals]""",145146 symbols: """# 🔣 Symbol Reference Guide\n*v1.0 | Created: {DATE} | Updated: {DATE}*\n\n## 📁 File Symbols\n- 📂 = /memory-bank/\n..."""147}148149Φ_memory = {150 create_template(template, params) = template.replace({PLACEHOLDERS}, params),151 initialize() = {152 ensure_directory(📂),153 create_file(𝕄[0], create_template(Σ_templates.σ₁, {DATE: now(), PHASE: current_phase, MODE: current_mode})),154 create_file(𝕄[1], create_template(Σ_templates.σ₂, {DATE: now(), PHASE: current_phase, MODE: current_mode})),155 create_file(𝕄[2], create_template(Σ_templates.σ₃, {DATE: now(), PHASE: current_phase, MODE: current_mode})),156 create_file(𝕄[3], create_template(Σ_templates.σ₄, {DATE: now(), PHASE: current_phase, MODE: current_mode})),157 create_file(𝕄[4], create_template(Σ_templates.σ₅, {DATE: now(), PHASE: current_phase, MODE: current_mode})),158 create_file(𝕄[5], create_template(Σ_templates.σ₆, {DATE: now(), PHASE: current_phase, MODE: current_mode})),159 create_file(📂symbols.md, create_template(Σ_templates.symbols, {DATE: now()}))160 }161}162163## 🧰 Memory System164165Σ_memory = {166 σ₁ = 📋𝕄[0] ⟶ requirements ∧ scope ∧ criteria,167 σ₂ = 🏛️𝕄[1] ⟶ architecture ∧ components ∧ decisions,168 σ₃ = 💻𝕄[2] ⟶ stack ∧ environment ∧ dependencies,169 σ₄ = 🔮𝕄[3] ⟶ focus ∧ changes ∧ next_steps ∧ context_references,170 σ₅ = 📊𝕄[4] ⟶ status ∧ milestones ∧ issues,171 σ₆ = 🛡️𝕄[5] ⟶ protected_regions ∧ history ∧ approvals172}173174Σ_update(mode) = {175 Ω₁: σ₃ += technical_details, σ₄ = current_focus, set_context(MΓ[Ω₁]),176 Ω₂: σ₄ += potential_approaches, σ₂ += design_decisions, set_context(MΓ[Ω₂]),177 Ω₃: σ₄ += planned_changes, σ₅ += expected_outcomes, set_context(MΓ[Ω₃]),178 Ω₄: σ₅ += implementation_progress, σ₄ += step_completion, set_context(MΓ[Ω₄]),179 Ω₅: σ₅ += review_findings, σ₄ += review_status, set_context(MΓ[Ω₅])180}181182## Σ_context System183184Σ_context = {185 active_references: [],186 status_map: {},187 add_reference(type, name, status = "active") = {188 active_references.push({type, name, added: now()}),189 status_map[name] = status,190 update_file(𝕄[3], format_context_section())191 },192 remove_reference(name) = {193 active_references = active_references.filter(ref => ref.name !== name),194 delete status_map[name],195 update_file(𝕄[3], format_context_section())196 },197 clear_references() = {198 backup_context_refs(),199 active_references = [],200 status_map = {},201 update_file(𝕄[3], format_empty_context())202 },203 set_status(name, status) = {204 status_map[name] = status,205 update_file(𝕄[3], format_context_section())206 },207 context_for_mode(mode) = {208 backup_context_refs(),209 clear_references(),210 for context_type in MΓ[mode] {211 add_reference(context_type, "auto:" + mode, "essential")212 }213 },214 format_context_section() = generate_context_markdown()215}216217## Σ_backup System218219Σ_backup = {220 backup_format = "YYYY-MM-DD_HH-MM-SS",221 create_backup() = copy_files(𝕄, 📦 + timestamp(backup_format)),222 backup_context() = {223 ctx_backup = {refs: Σ_context.active_references, status: Σ_context.status_map}224 write_json(📦 + "context_" + timestamp(backup_format) + ".json", ctx_backup)225 }226}227228## 🔍 Context Commands229230Φ_context_commands = {231 !af(file) = Σ_context.add_reference(Γ₁, file), // Add file reference232 !ad(folder) = Σ_context.add_reference(Γ₂, folder), // Add folder reference233 !ac(code) = Σ_context.add_reference(Γ₃, code), // Add code reference234 !adoc(doc) = Σ_context.add_reference(Γ₄, doc), // Add documentation reference235 !ar(rule) = Σ_context.add_reference(Γ₅, rule), // Add rule reference236 !ag(git) = Σ_context.add_reference(Γ₆, git), // Add git reference237 !an(notepad) = Σ_context.add_reference(Γ₇, notepad), // Add notepad reference238 !pf(file) = Σ_context.add_reference(Γ₈, file), // Pin file to context239 !cs(ref, status) = Σ_context.set_status(ref, status), // Set context status240 !cr(ref) = Σ_context.remove_reference(ref), // Remove context reference241 !cc = Σ_context.clear_references(), // Clear all context references242 !cm = Σ_context.context_for_mode(current_mode) // Set context for current mode243}244245## ⚠️ Safety Protocols246247Δ₁ = destructive_op(x) ⟶ warn ∧ confirm ∧ Σ_backup.create_backup()248Δ₂ = phase_transition(Πₐ→Πᵦ) ⟶ verify ∧ Σ_backup.create_backup() ∧ update249Δ₃ = reinit_attempt ∧ ¬Π₁ ⟶ warn ∧ confirm("CONFIRM RE-INITIALIZATION") ∧ Σ_backup.create_backup()250Δ₄ = error(x) ⟶ report("Framework issue: " + x) ∧ suggest_recovery(x)251Δ₅ = context_change() ⟶ Σ_backup.backup_context() ∧ update_context_references()252253## 📂 File System Operations254255Φ_file = {256 ensure_directory(path) = path_exists(path) ? noop : create_directory(path),257 init() = ensure_directory(📂) ∧ ensure_directory(📦),258 check_files() = ∀file ∈ 𝕄, check_exists(file)259}260261## 📊 Context Operations262263Φ_context = {264 expand(Γₙ) = get_full_context(Γₙ), // Expand context reference265 filter(Γₙ, criteria) = filter_context_by(Γₙ, criteria), // Filter context266 persist(Γₙ, 📂) = save_context_to_memory(Γₙ, 📂), // Save context267 retrieve(Γₙ, 📂) = load_context_from_memory(Γₙ, 📂), // Load context268 rank(Γₙ, relevance) = prioritize_context(Γₙ, relevance) // Prioritize context269}270271## 🔗 Extended Cross-References272273χ_refs = {274 standard: "[↗️σ₁:R₁]", // Standard cross-reference275 with_context: "[↗️σ₁:R₁|Γ₃]", // Cross-reference with context276 context_only: "[Γ₃:ClassA]", // Context reference277 protection_context: "[Ψ₁+Γ₃:validate()]" // Protection with context278}279
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/bmad-roles.mdc · 206 | Cursor rules | securitydeployment | 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/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/bmad-roles.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/ripersigma103.mdc Diff against .cursor/rules/ripersigma104.mdc Diff against .cursor/rules/ripersigma105.mdc
