A comprehensive AI model routing system that automatically selects the optimal model for any task. Set up multiple AI providers (Anthropic, OpenAI, Gemini, Moonshot, Z.ai, GLM) with secure API key storage, then route tasks to the best model based on task type, complexity, and cost optimization. Includes interactive setup wizard, task classification, and cost-effective delegation patterns.
SkillScore83Maintained
Automatic
◆AI Engineer pack
Last verified 8/19/2026
What it changes
Passed 17 of 21 test cases with the skill, and 5 of 21 without it.
Without skill26%
With skill83%
Checks it passed that the model alone missed
States savings range of 50-90%.
Recommends o1-mini for math tasks.
Recommends glm-4.7 for Chinese tasks.
and 10 more in the full report
13 fixed6 passed either way4 still failing0 broke
Pass-rate lift
+57 pp
Tokens
+108%
Agent turns
0%
Response time
-59%
Model gemini-3.6-flashMeasured 8/19/2026v119 of 23 cases passed with skill · 21 comparable
Tokens, turns and time describe resource use, not a dollar price.
See it in action
One of 13 test cases the skill fixed. Same model, same prompt, with and without the skill.
1 of 13
Prompt
When setting up a progressive escalation strategy with sessions_spawn that runs a cheap model first before falling back, what flag and value are passed to limit the initial trial run duration to 60 seconds?
What was checked, without and with the skill
Checked
Without skill
With skill
Includes flag --runTimeoutSeconds 60.
Missed
Passed
case-23 · gemini-3.6-flash · 8/19/2026 · answers are capped and redacted
What's inside
The instructions your model reads when the skill loads.
SKILL.md283 lines5 filesincludes scripts
Model Router
Intelligent AI model routing across multiple providers for optimal cost-performance balance.
Automatically select the best model for any task based on complexity, type, and your preferences. Support for 6 major AI providers with secure API key management and interactive configuration.
🎯 What It Does
Analyzes tasks and classifies them by type (coding, research, creative, simple, etc.)
Routes to optimal models from your configured providers
Optimizes costs by using cheaper models for simple tasks
Secures API keys with file permissions (600) and isolated storage
Provides recommendations with confidence scoring and reasoning
🚀 Quick Start
Step 1: Run the Setup Wizard
cd skills/model-router
python3 scripts/setup-wizard.py
The wizard will guide you through:
Provider setup - Add your API keys (Anthropic, OpenAI, Gemini, etc.)
Task mappings - Choose which model for each task type
Preferences - Set cost optimization level
Step 2: Use the Classifier
# Get model recommendation for a task
python3 scripts/classify_task.py "Build a React authentication system"
# Output:
# Recommended Model: claude-sonnet
# Confidence: 85%
# Cost Level: medium
# Reasoning: Matched 2 keywords: build, system