Skip to content
Skills Library
AI & agents · Research

session-search

/session-search

This skill should be used when searching Claude Code session transcripts with semantic understanding. Triggers on queries like "find sessions about X", "when did I work on Y", "search previous conversations". Supports natural language queries with synonym matching.

Licence
MIT
Last repository change
25.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
3
Scripts
1
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 25.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 1 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: scripts/search.py

What it does and when to use it

This skill should be used when searching Claude Code session transcripts with semantic understanding. Triggers on queries like "find sessions about X", "when did I work on Y", "search previous conversations". Supports natural language queries with synonym matching.

Triggers from the description

find sessions about Xwhen did I work on Ysearch previous conversations
Original author description

This skill should be used when searching Claude Code session transcripts with semantic understanding. Triggers on queries like "find sessions about X", "when did I work on Y", "search previous conversations". Supports natural language queries with synonym matching.

How it works

  1. Workflow
  2. Session Storage
  3. Customization
Original SKILL.md headings · 57 lines, 271 words
SKILL.md preview
---
name: session-search
description: This skill should be used when searching Claude Code session transcripts with semantic understanding. Triggers on queries like "find sessions about X", "when did I work on Y", "search previous conversations". Supports natural language queries with synonym matching.
---

# Session Search

Search Claude Code session transcripts by combining keyword pre-filtering with semantic evaluation. Finds previous sessions about specific topics, debugging conversations, research tasks, or any past work.

## Workflow

### Step 1: Run the search script

Execute `scripts/search.py` with the user's query:

```bash
python3 scripts/search.py "<query>" [max_results] [max_age_days]
```

- `query` (required): Natural language search query
- `max_results` (optional, default 10): Maximum results to return
- `max_age_days` (optional, default 90): How far back to search

The script performs keyword pre-filtering across all sessions, then extracts meaningful excerpts from top candidates. Output contains a `SESSIONS_DATA` JSON block.

### Step 2: Evaluate results semantically

After receiving the script output, evaluate each session's relevance to the query. Consider:

- **Synonym matching**: "bug" matches "error", "issue", "problem", "fix"
- **Related concepts**: "debugging" matches sessions with test failures or error messages
- **Tool patterns**: "refactoring" matches Edit-heavy sessions
- **Domain context**: "obsidian" matches vault-related work

Assign a relevance score (0-10) to each session based on excerpt content and query intent.

### Step 3: Present results

Display the top results (up to `max_results`) sorted by relevance, formatted as:

```
### [Relevance: N/10] Project — Date
Summary of what the session was about (1-2 sentences based on excerpts)
`claude --resume <session-id>`
```

If no relevant results are found, report that and suggest alternative queries.

## Session Storage

Sessions are stored as JSONL files in `~/.claude/projects/`. Each file contains events with user/assistant messages and tool calls. The search script handles file discovery and text extraction automatically.

## Customization

To search older sessions or get more results:

```
/session-search "query" 20 180
```
(20 results, 180 days lookback)
Files in this package (3)
  • SKILL.md 2 KB
  • .claude-plugin/plugin.json 1 KB
  • scripts/search.py 8 KB

Versions

RepositoryScoreLicence
This page · glebis/claude-skills100MIT
Ar9av/obsidian-wiki100MIT
eric-tramel/moraine100Apache-2.0
eric-tramel/moraine100Apache-2.0
techwolf-ai/ai-first-toolkit100MIT
reatlat/fullstory-claude-plugin100MIT
hoangsonww/Claude-Code-Agent-Monitor90MIT

Identical content appears in 1 other GitHub folders. We show one copy with the highest score.

Database snapshot: 13.11.2026 · package version dac94b578e02 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 1 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100sessionhub
    Search and read past AI coding sessions (Claude Code + Codex) collected by sessionhub across every machine you work on. Use when recalling what was done before — "how did I fix that last time", "what did I work on in project X last week", "find the session where we discussed Y",…
  • 100lore-search
    Search past Claude Code and OpenAI Codex CLI conversations using lore MCP. MUST invoke this skill before calling mcp__lore__search — it guides you to clarify the user's intent and formulate effective queries. Trigger when the user asks to find past work, recall previous…
  • 100find-past-conversation
    Searches past Claude Code session transcripts under ~/.claude/projects/ to recover a previous conversation by recalled phrase, error string, or topic. Use when the user says 'search your history for', 'find the conversation about', 'look through your past sessions', 'did I ever…
  • 90transcript-search
    Search local Cursor, Claude Code, and Codex session transcripts. Use when looking up past agent sessions, choosing grep vs ranked search, building the search index, dumping a session by id, or scoping by cwd and provider.
  • 100agent-sessions
    Search, list, and resume AI agent sessions across Claude Code, Codex CLI, Gemini CLI, opencode, Hermes Agent, and Cline CLI. Use when the user asks to find a past conversation, search session history, resume a previous session, list recent agent activity, or check what was…
  • 100session-history
    Search and summarize Claude Code, Codex, and opencode session history. Use when the user wants to look at past conversations, find sessions about a topic, or reconstruct a debugging narrative.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.