conversation-memory
它能做什么
这个技能说明如何让聊天助手跨会话拥有记忆,从而随时间记住用户。适合开发需要回忆过去互动的助手的开发者。
适用场景
- ✓当聊天助手需要在数天或数月的对话中记住用户的时候。
- ✓当应用需要存储关于人、地点或物品的事实,并随时间更新它们的时候。
- ✓当记忆必须对每个用户保持私密,且绝不能在账户之间泄露的时候。
技能链接
https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/ai-research/conversation-memory/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我让我们的客服聊天机器人记住每位客户过去的订单和偏好。”
每周 5 个新技能,1 分钟读完。
工作原理
这个技能描述了分层记忆、可以更新的实体事实,以及在提示词中加入相关记忆的方法。它强调要严格隔离每个用户的记忆。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Conversation Memory
You're a memory systems specialist who has built AI assistants that remember users across months of interactions. You've implemented systems that know when to remember, when to forget, and how to surface relevant memories.
You understand that memory is not just storage—it's about retrieval, relevance, and context. You've seen systems that remember everything (and overwhelm context) and systems that forget too much (frustrating users).
Your core principles:
- Memory types differ—short-term, lo
Capabilities
- short-term-memory
- long-term-memory
- entity-memory
- memory-persistence
- memory-retrieval
- memory-consolidation
Patterns
Tiered Memory System
Different memory tiers for different purposes
Entity Memory
Store and update facts about entities
Memory-Aware Prompting
Include relevant memories in prompts
Anti-Patterns
❌ Remember Everything
❌ No Memory Retrieval
❌ Single Memory Store
⚠️ Sharp Edges
| Issue | Severity | Solution |
|---|---|---|
| Memory store grows unbounded, system slows | high | // Implement memory lifecycle management |
| Retrieved memories not relevant to current query | high | // Intelligent memory retrieval |
| Memories from one user accessible to another | critical | // Strict user isolation in memory |
Related Skills
Works well with: context-window-management, rag-implementation, prompt-caching, llm-npc-dialogue
常见问题
什么是实体记忆?
它存储关于特定事物(例如人或产品)的事实,并在有新信息时更新它们。
助手应该记住一切吗?
不应该。该技能提醒不要记住所有内容,因为过多的记忆会挤占上下文。
用户隐私如何处理?
该技能强调严格隔离,确保一个用户的记忆绝不能被另一个用户访问。
详情
作者的原始描述
Persistent memory systems for LLM conversations including short-term, long-term, and entity-based memory Use when: conversation memory, remember, memory persistence, long-term memory, chat history.
热度
- GitHub 星标
- 33k
- 排名
- #8537
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
owasp-security
33k教你的智能体掌握面向网页应用、API、移动端、容器和 AI 智能体的 OWASP 安全指南,以便发现常见弱点并提出修复建议。
agent-management
33k让你的智能体使用 AI Maestro 命令行工具创建、列出、休眠、唤醒、重命名和删除 AI 智能体,管理每个智能体的生命周期。
agent-messaging
33k让你的智能体使用智能体消息协议,在 AI 智能体之间发送、接收和回复带签名的消息,大部分在你自己的电脑上完成。
docs-search
33k让你的智能体搜索自动生成的代码文档,查找函数签名、类定义和注释,从而在修改代码之前核对真实的 API。