platform-context-exporter / isolation_rules
Cursor rule48 starsChanged 18 months agoMITView on GitHub
Optimized main rule for improved token efficiency
1 other project uses a version of this.
Adopted by
Most recently taken up by
- alkoleft/mcp-bsl-platform-contextword for word, first seen Jul 1, 2025
Other versions1 project uses a version of this.
Word for word · 1
- alkoleft/mcp-bsl-platform-context★ 197100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 1,533 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository14 other files it gives its agents.
- .cursor/rules/111-java-object-oriented-design.mdcCursor rule
- .cursor/rules/112-java-type-design.mdcCursor rule
- .cursor/rules/113-java-general-guidelines.mdcCursor rule
- .cursor/rules/114-java-secure-coding.mdcCursor rule
- .cursor/rules/115-java-concurrency.mdcCursor rule
- .cursor/rules/116-java-logging.mdcCursor rule
- .cursor/rules/121-java-unit-testing.mdcCursor rule
- .cursor/rules/122-java-integration-testing.mdcCursor rule
- .cursor/rules/131-java-refactoring-with-modern-features.mdcCursor rule
- .cursor/rules/132-java-functional-programming.mdcCursor rule
- .cursor/rules/133-java-data-oriented-programming.mdcCursor rule
- .cursor/rules/301-framework-spring-boot.mdcCursor rule
- .cursor/rules/isolation_rules/main.mdcCursor rule
- .cursor/rules/java-spring-cursor-rules.mdcCursor rule
The file
We split this main-optimized.mdc into the rules it gives an agent
4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
NO process can continue without verifying Memory Bank existence
- Distinctive: line 233
Start with the VAN command to initialize and determine complexity
- Distinctive: line 234
Follow the complexity-appropriate workflow
- Distinctive: line 235
Use progressive documentation appropriate to task complexity
≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
---
description: Optimized main rule for improved token efficiency
globs: main-optimized.mdc
alwaysApply: false
---
# 🔍 OPTIMIZED MEMORY BANK SYSTEM
🚨 CRITICAL RULE: MEMORY BANK CREATION IS MANDATORY 🚨
Memory Bank MUST be created BEFORE any other operation in ANY mode
NO process can continue without verifying Memory Bank existence
> **TL;DR:** This system uses optimized context management and adaptive rule loading to maximize token efficiency while preserving the structured development approach.
## 🧭 OPTIMIZED MODE ARCHITECTURE
```mermaid
graph TD
subgraph "Memory Bank Core"
Context["Context Manager"]
Rules["Rule Loader"]
FileIO["File Manager"]
Transition["Mode Transition"]
end
subgraph "Custom Modes"
VAN["VAN<br>Initialization"]
PLAN["PLAN<br>Planning"]
CREATIVE["CREATIVE<br>Design"]
IMPLEMENT["IMPLEMENT<br>Building"]
REFLECT["REFLECT<br>Review"]
ARCHIVE["ARCHIVE<br>Documentation"]
end
Context --> VAN & PLAN & CREATIVE & IMPLEMENT & REFLECT & ARCHIVE
Rules --> VAN & PLAN & CREATIVE & IMPLEMENT & REFLECT & ARCHIVE
FileIO --> VAN & PLAN & CREATIVE & IMPLEMENT & REFLECT & ARCHIVE
Transition --> VAN & PLAN & CREATIVE & IMPLEMENT & REFLECT & ARCHIVE
VAN --> PLAN
PLAN --> CREATIVE
CREATIVE --> IMPLEMENT
IMPLEMENT --> REFLECT
REFLECT --> ARCHIVE
style Context fill:#4da6ff,stroke:#0066cc,color:white
style Rules fill:#ffa64d,stroke:#cc7a30,color:white
style FileIO fill:#4dbb5f,stroke:#36873f,color:white
style Transition fill:#d94dbb,stroke:#a3378a,color:white
```
## 📈 ADAPTIVE COMPLEXITY MODEL
```mermaid
graph TD
Task["Task Creation"] --> Complexity{"Complexity<br>Level?"}
Complexity -->|"Level 1<br>Quick Fix"| L1["3-Phase<br>Streamlined Process"]
Complexity -->|"Level 2<br>Enhancement"| L2["4-Phase<br>Balanced Process"]
Complexity -->|"Level 3<br>Feature"| L3["5-Phase<br>Comprehensive Process"]
Complexity -->|"Level 4<br>Enterprise"| L4["6-Phase<br>Governance Process"]
L1 --> L1_Process["VAN → IMPLEMENT → REFLECT"]
L2 --> L2_Process["VAN → PLAN → IMPLEMENT → REFLECT"]
L3 --> L3_Process["VAN → PLAN → CREATIVE → IMPLEMENT → REFLECT"]
L4 --> L4_Process["VAN → PLAN → CREATIVE → IMPLEMENT → REFLECT → ARCHIVE"]
style Complexity fill:#d94dbb,stroke:#a3378a,color:white
style L1 fill:#4dbb5f,stroke:#36873f,color:white
style L2 fill:#ffa64d,stroke:#cc7a30,color:white
style L3 fill:#4da6ff,stroke:#0066cc,color:white
style L4 fill:#ff5555,stroke:#cc0000,color:white
```
## 🧠 HIERARCHICAL RULE LOADING
Rules are loaded hierarchically to optimize context usage:
```mermaid
graph TD
Root["Memory Bank<br>Common Rules"] --> Core["Core Rules<br>Shared Across Modes"]
Core --> L1["Level 1<br>Rules"]
Core --> L2["Level 2<br>Rules"]
Core --> L3["Level 3<br>Rules"]
Core --> L4["Level 4<br>Rules"]
Core --> VM["Mode<br>Visual Maps"]
Core --> Phase["Phase-Specific<br>Rules"]
Phase --> VAN_Rules["VAN Mode<br>Rules"]
Phase --> PLAN_Rules["PLAN Mode<br>Rules"]
Phase --> CREATIVE_Rules["CREATIVE Mode<br>Rules"]
Phase --> IMPLEMENT_Rules["IMPLEMENT Mode<br>Rules"]
Phase --> REFLECT_Rules["REFLECT Mode<br>Rules"]
Phase --> ARCHIVE_Rules["ARCHIVE Mode<br>Rules"]
style Root fill:#4da6ff,stroke:#0066cc,color:white
style Core fill:#ffa64d,stroke:#cc7a30,color:white
style Phase fill:#4dbb5f,stroke:#36873f,color:white
```
## 🔄 TOKEN-OPTIMIZED CREATIVE PHASE
Creative phase documentation is progressively generated:
```mermaid
graph TD
Start["Creative Phase<br>Initiation"] --> P1["1️⃣ PROBLEM<br>Define scope"]
P1 --> P2["2️⃣ OPTIONS<br>List alternatives"]
P2 --> P3["3️⃣ ANALYSIS<br>Compare options"]
P3 --> P4["4️⃣ DECISION<br>Select approach"]
P4 --> P5["5️⃣ GUIDELINES<br>Document implementation"]
P3 -.->|"On Demand"| Details["Detailed Option<br>Analysis"]
style Start fill:#d971ff,stroke:#a33bc2,color:white
style P1 fill:#4da6ff,stroke:#0066cc,color:white
style P2 fill:#ffa64d,stroke:#cc7a30,color:white
style P3 fill:#4dbb5f,stroke:#36873f,color:white
style P4 fill:#d94dbb,stroke:#a3378a,color:white
style P5 fill:#4dbbbb,stroke:#368787,color:white
style Details fill:#e699d9,stroke:#d94dbb,color:white,stroke-dasharray: 5 5
```
## 🔀 OPTIMIZED MODE TRANSITIONS
Mode transitions use a unified context transfer protocol:
```mermaid
sequenceDiagram
participant Current as Current Mode
participant Context as Context Manager
participant Next as Next Mode
Current->>Context: Create transition document
Current->>Context: Store critical context
Context->>Context: Prepare rule cache
Current->>Next: Initiate transition
Next->>Context: Verify context availability
Context->>Next: Load relevant context
Context->>Next: Load cached rules
Next->>Next: Continue with preserved context
```
## 📊 MEMORY BANK EFFICIENT UPDATES
```mermaid
graph TD
subgraph "Memory Bank Files"
tasks["tasks.md<br>Source of Truth"]
active["activeContext.md<br>Current Focus"]
creative["creative-*.md<br>Design Decisions"]
progress["progress.md<br>Implementation Status"]
transition["transition.md<br>Mode Transitions"]
end
Update["Update Request"] --> Diff{"Changed?"}
Diff -->|"No"| Skip["Skip Update"]
Diff -->|"Yes"| Section{"Section<br>Change?"}
Section -->|"Yes"| Partial["Update Changed<br>Sections Only"]
Section -->|"No"| Full["Full File<br>Update"]
Partial --> tasks
Full --> tasks
style Update fill:#4da6ff,stroke:#0066cc,color:white
style Diff fill:#ffa64d,stroke:#cc7a30,color:white
style Section fill:#4dbb5f,stroke:#36873f,color:white
style Partial fill:#d94dbb,stroke:#a3378a,color:white
style Full fill:#4dbbbb,stroke:#368787,color:white
```
## 💻 COMPLEXITY-BASED DOCUMENTATION
Documentation requirements scale based on complexity level:
| Documentation | Level 1 | Level 2 | Level 3 | Level 4 |
|---------------|---------|---------|---------|---------|
| Problem Definition | Brief | Standard | Detailed | Comprehensive |
| Options Analysis | Optional | Basic | Multiple Options | Extensive |
| Implementation Plan | Simple | Standard | Detailed | Phased |
| Testing Requirements | Basic | Standard | Comprehensive | Rigorous |
| Documentation | Minimal | Standard | Detailed | Extensive |
## 📑 OPTIMIZED TEMPLATES BY LEVEL
### Level 1: Quick Fix Template
```markdown
## QUICK FIX: [Issue Name]
- Problem: [Brief description]
- Solution: [Implemented approach]
- Verification: [How fix was tested]
```
### Level 2: Enhancement Template
```markdown
## ENHANCEMENT: [Feature Name]
- Requirement: [What needs to be done]
- Approach: [How it was implemented]
- Testing: [Verification approach]
- Documentation: [Where documented]
```
### Level 3-4: Comprehensive Template
Uses the optimized creative phase template with appropriate documentation depth
## 🔄 REFERENCE MAPS
Each mode's visual process map is optimized for token efficiency:
- @VAN Mode Map (Optimized)
- @PLAN Mode Map (Optimized)
- @CREATIVE Mode Map (Optimized)
- @IMPLEMENT Mode Map (Optimized)
- @REFLECT Mode Map (Optimized)
- @ARCHIVE Mode Map (Optimized)
## ⚡ TOKEN EFFICIENCY IMPROVEMENTS
Optimizations in this version:
1. Hierarchical rule loading (65% token reduction)
2. Progressive creative phase documentation (60% token reduction)
3. Context preservation during mode transitions (40% token reduction)
4. Differential Memory Bank updates (30% token reduction)
5. Complexity-based template scaling (varies by level)
## 💡 USAGE GUIDANCE
To use the optimized system:
1. Start with the VAN command to initialize and determine complexity
2. Follow the complexity-appropriate workflow
3. Use progressive documentation appropriate to task complexity
4. Let the system manage rule loading and context preservation
5. Enjoy the improved token efficiency while maintaining structured developmentDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

