npx skills add https://github.com/memtensor/memos --skill memos-memory-guide本技能描述了如何使用 MemOS 记忆工具,以便您能够可靠地搜索和使用用户的长期对话历史、查询团队共享数据、共享任务,以及发现或拉取可复用的技能。
存在两个共享层面,切勿混淆:
memory_search。public 记忆。团队共享数据仅在您使用 scope="group" 或 scope="all" 进行搜索时才会出现。chunkId 和可选 的相关片段。仅返回属于当前智能体或标记为公共的记忆。广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
task_idmemory_search(query="...")。role='user' 过滤)。query (字符串, 必需) — 自然语言搜索查询。scope (字符串, 可选) — 'local'(默认)表示当前智能体 + 本地共享记忆,或 'group' / 'all' 以包含团队共享记忆。maxResults (数字, 可选) — 当首次搜索结果过少时可增加此值。minScore (数字, 可选) — 如果回忆条件过于严格,可略微降低此值。role (字符串, 可选) — 按 'user'、'assistant'、'tool' 或 'system' 过滤本地结果。memory_search 的命中结果看起来相关,但您需要查看完整的原始内容,而不仅仅是摘要/片段。chunkId (字符串, 必需) — 搜索命中结果中的 chunkId。maxChars (数字, 可选) — 返回的最大字符数(默认 4000,最大 12000)。memory_search 期间对同一 OpenClaw 工作空间内的所有智能体可见。这不会向团队服务器发布任何内容。content (字符串, 必需) — 要写入本地共享记忆的内容。summary (字符串, 可选) — 内容的简短摘要。memory_write_public。chunkId (字符串, 必需) — 现有记忆片段 ID。target (字符串, 可选) — 'agents'(默认)、'hub' 或 'both'。visibility (字符串, 可选) — 当目标包含团队时的团队可见性:'public'(默认)或 'group'。groupId (字符串, 可选) — 当 visibility='group' 时可选的团队组 ID。chunkId (字符串, 必需) — 现有记忆片段 ID。target (字符串, 可选) — 'agents'、'hub' 或 'all'(默认)。privateOwner (字符串, 可选) — 仅作为罕见后备方案,用于处理没有记录原始所有者的较旧的公共记忆。memory_search 返回带有 task_id 的命中结果且您需要完整背景时使用。保留关键信息:URL、文件路径、命令、错误代码、分步说明。memory_search 的命中结果包含 task_id,且您需要该任务的完整上下文。taskId (字符串, 必需) — memory_search 命中结果中的 task_id。skillId 或 taskId 检索一个经过验证的技能(经验指南)。如果您传递 taskId,系统将自动查找关联的技能。task_id 并且该任务有一个“如何再次执行此操作”的指南。使用此工具来遵循相同的方法或重用步骤。skillId (字符串, 可选) — 直接的技能 ID。taskId (字符串, 可选) — 任务 ID — 将查找与此任务关联的技能。skillId 或 taskId 中的至少一个。skill_search 查找一个;找到后,使用 skill_get 阅读它,然后使用 skill_install 将其加载以供未来轮次使用。query (字符串, 必需) — 所需技能的自然语言描述。scope (字符串, 可选) — 'mix'(默认,自身 + 本地共享)、'self'、'public'(仅本地共享),或 'group' / 'all' 以包含团队结果。skill_get 之后,当该技能对持续使用有用时。skillId (字符串, 必需) — 要安装的技能 ID。skillId (字符串, 必需) — 要发布的技能 ID。target (字符串, 可选) — 'agents'(默认)或 'hub'。visibility (字符串, 可选) — 当 target='hub' 时,使用 'public'(默认)或 'group'。groupId (字符串, 可选) — 当 target='hub' 且 visibility='group' 时可选的团队组 ID。scope (字符串, 可选) — 旧调用的向后兼容别名。在新调用中建议使用 target + visibility。skillId (字符串, 必需) — 要取消发布的技能 ID。target (字符串, 可选) — 'agents'(默认)、'hub' 或 'all'。memory_search 结果来自团队,且您需要完整的共享记忆内容。remoteHitId。taskId,以及在需要时加上共享可见性/范围。skill_search 找到了一个有用的团队技能,并且您想在本地或离线使用它。skillId。memory_share(... target='hub'|'both')、memory_unshare(... target='hub'|'all')、task_share、task_unshare、skill_publish(... target='hub')、skill_unpublish(... target='hub'|'all') 或 network_skill_pull。chunkId 以读取周围的对话消息。memory_search 的命中结果相关,但您需要周围的对话。chunkId (字符串, 必需) — memory_search 命中结果中的 chunkId。window (数字, 可选) — 上下文窗口 ±N 条消息,默认 2。memory_search(query="...")。memory_get(chunkId="...")。task_id 的命中结果且您需要完整上下文 → 调用 task_summary(taskId="...")。skill_get(taskId="...") 或 skill_get(skillId="...")。可选地,为将来使用调用 skill_install(skillId="...")。memory_timeline(chunkId="...")。skill_search(query="...", scope="mix") 以发现可用技能。memory_write_public(content="...")。memory_share(chunkId="...", target="agents|hub|both") 或 memory_unshare(chunkId="...", target="agents|hub|all")。network_team_info()。skill_publish(skillId="...", target="agents|hub", visibility=...) 和 skill_unpublish(skillId="...", target="agents|hub|all")。memory_viewer() 并分享 URL。role='user'。每个记忆都标有 owner(例如 agent:main、agent:sales-bot)。这是自动处理的 — 您无需传递任何所有者参数。
memory_search、memory_get、memory_timeline)都会自动将查询范围限定为您智能体自身的记忆。memory_write_public 创建它们,或使用 memory_share(target='agents') 公开现有片段。每周安装量
92
代码仓库
GitHub 星标
7.7K
首次出现
Mar 9, 2026
安全审计
已安装于
gemini-cli92
kimi-cli92
amp92
cline92
github-copilot92
codex92
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:
memory_search yourself.public memories. Team-shared data only appears when you search with scope="group" or scope="all".chunkId and optionally task_id. Only returns memories belonging to the current agent or marked as public.memory_search(query="...").role='user').query (string, required) — Natural language search query.scope (string, optional) — 'local' (default) for current agent + local shared memories, or / to include team-shared memories.memory_search hit looks relevant but you need to see the complete original content, not just the summary/excerpt.chunkId (string, required) — The chunkId from a search hit.maxChars (number, optional) — Max characters to return (default 4000, max 12000).memory_search. This does not publish anything to the team server.content (string, required) — The content to write to local shared memory.summary (string, optional) — Short summary of the content.memory_write_public.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 .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.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.memory_search hit included a task_id and you need the full context of that task.taskId (string, required) — The task_id from a memory_search hit.skillId or by taskId. If you pass a taskId, the system will find the associated skill automatically.task_id and the task has a "how to do this again" guide. Use this to follow the same approach or reuse steps.skillId (string, optional) — Direct skill ID.taskId (string, optional) — Task ID — will look up the skill linked to this task.skillId or taskId must be provided.skill_search to find one first; after finding it, use skill_get to read it, then skill_install to load it for future turns.query (string, required) — Natural language description of the needed skill.scope (string, optional) — 'mix' (default, self + local shared), 'self', 'public' (local shared only), or / to include team results.skill_get when the skill is useful for ongoing use.skillId (string, required) — The skill ID to install.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 and .skillId (string, required) — The skill ID to unpublish.target (string, optional) — 'agents' (default), 'hub', or 'all'.memory_search result came from the team and you need the full shared memory content.remoteHitId.taskId, plus sharing visibility/scope when required.skill_search found a useful team skill and you want to use it locally or offline.skillId.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.chunkId from a search result to read the surrounding conversation messages.memory_search hit is relevant but you need the surrounding dialogue.chunkId (string, required) — The chunkId from a memory_search hit.window (number, optional) — Context window ±N messages, default 2.No memories in context or auto-recall reported nothing → Call memory_search(query="...") with a self-generated short query.
Need to see the full original text of a search hit → Call memory_get(chunkId="...").
Search returned hits withtask_id and you need full context → Call task_summary(taskId="...").
Task has an experience guide you want to follow → Call skill_get(taskId="...") or skill_get(skillId="..."). Optionally skill_install(skillId="...") for future use.
role='user' when you specifically want to find what the user said.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.
memory_search, memory_get, memory_timeline) automatically scope queries to your agent's own memories.memory_write_public to create them, or memory_share(target='agents') to expose an existing chunk.Weekly Installs
92
Repository
GitHub Stars
7.7K
First Seen
Mar 9, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
gemini-cli92
kimi-cli92
amp92
cline92
github-copilot92
codex92
AI 代码实施计划编写技能 | 自动化开发任务分解与 TDD 流程规划工具
49,000 周安装
'group''all'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'.'group'groupId (string, optional) — Optional team group ID when visibility='group'.'group''all'target='hub'visibility='group'scope (string, optional) — Backward-compatible alias for old calls. Prefer target + visibility in new calls.You need the exact surrounding conversation of a hit → Call memory_timeline(chunkId="...").
You need a capability/guide that you don't have → Call skill_search(query="...", scope="mix") to discover available skills.
You have new shared knowledge useful to all local agents → Call memory_write_public(content="...").
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").
You are about to do anything team-sharing-related → Call network_team_info() first if team server availability is uncertain.
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").
User asks where to see or manage their memories → Call memory_viewer() and share the URL.