model-selection-guide
Skill0 starsChanged 8 months agoMITView on GitHub
Use when choosing between Claude models for a task — decision tree for Haiku/Sonnet/Opus based on task type, cost estimates, escalation triggers, and cascade patterns.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- mizukaizen/hive-doctrine-skillstheir own version, first seen Mar 9, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- mizukaizen/hive-doctrine-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository190 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- accessibility-auditSkill
- accessibility-complianceSkill
- ado-api-cliSkill
- ado-artifactsSkill
- ado-container-deploymentsSkill
- ado-organizationSkill
- ado-pipeline-designSkill
- ado-pipeline-optimizationSkill
- ado-pipeline-securitySkill
- ado-pipelines-opsSkill
- ado-release-managementSkill
- ado-security-policiesSkill
- ado-work-trackingSkill
- adr-writingSkill
- agentic-ai-patternsSkill
- agentic-evalSkill
- agentic-memorySkill
- agentic-reliabilitySkill
- agentic-securitySkill
- ai-data-moatSkill
- ai-harnessSkill
- ai-product-designSkill
- ai-product-monetizationSkill
- ai-product-positioningSkill
- ai-product-retentionSkill
- ai-product-validationSkill
- ai-safety-guardrailsSkill
- add-analytics-instrumentationSkill
- analyze-account-healthSkill
- analyze-ai-topicsSkill
- analyze-chartSkill
- analyze-dashboardSkill
- analyze-experimentSkill
- analyze-feedbackSkill
- compare-user-journeysSkill
- create-chartSkill
- create-dashboardSkill
- daily-briefSkill
- debug-replaySkill
- diagnose-errorsSkill
- diff-intakeSkill
- discover-analytics-patternsSkill
- discover-event-surfacesSkill
- discover-opportunitiesSkill
- instrument-eventsSkill
- investigate-ai-sessionSkill
- monitor-ai-qualitySkill
- monitor-reliabilitySkill
- replay-ux-auditSkill
- review-agent-insightsSkill
- taxonomySkill
- weekly-briefSkill
- what-would-lenny-doSkill
- analytics-reportingSkill
- api-contract-testingSkill
- api-designSkill
- authentication-patternsSkill
- blockchain-auditSkill
- brainstormingSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 47
Use Opus even for "simple" tasks if:
- Distinctive: line 51
Use Haiku even for "complex" tasks if:
- Distinctive: line 81
When uncertain, start cheaper and escalate only if needed:
- Distinctive: line 127
Never using Haiku (leaving 60x savings on the table for review tasks)
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Model Selection Guide
When to Use
- Unsure which model to use for a specific task
- Want to reduce cost without sacrificing quality
- Designing a multi-phase workflow with model assignments per phase
- @workflow-model-advisor uses this as its decision framework
Core Jobs
1. Decision Tree
Step 1: Identify task type
Is this primarily reading + pattern matching + structured output?
→ Haiku (fast, cheap, accurate for structured tasks)
Examples: code review, lint check, classify intent, format output,
summarize doc, extract fields, check compliance
Is this implementation, debugging, or moderate reasoning?
→ Sonnet (balanced quality + cost)
Examples: write code, fix bug, explain concept, write tests,
analyze trade-offs (simple), build feature
Is this deep architecture, novel problem, or complex multi-step reasoning?
→ Opus (highest capability, use sparingly)
Examples: system design, architecture decisions, evaluate complex trade-offs,
research synthesis, "should we X or Y?" with many unknownsStep 2: Apply cost heuristic
| Model | Relative cost | Speed | Best for |
| Haiku | $ (1x) | Fastest | Review, classify, format, extract |
| Sonnet | $$ (5x) | Fast | Implement, debug, explain, write |
| Opus | $$$$ (15x) | Slower | Design, architecture, deep analysis |
Step 3: Check override conditions
Use Opus even for "simple" tasks if:
- Task has irreversible consequences (production changes, data migrations)
- Previous Sonnet attempt produced insufficient output
Use Haiku even for "complex" tasks if:
- Output is structured/templated (Haiku excels at templates)
- Task is repetitive across many items (batch processing)
- Speed is critical and quality threshold is moderate
2. Per-Workflow Model Assignments
| Workflow | Phase | Agent | Model | Why |
| feature | plan | @architect | Opus | Architecture decisions need deep reasoning |
| feature | implement | subagent | Sonnet | Code generation, balanced |
| feature | test | subagent | Sonnet | Test writing needs understanding |
| feature | review | @reviewer | Haiku | Pattern matching, structured output |
| bugfix | reproduce | subagent | Sonnet | Needs to understand codebase |
| bugfix | diagnose | @debugger | Sonnet | Systematic debugging |
| bugfix | fix | subagent | Sonnet | Code fix, minimal |
| bugfix | verify | @reviewer | Haiku | Check fix completeness |
| refactor | analyze | @architect | Opus | Understanding complex structure |
| refactor | plan | @architect | Opus | Design target state |
| refactor | implement | subagent | Sonnet | Mechanical refactoring |
| refactor | review | @reviewer | Haiku | Pattern check |
| research | gather | subagent | Sonnet | Information gathering |
| research | synthesize | @architect | Opus | Complex reasoning over options |
| research | document | @technical-writer | Haiku | Structured doc output |
| incident | triage | @debugger | Sonnet | Fast diagnosis |
| incident | hotfix | subagent | Sonnet | Minimal fix |
| incident | postmortem | @technical-writer | Haiku | Structured template |
3. Cascade Pattern
When uncertain, start cheaper and escalate only if needed:
1. Try Haiku → evaluate output quality
2. If insufficient → escalate to Sonnet → evaluate
3. If still insufficient → escalate to Opus
4. Never auto-escalate without notifying user of cost increase4. Cost Estimates Per Task
| Task type | Model | Estimated cost |
| Code review (500 lines) | Haiku | ~$0.01 |
| Bug fix (small) | Sonnet | ~$0.05-0.15 |
| Feature implementation | Sonnet | ~$0.10-0.50 |
| Architecture design | Opus | ~$0.50-2.00 |
| Research synthesis | Opus | ~$0.50-1.50 |
Cost reminder: Opus = 15x Haiku. Code review in Opus costs 15x more with same quality output.
Key Concepts
- Haiku — fast, cheap, accurate for structured/pattern tasks; NOT for deep reasoning
- Sonnet — balanced for most implementation; default for unknown tasks
- Opus — most capable; use only when task genuinely requires deep reasoning
- Cascade — start cheap, escalate if output quality insufficient
- Cost multiplier — Opus = 15x Haiku; always ask "does this task need Opus?"
Checklist
- Task type identified before selecting model?
- Haiku considered first for review/classification/formatting tasks?
- Opus reserved for genuine architecture/deep-reasoning tasks?
- User notified if escalating from Haiku to Opus (15x cost increase)?
- Per-phase model assignments made for multi-phase workflows?
Key Outputs
- Model recommendation with reasoning + cost estimate
- Cascade suggestion if task type is ambiguous
Output Format
- 🔴 Critical — using Opus for code review or formatting (massive overspend), using Haiku for architecture decisions (under-powered)
- 🟡 Warning — defaulting to Sonnet for everything without considering Haiku for structured tasks
- 🟢 Suggestion — use cascade pattern for uncertain tasks, assign Haiku to all review phases
Anti-Patterns
- Using Opus as the safe default (expensive, often unnecessary)
- Never using Haiku (leaving 60x savings on the table for review tasks)
- Using model complexity as proxy for task importance
- Switching models mid-task without reason (inconsistent output)
Integration
workflow-templates— model assignments per phase come from this skill@workflow-model-advisoruses this as its decision framework@workflow-orchestratorreads model assignments when dispatching phase subagents
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

