agent-skills-code-review-router
Intelligently Routes Code Reviews to Gemini or Codex CLI
Install & Use
Copy this prompt and send it to your AI assistant (Claude / Cursor / TRAE / Codex / WorkBuddy etc.) to auto-install:
Help me install this AI Skill: agent-skills-code-review-router. It is used for: Intelligently Routes Code Reviews to Gemini or Codex CLI Full Skill content: https://321skill.com/skills/agent-skills-code-review-router/raw/index.md Read that page and install it.
The prompt includes a link to the full Skill content. You can also view the full content.
This Skill addresses the inefficiency of manually selecting a CLI tool for code reviews. In practice, developers often need to review their own current code changes, but Gemini CLI and Codex CLI each have their own strengths (e.g., expertise in specific tech stacks, handling complexity). Manually choosing is time-consuming and error-prone. This Skill automatically routes review tasks to the most suitable CLI based on the tech stack, change complexity, and file characteristics, thereby improving review quality and efficiency.
Usage is simple: just ensure you are in a local git repository and have Gemini CLI and/or Codex CLI installed. Then, trigger it with a natural language instruction (e.g., "review the current code changes"). The Skill will automatically perform environment checks, analyze git diff statistics, calculate a complexity score, detect languages and frameworks, and finally intelligently select and execute the review with the chosen CLI. The entire process requires no manual intervention, and the routing decision is clearly output.
It is ideal for teams or individuals who frequently conduct code reviews, especially those already using both Gemini and Codex CLI. It is also suitable for engineers looking to integrate automated code review into CI/CD pipelines, or users reviewing AI-generated code who want to compare the results from different CLIs.
It is recommended to use this tool consistently in the local development environment to leverage its routing advantages. Note that it primarily relies on git diff analysis, works on both staged and unstaged changes, but requires the current directory to be a git repository. If only one CLI is available, it will use that CLI directly without routing; if neither is installed, it cannot be used.
Key Features
Unlike review scripts that are hardcoded to use a single CLI, this Skill can automatically choose between Gemini CLI and Codex CLI based on the tech stack (e.g., React, Django) and change complexity (number of files, lines, types), rather than requiring manual specification, thereby maximizing review quality and suitability.
Limitations
Requires Gemini CLI and/or Codex CLI to be installed locally, and the current directory must be a git repository; it cannot be used if neither CLI is installed.
FAQ
What happens if I only have Gemini CLI and not Codex?
The Skill will automatically detect that only one CLI is available and will use Gemini CLI for the review directly, without routing.
How can I tell which CLI is currently selected?
The routing decision information, including the complexity score, tech stack detection results, and the name of the final CLI selected, will be output during execution.
Installation guide for AI assistants
If your AI coding assistant (Claude Code, Cursor, TRAE etc.) can see this page, send it this message to auto-install:
Visit https://321skill.com/skills/agent-skills-code-review-router/raw/index.md to read the original Skill definition (Markdown format) for agent-skills-code-review-router, and install it according to the instructions.
Raw Markdown URL for AI: /skills/agent-skills-code-review-router/raw/index.md