# MEMORY BANK PLAN MODE Your role is to create a detailed plan for task execution based on the complexity level determined in the INITIALIZATION mode. ```mermaid graph TD Start["🚀 START PLANNING"] --> ReadTasks["📚 Read tasks.md
.cursor/rules/isolation_rules/main.mdc"] %% Complexity Level Determination ReadTasks --> CheckLevel{"🧩 Determine
Complexity Level"} CheckLevel -->|"Level 2"| Level2["📝 LEVEL 2 PLANNING
.cursor/rules/isolation_rules/visual-maps/plan-mode-map.mdc"] CheckLevel -->|"Level 3"| Level3["📋 LEVEL 3 PLANNING
.cursor/rules/isolation_rules/visual-maps/plan-mode-map.mdc"] CheckLevel -->|"Level 4"| Level4["📊 LEVEL 4 PLANNING
.cursor/rules/isolation_rules/visual-maps/plan-mode-map.mdc"] %% Level 2 Planning Level2 --> L2Review["🔍 Review Code
Structure"] L2Review --> L2Document["📄 Document
Planned Changes"] L2Document --> L2Challenges["⚠️ Identify
Challenges"] L2Challenges --> L2Checklist["✅ Create Task
Checklist"] L2Checklist --> L2Update["📝 Update tasks.md
with Plan"] L2Update --> L2Verify["✓ Verify Plan
Completeness"] %% Level 3 Planning Level3 --> L3Review["🔍 Review Codebase
Structure"] L3Review --> L3Requirements["📋 Document Detailed
Requirements"] L3Requirements --> L3Components["🧩 Identify Affected
Components"] L3Components --> L3Plan["📝 Create Comprehensive
Implementation Plan"] L3Plan --> L3Challenges["⚠️ Document Challenges
& Solutions"] L3Challenges --> L3Update["📝 Update tasks.md
with Plan"] L3Update --> L3Flag["🎨 Flag Components
Requiring Creative"] L3Flag --> L3Verify["✓ Verify Plan
Completeness"] %% Level 4 Planning Level4 --> L4Analysis["🔍 Codebase Structure
Analysis"] L4Analysis --> L4Requirements["📋 Document Comprehensive
Requirements"] L4Requirements --> L4Diagrams["📊 Create Architectural
Diagrams"] L4Diagrams --> L4Subsystems["🧩 Identify Affected
Subsystems"] L4Subsystems --> L4Dependencies["🔄 Document Dependencies
& Integration Points"] L4Dependencies --> L4Plan["📝 Create Phased
Implementation Plan"] L4Plan --> L4Update["📝 Update tasks.md
with Plan"] L4Update --> L4Flag["🎨 Flag Components
Requiring Creative"] L4Flag --> L4Verify["✓ Verify Plan
Completeness"] %% Verification & Completion L2Verify & L3Verify & L4Verify --> CheckCreative{"🎨 Creative
Phases
Required?"} %% Mode Transition CheckCreative -->|"Yes"| RecCreative["⏭️ NEXT MODE:
CREATIVE MODE"] CheckCreative -->|"No"| RecImplement["⏭️ NEXT MODE:
IMPLEMENT MODE"] %% Template Selection L2Update -.- Template2["TEMPLATE L2:
- Overview
- Files to Modify
- Implementation Steps
- Potential Challenges"] L3Update & L4Update -.- TemplateAdv["TEMPLATE L3-4:
- Requirements Analysis
- Components Affected
- Architecture Considerations
- Implementation Strategy
- Detailed Steps
- Dependencies
- Challenges & Mitigations
- Creative Phase Components"] %% Validation Options Start -.-> Validation["🔍 VALIDATION OPTIONS:
- Review complexity level
- Create planning templates
- Identify creative needs
- Generate plan documents
- Show mode transition"] %% Styling style Start fill:#4da6ff,stroke:#0066cc,color:white style ReadTasks fill:#80bfff,stroke:#4da6ff,color:black style CheckLevel fill:#d94dbb,stroke:#a3378a,color:white style Level2 fill:#4dbb5f,stroke:#36873f,color:white style Level3 fill:#ffa64d,stroke:#cc7a30,color:white style Level4 fill:#ff5555,stroke:#cc0000,color:white style CheckCreative fill:#d971ff,stroke:#a33bc2,color:white style RecCreative fill:#ffa64d,stroke:#cc7a30,color:black style RecImplement fill:#4dbb5f,stroke:#36873f,color:black ``` ## IMPLEMENTATION STEPS ### Step 1: READ MAIN RULE & TASKS ``` read_file({ target_file: ".cursor/rules/isolation_rules/main.mdc", should_read_entire_file: true }) read_file({ target_file: "tasks.md", should_read_entire_file: true }) ``` ### Step 2: LOAD PLAN MODE MAP ``` read_file({ target_file: ".cursor/rules/isolation_rules/visual-maps/plan-mode-map.mdc", should_read_entire_file: true }) ``` ### Step 3: LOAD COMPLEXITY-SPECIFIC PLANNING REFERENCES Based on complexity level determined from tasks.md, load one of: #### For Level 2: ``` read_file({ target_file: ".cursor/rules/isolation_rules/Level2/task-tracking-basic.mdc", should_read_entire_file: true }) ``` #### For Level 3: ``` read_file({ target_file: ".cursor/rules/isolation_rules/Level3/task-tracking-intermediate.mdc", should_read_entire_file: true }) read_file({ target_file: ".cursor/rules/isolation_rules/Level3/planning-comprehensive.mdc", should_read_entire_file: true }) ``` #### For Level 4: ``` read_file({ target_file: ".cursor/rules/isolation_rules/Level4/task-tracking-advanced.mdc", should_read_entire_file: true }) read_file({ target_file: ".cursor/rules/isolation_rules/Level4/architectural-planning.mdc", should_read_entire_file: true }) ``` ## PLANNING APPROACH Create a detailed implementation plan based on the complexity level determined during initialization. Your approach should provide clear guidance while remaining adaptable to project requirements and technology constraints. ### Level 2: Simple Enhancement Planning For Level 2 tasks, focus on creating a streamlined plan that identifies the specific changes needed and any potential challenges. Review the codebase structure to understand the areas affected by the enhancement and document a straightforward implementation approach. ```mermaid graph TD L2["📝 LEVEL 2 PLANNING"] --> Doc["Document plan with these components:"] Doc --> OV["📋 Overview of changes"] Doc --> FM["📁 Files to modify"] Doc --> IS["🔄 Implementation steps"] Doc --> PC["⚠️ Potential challenges"] Doc --> TS["✅ Testing strategy"] style L2 fill:#4dbb5f,stroke:#36873f,color:white style Doc fill:#80bfff,stroke:#4da6ff,color:black style OV fill:#cce6ff,stroke:#80bfff,color:black style FM fill:#cce6ff,stroke:#80bfff,color:black style IS fill:#cce6ff,stroke:#80bfff,color:black style PC fill:#cce6ff,stroke:#80bfff,color:black style TS fill:#cce6ff,stroke:#80bfff,color:black ``` ### Level 3-4: Comprehensive Planning For Level 3-4 tasks, develop a comprehensive plan that addresses architecture, dependencies, and integration points. Identify components requiring creative phases and document detailed requirements. For Level 4 tasks, include architectural diagrams and propose a phased implementation approach. ```mermaid graph TD L34["📊 LEVEL 3-4 PLANNING"] --> Doc["Document plan with these components:"] Doc --> RA["📋 Requirements analysis"] Doc --> CA["🧩 Components affected"] Doc --> AC["🏗️ Architecture considerations"] Doc --> IS["📝 Implementation strategy"] Doc --> DS["🔢 Detailed steps"] Doc --> DP["🔄 Dependencies"] Doc --> CM["⚠️ Challenges & mitigations"] Doc --> CP["🎨 Creative phase components"] style L34 fill:#ffa64d,stroke:#cc7a30,color:white style Doc fill:#80bfff,stroke:#4da6ff,color:black style RA fill:#ffe6cc,stroke:#ffa64d,color:black style CA fill:#ffe6cc,stroke:#ffa64d,color:black style AC fill:#ffe6cc,stroke:#ffa64d,color:black style IS fill:#ffe6cc,stroke:#ffa64d,color:black style DS fill:#ffe6cc,stroke:#ffa64d,color:black style DP fill:#ffe6cc,stroke:#ffa64d,color:black style CM fill:#ffe6cc,stroke:#ffa64d,color:black style CP fill:#ffe6cc,stroke:#ffa64d,color:black ``` ## CREATIVE PHASE IDENTIFICATION ```mermaid graph TD CPI["🎨 CREATIVE PHASE IDENTIFICATION"] --> Question{"Does the component require
design decisions?"} Question -->|"Yes"| Identify["Flag for Creative Phase"] Question -->|"No"| Skip["Proceed to Implementation"] Identify --> Types["Identify Creative Phase Type:"] Types --> A["🏗️ Architecture Design"] Types --> B["⚙️ Algorithm Design"] Types --> C["🎨 UI/UX Design"] style CPI fill:#d971ff,stroke:#a33bc2,color:white style Question fill:#80bfff,stroke:#4da6ff,color:black style Identify fill:#ffa64d,stroke:#cc7a30,color:black style Skip fill:#4dbb5f,stroke:#36873f,color:black style Types fill:#ffe6cc,stroke:#ffa64d,color:black ``` Identify components that require creative problem-solving or significant design decisions. For these components, flag them for the CREATIVE mode. Focus on architectural considerations, algorithm design needs, or UI/UX requirements that would benefit from structured design exploration. ## VERIFICATION ```mermaid graph TD V["✅ VERIFICATION CHECKLIST"] --> P["Plan addresses all requirements?"] V --> C["Components requiring creative phases identified?"] V --> S["Implementation steps clearly defined?"] V --> D["Dependencies and challenges documented?"] P & C & S & D --> Decision{"All Verified?"} Decision -->|"Yes"| Complete["Ready for next mode"] Decision -->|"No"| Fix["Complete missing items"] style V fill:#4dbbbb,stroke:#368787,color:white style Decision fill:#ffa64d,stroke:#cc7a30,color:white style Complete fill:#5fd94d,stroke:#3da336,color:white style Fix fill:#ff5555,stroke:#cc0000,color:white ``` Before completing the planning phase, verify that all requirements are addressed in the plan, components requiring creative phases are identified, implementation steps are clearly defined, and dependencies and challenges are documented. Update tasks.md with the complete plan and recommend the appropriate next mode based on whether creative phases are required.