From codex-advisor
Checks Codex CLI installation, authentication, official plugin status, and configures default model and reasoning effort. Activates on 'codex setup' phrases or reported issues.
How this skill is triggered — by the user, by Claude, or both
Slash command
/codex-advisor:codex-setupThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Preflight check and `~/.codex/config.toml` configuration helper for codex-advisor.
Preflight check and ~/.codex/config.toml configuration helper for codex-advisor.
Parse $ARGUMENTS:
| Input | Action |
|---|---|
--status or no args | Run preflight + show current config |
--model MODEL | Set default model in config.toml |
--effort LEVEL | Set reasoning effort in config.toml |
| Combined flags | Apply all settings |
which codex >/dev/null 2>&1 && codex --version || echo "NOT_INSTALLED"
If NOT_INSTALLED: "Codex CLI is not installed. Install: npm install -g @openai/codex"
codex --version 2>&1
If output contains "not authenticated" or "OPENAI_API_KEY": "Authentication required. Run: codex login"
If version prints normally: auth is likely OK (full verification happens on first real command).
CODEX_COMPANION=$("${CLAUDE_PLUGIN_ROOT}/scripts/resolve-companion.sh")
If exit code non-zero (plugin not found), guide the user through the full installation process:
/plugin marketplace add openai/codex-plugin-cc — adds the Official Codex marketplace/plugin install codex@openai-codex — installs the plugin from that marketplace/reload-plugins — activates the newly installed pluginDo NOT just print the steps and move on. Wait for the user to complete them.
If found, run setup check:
node "$CODEX_COMPANION" setup --json
Include the setup output in the status report.
Read current config:
cat ~/.codex/config.toml 2>/dev/null || echo "NO_CONFIG"
--model)Valid models: gpt-5.4, gpt-5.4-mini, gpt-5.3-codex-spark, or any model string.
mkdir -p ~/.codex~/.codex/config.toml doesn't exist, create it with model = "NEW_MODEL"model = "..." line. If no model line exists, append it.--effort)Valid levels: none, minimal, low, medium, high, xhigh.
~/.codex/config.toml doesn't exist, create with model_reasoning_effort = "NEW_EFFORT"model_reasoning_effort = "..." line. If no such line exists, append it.## Codex Setup Status
| Item | Status |
|------|--------|
| Codex CLI | version or NOT_INSTALLED |
| Authentication | OK or FAILED |
| Official Plugin | OK or NOT_INSTALLED (required) |
## Current Configuration (~/.codex/config.toml)
| Setting | Value |
|---------|-------|
| model | <current or "default (not set)"> |
| model_reasoning_effort | <current or "default (not set)"> |
| web_search | <current or "default (not set)"> |
These defaults apply to ALL Codex commands — both Official plugin and direct CLI.
To change: `/codex-setup --model gpt-5.4-mini --effort high`
/codex:review ignores --model flag. The only way to change the review model is via config.toml — that's why this skill exists.npx claudepluginhub leejuoh/claude-code-zero --plugin codex-advisorExecutes Codex CLI (codex exec, resume) for code analysis, review, and automated editing with model selection (gpt-5.3-codex), sandbox modes, and git integration.
Runs Codex CLI tasks with configurable model, reasoning effort, and sandbox mode. Handles session resume and stdin redirection to prevent hangs.
Use when the user asks to run Codex CLI (codex exec, codex resume) or references OpenAI Codex for code analysis, refactoring, or automated editing