From routine
Runs OpenAI Codex CLI (`codex review`) for AI code reviews on git staged, unstaged, uncommitted, or branch changes before committing. Uses custom prompts, 10min timeout, saves output to .codex-review-output.md.
npx claudepluginhub delexw/claude-code-miscThis skill uses the workspace's default tool permissions.
Use the `codex review` command to get an AI-powered code review of the current changes.
Executes Codex CLI for code reviews with full disk access, enabling deep codebase exploration and uncommitted change analysis. Outputs severity-grouped findings and merge gate.
Runs official Codex code review on code changes, diffs, branches, or commits, then double-checks each finding by reading source code and classifying agree/disagree/nuance.
Reviews git diffs with Codex for bugs, security vulnerabilities, style issues, and performance problems. Useful for second opinions after AI edits or pre-commit checks.
Share bugs, ideas, or general feedback.
Use the codex review command to get an AI-powered code review of the current changes.
Run which codex to confirm it's installed. If not found, tell the user:
"The codex CLI is not installed. Install it with npm install -g @openai/codex or see https://github.com/openai/codex"
Pick the right flag based on context:
codex reviewcodex review --uncommittedcodex review --base <branch>codex review --commit <sha>If the user doesn't specify, check git diff --cached --stat first. If there are staged changes, review those. Otherwise fall back to --uncommitted.
IMPORTANT: Use a 10-minute timeout (600000ms) for the Bash command — codex streams from the OpenAI API and large diffs can take several minutes to complete. The default 2-minute timeout will cause the stream to disconnect mid-review.
The prompt should describe what to focus on. If the user provided $ARGUMENTS, use that as the prompt. Otherwise use a sensible default like "review the changes for bugs, style issues, and potential improvements".
Command construction rules:
Staged changes (no flag): pass the prompt as a positional argument.
codex review "<prompt>"
With --base, --commit, or --uncommitted: the CLI does not allow a positional prompt argument alongside these flags. Pipe the prompt via stdin using - instead:
echo "<prompt>" | codex review --base <branch> -
echo "<prompt>" | codex review --uncommitted -
echo "<prompt>" | codex review --commit <sha> -
If the command fails due to environment issues (missing API key, network error, etc.), try these in order:
OPENAI_API_KEY is set--config model="gpt-5.2" as a fallback modelSave the full codex review output to .codex-review-output.md in the repository root.
The codex CLI depends on:
OPENAI_API_KEY environment variableIf running through asdf/nvm, the shim path may need to be resolved. Try $(which codex) or the full path if the shim doesn't work in the current shell context.