Skip to content
Back to skills

Model Routing Itsmattg Property Tracker

ASecurity

Model selection strategy for subagents — haiku for exploration, sonnet for implementation, opus for architecture/security

  • 30 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 12, 2026
ai-agentsdebuggingcode-reviewsecuritydocumentation

Security analysis

A100/100

Scanned November 12, 2026

npx -y skills add majiayu000/claude-skill-registry-data --skill model-routing-itsmattg-property-tracker --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Model Routing Itsmattg Property Tracker?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Model Routing Itsmattg Property Tracker
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-model-routing-itsmattg-property-tracker-claude-skill-registry-data/badge)](https://www.skillsdirectory.com/skills/majiayu000-model-routing-itsmattg-property-tracker-claude-skill-registry-data)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: model-routing
description: Model selection strategy for subagents — haiku for exploration, sonnet for implementation, opus for architecture/security
disable-model-invocation: true
---

# Model Routing Strategy

Route subagents to the cheapest sufficient model. The `model` parameter on Task tool calls controls this.

## When to Run

- Before dispatching Task subagents (which model to use?)
- When a subagent fails quality review (escalate to next tier?)
- When reviewing Ralph epic configuration

## Routing Table

| Task Type | Model | Rationale |
|-----------|-------|-----------|
| Exploration/search (Explore agents) | haiku | Fast, cheap, sufficient for find/read |
| Simple edits, single-file changes | haiku | Clear instructions, low complexity |
| Documentation writing | haiku | Structure is straightforward |
| Multi-file implementation | sonnet | Best balance for coding tasks |
| PR/code review | sonnet | Understands context, catches nuance |
| Test writing | sonnet | Needs pattern matching, not deep reasoning |
| Complex architecture, planning | opus | Deep reasoning required |
| Security analysis | opus | Can't afford to miss vulnerabilities |
| Debugging complex bugs | opus | Needs to hold entire system in mind |
| Ralph subagent tasks | sonnet | Default for autonomous execution, escalate on failure |

## Fallback Escalation

When a subagent fails quality review, retry with the next tier:
1. **haiku fails** → retry with sonnet
2. **sonnet fails** → retry with opus
3. **opus fails** → record failure (circuit breaker)

Do NOT escalate for:
- Syntax errors (fix in same tier)
- Missing imports (fix in same tier)
- Test-only failures with obvious fix (fix in same tier)

Only escalate when the failure indicates insufficient reasoning capability.

## Examples

```
# Explore agent — use haiku
Task(subagent_type="Explore", model="haiku", ...)

# Implementation subagent — use sonnet
Task(subagent_type="general-purpose", model="sonnet", ...)

# Architecture/security review — use sonnet (or opus for security-critical)
Task(subagent_type="code-reviewer", model="sonnet", ...)
```

## Cost Reference

| Model | Input/MTok | Output/MTok | Relative Cost |
|-------|-----------|-------------|---------------|
| Haiku | $0.80 | $4.00 | 1x |
| Sonnet | $3.00 | $15.00 | ~4x |
| Opus | $15.00 | $75.00 | ~19x |

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.