conversation-logger
Skill16 starsChanged 13 months agoMITView on GitHub
This skill should be used when users need to save, search, or retrieve Claude Code conversation transcripts. Use this skill when users ask to save the current conversation, search through past conversations for context, or retrieve information from previous sessions. Also use when appropriate to proactively save important conversations at natural breakpoints (e.g., after completing a major feature, fixing a critical bug, or when the user indicates they're done with a session).
1 other project uses a version of this.
Adopted by
Most recently taken up by
- jackzhaojin/ai-builder-kittheir own version, first seen Nov 1, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- jackzhaojin/ai-builder-kit★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. About 0 are common, 12 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈12
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Use this skill when:
- Distinctive: line 37
Check the current session directory for transcript files
- Distinctive: line 52
When a user says "save this conversation" or "log our work", first locate the transcript path, then execute the save script.
- Distinctive: line 93
When a user asks "when did we work on the authentication bug?" or "find conversations about database migrations", use the search script to …
- Distinctive: line 100
Use search to find relevant conversations
- Very specific: line 102
Read the full markdown file: ~/.claude/conversation-logs/conversation_YYYY-MM-DD_HH-MM-SS.md
- Distinctive: line 123
Consider saving conversations proactively when:
- Distinctive: line 129
Important: Always ask first before saving proactively.
- Very specific: line 146
Check session directory: ls -la ~/.claude/sessions/
- Very specific: line 147
Look for environment variables: env | grep CLAUDE
- Distinctive: line 148
Ask user for the transcript location
- Distinctive: line 151
Verify python3 is installed and accessible
- Distinctive: line 152
Check that the JSONL file is valid (not corrupted)
- Very specific: line 156
Verify conversations exist: ls ~/.claude/conversation-logs/
- Distinctive: line 157
Check that search term is spelled correctly
- Very specific: line 165
search-conversations.sh: - Search utility for finding past conversations
- Distinctive: line 168
All scripts are executable and can be run directly from the skill directory.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Conversation Logger
Overview
This skill enables systematic saving, searching, and retrieving of Claude Code conversation transcripts. It converts raw JSONL transcripts into readable markdown format and provides search capabilities across all saved conversations.
When to Use This Skill
Use this skill when:
- User explicitly asks to save the current conversation
- User wants to search through past conversations for context or information
- User asks about previous sessions or work done in earlier conversations
- Proactively saving important conversations at natural breakpoints (completed features, major bug fixes, end of work session)
- User needs to find when a specific topic, command, or issue was discussed
Core Capabilities
1. Save Current Conversation
To save the current conversation, use the save-conversation.sh script with the transcript path and optional session ID.
Script location: scripts/save-conversation.sh
Usage:
bash scripts/save-conversation.sh <transcript-path> [session-id]Important: The transcript path is typically available as an environment variable or in the session context. Common locations:
$CLAUDE_TRANSCRIPT_PATH(if set)~/.claude/sessions/<session-id>/transcript.jsonl- Check the current session directory for transcript files
What it does:
- Copies the JSONL transcript to
~/.claude/conversation-logs/ - Converts the transcript to readable markdown format
- Creates session metadata file
- Creates symlinks to the latest conversation for easy access
Output files created:
conversation_YYYY-MM-DD_HH-MM-SS.jsonl- Raw transcriptconversation_YYYY-MM-DD_HH-MM-SS.md- Human-readable markdownsession_YYYY-MM-DD_HH-MM-SS.json- Session metadataconversation_latest.jsonlandconversation_latest.md- Symlinks to most recent
Example workflow: When a user says "save this conversation" or "log our work", first locate the transcript path, then execute the save script.
2. Search Through Saved Conversations
To search through saved conversations for specific terms or topics, use the search-conversations.sh script.
Script location: scripts/search-conversations.sh
Usage:
# Search for a term
bash scripts/search-conversations.sh "search-term"
# Search with more context lines
bash scripts/search-conversations.sh "search-term" --context 5
# List all saved conversations
bash scripts/search-conversations.sh --list
# Show recent conversations
bash scripts/search-conversations.sh --recent 5Common search scenarios:
Finding when a topic was discussed:
bash scripts/search-conversations.sh "docker configuration"Finding command usage:
bash scripts/search-conversations.sh "git commit" --context 10Browsing recent work:
bash scripts/search-conversations.sh --recent 3Example workflow: When a user asks "when did we work on the authentication bug?" or "find conversations about database migrations", use the search script to locate relevant conversations, then read the full conversation file if needed.
3. Retrieve Full Conversations
To read a complete saved conversation, access the markdown files directly in ~/.claude/conversation-logs/.
Typical workflow:
- Use search to find relevant conversations
- Note the timestamp from search results
- Read the full markdown file:
~/.claude/conversation-logs/conversation_YYYY-MM-DD_HH-MM-SS.md
Quick access to latest:
cat ~/.claude/conversation-logs/conversation_latest.mdConversation Format
Saved conversations are stored in two formats:
JSONL (Raw): Complete conversation data including all API messages, tool calls, and metadata. Used by the parser and for programmatic access.
Markdown (Readable): Human-friendly format with:
- Clear USER/ASSISTANT sections
- Tool usage summary (shows tool name and key parameters)
- Filtered system messages and noise
- Timestamps and session IDs
Proactive Usage Guidelines
Consider saving conversations proactively when:
- A complex feature or bug fix is completed
- User indicates they're wrapping up (phrases like "that's all for now", "thanks, I'm done")
- A significant amount of work has been accomplished in the session
- User switches context significantly (new project, different task domain)
Important: Always ask first before saving proactively. Example: "This looks like a good stopping point. Would you like me to save this conversation for future reference?"
Requirements
System dependencies:
python3- Required for parsing JSONL to markdownbash- For running the scriptsjq- Optional, for working with JSON metadata
Installation check:
command -v python3 && echo "✓ Python installed" || echo "✗ Python required"Troubleshooting
Cannot find transcript path:
- Check session directory:
ls -la ~/.claude/sessions/ - Look for environment variables:
env | grep CLAUDE - Ask user for the transcript location
Parser fails:
- Verify python3 is installed and accessible
- Check that the JSONL file is valid (not corrupted)
- Fallback: Save only the JSONL file, skip markdown conversion
Search finds nothing:
- Verify conversations exist:
ls ~/.claude/conversation-logs/ - Check that search term is spelled correctly
- Try broader search terms or use
--listto see available conversations
Resources
scripts/
- save-conversation.sh - Main script to save and parse conversations
- search-conversations.sh - Search utility for finding past conversations
- parse-conversation.py - Python parser that converts JSONL to markdown
All scripts are executable and can be run directly from the skill directory.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

