Agent skill
claude-router
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.
Install this agent skill to your Project
npx add-skill https://github.com/sonichi/sutando/tree/main/skills/claude-router
SKILL.md
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
codexfor:- code review
- bug hunting in a small or medium code slice
- implementation requests
- patch validation on current changes
- Route to
geminifor:- 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.
Default Behavior
- Default review-oriented prompts to Codex.
- Default broad analysis prompts to Gemini in
planapproval mode. - Keep execution in the current workspace unless the user requested a different directory.
Quick Checks
bash "$SKILL_DIR/scripts/route-ai.sh" --check
Common Commands
# 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 "$SKILL_DIR/scripts/route-ai.sh" -- "$ARGUMENTS"
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
x-twitter
Post tweets, search, read mentions, and check engagement on X (Twitter) via API v2.
schedule-crons
claude-codex
Use the local Codex CLI from Claude Code with the user's existing Codex login or API key. Use for Codex reviews, second-opinion analysis, implementation delegation, or non-interactive Codex runs in the current workspace.
phone-conversation
Make conversational phone calls and join Zoom meetings via Twilio + Gemini. Multi-turn AI conversations on the phone on behalf of the user.
screen-record
quota-tracker
Track Claude Code quota usage via Anthropic API rate limit headers. Shows 5h and 7d utilization, reset times, and quota status. Works with both subscription and API key auth.
Didn't find tool you were looking for?