yussufs/export-md
24 stars · Last commit 2026-07-30
A /export-md slash command for Claude Code — save any session as clean, readable markdown.
README preview
# export-md A `/export-md` slash command for [Claude Code](https://claude.com/claude-code) that saves the current session as a clean, readable markdown file. ## Why this exists I kept wanting to copy paste stuff from claude code — a debugging trail, some text, but Claude Code (in the CLI) is so annoying when working with text. My only option was selecting text in the terminal and copy-pasting it somewhere, which mangles the wrapping, loses the code blocks, or adds strange characters. Claude Code ships a built-in `/export`, but it hands you the raw conversation in a txt. I wanted something I could paste straight into notes, a PR description, or a docs page: proper headings per turn, code fences intact, tool noise collapsed down to one line, and my own choice of filename and folder. So this reads the session transcript Claude Code already writes to disk and renders it as markdown instead so you can copy paste easily.