/chatgpt-importer:render-markdownfrom chatgpt-importer
Render a normalized ChatGPT conversation to Markdown with user and assistant turns marked, YAML front matter, a stats block and a sources section. Use after capturing and normalizing a conversation.
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_conversation.py" <normalized.json> \
--user-label "User" --assistant-label "ChatGPT" -o <out.md>
| Flag | Use it for |
|---|---|
--user-label | User for agent context, a real name for something a person reads |
--sources section|footnotes|none | section lists sources at the end (default); footnotes also marks the turns that cited them |
--timestamps | Per-turn time — useful for a long thread, noise for a short one |
--no-front-matter | Pasting into an existing document |
--no-summary | Drop the stats table |
--heading-level N | Turn heading depth, default 2 |
--format text | Strip front matter, keep the body |
---
title: ... date_held: 2026-08-24
total_turns: 34 user_messages: 17 assistant_messages: 17
model: gpt-5-6 url: ... captured_at: ...
---
# <title>
<stats table>
## User
...
## ChatGPT (gpt-5-6)
...
## Sources
1. [Title](url) — first cited in turn 4
ChatGPT writes its own ## headings inside answers. Emitted as-is under a ##
turn heading they become siblings of it, and the document outline stops showing
where turns begin — any heading-based splitter then mis-slices the transcript.
The renderer demotes in-message headings below the turn level automatically,
skipping fenced code. If you change --heading-level, demotion follows it; you
do not need to compensate.
Turn headings should equal total_turns:
grep -c '^## ' <out.md>
If that number exceeds the turn count, demotion did not run — the transcript is still readable but is no longer safe to split on headings.
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