| name | memory-consolidation |
| description | Activates when user says 'Load memory-consolidation', 'consolidate memory', 'unify memory', 'merge memory files', 'apply patch', 'check patches', 'patch status', or when asked to upgrade the split memory architecture to a unified single-file structure. Also handles the bundled patch system for fixing outdated file references across the project. |
Memory Consolidation -- Unified Memory Architecture
Merges intelligently, templates permanently, limits safely.
Activation
When this skill activates, output:
"Consolidating memory architecture..."
Then execute the consolidation protocol from consolidation-core.md (located alongside this SKILL).
Context Guard
| Context | Status |
|---|
| User says "Load memory-consolidation" | ACTIVE -- run full consolidation |
| User says "consolidate memory", "unify memory" | ACTIVE -- run full consolidation |
| User says "apply patch [ID]" | ACTIVE -- apply named patch |
| User says "check patches", "patch status" | ACTIVE -- show patch log |
| Mid-conversation (no consolidation context) | DORMANT |
Protocol
Consolidation
- Read
consolidation-core.md (alongside this SKILL) for the 5-step execution process
- Merge
main/identity-core.md + main/relationship-memory.md into main/main-memory.md
- Install format references to
main/main-memory-format.md and main/session-format.md (templates are alongside this SKILL)
- Add 500-line limit to
main/current-session.md
- Update
master-memory.md to load the unified file
- Preserve ALL existing customizations during merge
- Remove split files AFTER verification
Patch System
- Read
patches/install-patch-system.md for infrastructure setup
- Read
patches/patch-format.md for patch file structure
- Apply patches like
patches/PATCH-001.md sequentially by ID
- Log applied patches to
patches/applied.md
Mandatory Rules
- Preserve customizations — never lose user edits during merge
- Format files are permanent references — never modified by the AI
- 500-line limit — session memory auto-resets preserving only Session Recap
- Verify before deletion — confirm main-memory.md loads correctly before removing old files
- Patches append-only — log every applied patch with timestamp; never re-apply the same patch
Ancillary Files
consolidation-core.md — full 5-step protocol
main-memory-format.md — structure template for unified main memory
session-format.md — structure template for session RAM
patches/ — bundled patches for fixing outdated references
install-patch-system.md — patch infrastructure setup
patch-format.md — standard patch file template
PATCH-001.md — fix outdated file references (5 files)
Level History
- Lv.1 -- Base: merge identity + relationship into unified main-memory.md, install format templates, add 500-line session limit, update master-memory.md loading protocol.
- Lv.2 -- Patch System: bundled AI-executable patches with find/replace instructions, applied.md tracking log, sequential ID-based application.