code-review-router

Route code reviews between Gemini CLI and Codex CLI based on change complexity.

125|16|Updated Jan 16, 2026
One-click install
npx skills add https://github.com/win4r/agent-skills-code-review-router --skill code-review-router
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-review-router
Source: https://github.com/win4r/agent-skills-code-review-router/tree/main
Command: npx skills add https://github.com/win4r/agent-skills-code-review-router --skill code-review-router

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manually selecting the right AI CLI for code reviews is inconsistent and inefficient, often leading to subpar analysis for complex changes or wasted time on simple, low-risk modifications.

Core Features & Use Cases

  • Intelligent Routing: Automatically selects between Gemini CLI and Codex CLI based on tech stack, change complexity, and security patterns.
  • Complexity Scoring: Calculates a 0-10 score for code changes to ensure appropriate tool selection for small bug fixes vs. multi-service refactors.
  • Automatic Fallback: Switches to the alternative CLI if the primary choice fails, ensuring reviews complete without manual intervention.
  • Use Case: For a team with mixed frontend and backend changes, the skill routes simple React styling tweaks to Gemini for fast feedback, while sending security-sensitive auth system changes to Codex for deep analysis.

Quick Start

Request a code review of your current uncommitted changes from your AI agent to automatically trigger the routing and review workflow.

Frequently Asked Questions about code-review-router

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate code review routing between Gemini CLI and Codex CLI for git diff changes?

Automate code review routing by analyzing uncommitted Git repository changes to deterministically select between Gemini CLI and Codex CLI. It eliminates inconsistent manual tool selection by evaluating tech stack, security patterns, and change characteristics.

What is the best way to run security analysis on uncommitted code changes using AI CLIs?

Security analysis on uncommitted code is handled by routing security-sensitive modifications to the Codex CLI for deep analysis. The skill detects security patterns within the git diff and ensures complex code updates receive the appropriate level of review.

How do I calculate code complexity scores to select the right AI tool for repository changes?

Code complexity is evaluated using a 0-10 scoring system applied to uncommitted code changes. This scoring ensures simple frontend tweaks route to Gemini for fast feedback, while multi-service backend refactors trigger deeper analysis.

What happens if the primary AI CLI fails during a code review?

Automatic fallback handling switches the code review to the alternative CLI if the primary choice fails. This ensures your reviews of uncommitted Git changes complete successfully without requiring manual intervention.

Can I use this automated routing for simple frontend styling tweaks and complex backend refactors?

Yes, automated routing applies to all software development workflows involving uncommitted changes. It routes simple React styling tweaks to Gemini for fast feedback and complex multi-service backend modifications to Codex for deep analysis.