← ClaudeAtlas

codexlisted

Delegate a task to OpenAI's GPT via the Codex CLI. Use this skill when the user explicitly asks to use Codex, GPT, or OpenAI for a task, or when you determine that GPT would provide better results for a specific task (e.g., tasks requiring OpenAI-specific strengths). Detects the codex binary, falls back to agent --model gpt-5.4-high if unavailable.
tony/ai-workflow-plugins · ★ 1 · AI & Automation · score 71
Install: claude install-skill tony/ai-workflow-plugins
# Codex CLI Skill Run a prompt through the Codex CLI (OpenAI GPT). If the `codex` binary is not installed, falls back to the `agent` CLI with `--model gpt-5.4-high`. Use `$ARGUMENTS` as the user's prompt. If `$ARGUMENTS` is empty, ask the user what they want to run. Parse `$ARGUMENTS` case-insensitively for timeout triggers and strip matched triggers from the prompt text. | Trigger | Effect | |---------|--------| | `timeout:<seconds>` | Override default timeout | | `timeout:none` | Disable timeout | | `mode:plan` | Request plan-only output (no execution) | Default timeout: 600 seconds. ## Step 1: Detect CLI ```bash command -v codex >/dev/null 2>&1 && echo "codex:available" || echo "codex:missing" ``` ```bash command -v agent >/dev/null 2>&1 && echo "agent:available" || echo "agent:missing" ``` **Resolution** (priority order): 1. `codex` found → use `codex exec --yolo --skip-git-repo-check -c model_reasoning_effort=medium` (with `</dev/null` to avoid a stdin-wait hang) 2. Else `agent` found → use `agent -p -f --model gpt-5.4-high` 3. Else → report both CLIs unavailable and stop ## Step 2: Detect Timeout Command ```bash command -v timeout >/dev/null 2>&1 && echo "timeout:available" || { command -v gtimeout >/dev/null 2>&1 && echo "gtimeout:available" || echo "timeout:none"; } ``` If no timeout command is available, omit the prefix entirely. When `timeout:none` is specified, also omit `<timeout_cmd>` and `<timeout_seconds>` entirely — run external commands without a