360 Secure SkillHub
360 安全技能中心

mem-search

通过 MCP 提供的 search、timeline、get_observations、get_tool_uses 四层检索历史会话记忆:先按 ID 过滤得到索引,再补充时间线上下文,随后按需展开观察详情,最后才取原始工具调用内容;写入时标记平台来源,读取时不丢弃其他宿主记录;缺少 MCP 时先执行安装命令。

thedotmack
热度 0.00
最近更新 2026-10-18 22:45:40
分类:知识依赖:MCP 服务应用场景:笔记整理 / 研究 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add thedotmack/claude-mem/mem-search
Metadata
name
mem-search
description
Use this when the user asks to search memory, "did we already solve this?", "how did we do X last time?", or wants work from previous sessions.

mem-search

Layered workflow. Do not dump full observations until IDs are filtered, and do not reach for raw tool bodies until the summaries came up short.

  1. search(query) — index with IDs
  2. timeline(anchor=ID) — nearby context
  3. get_observations(ids=[...]) — full details for those IDs only
  4. get_tool_uses(ids=[...]) — the ORIGINAL tool_input / tool_response for specific tool calls. Last resort: these are unsummarized and can run to thousands of tokens each.

Stamp platformSource as cursor or grok-bot on writes for this host. When reading, do not drop the other host unless asked.

If MCP is missing, run the install skill first (npx claude-mem install --ide <host>).