model-router
Skill0 starsChanged 2 months agoMITView on GitHub
Route an AI task when its execution arrangement must be selected or changed: runtime/provider/model capability, reasoning or compute intensity, tools, single-agent versus bounded multi-agent topology, verification, fallback, or human escalation. Use for explicit routing, high-risk execution design, or a route that cannot meet quality or policy constraints; do not use for ordinary work with a clear runtime and execution method.
17 other projects use a version of this.
Adopted by
Most recently taken up by
- tance-mang/chinese-webnovel-skillstheir own version, first seen Nov 8, 2026
- hamzzaqureshi/gravidextheir own version, first seen Nov 8, 2026
- uniqaiapp/model-routertheir own version, first seen Nov 1, 2026
- francoisdp/skillstheir own version, first seen Oct 22, 2026
- Zelray/hermes-model-routertheir own version, first seen Oct 20, 2026
- m2ai-mcp-servers/claude-skillstheir own version, first seen Oct 11, 2026
Other versions17 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 17
- tance-mang/chinese-webnovel-skills★ 97same name
- nidhi-singh02/agent-router★ 87same name
- RandomNest/aivideo-production-skills★ 15same name
- manishk753/claude-model-router★ 3same name
- francoisdp/skills★ 2same name
- NorkzYT/claude-code-autopilot★ 2same name
- hamzzaqureshi/gravidex★ 1same name
- mehtab78/skills★ 1same name
- tammai/bigin-skills★ 1same name
- Zelray/hermes-model-router★ 1same name
7 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.
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. 0 are common, 16 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 16 edited versions we read keep these.
16
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 19
Check data, tool, and action eligibility with tool permissions.
- Distinctive: line 21
Consider delegation, review, or parallelism with agent topology.
- Distinctive: line 30
Do not load every reference.
- Distinctive: line 39
Prefer one capable agent and the lightest compute profile expected to meet the target.
- Distinctive: line 44
If material uncertainty remains, add stronger reasoning, a specialist, independent review, cross-model review, bounded parallelism, or …
- Distinctive: line 45
Stop when the target is met, evidence converges, marginal gain is small, the budget is reached, or policy requires escalation.
- Distinctive: line 47
Ask for missing information only when it cannot be discovered and would materially change the route.
- Distinctive: line 81
If a human decision is required, use the minimum decision information in human escalation.
- Distinctive: line 85
Do not hard-code concrete models, prices, context limits, or provider controls in stable policy.
- Distinctive: line 86
Do not mistake technical availability for permission or policy eligibility.
- Distinctive: line 87
Do not send deterministic core processing to an LLM without a reason.
- Distinctive: line 88
Do not replace deterministic verification with an LLM reviewer.
- Distinctive: line 89
Do not parallelize one coupled bottleneck or add agents merely because they are available.
- Distinctive: line 90
Do not silently lower the quality target when a runtime or tool fails.
- Distinctive: line 91
Do not persist logs or task state without authority.
- Distinctive: line 92
Do not continue adding compute after the stop condition is met.
“Common” is measured: kept by at least 6 in 10 of the 16 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
Model Router
Choose how a task should be executed before resolving which concrete model should run it. Select the simplest eligible route that can meet the quality target. Models, tools, compute, agents, reviewers, and escalation are means, not goals.
Host, runtime, organization, and repository rules remain authoritative. This skill supplies its own minimum routing, verification, and human-escalation contracts; a host may impose stricter requirements.
Load references only when needed
- Define success and evaluation with quality and evaluation.
- Express requirements and compare candidates with capability routing.
- Check data, tool, and action eligibility with tool permissions.
- Choose reasoning intensity or budget with compute allocation and, for optimization, cost frontier.
- Consider delegation, review, or parallelism with agent topology. Load the economical-worker profile only when that pattern is a real candidate.
- Manage context pressure with context economy; load memory and state only for pause, resume, or checkpoint decisions.
- Retain run evidence with observability. Use run recording only when deterministic or runtime-native instrumentation is unavailable.
- Cross an authority, risk, or confidence boundary with human escalation.
- Handle an unavailable or failing route with failure and degradation.
- Resolve a current model or tool only after discovering the host's available choices. Use registry governance, and treat the model and tool registries as examples, not runtime truth.
- Map the logical route to a host with the relevant adapter: Codex or Claude Code.
- Apply only the relevant workflow delta: implementation, investigation, or high-risk change.
Do not load every reference. Do not load examples or evals during ordinary routing unless evaluating this skill.
Routing flow
- Define the required output, success criteria, quality target, and verification plan.
- Assess impact, reversibility, uncertainty, data eligibility, and action authority.
- Reduce deterministic work first with parsers, search, queries, scripts, computation, schemas, static analysis, or tests.
- Express the remaining need as provider-neutral capabilities and eligibility constraints.
- Identify the limiting shape: depth, breadth, context, risk, or an external dependency.
- Prefer one capable agent and the lightest compute profile expected to meet the target.
- For depth, improve evidence, context, reasoning intensity, or single-agent capability before adding agents.
- For breadth, use only bounded parallel work with independent scopes and a coordinator. Keep one writer per mutable workspace unless writers are isolated.
- Discover currently installed, authenticated, invocable, and policy-eligible runtimes, models, and tools. Then resolve the logical route to concrete controls.
- Execute and verify with ground truth or reproducible checks where possible. An AI's success report is not verification.
- If material uncertainty remains, add stronger reasoning, a specialist, independent review, cross-model review, bounded parallelism, or human escalation only when it addresses that uncertainty.
- Stop when the target is met, evidence converges, marginal gain is small, the budget is reached, or policy requires escalation.
Ask for missing information only when it cannot be discovered and would materially change the route.
Route outcome
Return enough information to reconstruct the decision. The following block is the canonical route-outcome contract. Use every field when emitting YAML; prose may be used instead when it preserves the same information more clearly.
quality_target: low|medium|high|critical
capability_vector:
reasoning_depth: low|medium|high|frontier
coding: none|preferred|required
context_size: low|medium|high
multimodal: none|preferred|required
tool_use: none|preferred|required
long_horizon: false|true
eligibility_constraints: []
deterministic_first: true|partial|false
limiting_shape: depth|breadth|context|risk|external_dependency
topology: single|single-first|bounded-parallel
compute_profile: light|normal|deep|exhaustive
runtime_resolution:
status: unresolved|resolved|degraded|blocked
notes: string
verification: deterministic|mixed|semantic|unavailable
independent_review: false|conditional|true
observability_level: L0|L1|L2|L3
human_escalation: false|conditional|required
assumptions: []
residual_uncertainty: []
human_decision_required: null|stringruntime_resolution.notes records concrete resolution or verification detail without adding vendor-specific fields to the stable contract. human_decision_required is either a short decision statement or null; it is not a second escalation enum.
If a human decision is required, use the minimum decision information in human escalation. Never report requested approval as granted approval.
Guardrails
- Do not hard-code concrete models, prices, context limits, or provider controls in stable policy.
- Do not mistake technical availability for permission or policy eligibility.
- Do not send deterministic core processing to an LLM without a reason.
- Do not replace deterministic verification with an LLM reviewer.
- Do not parallelize one coupled bottleneck or add agents merely because they are available.
- Do not silently lower the quality target when a runtime or tool fails.
- Do not persist logs or task state without authority.
- Do not continue adding compute after the stop condition is met.
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.

