Memory
Infinite organized memory that complements your agent's built-in memory with unlimited categorized storage.
About this skill
This skill significantly enhances an AI agent's standard memory by introducing an external, infinitely scalable, and perfectly organized storage system. Operating in parallel to the agent's built-in memory, it ensures no conflicts while efficiently managing vast amounts of structured data that an agent needs to retain over extended periods. It is ideal for agents requiring long-term recall beyond simple daily logs, such as managing detailed project histories, extensive contact networks, comprehensive decision logs, or accumulating domain-specific knowledge. Users can define custom categories to structure information in any way they need, making retrieval efficient and highly tailored to specific requirements. By offloading complex and growing data to this specialized memory system, agents can maintain focus on immediate tasks while still having access to an organized, searchable archive of past interactions, learned information, and user-defined data. This prevents memory overflow and significantly improves the agent's ability to provide contextually rich and informed responses across a wide range of tasks.
Best use case
This skill primarily benefits agents and users who require persistent, structured, and easily retrievable long-term memory for complex projects, accumulating knowledge, or extensive data management. It's particularly useful for agents that need to recall specific details from past interactions, maintain up-to-date information across various domains, or manage user-defined data collections that exceed the typical scope of built-in memory.
Infinite organized memory that complements your agent's built-in memory with unlimited categorized storage.
The agent gains access to an infinitely scalable, user-configured external memory system capable of storing and retrieving categorized information efficiently for long-term use.
Practical example
Example input
Agent, add a new client to my 'Clients' category: Name - Acme Corp, Contact - Jane Doe (jane.doe@acme.com), Project - Q3 Marketing Campaign.
Example output
Acme Corp client details added to 'Clients' category. Anything else you'd like to store?
When to use this skill
- When the agent needs to store and retrieve large volumes of categorized information.
- For maintaining detailed project histories, decision logs, or comprehensive contact networks.
- To provide the agent with deep domain knowledge that grows over time.
- When the agent's built-in memory is insufficient for long-term, structured data retention.
When not to use this skill
- For basic, short-term conversational context that the agent's built-in memory handles naturally.
- If the user only needs temporary scratchpad memory for a single task.
- When the data to be stored is unstructured, ephemeral, and not intended for long-term recall.
- If the agent itself doesn't require complex or categorized information retrieval.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/memory-local-backup/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How Memory Compares
| Feature / Agent | Memory | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | medium | N/A |
Frequently Asked Questions
What does this skill do?
Infinite organized memory that complements your agent's built-in memory with unlimited categorized storage.
How difficult is it to install?
The installation complexity is rated as medium. You can find the installation instructions above.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
AI Agents for Startups
Explore AI agent skills for startup validation, product research, growth experiments, documentation, and fast execution with small teams.
AI Agents for Coding
Browse AI agent skills for coding, debugging, testing, refactoring, code review, and developer workflows across Claude, Cursor, and Codex.
Best AI Skills for Claude
Explore the best AI skills for Claude and Claude Code across coding, research, workflow automation, documentation, and agent operations.
SKILL.md Source
# Memory 🧠
**Superpowered memory that never forgets.**
Your agent has basic built-in memory. This skill adds infinite, perfectly organized memory for everything else — parallel and complementary, never conflicting.
## How It Works
```
Built-in Agent Memory This Skill (~/memory/)
┌─────────────────────┐ ┌─────────────────────────────┐
│ MEMORY.md │ │ Infinite categorized storage │
│ memory/ (daily logs)│ + │ Any structure you want │
│ Basic recall │ │ Perfect organization │
└─────────────────────┘ └─────────────────────────────┘
↓ ↓
Agent basics Everything else
(works automatically) (scales infinitely)
```
**Not a replacement.** Your agent's built-in memory keeps working. This adds a parallel system for unlimited, organized storage.
## Setup
On first use, read `setup.md` to configure the memory system with the user. Key decisions:
1. What categories do they need?
2. Should we sync anything from built-in memory?
3. How do they want to find things?
## When to Use
User needs organized long-term storage beyond basic agent memory: detailed project histories, extensive contact networks, decision logs, domain knowledge, collections, or any structured data that grows over time.
## Architecture
Memory lives in `~/memory/` — a dedicated folder separate from built-in agent memory.
```
~/memory/
├── config.md # System configuration
├── INDEX.md # What's stored, where to find it
│
├── [user-defined]/ # Categories the user needs
│ ├── INDEX.md # Category overview
│ └── {items}.md # Individual entries
│
└── sync/ # Optional: synced from built-in memory
└── ...
```
**The user defines the categories.** Common examples:
- `projects/` — detailed project context
- `people/` — contact network with full context
- `decisions/` — reasoning behind choices
- `knowledge/` — domain expertise, reference material
- `collections/` — books, recipes, anything they collect
See `memory-template.md` for all templates.
## Quick Reference
| Topic | File |
|-------|------|
| First-time setup | `setup.md` |
| All templates | `memory-template.md` |
| Organization patterns | `patterns.md` |
| Problems & fixes | `troubleshooting.md` |
---
## Core Rules
### 1. Separate from Built-In Memory
This system lives in `~/memory/`. Never modify:
- Agent's MEMORY.md (workspace root)
- Agent's `memory/` folder (if it exists in workspace)
**Parallel, not replacement.** Both systems work together.
### 2. User Defines Structure
During setup, ask what they want to store. Create categories based on their needs:
| They say... | Create |
|-------------|--------|
| "I have many projects" | `~/memory/projects/` |
| "I meet lots of people" | `~/memory/people/` |
| "I want to track decisions" | `~/memory/decisions/` |
| "I'm learning [topic]" | `~/memory/knowledge/[topic]/` |
| "I collect [things]" | `~/memory/collections/[things]/` |
**No preset structure.** Build what they need.
### 3. Every Category Has an Index
Each folder gets an INDEX.md that lists contents:
```markdown
# Projects Index
| Name | Status | Updated | File |
|------|--------|---------|------|
| Alpha | Active | 2026-02 | alpha.md |
| Beta | Paused | 2026-01 | beta.md |
Total: 2 active, 5 archived
```
Indices stay small (<100 entries). When full, split into subcategories.
### 4. Write Immediately
When user shares important information:
1. Write to appropriate file in ~/memory/
2. Update the category INDEX.md
3. Then respond
Don't wait. Don't batch. Write immediately.
### 5. Search Then Navigate
To find information:
1. **Ask first:** "Is this in ~/memory/ or built-in memory?"
2. **Search:** grep or semantic search in ~/memory/
3. **Navigate:** INDEX.md → category → specific file
```bash
# Quick search
grep -r "keyword" ~/memory/
# Navigate
cat ~/memory/INDEX.md # What categories exist?
cat ~/memory/projects/INDEX.md # What projects?
cat ~/memory/projects/alpha.md # Specific project
```
### 6. Sync from Built-In (Optional)
If user wants certain info copied from built-in memory:
```
~/memory/sync/
├── preferences.md # Synced from built-in
└── decisions.md # Synced from built-in
```
**Sync is one-way:** Built-in → this system. Never modify built-in.
### 7. Scale by Splitting
When a category grows large:
- INDEX.md > 100 entries → split into subcategories
- Create sub-INDEX.md for each subcategory
- Root INDEX.md points to subcategories
```
~/memory/projects/
├── INDEX.md # "See active/, archived/"
├── active/
│ ├── INDEX.md # 30 active projects
│ └── ...
└── archived/
├── INDEX.md # 200 archived projects
└── ...
```
---
## What to Store Here (vs Built-In)
| Store HERE (~/memory/) | Keep in BUILT-IN |
|------------------------|------------------|
| Detailed project histories | Current project status |
| Full contact profiles | Key contacts quick-ref |
| All decision reasoning | Recent decisions |
| Domain knowledge bases | Quick facts |
| Collections, inventories | — |
| Anything that grows large | Summaries |
**Rule:** Built-in for quick context. Here for depth and scale.
---
## Finding Things
### For Small Memory (<50 files)
```bash
# Grep is fast enough
grep -r "keyword" ~/memory/
```
### For Large Memory (50+ files)
Navigate via indices:
```
1. ~/memory/INDEX.md → find category
2. ~/memory/{category}/INDEX.md → find item
3. ~/memory/{category}/{item}.md → read details
```
### For Huge Memory (500+ files)
Use semantic search if available, or hierarchical indices:
```
~/memory/projects/INDEX.md → "web projects in web/"
~/memory/projects/web/INDEX.md → "alpha project"
~/memory/projects/web/alpha.md → details
```
---
## Maintenance
### Weekly (5 min)
- Update INDEX.md files if entries added
- Archive completed/inactive items
### Monthly (15 min)
- Review category sizes
- Split large categories
- Remove outdated entries
### When Memory is Slow
- Check INDEX.md sizes (keep <100 lines)
- Split big categories into subcategories
- Archive old content
---
## Common Traps
- **Modifying built-in memory** → Never touch agent's MEMORY.md or workspace memory/. This system is parallel.
- **No indices** → Without INDEX.md, finding things requires searching all files. Always maintain indices.
- **One giant category** → 500 items in one folder is slow. Split into subcategories.
- **Syncing everything** → Don't copy all built-in memory. Only sync what needs organization here.
- **Waiting to write** → Write immediately when user shares info. Don't batch.
---
## Security & Privacy
**Data location:**
- All data in `~/memory/` on user's machine
- No external services required
- No network requests
**This skill does NOT:**
- Access built-in agent memory (only reads if syncing)
- Send data anywhere
- Store credentials (never store secrets in memory)
---
## Related Skills
Install with `clawhub install <slug>` if user confirms:
- `decide` - Decision tracking patterns
- `escalate` - When to involve humans
- `learn` - Adaptive learning
## Feedback
- If useful: `clawhub star memory`
- Stay updated: `clawhub sync`Related Skills
hierarchical-agent-memory
Scoped CLAUDE.md memory system that reduces context token spend. Creates directory-level context files, tracks savings via dashboard, and routes agents to the right sub-context.
Agent Memory Architecture
Complete zero-dependency memory system for AI agents — file-based architecture, daily notes, long-term curation, context management, heartbeat integration, and memory hygiene. No APIs, no databases, no external tools. Works with any agent framework.
memory-cache
High-performance temporary storage system using Redis. Supports namespaced keys (mema:*), TTL management, and session context caching. Use for: (1) Saving agent state, (2) Caching API results, (3) Sharing data between sub-agents.
auto-memory
Indestructible agent memory — permanently stored, never lost. Save decisions, identity, and context as a memory chain on the Autonomys Network. Rebuild your full history from a single CID, even after total state loss.
Triple-Layer Memory System
三层记忆系统 - 解决 AI Agent 长对话记忆丢失和上下文管理问题
benos-memory-core
Core runtime/volatile memory module for BenOS agent environment. Use to: store and retrieve active session state, open loops, decisions, and scratch notes at runtime.
elite-longterm-memory
Ultimate AI agent memory system with WAL protocol, vector search, git-notes, and cloud backup. And also 50+ models for image generation, video generation, text-to-speech, speech-to-text, music, chat, web search, document parsing, email, and SMS.
memory-agent
维护用户审美偏好与创作历史,为其他 Agent 提供可复用的风格参考。当开始新任务或用户表达喜好时触发。
bamdra-memory-upgrade-operator
Safely install, uninstall, reinstall, or upgrade the Bamdra OpenClaw memory suite when stale config, existing plugin directories, or partial installs break normal `openclaw plugins install` flows.
hierarchical-memory
Manage and navigate a multi-layered, branch-based memory system. This skill helps organize complex agent context into Root, Domain, and Project layers to prevent context bloat. It includes a helper script `add_branch.py` which creates local markdown files and directories to structure your memory.
agentmemory
End-to-end encrypted cloud memory for AI agents. 100GB free storage. Store memories, files, and secrets securely.
fsxmemory
Structured memory system for AI agents. Context death resilience (checkpoint/recover), structured storage, Obsidian-compatible markdown, and local semantic search.