claude-router
Choose between the local Codex CLI and Gemini CLI from Claude Code.
Skill by rudyalways
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/rudyalways-claude-router
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Shell scripts
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/claude-router
What's inside
- Skill name
claude-router- Description
- Choose between the local Codex CLI and Gemini CLI from Claude Code. Use for automatic model selection when the user wants the best local delegate for code review, repo-wide analysis, planning, or implementation.
- License
- MIT
- Instructions
- 68 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (3)
- SKILL.md
- manifest.json
- route-ai.sh · scripts/
SKILL.md (first lines)
# Claude Router
Route a task from Claude Code to either local `codex` or local `gemini` using simple, explicit rules. This skill assumes the dedicated `claude-codex` and `claude-gemini` skills are installed from this repo.
**Usage**: `/claude-router [prompt]`
ARGUMENTS: $ARGUMENTS
## Routing Rules
- Route to `codex` for:
- code review
- bug hunting in a small or medium code slice
- implementation requests
- patch validation on current changes
- Route to `gemini` for:
- repo-wide scans
- architecture and dependency tracing
- large-context summarization
- multimodal or structured JSON output requests
If the request explicitly names `codex` or `gemini`, honor that directly.
## When NOT to Use
- **Interactive code review or task hand-off from this Claude Code session** → use the `/codex:*` plugin commands directly (`/codex:review`, `/codex:adversarial-review`, `/codex:rescue`, `/codex:status`). The router is for programmatic delegation from scripts, cron, and bridges — it goes through the `claude-codex` skill's bash wrapper, not the plugin.
If you don't see `/codex:*` slash-commands, install the plugin via the 4 commands documented in `skills/claude-codex/SKILL.md` ("When NOT to Use" section).
## Default Behavior
- Default review-oriented prompts to Codex.
- Default broad analysis prompts to Gemini in `plan` approval mode.
- Keep execution in the current workspace unless the user requested a different directory.
## Quick Checks
```bash
bash "$SKILL_DIR/scripts/route-ai.sh" --check
```
## Common Commands
```bash
# Auto-route based on prompt
bash "$SKILL_DIR/scripts/route-ai.sh" -- "Review the current diff for regressions"
# Force Codex
bash "$SKILL_DIR/scripts/route-ai.sh" --engine codex -- "Inspect src/task-bridge.ts for races"
# Force Gemini
bash "$SKILL_DIR/scripts/route-ai.sh" --engine gemini -- "Trace task flow across the entire repo"
# Dry-run the route decision without executing
bash "$SKILL_DIR/scripts/route-ai.sh" --dry-run -- "Summarize architecture risks in this repo"
```
## If Invoked As A Slash Command
- If ARGUMENTS is empty, explain the route rules and suggest a plain prompt.
- If ARGUMENTS is present, run:
```bash
bash "$SKILL_DIR/scripts/route-ai.sh" -- "$ARGUMENTS"
```From rudyalways/PhonePcLiveAgentsV2, MIT.
More from rudyalways/PhonePcLiveAgentsV2
- 0.559score
claude-gemini
rudyalways
Use the local Gemini CLI from Claude Code with the user's existing Gemini authentication or API configuration.
SkillBFreshness: B★ 2Claude Code +9 - 0.559score
image-generation
rudyalways
Generate and edit images using Gemini Flash Image, and generate videos using Veo.
SkillBFreshness: B★ 2Claude Code +9 - 0.303score
doc-ingest
rudyalways
No description from the publisher yet.
SkillBFreshness: B★ 2Claude Code +9 - 0.300score
agent-room-ops
rudyalways
No description from the publisher yet.
SkillBFreshness: B★ 2Claude Code +9 - 0.300score
context-drop
rudyalways
No description from the publisher yet.
SkillBFreshness: B★ 2Claude Code +9
Signals
- Stars
- 2
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Aug 5, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from rudyalways
- 0.559score
claude-gemini
rudyalways
Use the local Gemini CLI from Claude Code with the user's existing Gemini authentication or API configuration.
SkillBFreshness: B★ 2Claude Code +9 - 0.559score
image-generation
rudyalways
Generate and edit images using Gemini Flash Image, and generate videos using Veo.
SkillBFreshness: B★ 2Claude Code +9
Cite this page
claude-router skill. Agent Mart. https://agentmart.dev/skills/rudyalways-claude-router (last updated 2026-10-24)