Bring OpenAI Codex's structured code review prompts to Gemini CLI and Claude Code.
What I like about Codex reviews is the strict bug categorization (P0-P3) and focus on actionable findings. The default chat in these tools doesn't have that structure, so I ported the prompts over as slash commands.
These commands are based on the review prompts from the OpenAI Codex repository:
- review_prompts.rs - Review target types and prompt generation
- review_prompt.md - Guidelines and priority system
The output format is adapted from JSON to Markdown so it renders properly in the terminal.
-
Install Gemini CLI if you haven't:
npm install -g @google/gemini-cli@latest
-
Copy the command files:
mkdir -p ~/.gemini/commands/review cp gemini/review.toml ~/.gemini/commands/ cp gemini/review/*.toml ~/.gemini/commands/review/
-
Install Claude Code if you haven't:
npm install -g @anthropic-ai/claude-code@latest
-
Copy the command files:
mkdir -p ~/.claude/commands/review cp claude/review.md ~/.claude/commands/ cp claude/review/*.md ~/.claude/commands/review/
Review uncommitted changes
/review
Review against a branch
/review:branch main
Review a specific commit
/review:commit a1b2c3d
Review uncommitted changes
/review
Review against a branch
/review:branch main
Review a specific commit
/review:commit a1b2c3d
Not affiliated with OpenAI, Google, or Anthropic. Just a set of custom commands using public prompt techniques.