本文へ移動
cccskills
無料GitHub で公開日本語紹介

cookie-copy

同じMac上のChromeプロフィール間で、許可されたGoogleまたはChatGPT/OpenAIのログインCookieを選んで移し、バックアップやログイン状態の確認も行います。

原文原文の説明を見る

Copies selected-site cookies between local profiles of the same macOS Chrome. Use for cookie copy, 复制 Cookie, 搬登录态 or reusing an existing ChatGPT session in an isolated profile. Supports Google and ChatGPT/OpenAI site selections, destination backups and restore, and expected-account verification for ChatGPT.

daymade/claude-code-skillsスター 1,503(GitHub 1,503 + cccskills 0)
連携ツールOpenAI

実行スコア 未検証

インストール方法を見る

こんなときに便利

  • ChatGPTのログイン状態を別プロフィールで使いたいとき
  • GoogleのCookieをローカル移行したいとき
  • 移行後のChatGPTアカウントを確認したいとき

日本語での紹介

できること

同じMac、同じユーザー、同じChrome環境にあるプロフィール間で、GoogleまたはChatGPT/OpenAIのCookieを選択して移します。Cookieの復号やKeychainの秘密情報の読み取りは行わず、関係のないサイトのデータは維持します。移行先の完全なバックアップを作成してから書き込み、必要に応じて正確なバックアップから復元できます。ChatGPTでは、移行後にブラウザーを開き、指定したメールアドレスでログインできているかも確認します。

こんなときに便利

ログイン済みのChatGPTセッションを隔離したChromeプロフィールで使いたいときや、Googleのログイン状態を別のローカルプロフィールへ移したいときに使えます。移行先のアカウントを確かめたい場合にも向いています。初期化済みでChromeが停止している移行先を使い、元のプロフィールのログイン状態は利用者の許可を前提にします。

使い方の例

  • 「このMacのChromeで、許可済みのChatGPTセッションを指定プロフィールに移して、指定したメールアドレスで確認して」
  • 「GoogleのCookieを初期化済みのChromeプロフィールへコピーして」
  • 「表示されたバックアップを使って、この移行先を復元して」

注意点

macOS、Python 3.10以降、Node.js 22以降、Google Chromeが必要です。移行先のChromeは停止している必要があり、別の端末やブラウザーへの変換には使えません。Cookieのコピーはログイン状態の確認であり、利用先アプリの動作や利用枠を保証しません。

この紹介文は、公開されている SKILL.md をもとに AI(OpenAI Codex)が作成しました。正確な仕様は下の原文を確認してください。

含まれるファイル(5)

  • SKILL.md5.0 KB
  • scripts/copy-cookies.py9.1 KB
  • scripts/verify-chatgpt-profile.mjs7.8 KB
  • tests/test_cookie_migration.py6.7 KB
  • tests/test_profile_verification.mjs2.2 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Cookie Copy

Copy only an authorized source login state into an explicitly selected destination. Keep backups and browser profiles outside the Skill and Git.

Select the supported job

  • Use the same macOS machine, OS user and Google Chrome installation. Do not use this workflow for cross-machine or cross-browser encrypted-cookie conversion.
  • Select --site chatgpt for chatgpt.com and openai.com, or --site google for google.com. The CLI defaults to Google. Do not substitute another site.
  • Copy encrypted rows without decrypting them or reading Keychain secrets. Keep source Chrome running if needed; require the destination Chrome to be stopped.
  • Preserve the existing Google merge behavior. Replace the ChatGPT/OpenAI set together, including every session-token chunk, so stale chunks do not survive.
  • Keep quota queries and reset decisions with tibo-reset-codex; login verification here does not call a quota endpoint or prove a downstream business operation.

Prepare and resume

  1. Fix the expected account, source database and task-owned isolated destination. Use Python 3.10+, Node.js 22+ and installed Google Chrome. Resolve missing tools through their existing installation owner; do not install Playwright or another browser for this workflow. Respect host restrictions on external browsers.
  2. For ChatGPT, verify an existing destination first. If the expected identity is already authenticated, return it to the caller without copying again.
  3. Initialize only a nonexistent destination with the command below. It refuses an existing root. If initialization was interrupted, inspect that exact root before resuming; do not overwrite it or silently choose a new account/directory.
  4. Locate a different source profile with --source-cookie-db when the default daily Chrome Default/Cookies does not contain the authorized session. Do not retrieve credentials from conversation history. If no valid session exists, return to normal login with the caller's existing authorization boundary.

Run these commands from this Skill directory, one at a time; inspect each exit:

