
Memory Systems
Architect layered agent memory (context, vector, graph, temporal) so your coding agent remembers entities and decisions across sessions.
Install
npx skills add https://github.com/sickn33/antigravity-awesome-skills --skill memory-systemsWhat is this skill?
- Explains progression from context-only agents to vector stores, knowledge graphs, and temporal knowledge graphs
- Covers short-term, long-term, and graph-based memory layers for session continuity
- Focuses on entity consistency and reasoning over accumulated interactions
- Frames when to invest in structured memory vs. stuffing context windows
- Sourced from Agent-Skills-for-Context-Engineering memory-systems material
Adoption & trust: 473 installs on skills.sh; 40.1k GitHub stars; 3/3 security scanners passed (skills.sh audits).
Recommended Skills
Microsoft Foundrymicrosoft/azure-skills
Azure Aimicrosoft/azure-skills
Azure Hosted Copilot Sdkmicrosoft/azure-skills
Lark Eventlarksuite/cli
Running Claude Code Via Litellm Copilotxixu-me/skills
Setup Matt Pocock Skillsmattpocock/skills
Journey fit
Primary fit
Persistent memory is designed while building agent products; it also matters when operating those agents in production. Agent-tooling is the canonical shelf for skills about context engineering, retrieval, and state—not one-off app features.
Common Questions / FAQ
Is Memory Systems safe to install?
skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.
SKILL.md
READMESKILL.md - Memory Systems
## When to Use This Skill Design short-term, long-term, and graph-based memory architectures Use this skill when working with design short-term, long-term, and graph-based memory architectures. # Memory System Design Memory provides the persistence layer that allows agents to maintain continuity across sessions and reason over accumulated knowledge. Simple agents rely entirely on context for memory, losing all state when sessions end. Sophisticated agents implement layered memory architectures that balance immediate context needs with long-term knowledge retention. The evolution from vector stores to knowledge graphs to temporal knowledge graphs represents increasing investment in structured memory for improved retrieval and reasoning. ## When to Use Activate this skill when: - Building agents that must persist across sessions - Needing to maintain entity consistency across conversations - Implementing reasoning over accumulated knowledge - Designing systems that learn from past interactions - Creating knowledge bases that grow over time - Building temporal-aware systems that track state changes ## Core Concepts Memory exists on a spectrum from immediate context to permanent storage. At one extreme, working memory in the context window provides zero-latency access but vanishes when sessions end. At the other extreme, permanent storage persists indefinitely but requires retrieval to enter context. Simple vector stores lack relationship and temporal structure. Knowledge graphs preserve relationships for reasoning. Temporal knowledge graphs add validity periods for time-aware queries. Implementation choices depend on query complexity, infrastructure constraints, and accuracy requirements. ## Detailed Topics ### Memory Architecture Fundamentals **The Context-Memory Spectrum** Memory exists on a spectrum from immediate context to permanent storage. At one extreme, working memory in the context window provides zero-latency access but vanishes when sessions end. At the other extreme, permanent storage persists indefinitely but requires retrieval to enter context. Effective architectures use multiple layers along this spectrum. The spectrum includes working memory (context window, zero latency, volatile), short-term memory (session-persistent, searchable, volatile), long-term memory (cross-session persistent, structured, semi-permanent), and permanent memory (archival, queryable, permanent). Each layer has different latency, capacity, and persistence characteristics. **Why Simple Vector Stores Fall Short** Vector RAG provides semantic retrieval by embedding queries and documents in a shared embedding space. Similarity search retrieves the most semantically similar documents. This works well for document retrieval but lacks structure for agent memory. Vector stores lose relationship information. If an agent learns that "Customer X purchased Product Y on Date Z," a vector store can retrieve this fact if asked directly. But it cannot answer "What products did customers who purchased Product Y also buy?" because relationship structure is not preserved. Vector stores also struggle with temporal validity. Facts change over time, but vector stores provide no mechanism to distinguish "current fact" from "outdated fact" except through explicit metadata and filtering. **The Move to Graph-Based Memory** Knowledge graphs preserve relationships between entities. Instead of isolated document chunks, graphs encode that Entity A has Relationship R to Entity B. This enables queries that traverse relationship