Routes tasks to Haiku (fast/cheap), Sonnet (balanced), or Opus (complex/strategic) by analyzing task complexity. Helps optimize cost vs quality and build tiered routing layers.
Ships in claude-skills-library. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You have access to intelligent model routing. Before executing any task, analyze complexity and route to the appropriate model tier.
Current model IDs and pricing — Last verified: 2026-08-28. Re-verify at platform.claude.com before trusting these again; they have moved more than once in 2026. Haiku →
claude-haiku-4-5($1.00 / $5.00 per 1M input/output) · Sonnet →claude-sonnet-5($2.00 / $10.00) · Opus →claude-opus-5($5.00 / $25.00, default). For the hardest long-horizon reasoning, escalate above Opus toclaude-fable-5($10.00 / $50.00 — most capable; thinking is always on, no disabling it; reserve for genuinely demanding work). Model IDs are complete as written — never append a date suffix. The tiers below are model-agnostic.
TASK COMPLEXITY ANALYSIS
────────────────────────────────────────────────────────────────
HAIKU (Fast, Cheap) - claude-haiku-4-5 - Use for:
├── Simple file operations (read, list, navigate)
├── Scaffolding and boilerplate generation
├── Deterministic transformations (format, lint, compile)
├── Status checks and health monitoring
├── SEO metadata generation
├── Deployment commands (after code is written)
├── Documentation formatting
├── Simple search and replace
│
│ Token cost: $1.00/1M input, $5.00/1M output
│ Latency: Fastest
│ Use when: Task has clear, unambiguous steps
SONNET (Balanced) - claude-sonnet-5 - Use for:
├── Feature implementation (standard complexity)
├── Bug fixes requiring analysis
├── Content writing (articles, social posts)
├── Code review and quality checks
├── Test generation
├── Refactoring with clear patterns
├── API integration work
├── Database schema design
│
│ Token cost: $2.00/1M input, $10.00/1M output
│ Latency: Medium
│ Use when: Task requires reasoning but not deep strategy
OPUS (Strategic, Complex) - claude-opus-5 - Use for:
├── Architecture decisions (system design)
├── Multi-agent coordination (council, swarm)
├── Strategic planning (business, product)
├── Complex debugging (multi-file, subtle bugs)
├── Security audits and vulnerability analysis
├── Enterprise AI system design
├── Book writing (narrative, character development)
├── Research synthesis (multiple sources)
├── Ambiguous requirements interpretation
│
│ Token cost: $5.00/1M input, $25.00/1M output
│ Latency: Slower; most capable of the routine tiers
│ Use when: Task requires deep reasoning, creativity, or strategy
FABLE (Hardest, escalation only) - claude-fable-5 - Use for:
├── Long-horizon agentic work where Opus already fell short
├── The single hardest step in an otherwise-Opus-routed task
│
│ Token cost: $10.00/1M input, $50.00/1M output
│ Latency: Slowest; thinking is always on (cannot be disabled)
│ Use when: Opus-tier reasoning wasn't enough — this is a ceiling, not a starting point
When processing a request, apply these rules:
*.config.*, package.json, tsconfig.json/mcp-status, /inventory-status, /nextjs-deploy (execution phase)*.ts, *.tsx, *.py, *.md (content files)/article-creator, /create-music, /spec, /generate-social/starlight-architect, /council, /author-team, /researchBEFORE (No routing):
All tasks → Opus → $25.00/1M output tokens
AFTER (With routing):
Simple tasks (40%) → Haiku → $5.00/1M = $2.00
Medium tasks (45%) → Sonnet → $10.00/1M = $4.50
Complex tasks (15%) → Opus → $25.00/1M = $3.75
──────────────────────────────────────────────
TOTAL: $10.25 vs $25.00 = 59% cost reduction
When using the Task tool, specify model based on routing:
// Simple task - use haiku
Task({
subagent_type: "Explore",
model: "haiku",
prompt: "List all files in src/"
})
// Medium task - use sonnet (default)
Task({
subagent_type: "code-reviewer",
model: "sonnet",
prompt: "Review this PR for issues"
})
// Complex task - use opus
Task({
subagent_type: "Plan",
model: "opus",
prompt: "Design the architecture for a multi-tenant SaaS platform"
})
| Command | Default Model | Rationale |
|---|---|---|
/acos | sonnet | Router needs reasoning |
/article-creator | sonnet | Content creation |
/create-music | sonnet | Creative work |
/infogenius | sonnet | Research + creation |
/starlight-architect | opus | Strategic design |
/council | opus | Multi-perspective |
/research | sonnet | Information synthesis |
/spec | sonnet | Feature planning |
/nextjs-deploy | haiku | Execution |
/mcp-status | haiku | Status check |
/inventory-status | haiku | Status check |
/publish | haiku | Execution |
/polish-content | sonnet | Editing |
/review-content | sonnet | Quality check |
If a haiku-routed task fails or produces poor results:
haiku (attempt) → fail → sonnet (retry) → fail → opus (retry) → fail (rare) → fable (last resort)
This skill is the estate's model-facts reference — current model IDs, context windows, and per-token pricing. It is not the only routing config in the estate, and on task-class routing decisions it does not have the final word:
starlight-evals/routing-table.json is the evidence-derived source of truth for task-class
routing — which tier a task class should hit, backed by eval-round evidence and confidence
scores rather than the judgment calls in this file. Where its route for a task class disagrees
with the "Route to X when" rules above, the table wins.agentic-ops-hub/fleet/model-routing.json and a referenced ~/.starlight/routing.toml are
operational routing configs elsewhere in the estate. They route by abstract tier name (opus,
sonnet, ...) and should resolve those names against this skill (or the evals table) rather than
hardcoding their own model IDs or pricing.Model Routing v1.1 - Implementing claude-flow's intelligent routing pattern. Last verified: 2026-08-28.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
model-routing, cost-optimization, task-routing, claude-models
/claude-skills-library:model-routingfrom claude-skills-library
npx claudepluginhub frankxai/claude-skills-library --plugin claude-skills-library116 skills in this plugin
/acos-metaACOS self-description and configuration skill. Documents how ACOS works, how to extend it, how to add new skills/commands/agents, and how to debug the hook system. Use when building new ACOS capabilities, understanding the system architecture, or onboarding to ACOS for the first time./acos-visual-genGenerate research-grounded visuals using the InfoGenius pipeline. Use when creating infographics, diagrams, educational visuals, or any image that benefits from factual accuracy. Supports 8 visual styles (3D, technical, minimalist, photorealistic, futuristic, vintage, cartoon, standard) and 4 audience levels./agent-hygieneThe quality bar for any agent working on agent definitions, skills, commands, hooks, AGENTS.md or CLAUDE.md, in any repo and any harness. Use at session start, before editing a file under .claude/agents, agents/, .claude/commands or any SKILL.md, before handing work back, and whenever choosing which model tier (Haiku, Sonnet, Opus, Fable) or effort level a task deserves. Carries the estate guardrails, the agent-file contract the linter enforces, the verification line every hand-back ends with, and the routing rule for spending the top tier.Other plugins' skills for the same job