Claude Skill MartBrowse skillsQuick linesLearn by videoTerminal guideWhat is a Skill?
← Back to list

mem-search (Past-Session Memory Lookup)

Retrieves work from previous sessions in claude-mem through a layered, token-efficient lookup flow.

UtilitiesIntermediate★ 99,717⑂ 8,743AI score 7/10Last updated: Oct 11, 2026

What it does

Triggers on questions like "did we already solve this?" or "how did we do X last time?" and queries the claude-mem store using a strict layered workflow:

  1. search(query) — an ID-bearing index only
  2. timeline(anchor=ID) — surrounding context
  3. get_observations(ids=[...]) — full detail for the filtered IDs only
  4. get_tool_uses(ids=[...]) — original tool_input/tool_response (last resort; thousands of tokens each)

The governing rule — narrow by ID first, reach for raw bodies only when summaries fall short — is what keeps context spend low. It also consumes the live ID index written to zz-claude-mem-inject.md and instructs stamping platformSource as cursor or grok-bot on writes.

Who it's for

  • Anyone already running claude-mem and persisting session history
  • Devs switching between hosts (Cursor, grok-bot) on the same project
  • People who keep blowing their context window on long sessions

Examples

  • "How did we fix that deploy error before?" → search for candidate IDs, expand only 2–3 observations
  • "Pull up the context on last week's auth refactor" → timeline reconstructs the surrounding work
  • Summaries insufficient → fetch raw tool responses for one specific call ID

Prerequisite: the claude-mem MCP server must be connected. If not, run npx claude-mem install --ide <host> first.

· · · Install guide · · ·

Try it now, no install

Paste this into Claude to use the skill without installing anything.

Read the instructions in this file and follow them to help me:
https://raw.githubusercontent.com/thedotmack/claude-mem/HEAD/claude-mem-grok-bot/skills/mem-search/SKILL.md

What I want: (describe your task here)

If Claude can't open the link, open it yourself and paste the contents instead.

↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.

Install in the Claude app (no terminal)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
↓ Download ZIP
Install in Claude Code

Let Claude do it — paste this into Claude Code

Install the skill I found on Claude Skill Mart.
Copy the claude-mem-grok-bot/skills/mem-search folder from the GitHub repo thedotmack/claude-mem into my ~/.claude/skills/thedotmack-mem-search-3/.
When it's done, tell me in one line what this skill can do.

Install with a command instead

git clone https://github.com/thedotmack/claude-mem.git && mkdir -p ~/.claude/skills && cp -r claude-mem/claude-mem-grok-bot/skills/mem-search ~/.claude/skills/

⚠ This is a third-party skill. Check the source repository before installing.

  1. Open a terminal.
  2. Clone the repository: git clone https://github.com/thedotmack/claude-mem.git
  3. Create the skills folder: mkdir -p ~/.claude/skills
  4. Copy the skill: cp -r claude-mem/claude-mem-grok-bot/skills/mem-search ~/.claude/skills/
  5. If the claude-mem MCP isn't installed yet, run npx claude-mem install --ide claude-code (substitute your host).
  6. Restart Claude Code, then ask "how did we solve this last time?" to confirm the skill fires.
  7. To disable the automatic ID-index injection, set CLAUDE_MEM_GROK_BOT_INJECT_ENABLED=false.
View source on GitHub ↗License: Apache-2.0