Search indexed conversation history to find past conversations, locate when topics were discussed, or identify which project conversations occurred in. Use when user asks questions like "when did we discuss X?", "find conversations about Y", "in which project did we talk about Z?", or "show me conversations mentioning W". Works across all projects or within current project.
This skill is limited to using the following tools:
scripts/search.shSearch through indexed Claude Code conversation history using SQLite full-text search.
Extract:
User mentions "all projects", "across projects", "everywhere", or "in which project" → use all_projects scope
The search script is located in this skill's scripts/ directory. Execute it:
cd <skill-base-directory>/scripts && ./search.sh --json --scope <scope> --project <current-working-directory> "<search-query>"
Scope options:
current_project - Search only in current project (default)all_projects - Search across all projectsNote: The <skill-base-directory> is automatically provided by Claude Code as the base directory for this skill.
The script returns JSON with matches:
{
"query": "...",
"scope": "all_projects",
"total_matches": 5,
"matches": [
{
"uuid": "abc-123",
"project_path": "/Users/.../project",
"created_at": "2025-12-19T...",
"message_count": 42,
"summary": "Brief summary...",
"relevance_score": 1.23
}
]
}
Present results based on user query:
For "when did we first...": Show only the earliest match (last in results array)
For "find all..." or "show me...": List all matches
Format:
Found N conversation(s) about [query]:
1. Conversation ID: abc-123
Project: /path/to/project (only if all_projects)
Date: Dec 19, 2025 at 10:30 AM
Messages: 42
Summary: Brief description...
[If many results] ...and X more conversations
Important formatting notes:
Remind users they can use /continue <conversation-id> to resume any conversation.
User: "when did we first discuss authentication?" → Search for "authentication" in current project, show earliest match
User: "in which project did we talk about delivery tracking?"
→ Search "delivery tracking" with all_projects scope, group by project
User: "find all conversations mentioning bug fixes" → Search "bug fixes" in current project, show all matches