Use when creating implementation plans and executing tasks with proactive dual-model Codex routing (gpt-5.3-codex for code, gpt-5.4 for analysis) and fail-closed behavior before Claude/Sonnet fallback
From superpower-routernpx claudepluginhub charliechan53/superpower-router --plugin superpower-routerThis skill uses the workspace's default tool permissions.
code-quality-reviewer-prompt.mdcodex-runner.shgemini-runner.shimplementer-prompt.mdparallel-runner.shspec-reviewer-prompt.mdGuides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Details PluginEval's skill quality evaluation: 3 layers (static, LLM judge), 10 dimensions, rubrics, formulas, anti-patterns, badges. Use to interpret scores, improve triggering, calibrate thresholds.
Create bite-sized implementation plans and proactively dispatch execution to the cheapest capable backend.
Before execution, check availability:
command -v codex >/dev/null && echo "codex:ok" || echo "codex:missing"
If Codex is missing for code tasks, stop and ask the user whether to proceed on Claude/Sonnet fallback.
docs/plans/YYYY-MM-DD-feature.md.2-5 min each.| Work Type | Backend | Model | Invocation |
|---|---|---|---|
| Repository exploration / static codebase analysis | Codex CLI | gpt-5.3-codex | CODEX_MODEL=gpt-5.3-codex ${CLAUDE_PLUGIN_ROOT}/skills/plan-and-execute/codex-runner.sh "[prompt]" read-only /path/to/project |
| Implementation/refactor/tests | Codex CLI | gpt-5.3-codex | CODEX_MODEL=gpt-5.3-codex ${CLAUDE_PLUGIN_ROOT}/skills/plan-and-execute/codex-runner.sh "[prompt]" workspace-write /path/to/project |
| Code review/spec review | Codex CLI | gpt-5.3-codex | CODEX_MODEL=gpt-5.3-codex ${CLAUDE_PLUGIN_ROOT}/skills/plan-and-execute/codex-runner.sh "[prompt]" read-only /path/to/project |
| Logic review / analysis / non-code reasoning | Codex CLI | gpt-5.4 | ${CLAUDE_PLUGIN_ROOT}/skills/plan-and-execute/codex-runner.sh "[prompt]" read-only /path/to/project |
| Live web / docs / external research | Claude native | — | Use WebSearch / WebFetch tools; stay on Claude |
| Independent option gathering (compare model outputs) | Codex × 2 in parallel | both | Run two codex-runner.sh invocations concurrently — one with CODEX_MODEL=gpt-5.3-codex, one with default gpt-5.4 |
| Orchestration/synthesis | Claude | — | Stay on Claude |
| Fallback | Sonnet 4.6 | — | Task(prompt, model:sonnet) only after explicit user confirmation when Codex fails |
For every routed task prompt, include:
CODEX_MODEL first.| Item | Value |
|---|---|
| Model (code tasks) | gpt-5.3-codex — set via CODEX_MODEL=gpt-5.3-codex |
| Model (logic/analysis/research tasks) | gpt-5.4 (default) |
| Sandbox modes | workspace-write, read-only |
| Flags | --full-auto --skip-git-repo-check |
Accepted invocation formats:
codex-runner.sh "<prompt>" [sandbox-mode] [working-dir]codex-runner.sh "<prompt>" <working-dir> [sandbox-mode]<working-dir> is provided, sandbox defaults to workspace-write"${CLAUDE_PLUGIN_ROOT}/skills/plan-and-execute/codex-runner.sh" \
"$PROMPT" \
workspace-write \
/path/to/project
"${CLAUDE_PLUGIN_ROOT}/skills/plan-and-execute/codex-runner.sh" \
"$PROMPT" \
read-only \
/path/to/project
"${CLAUDE_PLUGIN_ROOT}/skills/plan-and-execute/codex-runner.sh" \
"$PROMPT" \
/path/to/project
"${CLAUDE_PLUGIN_ROOT}/skills/plan-and-execute/codex-runner.sh" \
"$PROMPT" \
/path/to/project \
read-only
Use this when you want diverse analysis from both Codex models for the same objective. Run two codex-runner.sh invocations concurrently in the background.
# Run gpt-5.3-codex (code perspective) in background
CODEX_MODEL=gpt-5.3-codex /bin/bash "${CLAUDE_PLUGIN_ROOT}/skills/plan-and-execute/codex-runner.sh" \
"$PROMPT" read-only /path/to/project &
CODEX_PID_1=$!
# Run gpt-5.4 (logic/analysis perspective) in background
/bin/bash "${CLAUDE_PLUGIN_ROOT}/skills/plan-and-execute/codex-runner.sh" \
"$PROMPT" read-only /path/to/project &
CODEX_PID_2=$!
wait $CODEX_PID_1; wait $CODEX_PID_2
| Exit Code | Action |
|---|---|
0 | Success |
20 | Fail-closed signal. Ask user for explicit approval before Claude/Sonnet fallback. |
10, 11, 12, 13, 1 | Only if CODEX_FAIL_CLOSED=0: allow fallback/report per policy. |
| Variable | Default | Purpose |
|---|---|---|
CODEX_MODEL | gpt-5.4 | Override per-invocation; use gpt-5.3-codex for code tasks |
CODEX_MODEL_CODE | gpt-5.3-codex | Reference value for code construction/review tasks |
CODEX_MODEL_LOGIC | gpt-5.4 | Reference value for logic review/analysis/research tasks |
CODEX_EFFORT | xhigh | Reasoning effort |
CODEX_TIMEOUT | 600 | Timeout in seconds |
CODEX_FAIL_CLOSED | 1 | Stop and ask user before Claude fallback on failure |
Telemetry note:
Offload C:<tokens> Σ:<tokens> | S/F C:<s>/<f> | RL C:<remaining>%@<reset-time>.Explore/Task subagents for Codex-eligible work before attempting routed runners