model-selector_skill

This skill analyzes query intent and cost to route tasks to the optimal model tier Elite Balanced Basic for efficiency.
  • Python

2.5k

GitHub Stars

2

Bundled Files

2 months ago

Catalog Refreshed

3 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstrat where the catalogue uses aiagentskills.

npx veilstrat add skill openclaw/skills --skill model-selector

  • _meta.json284 B
  • SKILL.md1.5 KB

Overview

This skill provides an intelligent routing layer that chooses the best LLM tier for each query based on semantic intent and cost-efficiency. It classifies requests into Elite, Balanced, or Basic tiers and returns a suggested model before the agent makes the main LLM call. The orchestrator is optimized for common providers and adapts routing signals over time using user history.

How this skill works

The orchestrator computes embeddings for incoming queries and compares them to intent profiles to determine complexity and required capability. It then balances predicted quality needs against cost estimates to select Elite, Balanced, or Basic tiers and returns the suggested model identifier. Rolling adjustments refine keyword and intent thresholds from recent usage to improve future routing decisions.

When to use it

  • When you need to minimize LLM spend while preserving quality for complex tasks.
  • When an agent handles mixed workloads that vary from simple lookups to deep reasoning.
  • When you want to centralize model selection logic across multi-provider environments.
  • When rapid experimentation with model tiers is required without changing agent code.

Best practices

  • Call get_optimal_model (or analyze_and_route) as the first tool before any heavy LLM invocation.
  • Log routing decisions and outcomes to continuously tune the rolling adjustment logic.
  • Define clear intent examples for your domain to improve semantic classification accuracy.
  • Set cost and latency weightings according to your product priorities (budget vs. response quality).
  • Validate routing for edge cases by running A/B checks comparing routed versus always-Elite responses.

Example use cases

  • Route long-form technical architecture design prompts to Elite while sending simple formatting tasks to Basic.
  • Optimize a customer support agent that can escalate complex issue summaries to Balanced or Elite automatically.
  • Lower costs for high-volume telemetry parsing by routing pattern-matching and extraction to Basic.
  • Support multi-provider setups by mapping tiers to preferred vendor models and failing over if a provider is unavailable.

FAQ

Defaults map Elite to anthropic/claude-3-5-sonnet-latest, Balanced to openai/gpt-4o-mini, and Basic to deepseek/deepseek-chat.

Can I change tier mappings or cost settings?

Yes. Tier-to-model mappings and cost/latency weightings are configurable so you can align the router with your vendor contracts and priorities.

How does the rolling adjustment work?

It collects recent queries and routing outcomes to update intent keywords and thresholds, nudging future classifications based on observed performance and user feedback.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational