Summary
通过 Codex 和 Codex Chrome Extension 复用用户现有的、已登录的 ChatGPT 网页会话,把任务委托给任意 ChatGPT 模型,并管理对话/项目/Memory/库等,还能把对话/Artifact/图片落盘到本地。适合用户说"问问 ChatGPT / 让 GPT Pro 帮我想想 / 用 @Google 云端硬盘列一下 / 让 ChatGPT 做个 deep research / 删了这个对话 / 归档?
wangnov/chatgpt-skill · Archived
通过 Codex 和 Codex Chrome Extension 复用用户现有的、已登录的 ChatGPT 网页会话,把任务委托给任意 ChatGPT 模型,并管理对话/项目/Memory/库等,还能把对话/Artifact/图片落盘到本地。适合用户说"问问 ChatGPT / 让 GPT Pro 帮我想想 / 用 @Google 云端硬盘列一下 / 让 ChatGPT 做个 deep research / 删了这个对话 / 归档?
npx skills add wangnov/chatgpt-skill --skill codex-chatgpt-skill
通过 Codex 和 Codex Chrome Extension 复用用户现有的、已登录的 ChatGPT 网页会话,把任务委托给任意 ChatGPT 模型,并管理对话/项目/Memory/库等,还能把对话/Artifact/图片落盘到本地。适合用户说"问问 ChatGPT / 让 GPT Pro 帮我想想 / 用 @Google 云端硬盘列一下 / 让 ChatGPT 做个 deep research / 删了这个对话 / 归档?
This repository is archived — consider an actively maintained alternative.
通过 Claude Code 和 claude-in-chrome MCP,复用用户现有的、已登录的 ChatGPT 网页会话,把任务委托…
4 installsMigrate supported instruction files, skills, agents, and MCP config into Codex project and glob…
1.9K installsCodex Pet generator on RunComfy. Build a Codex-compatible Codex Pet spritesheet.webp + pet.json…
378.4K installsRelated neighbors and high-traction skills in the same topics — useful to compare before installing.
Build, modify, debug, migrate, review, or verify TypeScript MCP servers and MCP Apps with mcp-u…
9.3K installsBuild, scaffold, refactor, and troubleshoot ChatGPT Apps SDK applications that combine an MCP s…
2.6K installsBuild ChatGPT apps with interactive widgets using mcp-use and OpenAI Apps SDK. Use when creatin…
221 installsGuide developers through creating and updating ChatGPT apps. Covers the full lifecycle: brainst…
4.3K installsConnect a ChatGPT or Codex subscription via OAuth device-code login. Use when the user wants to…
2.5K installsGenerate new raster images and looping GIF/WebP animations with the user's ChatGPT subscription…
397 installsOther skills from wangnov/chatgpt-skill.
npx skills add wangnov/chatgpt-skill
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
main
Files included with this skill beyond the listing page.
SKILL.md
11,774 B
SUMMARY.md
663 B
让 Codex 像一个会用浏览器的人一样,复用用户已登录的 ChatGPT 网页,把任务交给指定的 ChatGPT 模型(Instant / Thinking / Pro 等),等结果回来。
用户说类似下面的话:
| Host | 浏览器接入 | 禁止 |
|---|---|---|
| Codex | Codex Chrome Extension,经 chrome:control-chrome 技能和 browser-client 运行时操作用户 Chrome |
web.run、独立 Playwright profile、Puppeteer、Computer Use 操作 Chrome、读取 cookie / localStorage / storage_state |
如果 Codex Chrome Extension 无法连接,按 chrome:control-chrome 的安装/修复指引停下来让用户处理,不要降级到别的浏览器自动化方案。
第一次操作前:
browser-client。browser.user.openTabs() 查看用户现有 tab。browser.user.claimTab(tab) 复用。browser.tabs.new() 新建 tab,再 tab.goto("https://chatgpt.com/")。browser.tabs.finalize({ keep })。等待用户继续操作、登录、授权、CAPTCHA 或长任务时,把 tab 作为 handoff 保留。具体运行时模板见 [references/codex-chrome-runtime.md](references/codex-chrome-runtime.md)。
只 4 条原则,不写固定坐标,不凭空猜选择器。每一步都先用 domSnapshot()、截图、或受限 evaluate() 看见再动。
记 conversation URL 时:普通对话 /c/<uuid>,项目内对话 /g/g-p-<uuid>/c/<uuid>(项目名命名后还可能带 -<slug>)。完整 6 种 URL 形态见 [references/manage-actions.md](references/manage-actions.md) 第 7 节。
"是否在项目里"的可靠视觉信号:composer placeholder 是 "<项目名>中的新聊天" 才算真在项目里;如果是 "有问题,尽管问" 那就是普通对话上下文,知识库不会自动可见。
+ / 添加文件等 菜单通常包含:添加照片和文件 / 近期文件 / 创建图片 / 思考一下 / 深度研究 / 网页搜索 / 更多 / 项目。具体文案会随账户、语言和 UI 漂移,点击前先看当前 snapshot+ 菜单里的 更多 子菜单,或在 composer 里输入 @ 后选择候选。当前实测 @ 候选可直接出现 深度研究 以及 Canva / GitHub / Linear / OpenAI Platform 等 app@app 或当前可见菜单项试 → 看到 app chip / 检索卡片 / source 引用就成功@深度研究 候选激活。选中后可靠信号是 composer placeholder 变成 获取详细报告,出现 深度研究 chip / 应用 按钮 / 推荐、报告 等 DR 专属控件;不要把 + 菜单当成唯一入口Codex Chrome Extension 支持浏览器 file chooser 流程。ChatGPT 实测优先使用可见菜单路径:添加文件等 → 添加照片和文件,先等待 filechooser 事件,再用绝对路径 setFiles(...)。详见 [references/codex-chrome-runtime.md](references/codex-chrome-runtime.md)。
不要直接点 ChatGPT 的底层 input[type="file"],实测可能不触发 file chooser 事件。若 setFiles(...) 报 Not allowed / fileChooser.setFiles failed,去 Codex 扩展详情页开启 "Allow access to file URLs"(中文界面:允许访问文件网址)。不要改用 cookie、签名 URL、或系统级拖拽旁路。
/bin/ls -lat ~/Downloads/ | head -7 或文件名 pattern 找最新文件,再按用户要求移动/落盘记下三件事,写进当前对话上下文(不需要文件持久化):
然后进入等待模式(见下面)。
完成判定优先从 <main> 文本拿全文,不要依赖截断的可访问性树。Codex 侧推荐:
await tab.playwright.evaluate(() => document.querySelector("main")?.innerText ?? document.body?.innerText ?? "")
简版完成信号(中文 UI 实测):
拿不全(被截断、太长)→ 标注"可能不完整" + 留 conversation URL。具体错误信号见 [references/error-and-limits.md](references/error-and-limits.md) 第 7 节。
Codex 版不照搬 Claude 后台 watcher 模板。按任务时长分流,详见 [references/codex-waiting.md](references/codex-waiting.md):
| 任务 | 默认模式 |
|---|---|
| Instant / 短 Thinking | 当前回合轮询,每 20-60 秒检查一次 |
| Pro / 长 Thinking | 当前回合轮询到 30 分钟上限;期间只在真正完成、超时或需要用户操作时发消息 |
| Deep Research / 跨小时任务 | Heartbeat 模式:确认研究已启动后挂安静轮询;automation 优先,spawn agent 作为默认 fallback |
轮询时不要给用户发"还在等"的例行状态。只有这些情况才报告:
详细见 [references/error-and-limits.md](references/error-and-limits.md)。总原则:
用户说"删了这个对话"、"归档全部"、"撤销那个分享"、"清掉 Memory"、"创建一个项目"、"看库里有什么"等管理类操作时,按 [references/manage-actions.md](references/manage-actions.md) 找入口和 cheat sheet。
特别注意:
用户说"把这个对话存下来"、"下载那个 DR"、"保留这张图片"等时,按 [references/save-conversation.md](references/save-conversation.md) 走 3 档分流:
| 档 | 内容 | 路径 |
|---|---|---|
| A | 普通 chat message | <main> 文本 + Codex 写 .md |
| B | Artifact(DR / Canvas) | 点 artifact 自带下载菜单 → "导出到 Markdown" → mv |
| C | 图片 | "分享此图片"→"下载" → mv |
默认目录 ~/Downloads/chatgpt-skill/,文件名 YYYY-MM-DD<title><uuid8>.<ext>。
显式触发:用户没说要存就不要自动写盘,避免污染硬盘。取回结果后用户回一句"存下来"才动手。
[examples/](examples/) 里放 Codex 专属场景,不复用 Claude 版后台 watcher 模板:
file-upload-roundtrip.md — 上传本地文件、提交带附件 prompt、等待完成、取回回答(已实测)deep-research-pull.md — 用 Codex 触发 Deep Research,启动后挂 heartbeat;automation 优先,spawn agent fallback,都没有才 PullClaude 版更完整的历史场景仍在 claude-chatgpt-skill/examples/,只能借鉴任务意图;不要照搬其中的 Agent({ runinbackground: true }) / watcher 做法。
Claude 版的端到端 examples 保留在 claude-chatgpt-skill/examples/。Codex 版先以运行时、安全流程和专属 examples 为准。
当前烟测状态(2026-05-31):停掉其它 Chrome debugger 控制方后,Codex Chrome Extension 可以复用用户已登录的 ChatGPT tab,读取页面结构和截图,展开模型菜单和 app 菜单,上传文件,提交带附件 prompt,等待完成并读取回答。已知阻塞形态仍是 Detached while handling command / Unknown error;出现时优先排查 Claude in Chrome、DevTools 或 chrome-devtools-mcp 等控制权冲突,详见 [references/codex-chrome-runtime.md](references/codex-chrome-runtime.md)。不要尝试 cookie / storage / 外部浏览器自动化旁路。