codex-review
Skill by ClickHouse
Runs a local pre-push AI code review of the current git branch with the OpenAI codex CLI, the same way ClickHouse CI does. Built for developers who want an independent second opinion on a diff before pushing.
Install codex-review
Built from the published package, never by AI.
git clone --depth 1 https://github.com/ClickHouse/ClickHouse /tmp/ClickHouse && mkdir -p ~/.claude/skills && cp -r /tmp/ClickHouse/.claude/skills/codex-review ~/.claude/skills/codex-reviewRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/ClickHouse/ClickHouse /tmp/ClickHouse && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/ClickHouse/.claude/skills/codex-review ~/.gemini/antigravity-cli/skills/codex-reviewAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
codex-review runs a local AI code review of the current git branch using the OpenAI codex CLI. The source says it follows the same approach as ClickHouse CI, using the model CI uses by default and a general prompt that does not steer the reviewer toward a known fix. It finds the merge-base against the upstream ClickHouse master ref, runs codex exec in the background, and writes the review to a log file in tmp/.
After the review, the assistant checks each finding against the current code and reproduces concrete failing scenarios before treating them as real. With the --fix argument, it can fix confirmed findings, commit them, and re-review until no correctness defects remain. The skill is for developers who want an independent second opinion on a diff before pushing. The source says it is not meant for reviewing pull requests on GitHub.
Written from the project's SKILL.md and checked against it.
What it can do
- Pre-push reviewRuns codex exec against the current branch's diff from the merge-base with upstream master.
- Model and effort settingAsks for the review model and effort once and saves them in the global git config.
- Base commit detectionFinds the ClickHouse remote and merge-base using local refs only, without fetching.
- Finding verificationChecks each review finding against the current code and reproduces failing scenarios before confirming.
- Fix and re-reviewWith --fix, fixes confirmed findings, commits them, and re-runs the review until clean.
What you need
- OpenAI codex CLI installed
- Logged in to codex with a ChatGPT account or an API key
- A local git checkout of ClickHouse with an upstream remote
Try asking
- Review the current branch with the codex review before I push
- Run the AI review and fix confirmed findings until it is clean
- Get a second opinion on my diff against upstream master
Good to know
- Does not run git fetch, so it uses local remote-tracking refs only
- Uncommitted changes are not part of the review unless committed first
- Not for reviewing someone else's pull request on GitHub
- A review can take many minutes to run
Security check
B- Allowed to use Bash, Edit, Write without limitsIn
SKILL.md
Checked automatically: .claude/skills/codex-review/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: BashReadGrepGlobEditWriteAskUserQuestion
-
SKILL.md7 KB
Alternatives to codex-review
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
codex-review: common questions
Does codex-review post comments to GitHub?
No. The source says the review must not use gh or post anything. It writes the review to a local log.
Which model does codex-review use?
By default it uses the model found in ci/jobs/codex_review_job.py, with effort set to xhigh. The user can choose another model or the codex default.
Does it change my git refs?
The source says it does not fetch, because the review must not change the user's refs. Fix mode does add commits to the branch.
How do I install codex-review?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is codex-review free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is codex-review safe to use?
It scores 86 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use bash, edit, write without limits). Review the code before you install. How grades work.
What are alternatives to codex-review?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
