claude-router
Skill396 starsChanged 6 months agoMITView on GitHub
Choose between the local Codex CLI, Gemini CLI, and Pi 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.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- syanga/astacktheir own version, first seen Nov 1, 2026
- connorch/skillstheir own version, first seen Oct 28, 2026
- roli-lpci/claude-routertheir own version, first seen Oct 20, 2026
- vimoxshah/claude-routertheir own version, first seen Sep 23, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- vimoxshah/claude-router★ 3same name
- connorch/skills★ 2same name
- roli-lpci/claude-router★ 1same name
- syanga/astack★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository73 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agent-activitySkill
- agent-registrySkill
- agent-room-opsSkill
- answer-formatSkill
- audio-transcribeSkill
- bee-actionsSkill
- bot2bot-postSkill
- call-diagnosticsSkill
- claude-codexSkill
- claude-geminiSkill
- claude-piSkill
- collaboration-intelligenceSkill
- connect-appsSkill
- context-dropSkill
- context-reconstructSkill
- db-browserSkill
- deal-finderSkill
- doc-ingestSkill
- electron-overlay-dimmingSkill
- email-findSkill
- engine-conflict-resolveSkill
- gemini-ttsSkill
- image-generationSkill
- import-claude-contextSkill
- local-workspace-serverSkill
- macos-toolsSkill
- macos-useSkill
- make-viral-videoSkill
- marketplaceSkill
- media-transcriptSkill
- meeting-prepSkill
- meeting-schedulerSkill
- mention-gateSkill
- model-switchSkill
- morning-briefingSkill
- ms365-connectSkill
- observeSkill
- obsidian-vaultSkill
- openai-ttsSkill
- open-sutando-refSkill
- overlay-appsSkill
- phone-conversationSkill
- proactive-loopSkill
- pr-shepherd-contractSkill
- quota-trackerSkill
- regression-searchSkill
- relaySkill
- releaseSkill
- report-feedbackSkill
- review-preflightSkill
- room-collabSkill
- schedule-cronsSkill
- screen-companionSkill
- screen-recordSkill
- self-diagnoseSkill
- self-upgradeSkill
- session-recapSkill
- skill-usage-reportSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 32
If the request explicitly names codex, gemini, or pi, honor that directly.
- Very specific: line 38
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 …
- Distinctive: line 42
Default review-oriented prompts to Codex.
- Very specific: line 43
Default broad analysis prompts to Gemini in plan approval mode.
- Distinctive: line 44
Keep execution in the current workspace unless the user requested a different directory.
- Distinctive: line 73
If ARGUMENTS is empty, explain the route rules and suggest a plain prompt.
- Distinctive: line 74
If ARGUMENTS is present, run:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Claude Router
Route a task from Claude Code to local codex, gemini, or pi using simple, explicit rules. This skill assumes the dedicated claude-codex, claude-gemini, and claude-pi 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
- Route to
piwhen:- the request names
piorkimi - the user wants a Kimi-family second opinion
- the request names
If the request explicitly names codex, gemini, or pi, 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 theclaude-codexskill's bash wrapper, not the plugin.If you don't see
/codex:*slash-commands, install the plugin via the 4 commands documented inskills/claude-codex/SKILL.md("When NOT to Use" section).
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" --checkCommon 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"
# Force Pi (Kimi)
bash "$SKILL_DIR/scripts/route-ai.sh" --engine pi -- "Second opinion on this design"
# 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"Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

