Mem Search skill for Claude

This skill should be used when the user asks to "search memory", "what do you remember about X", "check claude-mem", "mem search", "find past observations", "what did we do last session", or wants prior-session context about a project, decision, file, or task. Searches the user's Claude-Mem (cmem.ai) memory.

Mem Search SKILL.md

The full skill file from thedotmack/claude-mem (Apache-2.0).

Claude-Mem Search

Search the user's persistent Claude-Mem memory on cmem.ai. Memory contains timestamped observations synthesized from past sessions across all their agents (Claude Code, the Claude app, Codex, and others).

How to search

Run the bundled CLI (no dependencies, uses the plugin's configured API key):

node "${CLAUDE_PLUGIN_ROOT}/scripts/cmem-hook.mjs" search "your query" --limit 20

Progressive search method

Follow claude-mem's Index → Timeline → Transcript discipline — cheap passes first, expensive detail only for confirmed hits:

  1. Index pass — run 1–3 broad keyword searches (project names, file names, error strings, feature names). Skim titles/summaries only.
  2. Narrow pass — re-search with the most specific terms found in step 1 (IDs, exact phrases) and a smaller --limit.
  3. Answer — synthesize from the observations returned. Quote timestamps when the user asks "when".

Do not dump raw search output at the user; extract the relevant observations and answer in plain language.

Diagnostics

If searches return nothing or error:

node "${CLAUDE_PLUGIN_ROOT}/scripts/cmem-hook.mjs" status

Report the status output plainly: a MISSING api key means the plugin needs the user's cmem.ai key added to its configuration; a 404 on /api/hooks/context just means the newer Pro endpoint isn't deployed — search still works via /api/mcp.

Notes

  • Some filters (date ranges, type) may be silently ignored by the cloud API until MCP parity ships — prefer keyword narrowing over filter flags.
  • Never write secrets into search queries; queries are sent to cmem.ai.

How to install Mem Search

Claude Code

Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):

npx degit thedotmack/claude-mem/cowork/skills/mem-search#main ~/.claude/skills/mem-search

Codex

npx degit thedotmack/claude-mem/cowork/skills/mem-search#main ~/.codex/skills/mem-search

Claude.ai and Claude Desktop

Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.

Frequently asked questions

+What does the Mem Search skill do?

This skill should be used when the user asks to "search memory", "what do you remember about X", "check claude-mem", "mem search", "find past observations", "what did we do last session", or wants prior-session context about a project, decision, file, or task. Searches the user's Claude-Mem (cmem.ai) memory.

+How do I install Mem Search in Claude Code?

Copy the skill folder into ~/.claude/skills/mem-search, for example with "npx degit thedotmack/claude-mem/cowork/skills/mem-search#main ~/.claude/skills/mem-search". Claude Code loads it automatically and uses it when a task matches.

+Does Mem Search work with ChatGPT or Codex?

Yes. Mem Search uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/mem-search. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.

+Is Mem Search free?

Mem Search is published on GitHub by thedotmack under the Apache-2.0 license, which allows free use.

Related ai agents & skills skills

  1. Grill Me

    A relentless interview to sharpen a plan or design.

    mattpocock/skills★ 327k
  2. Skill Creator

    Official

    Create new skills, modify and improve existing skills, and measure skill performance.

    anthropics/skills★ 197k
  3. Caveman

    Terse caveman voice: answer first, fluff gone, every technical fact kept.

    JuliusBrussee/caveman★ 121k
  4. Owner Goals

    Map what the owner wants from the prompts they typed themselves (prompts an agent wrote are left out), then sort it into focus areas, asks…

    thedotmack/claude-mem★ 118k
  5. Domain Name Brainstormer

    Generates creative domain name ideas for your project and checks availability across multiple TLDs (.com, .io, .dev, .ai, etc.).

    ComposioHQ/awesome-claude-skills★ 80k
  6. Mcp Builder

    Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through…

    ComposioHQ/awesome-claude-skills★ 80k
  7. Get Available Resources

    Detects host inventory and effective CPU, memory, disk, scheduler, container, and accelerator limits when a user asks for resource-aware…

    K-Dense-AI/scientific-agent-skills★ 58k
  8. Pi Agent

    Builds with and operates Pi, the minimal terminal coding harness.

    K-Dense-AI/scientific-agent-skills★ 58k
  9. Embedding Strategies

    Select and optimize embedding models for semantic search and RAG applications.

    wshobson/agents★ 43k

See all ai agents & skills skills →

More skills from thedotmack

  1. Mem Setup

    This skill should be used when the user asks to "set up claude-mem", "pair claude-mem", "connect cmem", "add my cmem key", "set up cloud…

    thedotmack/claude-mem★ 118k
  2. Mode Creator

    Interactively create, install, activate, and verify custom claude-mem modes, including domain-specific observation types, concept tags,…

    thedotmack/claude-mem★ 118k
  3. Oh My Issues

    Cluster a GitHub issue backlog by root cause into a small set of plan-master issues, redirect children with a standardized comment, and…

    thedotmack/claude-mem★ 118k

All skills by thedotmack →

Give your whole team an AI agent with skills

Cody runs managed AI agents your team can message in Slack, Teams, WhatsApp and the web, with 50+ business integrations, scheduled tasks and memory. No terminal required.