Chuyển đến nội dung
Skillpedia
Agent7.6k · #13119

codex-with-chatgpt

Skill này làm gì

Skill này kết nối ChatGPT trên web làm đối tác lập kế hoạch và rà soát cho các phiên code Codex. Codex vẫn thực hiện chỉnh sửa và chạy lệnh. Skill dành cho lập trình viên dùng cả hai công cụ cùng lúc.

Khi nào nên dùng

  • ✓Khi bạn muốn ChatGPT lập kế hoạch cho một tác vụ code trước khi Codex thay đổi gì.
  • ✓Khi bạn muốn ChatGPT rà soát một thay đổi mà Codex đã thực hiện.
  • ✓Khi bạn muốn kết nối hoặc ngắt kết nối ChatGPT khỏi dự án hiện tại.

Liên kết skill

https://github.com/XiaoDuoYa/codex-with-chatgpt/blob/main/skill/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/XiaoDuoYa/codex-with-chatgpt/blob/main/skill/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Bạn có thể kết nối ChatGPT với dự án này để nó lập kế hoạch cho tính năng tiếp theo trong khi bạn viết code không?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent thiết lập một liên kết bảo mật để ChatGPT đọc được dự án. Sau đó ChatGPT đưa ra lời khuyên lập kế hoạch và rà soát, còn Codex thực hiện công việc.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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 user explicitly says the Cloudflare login must use their own browser session — that single Cloudflare login step may go through their browser; everything else stays in the built-in browser.
    • If the user asks to run ChatGPT in their own browser, refuse politely and explain: "Codex 需要持续调用 ChatGPT 和配置连接,这会频繁操作页面,可能影响 你浏览器的正常使用。ChatGPT 只能跑在内置浏览器里。" Only if the user replies with an explicit "我愿意承担影响" may you proceed in their browser; otherwise keep ChatGPT in the built-in browser, every time they ask.
  6. Conversation reuse depends on c2c session --json → conversation.mode (see Conversation management). Do not invent a second mode.
    • long-chat (legacy session file, or the user opted out): ONE ChatGPT conversation per workspace. Never silently start a new chat.
    • project (new workspaces, or an existing workspace that opted in): ONE ChatGPT Project (collection) per workspace. Same Codex conversation reuses the ChatGPT chat URL saved in THIS thread. A new Codex conversation opens a new chat from the Project collection page — never goto https://chatgpt.com/ to create it, and never reuse another Codex conversation's chat URL just because session.url exists. Each workspace also has exactly ONE ChatGPT connector. Do not create a second connector for the same workspace. Other workspaces may have their own connectors — never edit those.
  7. After first-time setup, never ask the user to approve writing C2C's local settings directory. Run c2c sandbox-allow --json (idempotent). If it fails with EPERM / Operation not permitted, request elevated permissions and retry ONCE. After { "alreadyAllowed": true } or { "added": true }, stay silent.
  8. ChatGPT pages: only the URLs in In-app browser (ChatGPT). Never start from chatgpt.com and click through menus.
  9. **Doc
Câu hỏi thường gặp

ChatGPT có chỉnh sửa file của tôi không?

Không. ChatGPT chỉ đọc dự án qua kết nối, còn Codex thực hiện mọi việc chỉnh sửa.

Tôi cần tự làm gì?

Bạn có thể cần đăng nhập, xác nhận mã ghép đôi hoặc hoàn tất một lựa chọn thiết lập trong ChatGPT.

Tôi có thể ngắt kết nối sau không?

Có. Skill có thể ngắt kết nối ChatGPT khỏi workspace hiện tại.

Chi tiết

Mô tả gốc của tác giả

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.

repo: XiaoDuoYa/codex-with-chatgpt

Độ phổ biến

Sao GitHub
7.6k
Vị trí xếp hạng
#13119
Giấy phép
MIT
Cập nhật
1/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Skill tương tự