← Back to Skills Marketplace
millibus

Smart Model Switching

by millibus · GitHub ↗ · v1.0.0
cross-platform ✓ Security Clean
6775
Downloads
21
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install smart-model-switching
Description
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.
Usage Guidance
Install this if you want lightweight guidance for routing tasks to cheaper or stronger Claude models. For high-stakes workflows, review or tighten the routing heuristics so sensitive, production-critical, legal, medical, financial, or security tasks consistently use an appropriate higher-capability model.
Capability Analysis
Type: OpenClaw Skill Name: smart-model-switching Version: 1.0.0 The skill bundle is benign. It provides instructions in SKILL.md for an OpenClaw agent to intelligently select the appropriate Claude model (Haiku, Sonnet, Opus) based on task complexity to optimize API costs. All content, including the markdown instructions and code snippets, is clearly aligned with this stated purpose and lacks any indicators of malicious intent, data exfiltration, unauthorized execution, persistence mechanisms, or harmful prompt injection attempts against the agent.
Capability Assessment
Purpose & Capability
The stated purpose is cost-aware routing among Haiku, Sonnet, and Opus, and the artifact content is limited to decision rules and examples for that purpose.
Instruction Scope
The routing rules include subjective thresholds such as task complexity and focused-thinking time, which may affect cost or consistency, but this is a quality concern rather than security-mismatched behavior.
Install Mechanism
The inspected bundle contains only a markdown skill file and no install scripts, executable payloads, package downloads, or setup commands.
Credentials
The skill does not request credentials, network access, broad filesystem indexing, account mutation, or external data transfer; mentions of file ops and session checks are examples for model selection.
Persistence & Privilege
No persistence mechanism, background worker, privilege escalation, durable state, or automatic cron creation is present; the cron snippet only illustrates model selection for cron payloads.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install smart-model-switching
  3. After installation, invoke the skill by name or use /smart-model-switching
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release - Three-tier Claude routing for cost optimization
Metadata
Slug smart-model-switching
Version 1.0.0
License
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 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, 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. It is an AI Agent Skill for Claude Code / OpenClaw, with 6775 downloads so far.

How do I install Smart Model Switching?

Run "/install smart-model-switching" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Smart Model Switching free?

Yes, Smart Model Switching is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Smart Model Switching support?

Smart Model Switching is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Smart Model Switching?

It is built and maintained by millibus (@millibus); the current version is v1.0.0.

💬 Comments