From sessionlog
Batch exports all Claude Code sessions for the current project from ~/.claude/projects/ to JSON and TXT files. Defaults output to docs/sessionlogs/. Reports counts and sizes.
How this skill is triggered — by the user, by Claude, or both
Slash command
/sessionlog:export-allThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Export all Claude Code sessions for the current project to standard LLM conversation JSON and human-readable TXT transcripts.
Export all Claude Code sessions for the current project to standard LLM conversation JSON and human-readable TXT transcripts.
project_dir="$HOME/.claude/projects/$(pwd | sed 's|/|-|g')"
echo "Project session directory: $project_dir"
session_count=$(ls "$project_dir"/*.jsonl 2>/dev/null | wc -l | tr -d ' ')
echo "Sessions found: $session_count"
Use the output directory specified in the user's prompt. If none was specified, default to docs/sessionlogs/ relative to the current working directory.
Iterate over every JSONL file in the project session directory and run the export script for each:
output_dir="<output-dir>"
for session_file in "$project_dir"/*.jsonl; do
session_id=$(basename "$session_file" .jsonl)
"${CLAUDE_PLUGIN_ROOT}/scripts/export-session.sh" "$session_file" "$output_dir" "$session_id"
done
Each invocation produces two files per session:
<output-dir>/claude-<session-id>.json<output-dir>/claude-<session-id>.txtShow the user:
npx claudepluginhub florianbuetow/claude-code --plugin sessionlogExports Claude Code session data to JSON for backup or analysis using claude-view tools. Activates on 'export sessions', 'download data' requests.
Exports Claude Code session JSONL files to human-readable markdown with role markers and timestamps. Use to save, review, share transcripts, or feed dev-diary pipelines.
Locates, lists, filters, and extracts structured data from Claude Code native session logs. Supports both single and multiple session analysis.