Checks Codex CLI installation, authentication, official plugin status, and configures default model and reasoning effort. Activates on 'codex setup' phrases or reported issues.
From codex-advisornpx claudepluginhub leejuoh/claude-code-zero --plugin codex-advisorThis skill is limited to using the following tools:
Provides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.
Calculates TAM/SAM/SOM using top-down, bottom-up, and value theory methodologies for market sizing, revenue estimation, and startup validation.
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.