ModelRouting

Routes subagent tasks to Claude models (opus, sonnet, haiku based on task type.

1|Updated Apr 2, 2026
One-click install
npx skills add https://github.com/mec07/claude_skills --skill modelrouting
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ModelRouting
Source: https://github.com/mec07/claude_skills/tree/main/stow/ModelRouting
Command: npx skills add https://github.com/mec07/claude_skills --skill modelrouting

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Route subagents to the right model (opus/sonnet/haiku) based on task type to optimize performance and resource use.

Core Features & Use Cases

  • Model mapping: assigns task types to the most suitable model (opus for reasoning, sonnet for code, haiku for mechanical work).
  • Deviation policy: allows justified deviations from the default routing when context warrants it.
  • Self-improvement: learns from outcomes to refine the routing table over time.

Quick Start

Dispatch a task to the routing system and it will select the appropriate model (opus, sonnet, or haiku) based on the task type.

Frequently Asked Questions about ModelRouting

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I route subagents to the right Claude model for different tasks?

Model routing assigns subagents to opus for reasoning, sonnet for code, and haiku for mechanical tasks to optimize performance and resource use across dispatched agent tasks.

What is the best way to optimize model selection for planning, coding, and debugging tasks?

Model selection optimization maps task types to appropriate models, assigning opus for planning and reasoning, sonnet for coding and debugging, and haiku for simple lookups, defaulting to opus for ambiguous cases.

Can I override the default model routing when a specific task context requires a different model?

Yes, a deviation policy allows justified deviations from the default model routing when specific context warrants it, requiring a brief justification for overriding the standard task-to-model mapping.

Does the model routing system learn and update its task dispatch rules over time?

Yes, the model routing system includes a self-improvement hook that learns from task outcomes and refines the routing table over time to improve future model selection accuracy.

When should I use haiku instead of opus for subagent task dispatch?

Use haiku for mechanical tasks and simple lookups to conserve resources, while opus should be used for reasoning, planning, and design tasks or any ambiguous cases where heavy processing is required.

What happens if a dispatched task type is ambiguous and does not clearly match a specific model?

For ambiguous tasks that do not clearly match a defined category, the default routing policy favors opus to ensure high-quality reasoning and processing across unspecified task types.