Smart Model Switching

v1.0.0

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, deep research, critical production decisions. Rule: If a human needs >30 seconds of focused thinking, escalate. If Sonnet struggles with complexity, go to Opus. Save 50-90% on API costs by starting cheap and escalating only when needed.

21· 5.4k·45 current·47 all-time
MIT-0
Download zip
LicenseMIT-0 · Free to use, modify, and redistribute. No attribution required.
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description match the runtime instructions: the SKILL.md contains routing rules, examples, and decision logic for choosing Haiku/Sonnet/Opus. There are no unrelated environment variables, binaries, or install steps requested that would contradict the stated purpose.
Instruction Scope
The instructions are narrowly scoped to classification and escalation rules and include example calls (sessions_spawn, cron payload) appropriate to an agent that can spawn model sessions. The doc does not instruct reading unrelated system files, secret env vars, or exfiltrating data to external endpoints.
Install Mechanism
No install spec and no code files are present (instruction-only). That minimizes on-disk footprint and there is no download/execute behavior to evaluate.
Credentials
The skill declares no required environment variables, credentials, or config paths. The decision rules do not reference any hidden or unrelated credentials, so requested privileges are proportionate to a routing policy.
Persistence & Privilege
always:false and default autonomous invocation are appropriate for this kind of policy. The skill does not request persistent system-wide changes or modifications to other skills' configs.
Assessment
This skill is coherent and low-risk from a permissions perspective because it's only a policy document with examples — it asks for nothing sensitive. Before installing: (1) confirm your agent platform enforces billing/usage limits (cheaper models may lower cost but also capability), (2) test the 30-second escalation heuristic on representative tasks to ensure it doesn't under- or over-escalate, and (3) avoid routing sensitive or high-stakes decisions to lower-tier models (Haiku) — explicitly whitelist such tasks to Sonnet/Opus. If you need stronger guarantees, request an implementation that logs routing decisions and includes safeguards for privacy-sensitive inputs.

Like a lobster shell, security has layers — review code before you run it.

latestvk97bn7s0ha3dpj3hxf5e4a593x80hs6a

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

Runtime requirements

💰 Clawdis

Comments