model-router

Classify tasks and select the optimal model tier with rationale and cost delta.

4|1|Updated Apr 11, 2026
One-click install
npx skills add https://github.com/m2ai-portfolio/m2ai-skills-pack --skill model-router-m2ai-portfolio
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: model-router
Source: https://github.com/m2ai-portfolio/m2ai-skills-pack/tree/main/skills/model-router
Command: npx skills add https://github.com/m2ai-portfolio/m2ai-skills-pack --skill model-router-m2ai-portfolio

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Classify a task and determine the optimal model tier (Opus/Sonnet/Haiku) to use, with rationale and cost delta to guide decisions.

Core Features & Use Cases

  • Routing decisions: Analyze task characteristics (reasoning depth, output length, and context) and select the appropriate model tier.
  • Rationale and cost delta: Provide justification and estimated cost impact to enable governance and budgeting.
  • Use Case: When a user asks which model to use for a data transformation task, this skill outputs the recommended tier and a brief rationale.

Quick Start

Use the model-router to determine the optimal model tier for a given task description.

Frequently Asked Questions about model-router

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

FAQPage Schema
How do I determine the optimal AI model tier for a specific task?

Determining the optimal AI model tier involves analyzing task characteristics like reasoning depth, output length, and context needs to select Opus, Sonnet, or Haiku, balancing performance, cost, and risk to avoid under- or over-provisioning.

What is task classification for model routing in AI systems?

Task classification for model routing is the process of evaluating a task description to direct it to the best model tier. It balances performance, cost, and risk, selecting Opus, Sonnet, or Haiku to avoid under- or over-provisioning.

How do I get a cost estimate when routing tasks to different model tiers?

To get a cost estimate when routing tasks, the model-router skill provides an estimated cost delta alongside its routing decision. It evaluates task characteristics and outputs the recommended tier with rationale to guide governance and budgeting.

Does model routing work for code generation and data analysis tasks?

Yes, model routing works for code generation and data analysis tasks. It applies to any task with varying reasoning depth, output length, and context needs, selecting the appropriate Opus, Sonnet, or Haiku tier for optimal results.

What is the best way to avoid over-provisioning AI models for content generation?

To avoid over-provisioning AI models for content generation, use model routing to analyze task characteristics and select the most cost-effective tier. This structured routing decision balances performance and cost by matching the model tier to the task's reasoning depth.