Skip to content

grainier/llm-code-reviews

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Codex-Style Code Reviews for Gemini CLI & Claude Code

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.

sample-review

Source

These commands are based on the review prompts from the OpenAI Codex repository:

The output format is adapted from JSON to Markdown so it renders properly in the terminal.

Installation

Gemini CLI

  1. Install Gemini CLI if you haven't:

    npm install -g @google/gemini-cli@latest
  2. Copy the command files:

    mkdir -p ~/.gemini/commands/review
    cp gemini/review.toml ~/.gemini/commands/
    cp gemini/review/*.toml ~/.gemini/commands/review/

Claude Code

  1. Install Claude Code if you haven't:

    npm install -g @anthropic-ai/claude-code@latest
  2. Copy the command files:

    mkdir -p ~/.claude/commands/review
    cp claude/review.md ~/.claude/commands/
    cp claude/review/*.md ~/.claude/commands/review/

Usage

Gemini CLI

Review uncommitted changes

/review

Review against a branch

/review:branch main

Review a specific commit

/review:commit a1b2c3d

Claude Code

Review uncommitted changes

/review

Review against a branch

/review:branch main

Review a specific commit

/review:commit a1b2c3d

Disclaimer

Not affiliated with OpenAI, Google, or Anthropic. Just a set of custom commands using public prompt techniques.

About

Port of OpenAI's rigorous Codex review prompts (P0-P3 triage) to Google Gemini CLI slash commands.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors