model-routing
Intelligent model selection - routes tasks to Haiku (fast/cheap), Sonnet (balanced), or Opus (complex/strategic) based on task complexity analysis
npx skills add majiayu000/claude-skill-registry --skill model-routing --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Model Routing System You have access to intelligent model routing. Before executing any task, analyze complexity and route to the appropriate model tier. ## Routing Decision Matrix ``` TASK COMPLEXITY ANALYSIS ──────────────────────────────────────────────────────────────── HAIKU (Fast, Cheap) - 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: ~$0.25/1M input, $1.25/1M output │ Latency: Fastest │ Use when: Task has clear, unambiguous steps SONNET (Balanced) - 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: ~$3/1M input, $15/1M output │ Latency: Medium │ Use when: Task requires reasoning but not deep strategy OPUS (Strategic, Complex) - Use f
- Routing Decision Matrix
- Automatic Routing Rules
- Route to HAIKU when:
- Route to SONNET when:
- Route to OPUS when:
- Cost Optimization
- Implementation in Task Tool
- Command-Level Routing
- Escalation Pattern
What does the model-routing skill do?
Intelligent model selection - routes tasks to Haiku (fast/cheap), Sonnet (balanced), or Opus (complex/strategic) based on task complexity analysis
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill model-routing --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
