aviz85/claude-skills-library/search-history
Claude Code and agent skill by aviz85/claude-skills-library
- community
Checking that the SKILL.md file is still in the repository.
Search across all Claude Code conversation history (JSONL files) across all projects.
Install
npx vskill@latest install aviz85/claude-skills-library/search-historySKILL.md
Search Claude Code Conversation History
Search across all Claude Code sessions and projects to find past discussions, solutions, and context.
Usage
/search-history "aviz-museum" /search-history "supabase migration" --project Users-aviz-dreemz-backend /search-history "Riley Brown" --user-only --limit 5
Parameters
<search-term>-- keyword or phrase to search (required)--project <name>-- limit to specific project dir (e.g., -Users-aviz-sb)--user-only-- only search user messages (skip assistant/progress/system)--limit N-- max sessions to show (default: 10)
How It Works
Storage Structure
JSONL Message Types
Each line is a JSON object with a type field:
| Type | Description | Key Fields | |
|---|---|---|---|
user | User input | message.content (string or array), timestamp, cwd | |
assistant | Claude response | message.content (array of text/tool_use blocks), message.model | |
progress | Tool execution tracking | data.toolName, data.status | |
system | System events | Compaction, boundaries | |
file-history-snapshot | File backup metadata | snapshot.timestamp | |
queue-operation | Inbox operations | operation | |
last-prompt | Last user prompt text | prompt |
Content Extraction
- User messages:
message.contentis usually a string, sometimes array of content blocks. - Assistant messages:
message.contentis array -- extract.textfromtype: "text"blocks.
Implementation
Search using grep + Python for structured output:
For structured search with context, use Python to parse JSONL files, extract matching messages, and display with session metadata (project, timestamp, message type).
Tips
- Start broad -- grep is fast across all JSONL files
- Use
--user-onlyto find what YOU asked, not what Claude replied - Use
--projectto narrow to a specific workspace - Session UUIDs can be used with
claude --resume SESSION_ID - Tool results are in separate
.txtfiles undersession-dir/tool-results/ - Subagent conversations are in
session-dir/subagents/agent-*.jsonl
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/search-history/skill.md
Popularity
- Repository stars
- 45
- Repository forks
- 13
- 7-day trend score
- 19
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 10 Aug 2026, 3 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/aviz85/claude-skills-library/search-history)