Command Palette

Search for a command to run...

Назад к скиллам
скилл № 28344

collect-accounts

use this for the account side: ranked fastest-first pulls of ChatGPT and Claude conversations, projects, and memories, with one sign-in at most and the…

БесплатноБез исполняемых скриптов
brokepот brokep★ 48 звёзд на GitHub

Установить collect-accounts в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

collect-accounts

Part of the Import Bot agent preset.

Collect accounts

The account side of the dual approach. ChatGPT keeps nothing on disk, and claude.ai holds chat projects, account memory, and conversations that Cowork's local files do not. For each service there is a ladder of methods, fastest and most complete first. Take the first rung that works and fall to the next only when it fails. Never read conversations one at a time in the browser. The browser is for one sign-in and for the three or four pages that have no request behind them.

Everything lands under /workspace/migration/raw/accounts/<service>/ in the shapes parse-import reads. Never block the plan on an export email, fold it in when it lands.

Already pulled?

Check /workspace/migration/raw/accounts/<service>/ first. Files under 24 hours old mean that pull is done. A signed-in browser session from earlier needs no hand-off. Only what is missing gets asked for.

The one sign-in

When a rung needs the browser, open the service's sign-in page and first tell the user why, in chat, in this shape:

"Next, sign in to in my browser. It is the only way to get your <memories, custom instructions, projects, and conversations>, because nothing on your computer holds them. Finish the sign-in, including any code they text you, then hand the window back."

Then call request_box_help once per service with one short instruction, like "Sign in to ChatGPT, then hand the box back." Your turn ends there and resumes on its own when they hand the box back, so nothing else runs meanwhile. Ask while the user is still at the screen approving cards, not after they have walked away. When you resume, take a Screenshot to confirm the signed-in page (name or avatar visible) and add one line to /workspace/migration/state.md under "Accounts": ", , signed in , read only." The Import state fact picks it up at the end. Being signed in is never permission to change anything there. Every number and note that comes from a service is labeled where it lands: live <service> <date> for pulls from the signed-in session or a token, export <file> <date> for official exports.

Hand-off back without a session: one retry offer ("The sign-in did not finish. Without it I skip your memories and conversations. Want to try again?"), then "waiting on" in the receipt. Never ask for a password in chat. Credentials offered anyway are used once in the browser and never written anywhere.

Running a page script

Once signed in, the bulk pulls are one script each, run in the page with browser_cdp: method Runtime.evaluate, params {"expression": <the script text>, "awaitPromise": false}. Always pass awaitPromise: false: without it the call waits for the whole pull, times out, and the timeout stops the page. The script keeps running in the page. Poll every few seconds with Runtime.evaluate and {"expression": "JSON.stringify(window.__gb)"} for phase, pulled, done. When done is true, fetch the bundle the same way with JSON.stringify(window.__gbBundle). A result over 20k characters is saved to a file under /workspace/browser-cdp/ and the tool returns its outputFile. That file holds the whole CDP reply, so unwrap it into the accounts folder:

python3 -c 'import json,sys; open(sys.argv[2],"w").write(json.load(open(sys.argv[1]))["result"]["value"])' "<outputFile>" "/workspace/migration/raw/accounts/<service>/<service>-pull-<date>.json"

If that fails, the script also downloaded the bundle: find / -name '<service>-pull-*.json' -mmin -30 2>/dev/null | head -1, then move it to the same folder. parse-import splits the bundle into one file per conversation.

ChatGPT

Conversations, in order:

  1. Codex sign-in on the user's computer, no browser. The inventory printed chatgpt login yes when ~/.codex/auth.json holds a ChatGPT login. Run the pull script there (macOS and Linux below, Windows the same way collect-local runs its script). The token stays on their computer, only conversation JSON comes back. Then CopyToBox the printed archive (same machineId) to /workspace/migration/accounts-chatgpt.tgz and extract it into /workspace/migration/raw/accounts/chatgpt/. Say to the user only: "Pulling your ChatGPT conversations through your Codex sign-in, no need to log in again." Status no codex login or not a chatgpt account or list rejected: go to rung 2.
  2. Page script after one sign-in. Run the chatgpt.com page script below in the signed-in page, as "Running a page script" describes. Three hundred conversations take a few minutes.
  3. Official export. Settings, Data controls, Export data, Confirm. Complete, arrives by email, usually within the hour. Always kick it off after rung 1 or 2 too, as the durable copy. "OpenAI emails you a download link. Paste it here when it lands, or connect Gmail to me and I fetch it myself and disconnect after." On yes, SearchPl
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл collect-accounts?

use this for the account side: ranked fastest-first pulls of ChatGPT and Claude conversations, projects, and memories, with one sign-in at most and the official exports as the durable copy

Как установить скилл collect-accounts?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл collect-accounts запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить collect-accounts с