Claude Skills
CollectionsCompareWorkflowsNominate
Sign inSign up
© 2026 Curated Agent Skills·Learn more about Agent Skills
Back to repository

search

verified

This skill should be used when the user asks to "find past conversation", "search session history", "where did we discuss X", "find when I worked on Y", or "search old sessions by keyword". Searches Claude Code session files in ~/.claude/projects/ by topic, keyword, or date.

View on GitHub

Marketplace

cc-plugin

jongwony/cc-plugin

Plugin

session

Repository

jongwony/cc-plugin

session/skills/search/SKILL.md

Last Verified

February 1, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/jongwony/cc-plugin/blob/main/session/skills/search/SKILL.md -a claude-code --skill search

Installation paths:

Claude
.claude/skills/search/
Powered by add-skill CLI

Instructions

# Session Search

Search Claude Code session history to find past conversations by topic, keyword, or date.

## Scope

- Target: `~/.claude/projects/` (all project sessions)
- Format: JSONL session files containing conversation history

## Workflow

### 1. Gather Search Terms

Identify keywords from user query. Common patterns:
- Topic keywords (e.g., "kafka", "migration")
- Technical terms (e.g., "MSK", "Confluent", "EKS")
- Date ranges if specified

### 2. Execute Search

Use Explore subagent for efficient multi-file search:

```
Search ~/.claude/projects/**/*.jsonl for:
- Primary keywords in message content
- Korean and English variants
- Related technical terms
```

### 3. Output Format

Present results as table with columns: Date | Session ID | Project | Topic Summary

Reference: `references/examples.md` for format details.

### 4. Follow-up Options

Offer: view details, resume session, or export content.

## Search Strategy

### Keyword Expansion

Expand user terms to Korean + English variants + related technical terms.

Reference: `references/examples.md` for expansion patterns.

### Date Extraction

Extract from: file modification time → message timestamps → filename patterns.

## Scripts

### `scripts/search-sessions.sh`

Quick grep-based search across session files. Usage:

```bash
./scripts/search-sessions.sh "keyword1" "keyword2"
```

## Requirements

- `jq` (JSON processor) - for structured JSONL parsing

## Limitations

- Large session files may have truncated preview
- Base64-encoded content not fully searchable
- Date accuracy depends on available metadata

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
1570 chars