Memory bank access is mandatory

This commit is contained in:
Nikhil Mundra 2025-06-11 17:45:37 +05:30
parent 0eda87707a
commit e061a2a678
11 changed files with 37 additions and 18 deletions

View file

@ -139,11 +139,12 @@ graph TD
## Mode-Specific Rules ## Mode-Specific Rules
1. **Think before designing** - Understand the full context 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. **Document decisions** - Include rationale and trade-offs 2. **Think before designing** - Understand the full context
3. **Consider non-functionals** - Performance, security, scalability 3. **Document decisions** - Include rationale and trade-offs
4. **Plan for failure** - Design resilient systems 4. **Consider non-functionals** - Performance, security, scalability
5. **Keep it simple** - Avoid over-engineering 5. **Plan for failure** - Design resilient systems
6. **Keep it simple** - Avoid over-engineering
## Architectural Artifacts ## Architectural Artifacts

View file

@ -118,11 +118,12 @@ flowchart TD
## Mode-Specific Rules ## Mode-Specific Rules
1. **Always produce runnable code** - No placeholders or incomplete snippets 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. **Respect the 3-attempt rule** - Escalate to enhanced-planning after 3 failures 2. **Always produce runnable code** - No placeholders or incomplete snippets
3. **Maintain backward compatibility** unless explicitly directed otherwise 3. **Respect the 3-attempt rule** - Escalate to enhanced-planning after 3 failures
4. **Document significant patterns** in memory bank for future sessions 4. **Maintain backward compatibility** unless explicitly directed otherwise
5. **Test incrementally** - Verify each component before proceeding 5. **Document significant patterns** in memory bank for future sessions
6. **Test incrementally** - Verify each component before proceeding
## Integration Points ## Integration Points

View file

@ -165,10 +165,11 @@ const query = `SELECT * FROM users WHERE id = ${userId}`;
## Integration with Project Standards ## Integration with Project Standards
### Memory Bank Consultation ### Memory Bank Consultation
1. Check `.clinerules` for project-specific standards 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. Review `coding_standards.md` if available 2. Check `.clinerules` for project-specific standards
3. Reference `systemPatterns.md` for architectural guidelines 3. Review `coding_standards.md` if available
4. Consider `techContext.md` for technology constraints 4. Reference `systemPatterns.md` for architectural guidelines
5. Consider `techContext.md` for technology constraints
### Documentation Updates ### Documentation Updates
After significant reviews, update: After significant reviews, update:

View file

@ -255,6 +255,7 @@ Result: 10x performance improvement
## Best Practices ## Best Practices
### DO: ### 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 - ✅ Learn from each failure
- ✅ Research before assuming - ✅ Research before assuming
- ✅ Create specific, measurable steps - ✅ Create specific, measurable steps

View file

@ -430,6 +430,7 @@ const { data, error, isLoading } = useData<DataType>(endpoint);
``` ```
## Memory Bank Integration ## 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` - Document UI patterns in `systemPatterns.md`
- Track component library in `techContext.md` - Track component library in `techContext.md`
- Update design decisions in `activeContext.md` - Update design decisions in `activeContext.md`

View file

@ -91,7 +91,10 @@ flowchart LR
## Best Practices ## 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. - Prefer simple, clear designs over complex ones.
- Avoid unnecessary abstractions. - Avoid unnecessary abstractions.
- Write plans that are easy to understand and implement. - Write plans that are easy to understand and implement.

View file

@ -45,7 +45,10 @@ You are an expert Go developer with deep expertise in writing clean, performant,
## Best Practices ## 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. - Write simple, readable code.
- Handle every error explicitly; no `_` discards unless justified. - Handle every error explicitly; no `_` discards unless justified.
- Use interfaces to decouple components. - Use interfaces to decouple components.

View file

@ -487,7 +487,10 @@ If you believe you need to create something new, you MUST provide:
## Best Practices ## 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 - Write total functions with exhaustive pattern matching
- Use the type system to make illegal states unrepresentable - Use the type system to make illegal states unrepresentable
- Prefer pure functions and push effects to the edges - Prefer pure functions and push effects to the edges

View file

@ -131,6 +131,7 @@ flowchart LR
- Kind mismatches → Verify type-level programming - Kind mismatches → Verify type-level programming
## Memory Bank Integration ## 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` - Document discovered patterns in `systemPatterns.md`
- Update `techContext.md` with Haskell insights - Update `techContext.md` with Haskell insights
- Track compilation solutions in `activeContext.md` - Track compilation solutions in `activeContext.md`

View file

@ -363,6 +363,7 @@ Draft → Review → Revise → Review → Final
## Best Practices ## Best Practices
### DO: ### 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 - ✅ Maintain clear task boundaries
- ✅ Document decision rationale - ✅ Document decision rationale
- ✅ Track dependencies explicitly - ✅ Track dependencies explicitly

View file

@ -72,7 +72,10 @@ This mode is specifically optimized for working with **large ReScript monorepos*
## Best Practices ## 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 - Write type-safe code that leverages ReScript's sound type system
- Use pattern matching exhaustively - Use pattern matching exhaustively
- Prefer immutable data structures and transformations - Prefer immutable data structures and transformations