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

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

可直接粘贴的消息

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

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

  1. 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.

repo: davila7/claude-code-templates

热度

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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能