memory-manager
10
总安装量
9
周安装量
#31089
全站排名
安装命令
npx skills add https://github.com/adaptationio/skrillz --skill memory-manager
Agent 安装分布
openclaw
6
github-copilot
5
gemini-cli
4
antigravity
3
claude-code
3
codex
3
Skill 文档
Memory Manager
External persistent memory system for maintaining knowledge across autonomous coding sessions.
Quick Start
Store a Memory
from scripts.memory_manager import MemoryManager
memory = MemoryManager(project_dir)
memory.store(
key="auth_solution",
value="Added User-Agent header to fix 403",
memory_type="causal"
)
Store Causal Chain (ErrorâSolution)
memory.store_causal_chain(
error="403 Forbidden on API call",
solution="Add User-Agent header to requests"
)
Retrieve Similar Errors
solutions = memory.get_similar_errors("403 error calling API")
# Returns: [{"error": "403 Forbidden...", "solution": "Add User-Agent..."}]
Memory Types
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â MEMORY TYPES â
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ¤
â â
â EPISODIC â
â ââ Past events and outcomes â
â ââ "Last time we deployed, X happened" â
â ââ Session summaries â
â â
â PROCEDURAL â
â ââ Learned skills and patterns â
â ââ "How to set up database migrations" â
â ââ Working code patterns â
â â
â SEMANTIC â
â ââ Factual knowledge about project â
â ââ "Database uses PostgreSQL" â
â ââ Architecture decisions â
â â
â CAUSAL â
â ââ Error â Solution chains â
â ââ "403 error â Add User-Agent header" â
â ââ Self-healing patterns â
â â
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
Storage Location
project/
âââ .claude/
âââ memory/
âââ episodic.json
âââ procedural.json
âââ semantic.json
âââ causal.json
Causal Memory Pattern
# Traditional error handling:
# Error occurs â Unclear response
# Causal memory:
# Error: 403 Forbidden
# Memory: [403] â [missing User-Agent] â [added header] â [success]
# Response: "Adding User-Agent header (learned from previous error)"
Integration Points
- error-recoverer: Uses causal memory for self-healing
- context-compactor: Stores summaries in episodic memory
- coding-agent: Stores procedural patterns
References
references/MEMORY-TYPES.md– Detailed type documentationreferences/RETRIEVAL-PATTERNS.md– Search patterns
Scripts
scripts/memory_manager.py– Core MemoryManagerscripts/semantic_store.py– Keyword-based storagescripts/causal_memory.py– ErrorâSolution chainsscripts/knowledge_base.py– Project knowledge