← ClaudeAtlas

routelisted

Route a task to the best LLM based on task type and complexity
ypollak2/llm-router · ★ 27 · AI & Automation · score 80
Install: claude install-skill ypollak2/llm-router
# /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 | Category | Tool | Signals | |----------|------|---------| | Research | `llm_research` | Current events, news, funding, trends, market data, rankings | | Generate | `llm_generate` | Writing, drafting, brainstorming, emails, articles, translations | | Analyze | `llm_analyze` | Evaluation, debugging, comparison, trade-offs, code review | | Code | `llm_code` | Implementation, refactoring, building, bug fixes | | Query | `llm_query` | Simple questions, definitions, explanations | | Image | `llm_image` | Vi