agent-memory-systems
Design Agent Memory Systems
Build intelligent memory architectures for AI agents that enable long-term learning and context-aware responses. This skill provides patterns for implementing short-term, long-term, and episodic memory that improves agent performance over time.
Download the skill ZIP
Upload in Claude
Go to Settings → Capabilities → Skills → Upload skill
Toggle on and start using
Test it
Using "agent-memory-systems". Design memory for a code review agent that learns from past reviews
Expected outcome:
A code review agent should use episodic memory to store individual review sessions, semantic memory for learned coding patterns, and procedural memory for review workflows. Implement retrieval with temporal weighting to prioritize recent relevant reviews while avoiding stale context.
Using "agent-memory-systems". What memory type should store user preferences?
Expected outcome:
User preferences should be stored in semantic memory since they represent persistent learned knowledge about the user. Use episodic memory to track how preferences evolved over time. Apply metadata filtering to retrieve user-specific memories efficiently.
Security Audit
SafeThis skill is a pure documentation resource about agent memory architecture. Static analysis flagged apparent security patterns (backtick syntax, cryptographic keywords), but manual review confirms these are false positives. The backticks are markdown code formatting in a skill list, not shell execution. No actual code, scripts, network calls, or cryptographic operations exist. This is safe for publication.
Medium Risk Issues (1)
Low Risk Issues (1)
Quality Score
What You Can Build
AI Application Developer Building Conversational Agents
Design memory systems that allow chatbots to remember user preferences and conversation history across sessions, enabling more personalized and context-aware interactions.
DevOps Engineer Building Autonomous Agents
Implement long-term memory for agents that automate infrastructure tasks, allowing them to learn from previous deployments and avoid repeating mistakes.
Research Engineer Prototyping Agent Architectures
Explore different memory system designs and retrieval strategies to find optimal configurations for specific agent use cases.
Try These Prompts
Design a memory system for an AI agent that handles customer support conversations. The agent needs to remember user preferences, past issues, and resolution history. Specify the memory types, storage approach, and retrieval strategy.
Review this document chunking strategy for a knowledge base: [describe strategy]. What are the strengths and weaknesses? How would you improve retrieval accuracy?
Our agent memory system is storing every conversation indefinitely. This is causing slow retrieval and high storage costs. What memory management approach should we use instead?
Compare vector database options for a production agent system handling 10 million embeddings with sub-100ms retrieval requirements. Consider Pinecone, Weaviate, Chroma, and pgvector.
Best Practices
- Always filter by metadata (time, user, topic) before semantic retrieval to reduce noise and improve relevance
- Implement memory decay or importance scoring to prevent old or irrelevant memories from polluting context
- Budget tokens strategically across memory types - prioritize recent, high-relevance memories in limited context windows
Avoid
- Storing everything forever without eviction policies - leads to retrieval pollution and increased costs
- Using a single memory type for all data types - different information needs different storage approaches
- Chunking documents without testing retrieval quality - chunks that look good semantically may not retrieve well
Frequently Asked Questions
What is the difference between short-term and long-term memory?
When should I use episodic vs semantic memory?
How do I prevent memory retrieval from returning irrelevant results?
What chunk size should I use for document storage?
Can Claude Code execute memory system code?
How do I handle conflicting memories?
Developer Details
Author
sickn33License
MIT
Repository
https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/agent-memory-systemsRef
main
File structure
📄 SKILL.md