route-models
Generate a cheapest-first model routing setup with fallbacks and quality escalation, from eval-models results or a user-chosen model order. Produces a standalone Python router (escalates when a reply errors or fails format guards), a routing.json, and a LiteLLM proxy config (error-based fallbacks). Use whenever the user wants model routing, fallbacks, failover, escalation to a stronger model, cost-saving cascades, "use the cheap model unless it fails", or a LiteLLM or gateway config across Claude, Gemini, OpenAI, or local models, even if they don't say "routing". Never deploys or applies anything.
Pinned to revision 4490b688bdf8, so it is the text this page describes rather than whatever the author pushed since.
Files
- skills/route-models/SKILL.md
- skills/route-models/assets/router.py
- skills/route-models/scripts/make_routing.py
- skills/route-models/scripts/mf_core.py
Every link opens the file at its source, pinned to the revision this page describes.