Memos Memory Guide 标志

Memos Memory Guide

组织热门
MemTensor
memos-memory-guide

使用 MemOS Local 记忆系统搜索并利用用户过去的对话。用户提及以前的聊天、自己的偏好或经历,或者需要根据先前上下文回答时,均使用此技能。如果自动召回没有结果(用户查询较长或含义不明确),请自行生成简短的搜索词并调用 memory_search。可用工具: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_timeline、memory_viewer。

Add to TypingMind

概览

发布者MemTensor
代码仓库MemOS
技能名称memos-memory-guide
星标数
11.4K
复刻数
1K
附带文件
仅含指令
许可协议Apache-2.0
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 MemTensor 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Memos Memory Guide AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/MemTensor/MemOS/tree/main/apps/memos-local-openclaw/skill/memos-memory-guide
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/MemTensor/MemOS.git /tmp/MemOS
mkdir -p .claude/skills
cp -r /tmp/MemOS/apps/memos-local-openclaw/skill/memos-memory-guide .claude/skills/memos-memory-guide
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Memos Memory Guide,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Memos Memory Guide。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Memos Memory Guide 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

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

memory_unshare

  • What it does: Remove an existing memory from local agent sharing, team sharing, or both.
  • When to call: A memory should no longer be visible outside the current agent or should be removed from the team.
  • Parameters:
    • chunkId (string, required) — Existing memory chunk ID.
    • target (string, optional) — 'agents', 'hub', or 'all' (default).
    • privateOwner (string, optional) — Rare fallback only for older public memories that have no recorded original owner.

task_summary

  • What it does: Get the detailed summary of a complete task: title, status, narrative summary, and related skills. Use when memory_search returns a hit with a task_id and you need the full story. Preserves critical information: URLs, file paths, commands, error codes, step-by-step instructions.
  • When to call: A memory_search hit included a task_id and you need the full context of that task.
  • Parameters:
    • taskId (string, required) — The task_id from a memory_search hit.

skill_get

  • What it does: Retrieve a proven skill (experience guide) by skillId or by taskId. If you pass a taskId, the system will find the associated skill automatically.
  • When to call: A search hit has a task_id and the task has a "how to do this again" guide. Use this to follow the same approach or reuse steps.
  • Parameters:
    • skillId (string, optional) — Direct skill ID.
    • taskId (string, optional) — Task ID — will look up the skill linked to this task.
    • At least one of skillId or taskId must be provided.

skill_search

  • What it does: Search available skills by natural language. Searches your own skills, local shared skills, or both. It can also include team skills.
  • When to call: The current task requires a capability or guide you don't have. Use skill_search to find one first; after finding it, use skill_get to read it, then skill_install to load it for future turns.
  • Parameters:
    • query (string, required) — Natural language description of the needed skill.
    • scope (string, optional) — 'mix' (default, self + local shared), 'self', 'public' (local shared only), or 'group' / 'all' to include team results.

skill_install

  • What it does: Install a learned skill into the agent workspace so it becomes permanently available. After installation, the skill will be loaded automatically in future sessions.
  • When to call: After skill_get when the skill is useful for ongoing use.
  • Parameters:
    • skillId (string, required) — The skill ID to install.

skill_publish

  • What it does: Share a skill with local agents, or publish it to the team.
  • When to call: You have a useful skill that other agents or your team could benefit from.
  • Parameters:
    • skillId (string, required) — The skill ID to publish.
    • target (string, optional) — 'agents' (default) or 'hub'.
    • visibility (string, optional) — When target='hub', use 'public' (default) or 'group'.
    • groupId (string, optional) — Optional team group ID when target='hub' and visibility='group'.
    • scope (string, optional) — Backward-compatible alias for old calls. Prefer target + visibility in new calls.

skill_unpublish

  • What it does: Stop local agent sharing, remove a team-published copy, or do both.
  • When to call: You want to stop sharing a previously published skill.
  • Parameters:
    • skillId (string, required) — The skill ID to unpublish.
    • target (string, optional) — 'agents' (default), 'hub', or 'all'.

network_memory_detail

  • What it does: Fetches the full content behind a team search hit.
  • When to call: A memory_search result came from the team and you need the full shared memory content.
  • Parameters: remoteHitId.

task_share / task_unshare

  • What they do: Share a local task to the team, or remove it later.
  • When to call: A task is valuable to your group or to the whole team and should be discoverable via shared search.
  • Parameters: taskId, plus sharing visibility/scope when required.

