Agent skill · Documentation

smart-model-switching

Auto-route tasks to the cheapest Claude model that works correctly. Three-tier progression: Haiku → Sonnet → Opus. Classify before responding. HAIKU (default): factual Q&A, greetings, reminders, status checks, lookups, simple file ops, heartbeats, casual chat, 1-2 sentence tasks. ESCALATE TO SONNET: code >10 lines, analysis, comparisons, planning, reports, multi-step reasoning, tables, long writing >3 paragraphs, summarization, research synthesis, most user conversations. ESCALATE TO OPUS: architecture decisions, complex debugging, multi-file refactoring, strategic planning, nuanced judgment,

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

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

Facts
Files in the skill folder: 2
SKILL.md size: 6 KB
Bundled scripts: none
Version: 1.0.0
Declared author: OpenClaw Community
Path: skills/ai-llm/smart-model-switching/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

# Smart Model Switching **Three-tier Claude routing: Haiku → Sonnet → Opus** Start with the cheapest model. Escalate only when needed. Save 50-90% on API costs. ## The Golden Rule > If a human would need more than 30 seconds of focused thinking, escalate from Haiku to Sonnet. > If the task involves architecture, complex tradeoffs, or deep reasoning, escalate to Opus. ## Cost Reality | Model | Input | Output | Relative Cost | |-------|-------|--------|---------------| | Haiku | \$0.25/M | \$1.25/M | 1x (baseline) | | Sonnet | \$3.00/M | \$15.00/M | 12x | | Opus | \$15.00/M | \$75.00/M | 60x | **Bottom line:** Wrong model selection wastes money OR time. Haiku for simple, Sonnet for standard, Opus for complex. --- ## 💚 HAIKU — Default for Simple Tasks **Stay on Haiku for:** - Factual Q&A — "what is X", "who is Y", "when did Z" - Quick lookups — definitions, unit conversions, short translations - Status checks — calendar, file reads, session monitoring - Heartbeats — periodic checks, HEARTBEAT_OK responses - Memory & reminders — "remember this", "remind me to..." - Casual conversation — greetings, small talk, acknowledgments - Simple file ops — read, list, basic writes - One-liner tas

What's inside
Steps it walks through
  1. The Golden Rule
  2. Cost Reality
  3. 💚 HAIKU — Default for Simple Tasks
  4. NEVER do these on Haiku
  5. 💛 SONNET — Standard Work (The Workhorse)
  6. Code & Technical
  7. Analysis & Planning
  8. Writing & Content
  9. ❤️ OPUS — Complex Reasoning Only
  10. Architecture & Design
  11. Deep Analysis
  12. Strategic & Creative
  13. 🔄 Implementation
  14. For Subagents
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
What does the smart-model-switching skill do?

Auto-route tasks to the cheapest Claude model that works correctly. Three-tier progression: Haiku → Sonnet → Opus. Classify before responding. HAIKU (default): factual Q&A, greetings, reminders, status checks, lookups, simple file ops, heartbeats, casual chat, 1-2 sentence tasks. ESCALATE TO SONNET: code >10 lines, analysis, comparisons, planning, reports, multi-step reasoning, tables, long writing >3 paragraphs, summarization, research synthesis, most user conversations. ESCALATE TO OPUS: architecture decisions, complex debugging, multi-file refactoring, strategic planning, nuanced judgment,

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill smart-model-switching --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