model-routing
БесплатноБез исполняемых скриптовНе проверенSelect the right model for the task. Maps task cognitive tier to optimal model. Reads _b00t_ datums for available models. Prefer local/cheap for deterministic…
от elasticdotventures★ 15 звёзд на GitHubОб этом скилле
Model Routing
NEVER use frontier model for mechanical work. Route by cognitive tier.
Reads routing table from _b00t_/model-routing.tomllm. Falls back to hardcoded tiers.
Cognitive Tiers
| Tier | Tasks | b00t Models (in priority order) |
|---|---|---|
small (sm0l) |
grep, lint, classify, route, test pass/fail | haiku, local sm0l |
chunky (ch0nky) |
implement, refactor, debug, code review | qwen3-coder-local (RTX 3090), sonnet |
frontier |
architecture, security, novel design, planning | opus, sonnet |
Steps
- Classify the task type. # output: task_type
- Map task_type → cognitive tier. # output: tier (sm0l|ch0nky|frontier)
- Load routing config:
b00t learn model-routingvia MCP or CLI — NEVER read .tomllm directly. # output: available_models[] - Select best available model for tier (prefer local, fallback frontier). # output: selected_model
- Check resource gate:
b00t hive status— ensure RAM/GPU available. # output: resource_ok - If resource gate fails: escalate one tier up or queue. # output: model_or_queue
- Return
{model, tier, rationale}for caller to invoke.
Task → Tier Mapping
small sm0l (Haiku / local 3B):
- Running tests, checking lint output
- Classifying/routing messages
- Extracting structured data from well-defined input
- File diffing, counting, summarizing short text
- Executing known shell commands
chunky ch0nky (qwen3-coder-local → Sonnet fallback):
- Writing or refactoring code
- Debugging with stack traces
- Multi-file code review
- Translating between languages/formats
- Implementing skills from SKILL.md spec
frontier (Opus → Sonnet fallback):
- System architecture decisions
- Security threat modeling
- Novel algorithm design
- Planning complex multi-step workflows
- Evaluating ambiguous requirements
Output Contract to Executive Context
Executive context is costly. Sub-agents MUST return compressed summaries:
| Tier | Max output to executive |
|---|---|
sm0l |
PASS or FAIL: <name> <5 lines> |
ch0nky |
diff + test result (no full file dumps) |
frontier |
structured decision with rationale |
Resource Awareness
Before invoking ch0nky/frontier check hive:
b00t hive status # output: RAM free, GPU VRAM free, active profile
Anti-pattern: running vLLM (qwen3-coder, 20GB VRAM) + HuggingFace download simultaneously on 24GB.
Integration
Used by /next-task at each phase to select model.
Used by b00t-mcp agent delegation.
Load via: b00t learn model-routing (MCP preferred, CLI fallback)
🤓 NEVER read b00t/*.tomllm directly — always use b00t learn/MCP which applies guardrails, guru enrichment & tribal knowledge
Установить model-routing в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл model-routing?
Select the right model for the task. Maps task cognitive tier to optimal model. Reads _b00t_ datums for available models. Prefer local/cheap for deterministic work; frontier for reasoning.
Как установить скилл model-routing?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл model-routing запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic