← Back to Skills Marketplace
millibus

Smart Model Switching

by millibus · GitHub ↗ · v1.0.0
cross-platform ✓ Security Clean
6326
Downloads
21
Stars
49
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 choosing cheaper or stronger Claude models. Review the routing heuristics if your workflows include high-stakes security, production, legal, medical, or financial tasks, where you may want stricter rules to always use a 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 described purpose is cost- and quality-aware Claude model routing, and the observed capability is limited to guidance for choosing Haiku, Sonnet, or Opus based on task complexity.
Instruction Scope
The routing rules are somewhat subjective, which can affect reliability or cost, but that is expected for this kind of guidance and does not show security-sensitive authority or hidden behavior.
Install Mechanism
No artifact-backed evidence indicates install-time scripts, package execution, downloads, or privileged setup beyond normal skill installation.
Credentials
The skill does not appear to request filesystem, credential, network, account, or mutation access; its effect is proportionate to model-selection advice.
Persistence & Privilege
No persistence mechanism, background worker, cron job, privilege escalation, or durable local state is indicated.
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 238
Active Installs 49
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 6326 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