一键导入
codex
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".
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
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".
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
User-invoked shorthand that inverts delegation — produce a filesystem bundle (checklist, drop-bin directory, notes template) of human-only actions and artifacts blocking project progress, and launch the user's editor on it.
Explicit-request macro. Activate only when the user directly requests this macro; never infer activation from task characteristics. Skill — Shorthand that tells the agent to ask clarifying questions instead of making decisions on its own
Explicit-request macro. Activate only when the user directly requests this macro; never infer activation from task characteristics. Skill — Sequence a task as ordered parts that add up to the whole. Each iteration may read prior iterations' outputs.
Explicit-request macro. Activate only when the user directly requests this macro; never infer activation from task characteristics. Skill — Run N blind agents on the same job in parallel, then merge findings into consensus/unique/conflicts. Agents report only — no edits for concurrent safety.
Explicit-request macro. Activate only when the user directly requests this macro; never infer activation from task characteristics. Skill — Use subagents to save context space and/or parallelize subtasks where possible
Explicit-request macro. Activate only when the user directly requests this macro; never infer activation from task characteristics. Skill — Spawns an independent subagent to critique recent work with web research. Use when the user wants a second opinion, says "doubt this", or wants to verify code against docs.
| name | codex |
| description | 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". |
| disable-model-invocation | true |
| compatibility | Requires the Codex CLI and a POSIX-compatible shell for the documented invocation. |
Run OpenAI's Codex CLI to get an independent critique of a file (spec, code, etc.).
Run command -v codex (or the platform equivalent) to verify that Codex is available.
If codex is not found, tell the user to install and authenticate (codex login).
Invoke with an optional file path to critique (relative or absolute) and an optional focus area (e.g., "security", "performance", "UX gaps"). To use a specific codex model for this run, say so in the request.
All inputs are optional. When no file is given, infer the target from conversation context.
Config is resolved with the following precedence (first match wins):
.agents/skill-configs/codex/config.local.yaml) — personal/local scope, gitignored.agents/skill-configs/codex/config.yaml) — project scope, committed to repo.claude/skill-configs/codex/config.local.yaml, then config.yaml) — older installsgpt-5.6-terramodel: gpt-5.6-terra # model to use with codex exec
Available tiers: gpt-5.6-sol (deepest reasoning, most expensive), gpt-5.6-terra (balanced), gpt-5.6-luna (cheapest).
See config.example.yaml in the critique plugin's codex skill for reference.
.agents/skill-configs/codex/config.local.yaml (local scope, gitignored).agents/skill-configs/codex/config.yaml (project scope, committed to repo).claude/skill-configs/codex/config.local.yaml, then .claude/skill-configs/codex/config.yaml. If config is found only at a legacy path, use it and offer to move it to the new location.gpt-5.6-terra 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", "think hard" | xhigh |
| "max", "maximum", "deep review" | max |
| "ultra" | ultra |
max and ultra only pay off on gpt-5.6-sol — the lower tiers accept them but have less reasoning ceiling to spend. When the user asks for max/ultra and the resolved model is terra or luna, use sol for that run and say so. ultra makes codex delegate to subagents; it is the slowest and most expensive setting.
games/foo/bar.js), use thatgit diff against the state before the conversation's changes to identify the affected files and pass them to codextemplates/ directory next to this skill (its base directory):
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>" </dev/null
Flags:
-m ${MODEL} — the resolved model (default: gpt-5.6-terra)-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, xhigh, max, or ultra. Omit for default. Higher effort = slower but more thorough analysis.Stdin redirect (</dev/null) is required. In some host-agent spawn environments, non-TTY stdin can remain open and cause codex exec to hang while reading additional input. Redirecting from /dev/null gives codex an immediate EOF.
Timeout: 300 seconds at default effort, 600 seconds at high/xhigh, 1200 seconds at max/ultra (codex does more reasoning passes; ultra also fans out to subagents)
codex --version and suggest codex login if auth fails