跳到正文
Skillpedia
智能体12k · #11400

memos-memory-guide

它能做什么

它指导 AI 智能体如何通过 MemOS 记忆工具,搜索和使用过去对话中的长期记忆。适用于希望智能体记住你的历史和偏好的人。

适用场景

  • ✓当你提到过去的聊天,或你之前告诉智能体的事情时。
  • ✓当面对较长或不清楚的问题,自动记忆查找没有结果时。
  • ✓当你希望智能体查看团队共享的数据时。

技能链接

https://github.com/MemTensor/MemOS/blob/main/apps/memos-local-openclaw/skill/memos-memory-guide/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

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

可以这样问 AI

“请提醒我,在我们之前的对话中,我对调价的决定是什么。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会用简短、聚焦的查询搜索记忆,阅读匹配的片段,然后用它们来作答。只有在搜索包含团队数据时,才会搜索团队数据。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

MemOS Local Memory — Agent Guide

This skill describes how to use the MemOS memory tools so you can reliably search and use the user's long-term conversation history, query team-shared data, share tasks, and discover or pull reusable skills.

Two sharing planes exist and must not be confused:

  • Local agent sharing: visible to agents in the same OpenClaw workspace only.
  • Team sharing: visible to teammates through the configured team server.

How memory is provided each turn

  • Automatic recall (hook): At the start of each turn, the system runs a memory search using the user's current message and injects relevant past memories into your context. You do not need to call any tool for that.
  • When that is not enough: If the user's message is very long, vague, or the automatic search returns no memories, you should generate your own short, focused query and call memory_search yourself.
  • Memory isolation: Each agent can only see its own local private memories and local public memories. Team-shared data only appears when you search with scope="group" or scope="all".

Tools — what they do and when to call

memory_search

  • What it does: Search long-term conversation memory for past conversations, user preferences, decisions, and experiences. Returns relevant excerpts with chunkId and optionally task_id. Only returns memories belonging to the current agent or marked as public.
  • When to call:
    • The automatic recall did not run or returned nothing.
    • The user's query is long or unclear — generate a short query yourself and call memory_search(query="...").
    • You need to search with a different angle (e.g. filter by role='user').
  • Parameters:
    • query (string, required) — Natural language search query.
    • scope (string, optional) — 'local' (default) for current agent + local shared memories, or 'group' / 'all' to include team-shared memories.
    • maxResults (number, optional) — Increase when the first search is too narrow.
    • minScore (number, optional) — Lower slightly if recall is too strict.
    • role (string, optional) — Filter local results by 'user', 'assistant', 'tool', or 'system'.

memory_get

  • What it does: Get the full original text of a memory chunk. Use to verify exact details from a search hit.
  • When to call: A memory_search hit looks relevant but you need to see the complete original content, not just the summary/excerpt.
  • Parameters:
    • chunkId (string, required) — The chunkId from a search hit.
    • maxChars (number, optional) — Max characters to return (default 4000, max 12000).

memory_write_public

  • What it does: Create a brand new local shared memory. These memories are visible to all agents in the same OpenClaw workspace during memory_search. This does not publish anything to the team server.
  • When to call: In multi-agent or collaborative scenarios, when you want to create a new persistent shared note from scratch (e.g. shared decisions, conventions, configurations, workflows). Do not use it if you already have a specific memory chunk to expose.
  • Parameters:
    • content (string, required) — The content to write to local shared memory.
    • summary (string, optional) — Short summary of the content.

memory_share

  • What it does: Share an existing memory either with local OpenClaw agents, to the team, or to both.
  • When to call:
    • If you want to share conversation content to team or hub, first retrieve memories related to that content to obtain the right chunkId(s), then share.
    • target='agents' (default): When those memories would clearly help other agents in the same workspace, you may share proactively without asking the user.
    • target='hub' or 'both': Only after explicit user consent when the content would benefit collaborators—explain briefly, ask first, then call hub/both (Hub must be configured). Never silently Hub-share.
  • Do not use when: You are creating a brand-new shared note with no existing chunk—use memory_write_public instead.
  • Parameters:
    • chunkId (string, required) — Existing memory chunk ID.
    • target (string, optional) — 'agents' (default), 'hub', or 'both'.
    • visibility (string, optional) — Team visibility when target includes team: 'public' (default) or 'group'.
    • groupId (string, optional) — Optional team group ID when visibility='group'.

常见问题

智能体能看到别人的记忆吗?

不能。每个智能体只能看到自己的私有记忆和本地公共记忆。只有搜索包含团队数据时,团队数据才会出现。

本地共享和团队共享有什么区别?

本地共享涵盖同一工作区中的智能体。团队共享涵盖已配置团队服务器上的团队成员。

如果记忆搜索没有结果怎么办?

智能体会自己编写一个简短的搜索查询,然后再试一次。

详情

作者的原始描述

Use the MemOS Local memory system to search and use the user's past conversations. Use this skill whenever the user refers to past chats, their own preferences or history, or when you need to answer from prior context. When auto-recall returns nothing (long or unclear user query), generate your own short search query and call memory_search. Available tools: memory_search, memory_get, memory_write_public, memory_share, memory_unshare, task_summary, skill_get, skill_search, skill_install, skill_publish, skill_unpublish, network_memory_detail, network_skill_pull, network_team_info, memory_timelin

repo: MemTensor/MemOS

热度

GitHub 星标
12k
排名
#11400
许可证
Apache-2.0
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能