π§ Memory System Skill
name: memory-system description: Manage AI context, memory persistence, and knowledge retention across sessions
π― Purpose
Maintain context and knowledge across conversations, enabling continuity and learning from past interactions.
π When to Use
- Starting new conversations (load context)
- Completing tasks (save learnings)
- Switching between projects
- Referencing past decisions
ποΈ Memory Structure
π memory/
βββ π active.md β Current task context
βββ π summary.md β Project summaries
βββ π decisions.md β Architecture decisions
βββ π changelog.md β Changes history
βββ π patterns.md β Reusable patterns
βββ π snippets.md β Code templates
βββ π lessons.md β Learnings from mistakes
π Memory Types
1. Short-term Memory (Session)
- Current task context
- Recent files edited
- Active decisions
2. Long-term Memory (Persistent)
- Project architecture
- Design decisions
- Lessons learned
- Code patterns
3. Episodic Memory (Events)
- Bug fixes and solutions
- Feature implementations
- Deployment records
π§ Memory Operations
Save Memory
## Save Format
### Context
- Project: [name]
- Date: [ISO date]
- Task: [description]
### Key Decisions
1. [Decision 1]: [Rationale]
2. [Decision 2]: [Rationale]
### Lessons Learned
- [Lesson 1]
- [Lesson 2]
### Code Patterns Used
- [Pattern]: [File reference]
Load Memory
## Load Checklist
1. [ ] Read project context.md
2. [ ] Check active.md for ongoing tasks
3. [ ] Review recent decisions.md entries
4. [ ] Load relevant patterns
Search Memory
## Search Methods
1. Keyword search in solutions.md
2. Date-based filtering
3. Project-specific lookup
4. Tag-based retrieval
π Memory Metrics
| Metric | Description |
|---|---|
| Context loaded | Files read at session start |
| Decisions made | Architecture choices recorded |
| Patterns saved | Reusable code patterns |
| Lessons recorded | Mistakes and learnings |
π Memory Lifecycle
βββββββββββββββ
β Session β
β Start ββββΆ LOAD context from memory files
βββββββββββββββ
β
βΌ
βββββββββββββββ
β During β
β Work ββββΆ UPDATE active.md with progress
βββββββββββββββ
β
βΌ
βββββββββββββββ
β Task β
β Complete ββββΆ SAVE learnings to appropriate files
βββββββββββββββ
β
βΌ
βββββββββββββββ
β Session β
β End ββββΆ SUMMARIZE session in summary.md
βββββββββββββββ
π‘ Best Practices
- Be Specific: Save context with enough detail to understand later
- Use Tags: Add searchable tags to entries
- Link Related: Reference related decisions/patterns
- Prune Regularly: Archive old, irrelevant entries
- Keep Active Current: Update active.md frequently
π Related Skills
session-recovery- Recover from session interruptionsdocumentation- Document decisions properlyprogress-tracking- Track ongoing work