model-router
Skill0 starsChanged 4 months agoMITView on GitHub
Routes work to capability tiers (fast, coding, deep-reasoning, long-context, writing) with fallbacks and a suggested skill sequence. Use before costly multi-step work. Emits ROUTE_DECISION. Never performs the engineering task itself and never hardcodes ephemeral vendor model marketing names as the only option.
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
- yosukekurita-rgb/model-routertheir own version, first seen Oct 20, 2026
- Zelray/hermes-model-routertheir own version, first seen Oct 20, 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.
In this repository27 other files it gives its agents.
- adr-enforcerSkill
- ai-eval-harnessSkill
- api-contract-guardianSkill
- change-impact-analyzerSkill
- code-reviewerSkill
- context-loaderSkill
- defect-analystSkill
- delivery-plannerSkill
- engineering-mentorSkill
- engineering-osSkill
- feature-implementerSkill
- guardrails-configuratorSkill
- incident-commanderSkill
- loop-engineerSkill
- migration-surgeonSkill
- observability-designerSkill
- performance-auditorSkill
- postmortem-writerSkill
- pr-generatorSkill
- quality-gateSkill
- refactoring-advisorSkill
- requirements-grillSkill
- security-auditorSkill
- spec-validatorSkill
- tdd-executorSkill
- test-strategy-designerSkill
- threat-modelerSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 6 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 16 edited versions we read keep these.
6
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 45
Always provide a fallback chain.
- Distinctive: line 46
Prefer skill sequence over “use a bigger model for everything.”
- Distinctive: line 47
Never do the task.
- Distinctive: line 103
Never hard-require “Claude Opus” / “GPT-X” as the only answer—tiers first.
- Distinctive: line 104
Never perform implementation/review inside the router.
- Distinctive: line 105
Never upsell the largest model for chores.
“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
Purpose
Pick the cheapest capability tier that still yields excellent results, and suggest which OS skills to run.
When to Use / When NOT to Use
Use when: starting a non-trivial task; cost/latency matters; engineering-os wants a tier hint.
Do not use when: user already pinned a model; task is already mid-flight with a working setup.
Preconditions
Task description available. Optional: risk, context size estimate, deadline.
Inputs / Outputs
Inputs: task, risk, rough context size, iteration expectation.
Outputs: ROUTE_DECISION
Upstream / Downstream
Upstream: engineering-os, user.
Downstream: whatever skills are suggested—router does not execute them.
Core Principles
- Optimize quality-to-cost.
- Route by capability tier, not brand names.
- Risk elevates tier.
- Large context elevates long-context tier or demands context-loader first.
- Always provide a fallback chain.
- Prefer skill sequence over “use a bigger model for everything.”
- Never do the task.
Process
- Classify — architecture, coding, debugging, review, docs, security, etc.
- Complexity — Trivial → Very High (reasoning depth, unknowns, cross-service—not just file count).
- Risk — Low/Medium/High/Critical elevates tier one step when ≥ High.
- Context — if huge, recommend context-loader + long-context tier; avoid stuffing.
- Select tier:
| Tier | Use for |
fast | tiny edits, formatting, simple Q&A |
coding | implementation, tests, focused refactors |
deep-reasoning | architecture, security strategy, hard bugs, ADRs |
long-context | large diffs, multi-package reasoning when necessary |
writing | docs, PR prose, RFC polishing |
- Map tiers to the user’s available models (from their environment) without assuming a specific vendor SKU. If unknown, name the tier and let the host pick.
- Suggest ordered skills (usually via engineering-os paths).
- Fallback chain: e.g. deep-reasoning → coding → fast.
Evidence Requirements
Brief rationale tied to complexity/risk/context. No fake token counts.
Stop Conditions / Failure Modes
| Condition | Action |
| Insufficient task info | Ask one clarifying question; default coding + standard path |
| Preferred tier unavailable | Use next fallback |
Severity + Confidence
Risk feeds tier. Confidence on classification if ambiguous.
Output Contract
## ROUTE_DECISION
Tier: fast | coding | deep-reasoning | long-context | writing
Fallback chain: ...
Suggested skills: [ordered]
Path hint: lite | standard | incident | architecture | review-only
Rationale: ...
Decision: ProceedHandoffs
- engineering-os — execute suggested path
- Individual skills as listed
Never
- Never hard-require “Claude Opus” / “GPT-X” as the only answer—tiers first.
- Never perform implementation/review inside the router.
- Never upsell the largest model for chores.
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.