network_skill_pull

  • What it does: Pulls a team-shared skill bundle down into local storage.
  • When to call: skill_search found a useful team skill and you want to use it locally or offline.
  • Parameters: skillId.

network_team_info

  • What it does: Returns current team server connection information, user, role, and groups.
  • When to call: You need to confirm whether team sharing is configured or which groups the current client belongs to.
  • Call this first before: memory_share(... target='hub'|'both'), memory_unshare(... target='hub'|'all'), task_share, task_unshare, skill_publish(... target='hub'), skill_unpublish(... target='hub'|'all'), or network_skill_pull.
  • Parameters: none.

memory_timeline

  • What it does: Expand context around a memory search hit. Pass the chunkId from a search result to read the surrounding conversation messages.
  • When to call: A memory_search hit is relevant but you need the surrounding dialogue.
  • Parameters:
    • chunkId (string, required) — The chunkId from a memory_search hit.
    • window (number, optional) — Context window ±N messages, default 2.

memory_viewer

  • What it does: Show the MemOS Memory Viewer URL. Call this when the user asks how to view, browse, manage, or check their memories. Returns the URL the user can open in their browser.
  • When to call: The user asks where to see or manage their memories.
  • Parameters: None.

Quick decision flow

  1. No memories in context or auto-recall reported nothing → Call memory_search(query="...") with a self-generated short query.

  2. Need to see the full original text of a search hit → Call memory_get(chunkId="...").

  3. Search returned hits with task_id and you need full context → Call task_summary(taskId="...").

  4. Task has an experience guide you want to follow → Call skill_get(taskId="...") or skill_get(skillId="..."). Optionally skill_install(skillId="...") for future use.

  5. You need the exact surrounding conversation of a hit → Call memory_timeline(chunkId="...").

  6. You need a capability/guide that you don't have → Call skill_search(query="...", scope="mix") to discover available skills.

  7. You have new shared knowledge useful to all local agents → Call memory_write_public(content="...").

  8. You already have an existing memory chunk and want to expose or hide it → Call memory_share(chunkId="...", target="agents|hub|both") or memory_unshare(chunkId="...", target="agents|hub|all").

  9. You are about to do anything team-sharing-related → Call network_team_info() first if team server availability is uncertain.

  10. You want to share/stop sharing a skill with local agents or team → Prefer skill_publish(skillId="...", target="agents|hub", visibility=...) and skill_unpublish(skillId="...", target="agents|hub|all").

  11. User asks where to see or manage their memories → Call memory_viewer() and share the URL.

Writing good search queries

  • Prefer short, focused queries (a few words or one clear question).
  • Use concrete terms: names, topics, tools, or decisions.
  • If the user's message is long, derive one or two sub-queries rather than pasting the whole message.
  • Use role='user' when you specifically want to find what the user said.

Memory ownership and agent isolation

Each memory is tagged with an owner (e.g. agent:main, agent:sales-bot). This is handled automatically — you do not need to pass any owner parameter.

  • Your memories: All tools (memory_search, memory_get, memory_timeline) automatically scope queries to your agent's own memories.
  • Local shared memories: Memories marked as local shared are visible to all agents in the same OpenClaw workspace. Use memory_write_public to create them, or memory_share(target='agents') to expose an existing chunk.
  • Cross-agent isolation: You cannot see memories owned by other agents (unless they are public).
  • How it works: The system identifies your agent ID from the OpenClaw runtime context and applies owner filtering automatically on every search, recall, and retrieval.

常见问题

Memos Memory Guide AI 技能有什么作用?

使用 MemOS Local 记忆系统搜索并利用用户过去的对话。用户提及以前的聊天、自己的偏好或经历,或者需要根据先前上下文回答时,均使用此技能。如果自动召回没有结果(用户查询较长或含义不明确),请自行生成简短的搜索词并调用 memory_search。可用工具: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_timeline、memory_viewer。

为什么在 TypingMind 中使用 Memos Memory Guide?

因为您只需安装一次,就能搭配任何模型使用。Memos Memory Guide 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Memos Memory Guide?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/MemTensor/MemOS/tree/main/apps/memos-local-openclaw/skill/memos-memory-guide。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Memos Memory Guide?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Memos Memory Guide 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Memos Memory Guide 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Memos Memory Guide AI 技能免费吗?

是的。MemTensor 已在 GitHub 上根据 Apache-2.0 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