/chatgpt-importer:redact-conversationfrom chatgpt-importer
Redact identifying detail from an imported ChatGPT conversation before sharing or committing it. Runs a deterministic pattern pass over the user's prompts, then a judgement pass for names, places and employers. Use when a transcript needs sanitizing.
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.
Two passes. The script does what regex can decide; you do what it cannot. Running only the script and calling the transcript redacted is the failure mode to avoid — it catches email addresses and misses "my manager Sarah at Acme".
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/redact_conversation.py" \
<normalized.json> -o <redacted.json>
Catches, with validation rather than shape-matching alone: API keys and tokens, email addresses, IBANs, payment cards (Luhn-checked), Israeli ID numbers (check-digit verified), phone numbers, IPv4 addresses, and URLs carrying auth tokens.
Placeholders are consistent — the same address becomes [EMAIL_1] everywhere,
so a transcript that refers back to something still reads coherently.
Defaults to user turns only, on the theory that what leaks is what the human
typed. Pass --scope all when the assistant quoted the user back, which it
often does.
--kinds EMAIL,PHONE narrows the pass. --report <path> writes a log of what
was replaced. Avoid --keep-values unless you have a reason — it writes the
original secrets to disk.
Adjacent unpunctuated numbers are ambiguous — +972 54-123-4567 4111 1111 1111 1111 has no boundary a parser can see, and neither could a person. Both values
are still redacted, but the split between them may land in the wrong place, so
the placeholder kinds can be mislabelled. Prose with normal punctuation is
handled correctly.
The script cannot decide these. Read the redacted JSON and edit turns[].text
directly:
Use the same [KIND_N] placeholder style so both passes read alike, and keep
one placeholder per real-world entity. After editing, set
redaction.judgement_pass_applied to true and add a judgement_notes line
saying what categories you removed.
Renderers pick the redaction record up automatically — Markdown front matter
gets redacted: true and the PDF cover gets a REDACTED badge. Do not
hand-strip that; a sanitized transcript that does not announce itself as
sanitized invites someone to treat it as complete.
Grep the rendered output for what should be gone:
grep -nEi '@|[0-9]{3}[- ][0-9]{3}|sk-|ghp_' <out.md> | head
Say plainly which pass you ran. If you ran only pass 1, say the transcript is pattern-redacted but not reviewed for names — the user may be about to send it somewhere on the strength of your answer.
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