routing
SolidRoute tasks to the cheapest capable model automatically using llm_router MCP tools
AI & Automation 89 stars
11 forks Updated today MIT
Install
Quality Score: 87/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# LLM Router — Smart Routing Skill
Route tasks to the cheapest capable model automatically using llm_router MCP tools.
## When to Use This Skill
Before answering research, code, writing, or analysis tasks — call the appropriate
llm_router tool instead of answering directly. The router picks the cheapest model
that can handle the task (Ollama → Codex → paid APIs in free-first order).
## Task → Tool Mapping
| Task type | Tool to call | Why |
|-----------|-------------|-----|
| Simple factual question | `llm_query` | Gemini Flash / Groq — 50× cheaper than o3 |
| Research / current events | `llm_research` | Perplexity (web-grounded, not stale) |
| Writing / summaries / brainstorm | `llm_generate` | Gemini Flash / Haiku |
| Deep analysis / debugging | `llm_analyze` | GPT-4o / Gemini Pro |
| Code generation / refactoring | `llm_code` | Ollama → Codex built-in → o3 |
| Don't know which type | `llm_auto` | Auto-classifies + routes, tracks savings |
## How to Call
```
llm_query(prompt="What is the capital of France?")
llm_code(prompt="Refactor this function to use async/await", complexity="moderate")
llm_research(prompt="What changed in Python 3.13?")
llm_auto(prompt="<the full user request>") # safest default
```
## When NOT to Route
- File read/write/edit operations — execute directly
- Inline tool calls where you have the answer already
- Tasks under 5 words (likely follow-ups, not standalone requests)
## Cost Impact
Routing simple tasks to Gemini Flash instead of o3 s...
Details
- Author
- ypollak2
- Repository
- ypollak2/llm-router
- Created
- 6 months ago
- Last Updated
- today
- Language
- Python
- License
- MIT
Integrates with
Bundled in these plugins
Similar Skills
Semantically similar based on skill content — not just same category
AI & Automation Featured
route
Route a task to the best LLM based on task type and complexity
89 Updated today
ypollak2 AI & Automation Listed
routing
Cost-optimised task routing. Use at the start of any coding, search, extraction, review, or multi-step task to pick the cheapest execution strategy (deterministic tool, haiku worker, sonnet worker, main model, fable worker) and to handle escalation when a worker fails. Also triggers on mentions of cost, budget, routing, or delegation.
36 Updated 3 weeks ago
ThomasLangbroek AI & Automation Solid
savings
Report how much routing has saved by sending tasks to cheaper models
89 Updated today
ypollak2