agent-memory-systems
它能做什么
这个技能说明 AI 智能体如何记住事情,包括短期上下文、长期存储和检索。适合构建必须在正确的时间回忆起正确信息的智能体的开发者。
适用场景
- ✓当团队正在为一个新的 AI 智能体设计记忆的时候。
- ✓当智能体似乎会遗忘或给出前后矛盾的回答的时候。
- ✓当记忆存储不断增长,检索准确度正在下降的时候。
技能链接
https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/ai-research/agent-memory-systems/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我为我们的客服智能体设计记忆,让它能回忆起正确的客户信息。”
每周 5 个新技能,1 分钟读完。
工作原理
这个技能会解释记忆的类型,例如短期上下文和长期向量存储,以及如何在它们之间做选择。它重点关注检索、分块和嵌入质量,因为检索效果差往往才是遗忘的真正原因。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Agent Memory Systems
You are a cognitive architect who understands that memory makes agents intelligent. You've built memory systems for agents handling millions of interactions. You know that the hard part isn't storing - it's retrieving the right memory at the right time.
Your core insight: Memory failures look like intelligence failures. When an agent "forgets" or gives inconsistent answers, it's almost always a retrieval problem, not a storage problem. You obsess over chunking strategies, embedding quality, and
Capabilities
- agent-memory
- long-term-memory
- short-term-memory
- working-memory
- episodic-memory
- semantic-memory
- procedural-memory
- memory-retrieval
- memory-formation
- memory-decay
Patterns
Memory Type Architecture
Choosing the right memory type for different information
Vector Store Selection Pattern
Choosing the right vector database for your use case
Chunking Strategy Pattern
Breaking documents into retrievable chunks
Anti-Patterns
❌ Store Everything Forever
❌ Chunk Without Testing Retrieval
❌ Single Memory Type for All Data
⚠️ Sharp Edges
| Issue | Severity | Solution |
|---|---|---|
| Issue | critical | ## Contextual Chunking (Anthropic's approach) |
| Issue | high | ## Test different sizes |
| Issue | high | ## Always filter by metadata first |
| Issue | high | ## Add temporal scoring |
| Issue | medium | ## Detect conflicts on storage |
| Issue | medium | ## Budget tokens for different memory types |
| Issue | medium | ## Track embedding model in metadata |
Related Skills
Works well with: autonomous-agents, multi-agent-orchestration, llm-architect, agent-tool-builder
常见问题
为什么智能体似乎会遗忘?
该技能指出,这通常是检索问题,而不是存储问题。
应该永久保存所有内容吗?
不应该。这个技能提醒不要永久保存所有内容,并建议对记忆的生命周期进行选择。
它会测试检索吗?
会。它建议测试分块和检索,而不是假设它们能正常工作。
详情
作者的原始描述
Memory is the cornerstone of intelligent agents. Without it, every interaction starts from zero. This skill covers the architecture of agent memory: short-term (context window), long-term (vector stores), and the cognitive architectures that organize them. Key insight: Memory isn't just storage - it's retrieval. A million stored facts mean nothing if you can't find the right one. Chunking, embedding, and retrieval strategies determine whether your agent remembers or forgets. The field is fragm
热度
- GitHub 星标
- 33k
- 排名
- #8527
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
owasp-security
33k教你的智能体掌握面向网页应用、API、移动端、容器和 AI 智能体的 OWASP 安全指南,以便发现常见弱点并提出修复建议。
agent-management
33k让你的智能体使用 AI Maestro 命令行工具创建、列出、休眠、唤醒、重命名和删除 AI 智能体,管理每个智能体的生命周期。
agent-messaging
33k让你的智能体使用智能体消息协议,在 AI 智能体之间发送、接收和回复带签名的消息,大部分在你自己的电脑上完成。
docs-search
33k让你的智能体搜索自动生成的代码文档,查找函数签名、类定义和注释,从而在修改代码之前核对真实的 API。