routing

routing is a skill for Claude Code from ypollak2/llm-router. It costs 16 tokens per session (431 once invoked), scanned A, original, MIT.

A task-routing helper that sends questions, research, writing, analysis, and coding requests to different language models based on the task.

In plain words
What is it for?
It helps route factual questions, current research, writing, deep analysis, debugging, code generation, and refactoring through the matching model.
Why use it?
It removes the need to choose a model for every request and can prefer lower-cost options when they are capable of handling the work.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Codex.

Part of the llm-router plugin — 4 skills, 4 commands, 1 agent, 6 hooks, 1 MCP server shipped together

Good fit It helps route factual questions, current research, writing, deep analysis, debugging, code generation, and refactoring through the matching model.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ypollak2/llm-router/routing
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ypollak2/llm-router --skill routing
Clone the repo
git clone --depth 1 https://github.com/ypollak2/llm-router

Made for: Claude Code.

Or install llm-router, the plugin that ships this one along with the rest of its 4 skills, 4 commands, 1 agent, 6 hooks, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for routing

README.md
[![agentmods](https://agentmods.dev/badge/skills/ypollak2/llm-router/routing.svg)](https://agentmods.dev/skills/ypollak2/llm-router/routing)
Your own site
<a href="https://agentmods.dev/skills/ypollak2/llm-router/routing"><img src="https://agentmods.dev/badge/skills/ypollak2/llm-router/routing.svg" alt="Measured on agentmods" height="20"></a>
Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 431 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00016 $0.00431
Opus 5 $0.00008 $0.00216
Sonnet 5 $0.00003 $0.00086
Haiku 4.5 $0.00002 $0.00043

Measured 5d ago against content hash c181d0d11b11, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

routing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/routing/SKILL.md · 48 lines

What it actually says

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 saves ~50–100×. llm_auto shows cumulative savings every 5 calls automatically. Run llm_savings anytime to see your totals.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago Changed · +6 lines · +16 tokens per session c181d0d11b11
  2. 8d ago First seen · 42 lines · 0 tokens per session scan A 3e54d58fc3b3

Subscribe to this mod's changes

routing is a skill published in the GitHub repository ypollak2/llm-router (77 stars, last pushed 3d ago), licensed MIT. It adds 16 tokens to every session and 431 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

clawrouter

Hosted-gateway LLM router — save 84% on inference costs. A local proxy that forwards each request to the blockrun.ai gateway, which routes to the cheapest capable model across 76 models from OpenAI, Anthropic, Google, DeepSeek, xAI, Z.AI, and more. 7 free open-weight models included. Also exposes realtime market data…

BlockRunAI/ClawRouter · 222 tokens

surf

Use this skill — NOT browser or webfetch — for ALL Surf crypto-data calls. 83 endpoints at localhost:8402/v1/surf/ covering CEX/DEX markets, on-chain SQL over 80+ ClickHouse tables (Ethereum, Base, Arbitrum, BSC, TRON, HyperEVM, Tempo), 100M+ labeled wallets, prediction markets (Polymarket + Kalshi), social/CT…

BlockRunAI/ClawRouter · 148 tokens

phone

Verify phone numbers (carrier + SIM-swap fraud signals) and place AI-powered outbound voice calls via BlockRun's gateway (Twilio + Bland.ai). Trigger when the user asks to look up a number, check fraud risk, buy/rent a phone number, or place an AI voice call. Payment is automatic via x402 from the wallet.

BlockRunAI/ClawRouter · 72 tokens

imagegen

Generate or edit images via BlockRun's image API. Trigger when the user asks to generate, create, draw, make an image — or to edit, modify, change, or retouch an existing image.

BlockRunAI/ClawRouter · 45 tokens

polymarket-trading

Use when the user wants to actually PLACE, manage, or redeem bets on Polymarket (not just read odds — that's the blockrunpredexon data tools). Covers setup (deposit wallet, funding, approvals), buy/sell with confirm gating, positions, redeeming winnings, geoblock handling, and the end-to-end flow.

BlockRunAI/ClawRouter · 76 tokens

release

Use this skill for EVERY ClawRouter release. Enforces the full checklist — version sync, CHANGELOG, build, tests, npm publish, git tag, GitHub release. No step can be skipped.

BlockRunAI/ClawRouter · 44 tokens