/chatgpt-importer:extract-sourcesfrom chatgpt-importer
Collect 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.
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.
When ChatGPT searches the web, each answer carries citation metadata. The normalizer keeps it per turn; this pulls it together.
Already handled — --sources controls the presentation:
section (default): numbered list at the end, each noting the turn where it
was first cited.footnotes: markers on the citing turns plus footnote definitions at the end.none: drop them.python3 -c "
import json,sys
sys.path.insert(0,'${CLAUDE_PLUGIN_ROOT}/scripts')
from render_conversation import collect_sources
d=json.load(open(sys.argv[1]))
for s in collect_sources(d):
print(f\"{s['n']}. {s['title']} — {s['url']} (turn {s['first_turn']})\")
" <normalized.json>
Sources are de-duplicated on URL and numbered in first-reference order, so the numbering is stable across all three presentations.
A count of zero means one of two different things, and they are worth telling apart before reporting "no sources":
capture-via-dom never
produces them, and its output always has stats.capture_is_lossy: true.Check that flag before concluding the conversation was uncited.
Citations come from two places in the raw metadata — citations and
search_result_groups — and a search-heavy answer usually populates both with
overlapping entries. That is why de-duplication happens on URL rather than on
position.
Sources carry titles as ChatGPT recorded them at the time. Do not fetch the URLs to "verify" or improve the titles unless the user asks; the point is what the conversation cited, not what the page says now.
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./import-chatgpt-conversationImport a ChatGPT conversation into local files. Use when the user gives a chatgpt.com URL or shared link, asks to save/export/archive a ChatGPT chat, wants a transcript with user and assistant turns marked, or wants a ChatGPT thread as Markdown, JSON or PDF. Routes to the right capture and render path.chatgpt-importer@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin chatgpt-importer