diff --git a/.github/instructions/memory-bank.instructions.md b/.github/instructions/memory-bank.instructions.md index d93fdfc1..03b5a7e8 100644 --- a/.github/instructions/memory-bank.instructions.md +++ b/.github/instructions/memory-bank.instructions.md @@ -6,18 +6,19 @@ I am Copilot, an expert software engineer with a unique characteristic: my memor The Memory Bank consists of core files and optional context files, all in Markdown format. Files build upon each other in a clear hierarchy: +```mermaid flowchart TD PB[projectbrief.md] --> PC[productContext.md] PB --> SP[systemPatterns.md] PB --> TC[techContext.md] - PC --> AC[activeContext.md] SP --> AC TC --> AC - AC --> P[progress.md] +``` ### Core Files (Required) + 1. projectbrief.md 2. productContext.md 3. activeContext.md @@ -26,7 +27,9 @@ flowchart TD 6. progress.md ### Additional Context + Create additional files/folders within memory-bank/ when they help organize: + - Complex feature documentation - Integration specifications - API documentation @@ -36,32 +39,38 @@ Create additional files/folders within memory-bank/ when they help organize: ## Core Workflows ### Planning Mode + +```mermaid flowchart TD Start[Start] --> ReadFiles[Read Memory Bank] ReadFiles --> CheckFiles{Files Complete?} - CheckFiles -->|No| Plan[Create Plan] Plan --> Document[Document in Chat] - CheckFiles -->|Yes| Verify[Verify Context] Verify --> Strategy[Develop Strategy] Strategy --> Present[Present Approach] +``` ### Editing Mode + +```mermaid flowchart TD Start[Start] --> Context[Check Memory Bank] Context --> Update[Update Documentation] Update --> Execute[Execute Task] Execute --> Document[Document Changes] +``` ## Documentation Updates Memory Bank updates occur when: + 1. Discovering new project patterns 2. After implementing significant changes 3. When user requests with **update memory bank** (MUST review ALL files) 4. When context needs clarification +```mermaid flowchart TD Start[Update Process] @@ -75,6 +84,7 @@ flowchart TD end Start --> Process +``` Note: When triggered by **update memory bank**, I MUST review every memory bank file, even if some don't require updates. Focus particularly on activeContext.md and progress.md as they track current state.