/chatgpt-importer:start-repo-from-threadfrom chatgpt-importer
Start a new repository from one or more ChatGPT conversations. Asks whether the repo should be public or private, creates it, imports each thread into context/ as agent context, and writes a README and CLAUDE.md that point at them. Use when the user says "start a repo from this thread", "new repo from these ChatGPT chats", "spin this conversation out into a project", or gives chatgpt.com links together with a request for a new repo.
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.
A ChatGPT thread is often where a project starts: the idea, the scoping, the first decisions. This skill turns one or more threads into a new repository whose first commit is that background, so the next agent opens the repo and already knows why it exists.
It composes conversation-to-context (the import) with repo creation. It does
not replace it: for an existing repo, use conversation-to-context directly.
chatgpt.com/c/… URLs, /share/ links, or
conversations from an export archive.Ask public or private. Always ask; never default silently. Use one
question with both options and a short note on the trade-off: a public repo
publishes the transcripts, so personal threads suit private, or public after
redact-conversation. Ask the name in the same question round if not given.
Follow the user's own naming and location conventions (their CLAUDE.md or
standing instructions) over anything generic.
Capture each thread — see import-chatgpt-conversation — into a scratch
directory outside any repo (e.g. $(mktemp -d)), so nothing lands in a git
tree before the repo exists. Captured bodies go to disk, never through a
tool result. With several threads, capture them one after another in the
same browser tab.
Propose the name if none was given: derive it from the threads' titles and first user turn, the subject at maximum specificity. Confirm it in step 1's question if possible, so the user is asked once.
Create the repo with the chosen visibility, then clone it to the user's usual location:
gh repo create <owner>/<Name> --<public|private> \
--description "<one line from the threads>" --clone
If gh is unavailable, use whatever GitHub tool the session has, then
git clone.
Import into context/ — follow conversation-to-context for each
thread, with $ROOT set to the new clone. Filenames stay
context/chatgpt-<YYYY-MM-DD>-<slug>.md, one per thread.
redact-conversation on each thread before it is
written, and do not commit until the user has seen what is going public.conversation-to-context's "tracked context/ is about to be committed"
confirmation is already answered by this skill's purpose — do not re-ask.extract-artifacts into
context/artifacts/<slug>/.Write the orientation files, short and factual:
README.md: title, one-paragraph purpose drawn from the threads, a
"Background" list linking each context/ file with its date and title.CLAUDE.md: what the repo is for, that context/ holds the originating
ChatGPT threads (the human is labelled User), and which thread holds the
latest decisions if they differ. Note open questions the threads left
unresolved — that is usually the first job.Commit and push: one commit, e.g. Start from ChatGPT thread(s): <titles>.
Stage the specific paths (context/, README.md, CLAUDE.md), not -A.
Report the repo URL, its visibility, and the list of imported threads
with turn counts. Flag any thread whose normalize step wrote .unhandled
content, and run the leftover-markup grep from import-chatgpt-conversation
on each transcript before committing: rich UI answers (product cards,
citation pills) are new, and markup that leaks through does not warn.
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