From search-conversations
Search previous Claude Code conversations for a keyword or topic and return matching context. Use when the user asks "where did we talk about X", "find the chat about Y", "search past conversations", or wants to recall context from a prior session.
How this skill is triggered — by the user, by Claude, or both
Slash command
/search-conversations:search-conversationsThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Finds mentions of a keyword or phrase across every Claude Code session stored in `~/.claude/projects/*/*.jsonl` and returns matching snippets with surrounding context.
Finds mentions of a keyword or phrase across every Claude Code session stored in ~/.claude/projects/*/*.jsonl and returns matching snippets with surrounding context.
Pass the query as a single argument. Quote multi-word phrases.
python3 ~/.claude/skills/search-conversations/search.py "nagarhole"
python3 ~/.claude/skills/search-conversations/search.py "coorg trip" -c 2 -n 10
Flags:
-c N — include N turns of context before/after each hit (default 1).-n N — cap number of hits (default 20).--chars N — truncate each snippet line to N chars (default 400).--since YYYY-MM-DD — only include matches on or after this date.--until YYYY-MM-DD — only include matches on or before this date.Use date flags when the user references timing ("last week", "yesterday", "in April"). Resolve the relative date to YYYY-MM-DD before passing it in.
Output is grouped per hit: timestamp, session id (first 8 chars), project dir, a context window of [user]/[assistant] turns, and the full jsonl path.
/resume is a built-in Claude Code slash command — it can't be invoked via Skill or Bash. Only the user can type it. So the flow is confirm → print command → user runs it.
After presenting matches, pick the most likely target (usually the newest hit, or the one whose snippet best matches the query). If there are multiple strong candidates, list them briefly and ask which.
Confirm with the user in one line: "Want to resume this one?"
On yes, print the full session UUID with the exact command to run:
Run
/resume <full-session-uuid>to jump back in.
Guidelines:
sessionId field or the jsonl filename./resume yourself via Skill or Bash — it will fail.Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub lohomi15/claude-search-conversations --plugin search-conversations