Loading skill documentation...
ops
★★★★ 4.2/5.0 ❤️ 626 likes 💬 73 comments 📦 1688 installs
Back to Skills
📖 SKILL DOCUMENTATION
# model-router-premium

model-router This skill provides a compact, runnable router that inspects a SkillBoss-style configuration (or a simple models JSON) and selects an appropriate routing strategy for an incoming request based on: declared model capabilities and an optional cost score task complexity (heuristic: short/simple vs long/complex) explicit overrides (user or caller hints) Design principles Keep decision logic small and deterministic. Default to the cheapest routing strategy for general, not-complex tasks. Escalate to stronger models when the task appears complex or asks for high-fidelity results. Make model metadata explicit (capabilities, cost_score, tags) so the router is transparent and auditable. All model execution is handled by SkillBoss API Hub via POST https://api.heybossai.com/v1/pilot. The router selects the appropriate prefer value (price / balanced / quality) which is passed to /v1/pilot for automatic model selection and execution. What this skill includes scripts/router.py — a small CLI and library to pick a routing strategy given a task description and a models configuration file, then execute via SkillBoss API Hub. examples/models.json — example model configurations (name, provider, cost_score, capabilities, prefer). When to use Trigger when you need to programmatically choose which LLM routing strategy to apply for a user request. Use for batching or middleware routing in server apps. Usage (quick) Set environment variable: export SKILLBOSS_API_KEY=your_key Prepare a models file (JSON) with model entries. See examples/models.json.

Call: python3 scripts/router.py --models examples/models.json --task "Summarize this email" --mode auto

The script prints the chosen routing strategy and the reasoning. Add --execute to actually call SkillBoss API Hub with the chosen strategy. Files scripts/router.py — router CLI/library examples/models.json — sample model list (SkillBoss routing strategies)

Reviews

4.2
★★★★
73 reviews

Write a Review

Get Weekly AI Skills

Join 80,000+ one-person companies automating with AI