From critique
Runs OpenAI Codex CLI to critique a spec or code file. Use when the user wants external AI review, a second opinion, or says "codex critique".
How this skill is triggered — by the user, by Claude, or both
Slash command
/critique:codexThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Run OpenAI's Codex CLI to get an independent critique of a file (spec, code, etc.).
Run OpenAI's Codex CLI to get an independent critique of a file (spec, code, etc.).
Verify codex is available: !which codex
If codex is not found, tell the user to install and authenticate (codex login).
/critique:codex $ARGUMENTS
$0 — optional file path to critique (relative or absolute)$1 — optional focus area (e.g., "security", "performance", "UX gaps")--model <model> — override the codex model for this invocationAll arguments are optional. When no file is given, infer the target from conversation context.
Config is resolved with the following precedence (first match wins):
--model) — one-off override.claude/skill-configs/codex/config.local.yaml) — personal/local scope, gitignored.claude/skill-configs/codex/config.yaml) — project scope, committed to repogpt-5.4model: gpt-5.4 # model to use with codex exec
See config.example.yaml in the critique plugin's codex skill for reference.
$ARGUMENTS contains --model <model>. If so, use that model and skip config lookup..claude/skill-configs/codex/config.local.yaml (local scope, gitignored).claude/skill-configs/codex/config.yaml (project scope, committed to repo)gpt-5.4 as the default.${MODEL} to the resolved model name.The user can request higher reasoning effort by saying things like "xhigh", "high effort", "think harder", or "deep review". Map these to the --config model_reasoning_effort flag:
| User says | Flag value |
|---|---|
| (default) | (omit flag — uses codex default "medium") |
| "high" | high |
| "xhigh", "maximum", "think hard" | xhigh |
$0 is provided, use it as the file path@games/foo/bar.js), use thatgit diff against the state before the conversation's changes to identify the affected files and pass them to codex${CLAUDE_SKILL_DIR}/templates/:
spec-review.md — for specification filescode-review.md — for source code filesdiff-review.md — for reviewing recent changescodex exec non-interactively with read-only sandboxcodex exec \
-m ${MODEL} \
-s read-only \
-C <project-root> \
--config model_reasoning_effort="<effort>" \
"<review-prompt>"
Flags:
-m ${MODEL} — the resolved model (default: gpt-5.4)-s read-only — read-only sandbox (no file modifications)-C <dir> — set working directory so codex can read referenced files--config model_reasoning_effort="<effort>" — reasoning depth: medium (default), high, or xhigh. Omit for default. Higher effort = slower but more thorough analysis.Timeout: 300 seconds at default effort, 600 seconds at high/xhigh (codex does more reasoning passes)
codex --version and suggest codex login if auth failsnpx claudepluginhub isnbh0/shared --plugin critiqueCross-model review using OpenAI Codex to independently verify plans or code diffs, iterating up to 5 rounds. Useful for architecture decisions, non-trivial refactors, and critical config changes.
Runs cross-model code reviews using the external Codex CLI tool from a Claude session. Catches bugs that single-model self-review would miss by leveraging a different reviewer architecture.
Runs OpenAI Codex CLI as a subagent for second opinions, code reviews, and questions. Useful when you want a different AI model's perspective.