# Design Persistent Memory for AI Agents

Agents lose continuity when memory architecture does not match persistence, retrieval, and reasoning needs. This skill guides selection and design across layered memory approaches.

## Install

```bash
npx skillstore add sickn33/memory-systems
```

## Metadata

- Status: approved
- Slug: sickn33-memory-systems
- Skillstore revision: r2
- Version status: missing
- Tree hash: 8c505daf239bbb448338742c3f2a7c7070cc2ab0e9c54c4bdeffa9e8ba215529
- Author: sickn33
- GitHub username: sickn33
- License: MIT
- Repository: https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/memory-systems
- Ref: 81e05e636292629114b76cbb3922fbe57672fc02
- Supported tools: Claude, Codex, Claude Code
- Audit status: complete
- Agent install advisory: allowed
- Manual install advisory: allowed
- Artifact signature: available
- Audit attestation: unavailable
- Human verification: not\_verified
- Risk factors: external\_commands, network
- Quality score: 78
- Quality tier: bronze
- Public page: https://skillstore.pages.dev/skills/sickn33-memory-systems
- Manifest: https://skillstore.pages.dev/api/skills/sickn33-memory-systems/manifest

## Capabilities

- Compares working, short-term, long-term, entity, and temporal memory layers.
- Maps persistence and query requirements to file, vector, graph, or temporal graph designs.
- Explains semantic, entity-based, and temporal retrieval patterns.
- Describes consolidation triggers for outdated, duplicated, or excessive memories.
- Provides conceptual examples for entity tracking and time-specific graph queries.
- Highlights context integration, backup, privacy, growth, and retrieval failure considerations.

## Use Cases

- Preserve Assistant Preferences: Design cross-session memory for preferences while separating active context from durable facts.
- Model Changing Customer Facts: Plan temporal entity memory that preserves relationship history and prevents outdated facts from overriding current data.
- Evaluate Memory Tradeoffs: Compare file, vector, graph, and temporal approaches against query complexity, latency, persistence, and infrastructure constraints.

## Prompt Templates

### Choose a Memory Layer

```
Recommend a memory architecture for an agent that must remember [information] for [duration]. Explain the simplest suitable layer and its tradeoffs.
```

### Design Layered Memory

```
Design working, short-term, and long-term memory for [agent]. Define stored information, retention, retrieval triggers, and movement between layers.
```

### Compare Retrieval Models

```
Compare vector RAG, knowledge graphs, and temporal graphs for [use case]. Evaluate semantic search, relationships, time validity, latency, and operational complexity.
```

### Specify a Temporal Memory System

```
Create a production design for temporal memory in [domain]. Include entities, relationships, validity periods, retrieval, consolidation, privacy, recovery, monitoring, and failure handling.
```

## Limitations

- Provides architecture guidance rather than a complete production implementation.
- Does not configure databases, embedding models, indexes, access controls, or deployment infrastructure.
- Benchmark claims require independent validation against current sources and workloads.
- Privacy, retention, deletion, and regulatory requirements remain environment-specific.

## Best Practices

- Match the memory layer to required persistence, relationships, temporal validity, latency, and operational cost.
- Store provenance, timestamps, confidence, and validity periods so retrieval can resolve conflicting or outdated facts.
- Plan consolidation, privacy controls, deletion, backup, recovery, monitoring, and retrieval failure handling before production use.

## Anti Patterns

- Do not place every historical interaction in active context without retrieval or consolidation.
- Do not use vector similarity alone when answers depend on relationships or historical validity.
- Do not retain personal data indefinitely without consent, access controls, deletion rules, and retention limits.

## Security Audit

- Audited at: 2026-08-04T13:53:01.269\+00:00
- Summary: All nine static findings are false positives caused by Markdown fences, documentation prose, a parameterized query example, and source metadata. No executable shell commands, active network requests, reconnaissance behavior, prompt injection, or malicious intent were found.

## Stats

- Views: 221
- Downloads: 13
- Favorites: 1
- Popularity score: 0
