/chatgpt-importer:render-typst-pdffrom chatgpt-importer
Render a ChatGPT conversation as a styled PDF using a Typst template, with colour-coded user and assistant turns, a metadata cover block, artifact callouts and a sources page. Use when the user wants a PDF, a document to read or share, or to be identified by their own name.
Ships in chatgpt-importer. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/render_pdf.py" <normalized.json> \
-o <out.pdf> --user-label "User" --timestamps
Requires pandoc (>= 3.0, for the typst writer) and typst on PATH. The script
checks both and tells you what is missing.
This is the renderer where identity is a real choice. --user-label sets what
appears on every human turn and in the cover block.
User — neutral, right for anything machine-facing or shared onward.Ask which one the user wants if they have not said, rather than defaulting
to their name. A transcript that leaves this machine with a real name on it is
harder to walk back than one that does not. --assistant-label works the same
way and defaults to ChatGPT.
When two people shared one phone in voice mode, every human turn is "user". If the
normalized JSON has been split per speaker (each user turn carrying author_name,
and optionally palette: user, user2 or muted), both renderers print that
name instead of --user-label, and render_pdf.py colours each person
differently. The Markdown front matter then lists the names under
speaker_labels.user. One way to produce such a file: align the thread against a
diarized recording of the same conversation (AssemblyAI speaker labels; match the
two word streams, give each ChatGPT word the speaker of the recording word it
matched, split user turns where the speaker changes).
REDACTED badge if the conversation went through
redact-conversation.Layout lives in ${CLAUDE_PLUGIN_ROOT}/templates/transcript.typ. Edit colours
and fonts there. Pass --template <path> to use a different one, and
--paper us-letter for US paper.
Each turn's Markdown body is converted to Typst by pandoc, then wrapped in a
#turn(...) call. Turns are split by the script, not recovered afterwards with
a show-rule that parses heading text — so styling never depends on guessing
which speaker a heading belonged to.
All bodies go through pandoc in one call separated by a sentinel, because one invocation per turn costs roughly twenty times as much. The script asserts that the split count matches the turn count and aborts if it does not, rather than emitting a transcript with two people's words in one block.
Use --keep-typst <path> to inspect the generated Typst when a compile fails.
A ChatGPT asset pointer (file-service://file-...) is an internal reference,
not a path. It is deliberately not rendered as an image — doing so makes
Typst try to open it as a file and abort the whole document. Images appear as
artifact callouts naming the pointer. To embed them for real, the asset has to
be downloaded first and local_path set on the artifact record.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
12 skills in this plugin
/capture-via-apiCapture a ChatGPT conversation as raw JSON by calling the authenticated backend API from inside the browser tab. Use when importing from a chatgpt.com/c/ URL or a /share/ link. This is the primary, complete capture route./capture-via-domFallback capture of a ChatGPT conversation by scraping the rendered DOM with scrolling. Use only when capture-via-api fails. Lossy - no timestamps, branches, tool messages or artifact payloads./conversation-to-contextImport a ChatGPT conversation into the current repository as agent context. Use when the user wants to bring a ChatGPT thread into a project, pull a chat into context, or save a conversation for Claude to read later. Writes a Markdown transcript to context/ with the human labelled User./export-all-conversationsBatch-export ChatGPT conversations (a priority subset, or incremental updates; a whole large history is rate-limited, so use the official export for that) (every chat, archived chats and chats inside Projects, all workspaces the login sees) from a logged-in chatgpt.com tab, then build one Parquet table with a row per conversation and a date column, optionally pushed to a private Hugging Face dataset. Use on "export all my ChatGPT chats", "batch export", "mine my ChatGPT history", "make a dataset of my chats", or when the official export is slow or refused./extract-artifactsPull generated documents, canvas docs, code blocks, images and attachments out of an imported ChatGPT conversation and save them as real files. Use when a conversation produced a document, code, or images worth keeping separately./extract-sourcesCollect the sources a ChatGPT conversation cited into a de-duplicated list, as a sources section, footnotes, or a standalone bibliography. Use when the user wants the references, links or citations from a chat.chatgpt-importer@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin chatgpt-importer