/sessionlog:exportfrom sessionlog
Exports the current Claude Code session to a standard LLM conversation JSON file and a human-readable TXT transcript. Useful for saving, sharing, or analyzing session history.
Ships in sessionlog. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Export the current Claude Code session to standard LLM conversation JSON and a human-readable TXT transcript.
Run the following to find the session file:
project_dir="$HOME/.claude/projects/$(pwd | sed 's|/|-|g')"
current_session=$(ls -t "$project_dir"/*.jsonl 2>/dev/null | head -1)
session_id=$(basename "$current_session" .jsonl)
echo "Session: $session_id"
echo "Source: $current_session"
Use the output directory specified in the user's prompt. If none was specified, default to docs/sessionlogs/ relative to the current working directory.
"${CLAUDE_PLUGIN_ROOT}/scripts/export-session.sh" "$current_session" "<output-dir>" "$session_id"
The script produces two files:
<output-dir>/claude-<session-id>.json — standard LLM conversation JSON (array of {role, content} objects)<output-dir>/claude-<session-id>.txt — human-readable transcript with [user]/[assistant] prefixesShow the user:
JSON — Array of message objects following the standard LLM conversation format:
[
{"role": "user", "content": "Hello"},
{"role": "assistant", "content": [{"type": "text", "text": "Hi there!"}]}
]
TXT — Human-readable transcript:
Session: <session-id>
[user] Hello
[assistant] Hi there!
What SKILL.md sets; muted values are Claude Code's defaults
7 skills in this plugin
/compactsessionlog:compactThis skill should be used when the user asks to "compact session", "compress session", "save session context", "sessionlog compact", "compact this session", "prepare for clear", or wants to create a compressed summary of the current session that can be continued after clearing context.
/continuesessionlog:continueThis skill should be used when the user asks to "continue session", "resume session", "pick up where I left off", "sessionlog continue", "continue from compact", "load session context", or wants to restore context from a previously compacted session file.
/export-allsessionlog:export-allThis skill should be used when the user asks to "export all sessions", "export all session logs", "batch export sessions", "sessionlog export-all", "convert all sessions", or wants to export every Claude Code session for the current project as standard LLM conversation JSON and TXT files.
/infosessionlog:infoThis skill should be used when the user asks to "show session info", "find session log", "where are session logs", "current session id", "session path", "sessionlog info", or wants to identify the current Claude Code session and its log file location on disk.
/recapsessionlog:recapThis skill should be used when the user asks to "recap", "brief me", "remind me", "what did we work on", "what happened last time", "catch me up on recent sessions", "sessionlog recap", "session recap", "recent session summary", "tldr sessions", or wants a quick summary of what was worked on in recent sessions for this project.
/tokenusagesessionlog:tokenusageThis skill should be used when the user asks to "show token usage", "how many tokens", "token count", "token stats", "input output tokens", "API usage", "usage summary", "sessionlog tokenusage", "tokenusage", or wants to extract and report input/output token counts from Claude Code session logs.
npx claudepluginhub florianbuetow/claude-code --plugin sessionlogOther plugins' skills for the same job