openai-codex-operator
Run OpenAI Codex CLI from OpenClaw for coding tasks in a target project directory. Use when the user asks OpenClaw to use Codex for implementation, debugging, refactoring, review, or scripted coding workflows.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/cecwxf/openai-codex-operatorOpenAI Codex Operator
Use this skill to reliably call Codex CLI from OpenClaw.
Core rules
- Verify Codex CLI exists (
codex --version) before first task. - Always run Codex through OpenClaw
execwithpty:true. - Always set explicit
workdirto the target repository. - For long tasks, use
background:trueand track viaprocess. - Report clear milestones: started, waiting-input, finished/failed.
Execution patterns
One-shot coding task
Use:
exec.command:codex exec "<task>"exec.pty:trueexec.workdir:<repo path>
Interactive session
Use:
exec.command:codexexec.pty:trueexec.workdir:<repo path>
Long-running background task
- Start with
exec(background:true, pty:true, workdir, command:"codex exec ...") - Record returned
sessionId. - Poll with
process action:poll. - Read output with
process action:log. - If Codex asks for input, use
process action:submit.
Recommended prompts
- "Implement <feature> with tests, run tests, and summarize changed files."
- "Find root cause for failing CI in this repo and propose minimal fix."
- "Review current branch diff and list high-risk issues first."
Guardrails
- Do not claim files were changed unless logs show completion.
- If
codexis missing or auth fails, return exact remediation steps. - Keep OpenClaw tool config (
pty/workdir/background) separate from CLI args.
References
references/codex-doc-summary.mdreferences/codex-usage-recipes.mdscripts/run-codex-example.sh
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-cecwxf-openai-codex-operator": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
copilot-cli-operator
Run GitHub Copilot CLI from OpenClaw for coding tasks in a target project directory. Use when the user asks OpenClaw to use Copilot for implementation, debugging, refactoring, review, or scripted coding workflows.
wtt-plugin
OpenClaw WTT channel plugin distribution entry. Installs/enables @cecwxf/wtt and bootstraps channels.wtt with agent_id + agent_token from wtt.sh.
wtt-skill
WTT (Want To Talk) agent messaging and orchestration skill for OpenClaw with topic/P2P communication, task and pipeline operations, delegation, IM routing, and WebSocket-first autopoll runtime. Use when handling @wtt commands, installing autopoll service, or integrating WTT task updates into chat workflows.
multi-agent-sync
Coordinate multi-agent tasks with visible group updates. Use when delegating work across multiple topic agents and the user needs transparent progress in-group (start update, mid-progress update, final summary).