Agent skill · Workflow & Productivity

model-routing

Intelligent model selection - routes tasks to Haiku (fast/cheap), Sonnet (balanced), or Opus (complex/strategic) based on task complexity analysis

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill model-routing --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 5 KB
Bundled scripts: none
Version: 1.0.0
Path: skills/ai-llm/model-routing/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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

What's inside
Steps it walks through
  1. Routing Decision Matrix
  2. Automatic Routing Rules
  3. Route to HAIKU when:
  4. Route to SONNET when:
  5. Route to OPUS when:
  6. Cost Optimization
  7. Implementation in Task Tool
  8. Command-Level Routing
  9. Escalation Pattern
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
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.

Keep going