route

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

A task router that chooses which language model should handle a request based on its type and difficulty.

In plain words
What is it for?
It helps route research, writing, and other task categories to the configured models, either through /route or automatically when a prompt is submitted.
Why use it?
It removes the need to decide manually which model to use for each prompt. Uncertain requests can be classified by local or low-cost backup models.

Skill for Claude Code

Written for Claude Code: UserPromptSubmit hook event. Also seen: positional $N argument.

Part of the llm-router plugin — 4 skills, 5 commands, 2 agents, 7 hooks, 1 MCP server shipped together

Good fit It helps route research, writing, and other task categories to the configured models, either through /route or automatically when a prompt is submitted.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ypollak2/llm-router/route
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 route
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, 5 commands, 2 agents, 7 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 route

README.md
[![agentmods](https://agentmods.dev/badge/skills/ypollak2/llm-router/route/github.svg)](https://agentmods.dev/skills/ypollak2/llm-router/route)
Your own site
<a href="https://agentmods.dev/skills/ypollak2/llm-router/route"><img src="https://agentmods.dev/badge/skills/ypollak2/llm-router/route/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for route

Your own site · 80×15
<a href="https://agentmods.dev/skills/ypollak2/llm-router/route"><img src="https://agentmods.dev/badge/skills/ypollak2/llm-router/route.svg" alt="Reviewed on agentmods" width="80" 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 883 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.00883
Opus 5.5 $0.00006 $0.00353
Sonnet 5.5 $0.00003 $0.00177
Haiku 4.5 $0.00002 $0.00088

Measured 2mo ago against content hash 56cc1cd82b07, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

route 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 2mo 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/route/SKILL.md · 85 lines

How it starts

The opening of the file, as written. The whole thing — 85 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/route — Smart LLM Task Router

Route any task to the optimal LLM automatically.

Usage

/route <task description>

Auto-Classification

Most prompts are classified automatically by the UserPromptSubmit hook — no /route needed. The hook uses a multi-layer classification chain:

  1. Heuristic scoring (instant, free) — Three signal layers accumulate evidence:

    • Intent patterns (+3) — action verbs and task markers
    • Topic patterns (+2) — domain-specific nouns
    • Format patterns (+1) — structural and temporal cues
    • High-confidence match (score >= 4) routes immediately
  2. Ollama local LLM (~1s, free) — When heuristics are uncertain, qwen3.5 classifies locally via the chat API with thinking disabled

  3. Cheap API model (~$0.0001) — If Ollama is unavailable, Gemini Flash or GPT-4o-mini classifies

  4. Weak heuristic / auto fallback — Last resort: low-confidence heuristic match or llm_route (full LLM classifier)

Task Categories

The consolidated llm(prompt=..., task=..., tier=...) tool is the front door for all of these — task= picks the specialization, tier= (fast/balanced/best) picks the cost tier:

Category Call Signals
Research llm(task="research") Current events, news, funding, trends, market data, rankings
Generate llm(task="generate") Writing, drafting, brainstorming, emails, articles, translations
Analyze llm(task="analyze") Evaluation, debugging, comparison, trade-offs, code review
Code llm(task="code") Implementation, refactoring, building, bug fixes
Query llm(task="query") (or task="auto") Simple questions, definitions, explanations
Image llm_image Visual generation, design, artwork

Complexity & Profiles

Complexity Profile Model Tier
Simple budget Gemini Flash, GPT-4o-mini
Moderate balanced GPT-4o, Gemini 2.5 Pro
Complex premium o3, Gemini 2.5 Pro

Read the full file on GitHub · 85 lines

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. 2mo ago Changed · +3 lines 56cc1cd82b07
  2. 3mo ago First seen · 82 lines · 16 tokens per session scan A b85960235476

Subscribe to this mod's changes

route is a skill published in the GitHub repository ypollak2/llm-router (131 stars, last pushed yesterday), licensed MIT. It adds 16 tokens to every session and 883 once invoked, about $0.0001 per session on Opus 5.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

route compared with skills from other repositories

route next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
routeypollak2/llm-routerSkill131yesterdayMITA16Claude Code
clawrouterBlockRunAI/ClawRouterSkill6.7k2d agoMITA171Claude Code, Codex
imagegenBlockRunAI/ClawRouterSkill6.7k2d agoMITA45Claude Code, Codex
phoneBlockRunAI/ClawRouterSkill6.7k2d agoMITA72Claude Code, Codex
polymarket-tradingBlockRunAI/ClawRouterSkill6.7k2d agoMITA76Claude Code, Codex
releaseBlockRunAI/ClawRouterSkill6.7k2d agoMITA44Claude Code, Codex
predexonBlockRunAI/ClawRouterSkill6.7k2d agoMITA84Claude Code, Codex