route
Skill0 starsChanged 11 months agoMITView on GitHub
Manually route a query to the optimal Claude model (Haiku/Sonnet/Opus)
11 other projects use a version of this.
Adopted by
Most recently taken up by
- frailbongat/skillstheir own version, first seen Sep 30, 2026
- xiaolongnk/SuperHarnesstheir own version, first seen Sep 26, 2026
- mehrad-dm/mastermindtheir own version, first seen Aug 30, 2026
- Simon-AI-coding/agentcrew-dev-skillstheir own version, first seen Aug 28, 2026
- ItsssssJack/seven-skillstheir own version, first seen Aug 1, 2026
- onetwogrowthharry/skillstheir own version, first seen Jul 30, 2026
Other versions11 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 11
- ypollak2/llm-router★ 93same name
- mehrad-dm/mastermind★ 23same name
- ItsssssJack/seven-skills★ 19same name
- qwerfunch/cladding★ 16same name
- xiaolongnk/SuperHarness★ 4same name
- jerseycheese/agent-skills★ 3same name
- Deepanshu418/claude-code-elysia★ 2same name
- frailbongat/skills★ 2same name
- Simon-AI-coding/agentcrew-dev-skills★ 2same name
- anton-dergunov/agentic-org-planner★ 1same name
1 more not listed
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 repository2 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- router-statsSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 10 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 28
Validate: - If no valid model is specified, show usage help
- Distinctive: line 29
Route: - Use the Task tool to spawn the appropriate subagent:
- Distinctive: line 65
If the user doesn't provide a valid model, respond with:
“Common” is measured: kept by at least 6 in 10 of the 10 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Manual Model Router
Override automatic model selection and force a specific Claude model for your query.
Usage
/route <model> <query>Where <model> is one of:
haikuorfast- Use Haiku for simple, quick taskssonnetorstandard- Use Sonnet for typical coding tasksopusordeep- Use Opus for complex analysis
Instructions
Parse $ARGUMENTS to extract the model and query:
- Extract model - The first word should be the model name (haiku/fast, sonnet/standard, opus/deep)
- Extract query - Everything after the model name is the query to execute
- Validate - If no valid model is specified, show usage help
- Route - Use the Task tool to spawn the appropriate subagent:
- haiku/fast -> spawn "fast-executor" subagent with model: haiku
- sonnet/standard -> spawn "standard-executor" subagent with model: sonnet
- opus/deep -> spawn "deep-executor" subagent with model: opus
- Return - Prefix the response with the model override info
Model Mapping
| Argument | Executor | Model |
haiku or fast | fast-executor | Haiku |
sonnet or standard | standard-executor | Sonnet |
opus or deep | deep-executor | Opus |
Examples
Force Opus for a simple question
/route opus What's the syntax for a TypeScript interface?Result: Routes to Opus (deep-executor) regardless of query complexity.
Force Haiku for any task
/route haiku Fix the authentication bug in login.tsResult: Routes to Haiku (fast-executor) for cost savings.
Force Sonnet explicitly
/route sonnet Design a caching systemResult: Routes to Sonnet (standard-executor).
Error Handling
If the user doesn't provide a valid model, respond with:
Usage: /route <model> <query>
Models:
haiku, fast - Quick, simple tasks (cheapest)
sonnet, standard - Typical coding tasks (default)
opus, deep - Complex analysis (most capable)
Example: /route opus Analyze the security of this authentication flowDoes 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.

