agent-memory-systems
它能做什么
这个工具帮助你设计 AI 智能体如何“记住”重要信息。它规定了智能体应该存储什么、如何存储以及保存多久,并确保每位用户的信息彼此分开。
适用场景
- ✓当你希望 AI 在不同对话之间记住某位用户的偏好时。
- ✓如果 AI 把不同用户的信息混在了一起时。
- ✓当你规划如何有条理地存储和调取旧对话时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/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
Choose semantic records for facts/preferences, episodic records for events, and procedural records for reusable methods. Keep retrieval quality separate from storage volume and bind persistent access to verified identity.
Procedure
- Establish the actual task, authenticated tenant/user, permission to retain content, retention limits and existing store/model versions.
- Read the guide's tenant-scoped contract and relevant storage/chunking sections. Select an adapter supported by the installed SDK; the guide's historical sketches are not deployable integrations.
- Specify record IDs, source evidence, timestamps, namespace, retrieval limits and conflict/version policy. Preserve originals and propose consolidation without deletion.
- Test cross-identity rejection, stale/conflicting records, bounded retrieval and failed writes with isolated fixtures. Benchmark retrieval against held-out questions before expanding storage.
- Deliver the architecture and evidence-backed change plan, listing unresolved adapters and hosted cost/data destinations. Apply only the persistence or provider operations actually authorized.
Detailed Guide
Read the detailed guide before executing this skill. It retains the complete procedure and reference material. Treat its safety, prerequisites, and validation requirements as mandatory. For focused work, load the relevant sections; for end-to-end work, read the guide completely.
When to Use
- Design memory namespaces and retention for an agent serving distinct tenants or users.
- Diagnose retrieval of stale, conflicting or unauthorized conversation records.
- Plan an embedding/store migration while preserving source records and verifying isolation.
Example
Request: “Our support agent forgets preferences between sessions. Design memory for two customer tenants without sharing their history.”
Output: Load the tenant-scoped contract and background-extraction sections. Propose a semantic namespace per verified tenant/user, records with source IDs and revisions, and bounded retrieval. Retain conflicting preferences until the owner resolves them; include tests that tenant B cannot retrieve or consolidate tenant A records. Identify the existing persistent adapter and consent/retention evidence before any write.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
常见问题
“语义”、“情景”和“程序性”记录分别是什么?
语义记录保存事实和偏好。情景记录保存过去发生的事件。程序性记录保存智能体使用的方法或步骤。
为什么要按用户分开存储记忆?
为了保护隐私,并防止一个用户看到或影响另一个用户的信息。每位用户都有自己的“记忆盒”。
“检索质量”是什么意思?
指 AI 在需要时找到正确且相关信息的能力,并且不会被陈旧或错误的数据干扰。
详情
作者的原始描述
Design tenant-scoped memory, retrieval and retention for agents. Use when planning RAG, conversation history, vector stores or remembering across sessions.
热度
- GitHub 星标
- 48k
- 排名
- #3663
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。