Export session as markdown

From ed3dai/ed3d-plugins · View interactive version

Export session as markdown is an AI agent skill from the GitHub repository ed3dai/ed3d-plugins. Use when the user wants to export a Claude Code session transcript as a readable Markdown file — converts the current session (or a specified transcript path) into GitHub-flavored Markdown with metadata header, collapsible tool results, and thinking blocks

How to use this skill

Skill file

Export Session as Markdown

Export a Claude Code session transcript to a human-readable GitHub-flavored Markdown file.

Prerequisites

Invocation

The user may invoke this as:

Steps

1. Determine the transcript path

If an argument was provided, use it as the transcript path. Otherwise, use the current session's transcript path from the SessionStart hook injection.

If you cannot determine the transcript path, tell the user:

I don't know the current session's transcript path.
Either provide a path: /export-session-as-markdown /path/to/session.jsonl
Or ensure the ed3d-session-reflection SessionStart hook is active.

2. Determine the output path

If a second argument was provided, use it as the output path. Otherwise, default to the current working directory with a descriptive filename:

session-transcript-YYYY-MM-DD.md

If a file with that name already exists, append a counter: session-transcript-YYYY-MM-DD-2.md.

3. Export the transcript

Run the script with the --markdown flag:

python3 "${CLAUDE_PLUGIN_ROOT}/scripts/reduce-transcript.py" "<transcript_path>" "<output_path>" --markdown

4. Report the result

Tell the user where the file was written and its size. Example:

Exported session transcript to ./session-transcript-2026-03-20.md (346 KB)
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.