← ClaudeAtlas

session-exportlisted

Export a Claude Code session as Markdown, HTML, or JSON. Use when the user wants to save, archive, share, or re-read a transcript. For a continuation summary, use /handoff instead.
AndrewDongminYoo/cc-agents-kit · ★ 2 · Data & Documents · score 71
Install: claude install-skill AndrewDongminYoo/cc-agents-kit
# Session Export Export a local Claude Code JSONL transcript as Markdown, standalone HTML, or structured JSON. Markdown is the default format. Tool details and thinking are excluded unless the user requests them. ## Usage `session-to-md` ships in the plugin's `bin/` and is on PATH when the plugin is enabled. Use the same command for all formats. ```bash session-to-md "${CLAUDE_SESSION_ID}" session-to-md "${CLAUDE_SESSION_ID}" --format html session-to-md "${CLAUDE_SESSION_ID}" --format json ``` Claude substitutes the current session ID into this skill before execution. This does not depend on a shell environment variable. If the substitution is unavailable, use `--list` and select an exact ID. Do not describe the newest transcript as the active session without that evidence. ## Formats | Format | Output | | --- | --- | | `md` | Conversation sections, a turn index, and expandable tool blocks. | | `html` | A standalone report with a turn index, export counts, tool expansion controls, and a responsive layout. | | `json` | Filtered records, metadata, and export diagnostics under `schema_version: 1`. | HTML displays message text literally, including Markdown syntax. It escapes transcript markup and does not load external resources. The light report theme uses a single reading column, compact navigation, and distinct tool cards. The font stack uses Inter when available locally, with system fonts as a fallback. Summary counts describe included records, not all activity in the