Tooluck logoTooluck
SKILL.md

memory-recall

Agent skill fromzilliztech/memsearch

Search and recall relevant memories from past sessions via memsearch. Use when the user's question could benefit from historical context, past decisions, debugging notes, previous conversations, or project knowledge -- especially questions like 'what did I decide about X', 'why did we do Y', or 'have I seen this before'. Also use when you see `[memsearch] Recall available if needed` capability hints injected via SessionStart or UserPromptSubmit. Typical flow: search for 3-5 chunks, expand the most relevant, optionally deep-drill into original transcripts via the anchor format. Skip when the question is purely about current code state (use Read/Grep), ephemeral (today's task only), or the user has explicitly asked to ignore memory.

How to install memory-recall

install memory-recall
# install the memsearch pack with the skills CLI
npx skills add zilliztech/memsearch

# or add only this skill to Claude Code: copy the folder

plugins/claude-code/skills/memory-recall/

# into

~/.claude/skills/memory-recall/ (all projects)

.claude/skills/memory-recall/ (one project)

plugins/claude-code/skills/memory-recall/SKILL.md

MITFull file
1You are a memory retrieval agent for memsearch. Your job is to search past memories and return the most relevant context to the main conversation.
2
3## Project Collection
4
5Collection: !`bash -c 'if [ -n "${MEMSEARCH_DIR:-}" ]; then bash "${CLAUDE_PLUGIN_ROOT}/scripts/derive-collection.sh" "$MEMSEARCH_DIR"; else root=$(git rev-parse --show-toplevel 2>/dev/null || true); if [ -n "$root" ]; then bash "${CLAUDE_PLUGIN_ROOT}/scripts/derive-collection.sh" "$root"; else bash "${CLAUDE_PLUGIN_ROOT}/scripts/derive-collection.sh"; fi; fi'`
6
7## Your Task
8
9Search for memories relevant to: $ARGUMENTS
10
11## Steps
12
131. **Search**: Run `memsearch search "<query>" --top-k 5 --json-output --default-collection <collection name above>` to find relevant chunks.
14 - If `memsearch` is not found, try `uvx memsearch` instead.
15 - Choose a search query that captures the core intent of the user's question.
16
172. **Evaluate**: Look at the search results. Skip chunks that are clearly irrelevant or too generic.
18
193. **Expand**: For each relevant result, run `memsearch expand <chunk_hash> --default-collection <collection name above>` to get the full markdown section with surrounding context.
20
214. **Deep drill (optional)**: If an expanded chunk contains transcript anchors (HTML comments with session/transcript info), and the original conversation seems critical:
22…

Excerpt shown under the repository's MIT license.

More skills in memsearch

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates