Agent Skills › thedotmack/claude-mem › mem-search

mem-search

GitHub

用于搜索历史记忆、过往会话记录及问题解决经验的技能。通过分层工作流,依次执行索引查询、上下文时间线获取、详细观察记录提取及原始工具调用回溯,以精准定位并复用历史工作内容。

claude-mem-grok-bot/skills/mem-search/SKILL.md thedotmack/claude-mem

Trigger Scenarios

用户询问是否已解决过某问题 用户想了解上次如何处理某任务 用户希望回顾或引用之前的会话内容

Install

npx skills add thedotmack/claude-mem --skill mem-search -g -y
More Options

Non-standard path

npx skills add https://github.com/thedotmack/claude-mem/tree/main/claude-mem-grok-bot/skills/mem-search -g -y

Use without installing

npx skills use thedotmack/claude-mem@mem-search

指定 Agent (Claude Code)

npx skills add thedotmack/claude-mem --skill mem-search -a claude-code -g -y

安装 repo 全部 skill

npx skills add thedotmack/claude-mem --all -g -y

预览 repo 内 skill

npx skills add thedotmack/claude-mem --list

SKILL.md

Frontmatter
{
    "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.

The worker also live-writes a growing ID INDEX to agents/<this-seat-uuid>/memory/log/zz-claude-mem-inject.md (host Memory mid-attach). Use those IDs with get_observations. Thin seat diaries are filled from newest house observations. Disable with CLAUDE_MEM_GROK_BOT_INJECT_ENABLED=false.

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

Version History

  • 4520de9 Current 2026-09-23 05:11

Same Skill Collection

claude-mem-cursor/skills/agent-cost-report/SKILL.md
claude-mem-cursor/skills/install/SKILL.md
claude-mem-cursor/skills/mem-search/SKILL.md
claude-mem-grok-bot/skills/agent-cost-report/SKILL.md
claude-mem-grok-bot/skills/host-observer/SKILL.md
claude-mem-grok-bot/skills/install/SKILL.md
cowork/skills/agent-cost-report/SKILL.md
cowork/skills/mem-search/SKILL.md
cowork/skills/mem-setup/SKILL.md
openclaw/skills/agent-cost-report/SKILL.md
openclaw/skills/do/SKILL.md
openclaw/skills/make-plan/SKILL.md
plugin/skills/agent-cost-report/SKILL.md
plugin/skills/babysit/SKILL.md
plugin/skills/cloud-sync/SKILL.md
plugin/skills/design-is/SKILL.md
plugin/skills/do/SKILL.md
plugin/skills/how-it-works/SKILL.md
plugin/skills/knowledge-agent/SKILL.md
plugin/skills/learn-codebase/SKILL.md
plugin/skills/make-plan/SKILL.md
plugin/skills/mem-search/SKILL.md
plugin/skills/mode-creator/SKILL.md
plugin/skills/oh-my-issues/SKILL.md
plugin/skills/pathfinder/SKILL.md
plugin/skills/smart-explore/SKILL.md
plugin/skills/standup/SKILL.md
plugin/skills/timeline-report/SKILL.md
plugin/skills/version-bump/SKILL.md
plugin/skills/weekly-digests/SKILL.md
plugin/skills/wowerpoint/SKILL.md
plugin/skills/ccs-align/SKILL.md
plugin/skills/what-the/SKILL.md

Metadata

Files
0
Version
7d03554
Hash
20a89ffc
Indexed
2026-09-23 05:11

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-18 11:23
浙ICP备14020137号-1