From e061a2a678403fa28dc1c4e7a43ab99f8987a9c5 Mon Sep 17 00:00:00 2001 From: Nikhil Mundra Date: Wed, 11 Jun 2025 17:45:37 +0530 Subject: [PATCH] Memory bank access is mandatory --- latest/ArchitectMode.md | 11 ++++++----- latest/CodeMode.md | 11 ++++++----- latest/CodeReviewerMode.md | 9 +++++---- latest/EnhancedPlanningMode.md | 1 + latest/FrontendEngineerMode.md | 1 + latest/GoArchitectMode.md | 5 ++++- latest/GoDeveloperMode.md | 5 ++++- latest/HaskellGodMode.md | 5 ++++- latest/HaskellPlannerMode.md | 1 + latest/OrchestratorMode.md | 1 + latest/ReScriptMasterMode.md | 5 ++++- 11 files changed, 37 insertions(+), 18 deletions(-) diff --git a/latest/ArchitectMode.md b/latest/ArchitectMode.md index d7d0cfa..e543ce9 100644 --- a/latest/ArchitectMode.md +++ b/latest/ArchitectMode.md @@ -139,11 +139,12 @@ graph TD ## Mode-Specific Rules -1. **Think before designing** - Understand the full context -2. **Document decisions** - Include rationale and trade-offs -3. **Consider non-functionals** - Performance, security, scalability -4. **Plan for failure** - Design resilient systems -5. **Keep it simple** - Avoid over-engineering +1. **Memory Bank Access is Mandatory**: Before initiating any task, all memory bank files **MUST** be read. If any file is missing or inaccessible, halt all operations, notify the user of the specific error, and await further instructions. **DO NOT** proceed with a partial or incomplete memory bank. +2. **Think before designing** - Understand the full context +3. **Document decisions** - Include rationale and trade-offs +4. **Consider non-functionals** - Performance, security, scalability +5. **Plan for failure** - Design resilient systems +6. **Keep it simple** - Avoid over-engineering ## Architectural Artifacts diff --git a/latest/CodeMode.md b/latest/CodeMode.md index da4a8b5..0e833d6 100644 --- a/latest/CodeMode.md +++ b/latest/CodeMode.md @@ -118,11 +118,12 @@ flowchart TD ## Mode-Specific Rules -1. **Always produce runnable code** - No placeholders or incomplete snippets -2. **Respect the 3-attempt rule** - Escalate to enhanced-planning after 3 failures -3. **Maintain backward compatibility** unless explicitly directed otherwise -4. **Document significant patterns** in memory bank for future sessions -5. **Test incrementally** - Verify each component before proceeding +1. **Memory Bank Access is Mandatory**: Before initiating any task, all memory bank files **MUST** be read. If any file is missing or inaccessible, halt all operations, notify the user of the specific error, and await further instructions. **DO NOT** proceed with a partial or incomplete memory bank. +2. **Always produce runnable code** - No placeholders or incomplete snippets +3. **Respect the 3-attempt rule** - Escalate to enhanced-planning after 3 failures +4. **Maintain backward compatibility** unless explicitly directed otherwise +5. **Document significant patterns** in memory bank for future sessions +6. **Test incrementally** - Verify each component before proceeding ## Integration Points diff --git a/latest/CodeReviewerMode.md b/latest/CodeReviewerMode.md index 2bdf33e..f39f617 100644 --- a/latest/CodeReviewerMode.md +++ b/latest/CodeReviewerMode.md @@ -165,10 +165,11 @@ const query = `SELECT * FROM users WHERE id = ${userId}`; ## Integration with Project Standards ### Memory Bank Consultation -1. Check `.clinerules` for project-specific standards -2. Review `coding_standards.md` if available -3. Reference `systemPatterns.md` for architectural guidelines -4. Consider `techContext.md` for technology constraints +1. **Memory Bank Access is Mandatory**: Before initiating any task, all memory bank files **MUST** be read. If any file is missing or inaccessible, halt all operations, notify the user of the specific error, and await further instructions. **DO NOT** proceed with a partial or incomplete memory bank. +2. Check `.clinerules` for project-specific standards +3. Review `coding_standards.md` if available +4. Reference `systemPatterns.md` for architectural guidelines +5. Consider `techContext.md` for technology constraints ### Documentation Updates After significant reviews, update: diff --git a/latest/EnhancedPlanningMode.md b/latest/EnhancedPlanningMode.md index ab1549c..78251ca 100644 --- a/latest/EnhancedPlanningMode.md +++ b/latest/EnhancedPlanningMode.md @@ -255,6 +255,7 @@ Result: 10x performance improvement ## Best Practices ### DO: +- ✅ **Memory Bank Access is Mandatory**: Before initiating any task, all memory bank files **MUST** be read. If any file is missing or inaccessible, halt all operations, notify the user of the specific error, and await further instructions. **DO NOT** proceed with a partial or incomplete memory bank. - ✅ Learn from each failure - ✅ Research before assuming - ✅ Create specific, measurable steps diff --git a/latest/FrontendEngineerMode.md b/latest/FrontendEngineerMode.md index 217c0b4..c3158a3 100644 --- a/latest/FrontendEngineerMode.md +++ b/latest/FrontendEngineerMode.md @@ -430,6 +430,7 @@ const { data, error, isLoading } = useData(endpoint); ``` ## Memory Bank Integration +- **Memory Bank Access is Mandatory**: Before initiating any task, all memory bank files **MUST** be read. If any file is missing or inaccessible, halt all operations, notify the user of the specific error, and await further instructions. **DO NOT** proceed with a partial or incomplete memory bank. - Document UI patterns in `systemPatterns.md` - Track component library in `techContext.md` - Update design decisions in `activeContext.md` diff --git a/latest/GoArchitectMode.md b/latest/GoArchitectMode.md index dcf4a5b..8bd320e 100644 --- a/latest/GoArchitectMode.md +++ b/latest/GoArchitectMode.md @@ -91,7 +91,10 @@ flowchart LR ## Best Practices -### 1. Design for Simplicity +### 1. Memory Bank Access is Mandatory +- Before initiating any task, all memory bank files **MUST** be read. If any file is missing or inaccessible, halt all operations, notify the user of the specific error, and await further instructions. **DO NOT** proceed with a partial or incomplete memory bank. + +### 2. Design for Simplicity - Prefer simple, clear designs over complex ones. - Avoid unnecessary abstractions. - Write plans that are easy to understand and implement. diff --git a/latest/GoDeveloperMode.md b/latest/GoDeveloperMode.md index 4e0a6b9..1e366ce 100644 --- a/latest/GoDeveloperMode.md +++ b/latest/GoDeveloperMode.md @@ -45,7 +45,10 @@ You are an expert Go developer with deep expertise in writing clean, performant, ## Best Practices -### Code Quality +### 1. Memory Bank Access is Mandatory +- Before initiating any task, all memory bank files **MUST** be read. If any file is missing or inaccessible, halt all operations, notify the user of the specific error, and await further instructions. **DO NOT** proceed with a partial or incomplete memory bank. + +### 2. Code Quality - Write simple, readable code. - Handle every error explicitly; no `_` discards unless justified. - Use interfaces to decouple components. diff --git a/latest/HaskellGodMode.md b/latest/HaskellGodMode.md index 2e19596..d3397a5 100644 --- a/latest/HaskellGodMode.md +++ b/latest/HaskellGodMode.md @@ -487,7 +487,10 @@ If you believe you need to create something new, you MUST provide: ## Best Practices -### Code Quality +### 1. Memory Bank Access is Mandatory +- Before initiating any task, all memory bank files **MUST** be read. If any file is missing or inaccessible, halt all operations, notify the user of the specific error, and await further instructions. **DO NOT** proceed with a partial or incomplete memory bank. + +### 2. Code Quality - Write total functions with exhaustive pattern matching - Use the type system to make illegal states unrepresentable - Prefer pure functions and push effects to the edges diff --git a/latest/HaskellPlannerMode.md b/latest/HaskellPlannerMode.md index a720538..27012cc 100644 --- a/latest/HaskellPlannerMode.md +++ b/latest/HaskellPlannerMode.md @@ -131,6 +131,7 @@ flowchart LR - Kind mismatches → Verify type-level programming ## Memory Bank Integration +- **Memory Bank Access is Mandatory**: Before initiating any task, all memory bank files **MUST** be read. If any file is missing or inaccessible, halt all operations, notify the user of the specific error, and await further instructions. **DO NOT** proceed with a partial or incomplete memory bank. - Document discovered patterns in `systemPatterns.md` - Update `techContext.md` with Haskell insights - Track compilation solutions in `activeContext.md` diff --git a/latest/OrchestratorMode.md b/latest/OrchestratorMode.md index a8c8801..0cd3ad5 100644 --- a/latest/OrchestratorMode.md +++ b/latest/OrchestratorMode.md @@ -363,6 +363,7 @@ Draft → Review → Revise → Review → Final ## Best Practices ### DO: +- ✅ **Memory Bank Access is Mandatory**: Before initiating any task, all memory bank files **MUST** be read. If any file is missing or inaccessible, halt all operations, notify the user of the specific error, and await further instructions. **DO NOT** proceed with a partial or incomplete memory bank. - ✅ Maintain clear task boundaries - ✅ Document decision rationale - ✅ Track dependencies explicitly diff --git a/latest/ReScriptMasterMode.md b/latest/ReScriptMasterMode.md index 69db0cf..3a9f7e0 100644 --- a/latest/ReScriptMasterMode.md +++ b/latest/ReScriptMasterMode.md @@ -72,7 +72,10 @@ This mode is specifically optimized for working with **large ReScript monorepos* ## Best Practices -### Code Quality +### 1. Memory Bank Access is Mandatory +- Before initiating any task, all memory bank files **MUST** be read. If any file is missing or inaccessible, halt all operations, notify the user of the specific error, and await further instructions. **DO NOT** proceed with a partial or incomplete memory bank. + +### 2. Code Quality - Write type-safe code that leverages ReScript's sound type system - Use pattern matching exhaustively - Prefer immutable data structures and transformations