跳到正文
Skillpedia
智能体33k · #8527

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/ai-research/agent-memory-systems/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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

repo: davila7/claude-code-templates

热度

GitHub 星标
33k
排名
#8527
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能