Skip to content
Back to skills

Memory Manager

ASecurity

External persistent memory for cross-session knowledge. Use when storing error patterns, retrieving learned solutions, managing causal memory chains, or persisting project knowledge.

  • 3 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added February 8, 2026
databasespythongosqlapidatabasedocumentation

Works with

  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned February 12, 2026

npx -y skills add adaptationio/Skrillz --skill memory-manager --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Memory Manager?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Memory Manager
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/adaptationio-memory-manager/badge)](https://www.skillsdirectory.com/skills/adaptationio-memory-manager)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: memory-manager
description: External persistent memory for cross-session knowledge. Use when storing error patterns, retrieving learned solutions, managing causal memory chains, or persisting project knowledge.
version: 1.0.0
category: autonomous-coding
layer: context-engineering
---

# Memory Manager

External persistent memory system for maintaining knowledge across autonomous coding sessions.

## Quick Start

### Store a Memory
```python
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)
```python
memory.store_causal_chain(
    error="403 Forbidden on API call",
    solution="Add User-Agent header to requests"
)
```

### Retrieve Similar Errors
```python
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

```python
# 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 documentation
- `references/RETRIEVAL-PATTERNS.md` - Search patterns

## Scripts

- `scripts/memory_manager.py` - Core MemoryManager
- `scripts/semantic_store.py` - Keyword-based storage
- `scripts/causal_memory.py` - Error→Solution chains
- `scripts/knowledge_base.py` - Project knowledge

Files in this skill

  • SKILL.md4.1 KB
  • references/MEMORY-TYPES.md3.3 KB
  • scripts/causal_memory.py5.2 KB
  • scripts/memory_manager.py5.9 KB
  • scripts/semantic_store.py3.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…