codex-review
Original:🇺🇸 English
Translated
AI-powered code review via the OpenAI Codex CLI. This skill should be used when reviewing branch diffs before merging a PR, auditing uncommitted changes during development, inspecting a specific commit, performing custom-scoped reviews, or whenever changes touch security-sensitive paths or exhibit risky patterns.
2installs
Added on
NPX Install
npx skill4agent add trancong12102/agentskills codex-reviewTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Codex Code Review
Overview
Use the OpenAI Codex CLI to perform AI-powered code reviews. Supports reviewing branches, uncommitted changes, specific commits, and custom-scoped reviews. Reviews are read-only and never modify the working tree.
Prerequisites
- Codex CLI installed ()
npm i -g @openai/codex - Authenticated ()
codex login
Workflow
Step 1: Determine Review Scope
Ask the user what they want reviewed if not already clear:
| Scope | When to use |
|---|---|
| Branch diff | Before opening or merging a PR |
| Uncommitted changes | During active development |
| Specific commit | Auditing a single changeset |
| Custom | User provides specific review instructions |
Step 2: Run the Review
Branch review (compare current branch against base):
bash
codex review --base main -c model="gpt-5.3-codex"Uncommitted changes:
bash
codex review --uncommitted -c model="gpt-5.3-codex"Specific commit:
bash
codex review --commit <SHA> -c model="gpt-5.3-codex"Custom review with focused instructions:
bash
codex review -c model="gpt-5.3-codex" "Review the code for accessibility regressions and WCAG compliance."Common Flags
| Flag | Description |
|---|---|
| Review changes against a base branch |
| Review staged, unstaged, and untracked changes |
| Review changes introduced by a specific commit |
| Optional commit title for the review summary |
| Override the model (preferred: |
Rules
- Default to reviewing the current branch diff against unless the user specifies otherwise
main - Always pass to use the preferred model
-c model="gpt-5.3-codex" - Use ,
--base, or--uncommittedflags to set the review scope instead of describing it in the prompt--commit - Present findings sorted by priority (highest first)
- Summarize the overall assessment before listing individual findings
- If Codex CLI is not installed, instruct the user to run and
npm i -g @openai/codexcodex login