search 精选
Searches memories and displays compact one-liner results, or looks up a specific memory by ID. Use for quick memory lookups, checking if something was recorded, resolving [mem0:id] citations, or browsing memories without full category detail.
安装方式
cp -r integrations/pi-agent-plugin/skills/search ~/.claude/skills/search-7把该 skill 目录放进客户端 skills 目录。不同客户端的目录可能不同,Claude Code 默认是 ~/.claude/skills/
/plugin marketplace add mem0ai/mem0⚠️ 该命令形态随客户端版本变化,仅在检测到 .claude-plugin/marketplace.json 时展示;不可用时请用「目录复制」。
https://raw.githubusercontent.com/mem0ai/mem0/b7ad69afda6b6ed030347c66d48a13e4de9dec08/integrations/pi-agent-plugin/skills/search/SKILL.md下载后另存为 ~/.claude/skills/search-7/SKILL.md。链接锁定采集时的 commit,内容与本站展示一致。
整仓一次性获取:git clone --depth 1 https://github.com/mem0ai/mem0.git
依赖与权限
- 无需 API Key
- 无需联网
- 无外部命令依赖
- 以上为按正文与 frontmatter 自动推断的信号,仅供参考;安装前建议先阅读原文。
SKILL.md 正文
Search / Peek
Quick semantic search with compact output. Lighter than /mem0-tour.
Execution
Step 1: Parse query
The user provides a search query: /mem0-search favorite restaurants
If no query provided, ask: "What should I search for?"
Memory ID detection: If the query matches a UUID pattern (^[a-f0-9-]{20,}$), treat it as a direct memory lookup instead of a search.
Step 2: Search
Use mem0_memory tool with action="search", query=<user's query>.
Step 3: Display
Show compact results:
## mem0 search: "<query>" (<N> results)
1. [preferences] Prefers window seats on flights (2026-05-15) [mem0:a3f8b2c1]
2. [goals] Wants to visit Japan in 2027 (2026-05-10) [mem0:7e2d9f4a]
3. [identity] Lives in San Francisco (2026-05-08) [mem0:c4d5e6f7]
Format: <number>. [<category>] <content, 80 chars> (<date>) [mem0:<short_id>]
If no results:
No memories matching "<query>".质量与来源
- 所属仓库
- mem0ai/mem0
- 仓库星标
- 6.7 万
- 最近更新
- 3 天前
- 采集时间
- 今天
- commit
- b7ad69afda6b
- 内容指纹
- sha256:a26350dcc175a7a
- 文件路径
- integrations/pi-agent-plugin/skills/search/SKILL.md