agentleFS
sirkitreesirkitree/conversation-logger/SKILL.md

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

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    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
  1. Distinctive:

    Use this skill when:

    line 14
  2. Distinctive:

    Check the current session directory for transcript files

    line 37
  3. Distinctive:

    When a user says "save this conversation" or "log our work", first locate the transcript path, then execute the save script.

    line 52
  4. Distinctive:

    When a user asks "when did we work on the authentication bug?" or "find conversations about database migrations", use the search script to …

    line 93
  5. Distinctive:

    Use search to find relevant conversations

    line 100
  6. Very specific:

    Read the full markdown file: ~/.claude/conversation-logs/conversation_YYYY-MM-DD_HH-MM-SS.md

    line 102
  7. Distinctive:

    Consider saving conversations proactively when:

    line 123
  8. Distinctive:

    Important: Always ask first before saving proactively.

    line 129
  9. Very specific:

    Check session directory: ls -la ~/.claude/sessions/

    line 146
  10. Very specific:

    Look for environment variables: env | grep CLAUDE

    line 147
  11. Distinctive:

    Ask user for the transcript location

    line 148
  12. Distinctive:

    Verify python3 is installed and accessible

    line 151
  13. Distinctive:

    Check that the JSONL file is valid (not corrupted)

    line 152
  14. Very specific:

    Verify conversations exist: ls ~/.claude/conversation-logs/

    line 156
  15. Distinctive:

    Check that search term is spelled correctly

    line 157
  16. Very specific:

    search-conversations.sh: - Search utility for finding past conversations

    line 165
  17. Distinctive:

    All scripts are executable and can be run directly from the skill directory.

    line 168

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 transcript
  • conversation_YYYY-MM-DD_HH-MM-SS.md - Human-readable markdown
  • session_YYYY-MM-DD_HH-MM-SS.json - Session metadata
  • conversation_latest.jsonl and conversation_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 5

Common 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 10

Browsing recent work:

bash scripts/search-conversations.sh --recent 3

Example 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:

  1. Use search to find relevant conversations
  2. Note the timestamp from search results
  3. 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.md

Conversation 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 markdown
  • bash - For running the scripts
  • jq - 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 --list to 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.