masih-0x3/agent-skills/codex-chatgpt-control
Claude Code and agent skill by masih-0x3/agent-skills
- community
Checking that the SKILL.md file is still in the repository.
Use when Codex agents need to operate visible ChatGPT web sessions through the codex-chatgpt-control SDK, including prompts, threads, files, downloads, reports, browser bridge blockers, and local source smokes.
Install
npx vskill@latest install masih-0x3/agent-skills/codex-chatgpt-controlSKILL.md
The same SKILL.md was published earlier as masih-0x3/agent-skills/codex-chatgpt-control.
codex-chatgpt-control
Use this skill when a user explicitly asks to run a visible ChatGPT web workflow with the codex-chatgpt-control SDK.
This skill is for visible, user-directed ChatGPT workflows only. It is not an OpenAI API wrapper, does not call hidden ChatGPT endpoints, and must not bypass login, captcha, product permissions, file permissions, or user confirmation.
Manual-first policy (required)
- Do not auto-invoke visible ChatGPT-control workflows.
- Only run browser-control only when the user request contains an explicit trigger such as:
- "use ChatGPT now"
- "invoke codex-chatgpt-control"
- "run this in ChatGPT"
- or another direct equivalent instruction to perform the run in this environment.
- If no explicit trigger is present, do not call
ask,askInThread,askWithFiles,askAndDownload,run, or any other browser-control command. - For those cases, return a
Manual ChatGPT handoffand pause for pasteback. - Every response from this skill must include one explicit mode marker:
mode: manual_handoffwhen returning a handoffmode: controlled_runwhen you actually run the visible workflow
Required Posture
- Prefer the SDK facade from
createChatGPT({ agent }). - Use ChatGPT web through a compatible Codex/browser bridge. Do not use private ChatGPT network calls.
- Treat
globalThis.agentas host-provided. If it is missing, report a bridge blocker rather than inventing browser state. - Stop on login, captcha, rate-limit, selector-drift, upload/download permission, or ambiguous confirmation blockers.
- Ask for explicit user confirmation before public, destructive, third-party, paid, account-level, or externally visible actions.
- Redact run reports by default. Raw prompt/response content is opt-in only.
- Attach only files the user approved.
Manual ChatGPT Handoff format
When mode: manual_handoff, include every field exactly in this order:
GoalContextConstraintsDesired output formatAssumptionsAcceptance criteriaCopy-ready final prompt
Suggested output shape:
When you actually run controls (after an explicit trigger), include mode: controlled_run and the normal run result.
Runtime Requirements
Deterministic local checks need:
- Node.js 20 or newer
- npm
- a source checkout of
codex-chatgpt-control
Real browser-control runs also need:
- Chrome with a signed-in visible ChatGPT web session
- a compatible Codex/browser bridge exposing
globalThis.agent - permission to use or open a visible ChatGPT tab
Ordinary shells should not have globalThis.agent. A browser_bridge_unavailable blocker from an ordinary shell is an expected safe result for browser-required calls.
File Upload Permissions
File attachment workflows need two separate permission gates:
- Chrome extension gate: open
chrome://extensions, choose the Codex/browser bridge extension, open Details, and enable Allow access to file URLs. - Codex app gate: in Codex settings, allow Google Chrome uploads under Computer Use > Google Chrome > Permissions > Uploads. Use the narrowest setting that fits the workflow; unattended smoke tests may need the always-allow setting.
If either gate is missing, stop with a permission blocker and tell the user which gate to check.
Source Setup
From a source checkout:
Then use the built bundle from a bridge-enabled host runtime:
Prefer normal package imports in projects that depend on the published npm package:
Basic Runner Flow
Instructions are visible prompt text by default. Use instructionsMode intentionally:
visible_prefix: include instructions in the submitted user message.visible_setup_message: submit instructions as a separate visible setup turn.metadata_only: keep instructions local; they are not sent to ChatGPT.
Common Workflows
Ask in a new or selected thread:
Continue an existing thread:
When the user says the ChatGPT thread is already open, pass existingTab: true or an exact existing-tab policy such as existingTab: { url: "https://chatgpt.com/c/<conversation-id>" }. A thread: { type: "url" } selector by itself means "navigate to this URL"; it does not express "claim the user-open tab".
Attach approved files:
Run a diagnostic before long workflows:
Response Capture
Use Markdown by default for human-readable answers and saved artifacts:
Use format: "normalized_text" only for compact assertions, polling checks, or simple exact-string smoke tests.
Python Client
The Python package is a protocol client over the Node backend. Build the backend first:
Then run Python from packages/python:
Point Python at an explicit backend command:
Blocker Handling
When a run fails, report the structured blocker. Do not retry blindly.
Common blockers:
browser_bridge_unavailable: no bridge-enabled host runtime is available.login_required: the visible ChatGPT session is not signed in.captcha: user action is required.permission: upload/download/clipboard permission is missing.selector_drift: ChatGPT UI changed and selectors need review.rate_limit: wait or ask the user how to proceed.
Validation
For source changes, run:
For Python parity changes, also run:
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/codex-chatgpt-control/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/masih-0x3/agent-skills/codex-chatgpt-control)