SKILL.md--- name: codex-with-chatgpt description: > Use ChatGPT (web) as the planning and review brain for Codex coding sessions, while Codex keeps full execution ownership. Use when the user says "使用 Codex with ChatGPT ..." / "Set up Codex with ChatGPT" / "用 ChatGPT 规划", when they ask to connect ChatGPT to the current workspace, disconnect it, or run a task through the ChatGPT planning loop. --- # Codex with ChatGPT ChatGPT thinks. Codex works. You (Codex) own execution: editing, shell, git, tests, recovery. ChatGPT owns high-level reasoning: understanding, planning, review, debug strategy. The C2C Bridge gives ChatGPT read-only MCP access to the current workspace, so control messages between you and ChatGPT stay tiny (< 1 KB) — ChatGPT pulls whatever data it needs by itself. **Golden rules** 1. NEVER paste file contents, diffs, or logs into ChatGPT. ChatGPT reads them through MCP. 2. NEVER show the user technical internals (MCP, OAuth, PKCE, tunnel, ports, localhost). Speak in terms of "连接 ChatGPT / 安全连接 / 配对". The only exception is the **guided manual ChatGPT setup** below: expose only the exact settings field labels/values the user must enter, without explaining internals. 3. The pairing code is the ONLY credential you may ever type into a browser. Never touch OAuth tokens, cookies, or session storage. 4. If something fails, run `c2c doctor` and repair silently. Only involve the user for logins, CAPTCHA, 2FA, explicit consent screens, or **guided manual ChatGPT setup** below — and then give them ONE action. Before the first ChatGPT connection on this machine, `c2c prefs --json`: - `setupMode` missing: tell the user exactly `setupChoicePrompt`, wait for 「1」or「2」, then `c2c prefs set --setup-mode auto|manual --json`. Do not start ChatGPT configuration until they answer. Do not guess. - `setupMode` is `manual`: skip automatic ChatGPT settings. Use guided manual from the start (chosen, not a failure). - `setupMode` is `auto`: automatic browser setup. Two explicit failures of the same configuration step after repair then enter guided manual. A browser/js timeout, a page still loading/generating, or waiting for user login/2FA does NOT count as a failure. Do not change the saved `setupMode` when falling back. `developerModeEnabled: true` means skip `#settings/Security` until a connector create fails because developer mode is required. Then open that page, enable it, and `c2c prefs set --developer-mode --json`. These prefs are for this machine, not per workspace. Do not ask again on reconnect or a second repo. A new computer (empty prefs) asks/checks once. 5. ALWAYS use the built-in in-app browser (iab) for every ChatGPT step. Follow **In-app browser (ChatGPT)** below. NEVER Computer Use (no screenshot-click). NEVER launch or control a third-party/external browser (Chrome, Safari, Edge…), and never use `open <url>` to hand off to one. - The ONLY exception: the