: "${MIGRATION_PROFILE:?set the isolated Chrome directory}"
: "${EXPECTED_EMAIL:?set the expected account email}"
node scripts/verify-chatgpt-profile.mjs --profile-dir "$MIGRATION_PROFILE" --initialize
python3 scripts/copy-cookies.py --site chatgpt --destination "$MIGRATION_PROFILE" --yes
node scripts/verify-chatgpt-profile.mjs --profile-dir "$MIGRATION_PROFILE" --expected-email "$EXPECTED_EMAIL"

Run initialization only when required. Use --yes only for an already authorized write. For Google, use the copy command with --site google and an initialized, stopped destination; verify the expected signed-in account through an authenticated Google account view. An account-chooser memory is not a live session.

Verify and recover

Treat copy exit 0 as a database transfer result. For ChatGPT, require the reopened browser's email to match the expected account and status=verified with login_verified=true. The verifier uses the current system HTTPS proxy or explicit --proxy; --headless is optional. Treat a challenge as unconfirmed, not proof of logout. Return 2 for unconfirmed and 1 for a tool error. initialized proves only directory preparation. Report a downstream application's result separately.

Use the exact backup printed by the copier to restore a stopped destination:

: "${COOKIE_BACKUP:?set the exact backup path printed by the copier}"
python3 scripts/copy-cookies.py --destination "$MIGRATION_PROFILE" --restore-backup "$COOKIE_BACKUP" --yes

Check that this target still belongs to the task and contains no later human login or new work before restoring. Restore backs up the current target first. Verify the expected prior website state afterward; an existing backup is not login proof.

Keep the source read-only. Use one committed SQLite snapshot, including WAL; release the source read transaction before requesting human approval. Require exact cookie schema equality. Back up the complete destination with mode 0600, then write one transaction; roll back failed writes. Preserve unrelated sites. Stop on an active target or unresolved browser lock, and never terminate another session's browser. The verifier closes only its own Chrome child. Yield on actual user takeover, security prompts or host denial. Do not retry inputs or change channels around them.

Do not migrate history, bookmarks, extensions or password stores. Do not log cookie values, session tokens or backup contents. Keep the exact missing prerequisite or unconfirmed identity visible when handing the target back to its caller.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

agent-web-search-setup

無料概要あり

Claude CodeやCodexのWeb検索が空振りする原因を調べ、使えない標準ツールを無効にして、実際に動く検索手段へ切り替えるスキルです。

  • 検索結果が空になる原因を調べたいとき
  • 中継APIで検索が動くか確かめたいとき
  • 壊れた検索手段を代替したいとき
daymade/claude-code-skills1,5032026年10月30日 更新

app-evolver

無料概要あり

既存アプリの仕様やコード、過去の作業、競合の根拠を照らし合わせ、利用者にとって効果のある改善を選んで実装・検証します。

  • 競合の仕組みをアプリに取り入れたいとき
  • 過去の作業から改善点を見つけたいとき
  • 改善を実装して利用者目線で確かめたいとき
daymade/claude-code-skills1,5032026年10月30日 更新

ashare-news-fetcher

無料概要あり

中国A株に関する公開ニュースや政策公告、株吧の個別株センチメントを複数の情報源から集め、銘柄コードやキーワードで絞ってJSONまたはMarkdownに整理するスキルです。

  • 中国A株の銘柄ニュースを集めたいとき
  • 政策や規制の公告を確認したいとき
  • 個別株の掲示板センチメントを見たいとき
daymade/claude-code-skills1,5032026年10月30日 更新

asr-transcribe-to-text

無料概要あり

音声・動画を話者ラベルとタイムスタンプ付きのテキストに起こし、必要に応じて文字起こし前の変換、分割音声の結合、圧縮や速度調整も行います。

  • 録音を話者別・時刻付きで文字起こししたいとき
  • 動画やポッドキャストの音声をテキスト化したいとき
  • 分割録音を結合してASRに備えたいとき
daymade/claude-code-skills1,5032026年10月30日 更新

audio-router

無料概要あり

音声関連の依頼内容に応じて、StepFunの文字起こし・音声合成や、既存の会議記録から議事録を作成・統合・レビューする専門スキルを選びます。

  • StepFunで音声を文字起こししたいとき
  • StepFunでナレーションを作りたいとき
  • 文字起こしから議事録を作りたいとき
daymade/claude-code-skills1,5032026年10月30日 更新

auto-repo-setup

無料概要あり

リポジトリが動かない原因の調査から環境の修復、Git同期やフックの点検、チーム向けの引き継ぎまで、根拠を確認しながら整えます。

  • 新しい環境でリポジトリを動かしたいとき
  • フックの重複出力を調べたいとき
  • チーム向け手順を整えたいとき
daymade/claude-code-skills1,5032026年10月30日 更新

daymade のスキルをすべて見る

このスキルの問題を報告する