Instruction file imported from Kandulasathwika/julius (
.cursor/rules/context-retention.mdc). Copyright stays with the author.
Context Retention Protocol
Before Writing Code
- Always read
/docs/active-task.mdbefore starting any coding task - Review the relevant
.mdcrule files for the area you are working in - Check
/docs/architecture.mdfor the current system design
After Completing a Significant Step
- Update
/docs/active-task.mdwith:- What was completed
- Current status
- Known issues or blockers
- Next steps
- If a new, better code pattern was established during the session, update the relevant
.mdcrule file to reflect the improved pattern - If a new integration or architectural decision was made, update
/docs/architecture.md
Self-Improvement Protocol
- When you discover a pattern that works well, add it to the appropriate
.mdcrule under "Positive Directives" - When you encounter an anti-pattern that caused bugs, add it to the appropriate
.mdcrule under "Negative Rules" - Keep rule files concise - remove rules that are no longer relevant