Export the current Claude Code session as a solarized-light themed HTML page
From show-me-the-sessionnpx claudepluginhub christophe1997/agent-extentions --plugin show-me-the-sessionThis skill is limited to using the following tools:
Export the current Claude Code session transcript to a single self-contained HTML file with a solarized-light theme, then open it in the browser.
| Flag | Description |
|---|---|
pick | Choose from recent sessions instead of auto-detecting |
-o, --output PATH | Custom output path (file or directory for split mode) |
--split | Split large sessions into multiple HTML files with index |
--page-size N | Messages per page when splitting (default: 50) |
Parse arguments: Extract any flags from the user's input:
-o or --output followed by a path--split flag--page-size followed by a numberpick keywordDetermine the session file:
If pick was specified:
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/list-sessions.py" --project "${SMTS_PROJECT_DIR:-$(pwd)}" --limit 5
date \t first-message \t session-id(short) \t /full/path[date] session-id(short): first messageā¦SESSION_FILE (full path)SESSION_ID=$(basename "$SESSION_FILE" .jsonl)Otherwise (default: auto-detect current session):
# Convert cwd to the project directory slug
# e.g., /Users/user/code/myproject -> -Users-user-code-myproject
PROJECT_DIR=$(echo "${SMTS_PROJECT_DIR:-$(pwd)}" | sed 's|^/||; s|/|-|g' | sed 's|^|-|')
# Try the session ID captured at session start (set by SessionStart hook)
SESSION_ID="${SMTS_SESSION_ID:-}"
if [ -n "$SESSION_ID" ]; then
SESSION_FILE=$(ls ~/.claude/projects/${PROJECT_DIR}/${SESSION_ID}.jsonl 2>/dev/null | head -1)
fi
# Fallback: most recently modified non-agent JSONL in the project directory
if [ -z "${SESSION_FILE:-}" ]; then
SESSION_FILE=$(ls -t ~/.claude/projects/${PROJECT_DIR}/*.jsonl 2>/dev/null | grep -v '/agent-' | head -1)
fi
Determine output path:
If -o was specified:
Otherwise:
docs/sessions/ (create if needed)<full-session-id>.html (or <full-session-id>-pages/ for split mode)12c5520e-5003-423a-b494-15eb204b4572)docs/sessions/<full-session-id>.html? [Y/n]"Check message count and suggest split for large sessions:
Count messages in the session:
wc -l "$SESSION_FILE"
If message count > 100 and --split was NOT specified:
Generate the HTML:
For single HTML:
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/generate-html.py" "$SESSION_FILE" -o "$OUTPUT_PATH"
For split HTML:
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/generate-html.py" "$SESSION_FILE" -o "$OUTPUT_DIR" --split --page-size "$PAGE_SIZE"
Open in browser:
open "$OUTPUT_PATH" # or open "$OUTPUT_DIR/index.html" for split mode
Report to user: Tell them the output path and that it's been opened in their browser.