agent-router
БесплатноБез исполняемых скриптовНе проверенRoute prompts to the optimal AI model based on task type, complexity, and cost constraints.
от modbender★ 21 звезда на GitHubОб этом скилле
Agent Router
Route prompts to the optimal AI model based on task characteristics.
What This Does
Analyzes a task/prompt and recommends the best model, considering task type, complexity, cost, speed, and context length.
Model Routing Table
| Task Type | Complexity | Recommended | Fallback |
|---|---|---|---|
| Coding (generation) | High | claude-opus / gpt-5 | claude-sonnet |
| Coding (simple edits) | Low | claude-sonnet / gpt-4.1 | claude-haiku |
| Creative writing | High | claude-opus | gpt-5 |
| Summarization | Low | claude-haiku / gpt-4.1-mini | gemini-flash |
| Data analysis | Medium | claude-sonnet | gpt-4.1 |
| Vision/Image | Any | claude-sonnet / gpt-4.1 | gemini-pro |
| Translation | Low | gpt-4.1-mini | claude-haiku |
| Long context (>100k) | Any | gemini-pro | claude-sonnet |
| Real-time/fast | Any | claude-haiku / gpt-4.1-mini | gemini-flash |
| Math/reasoning | High | claude-opus / o3 | deepseek-r1 |
Instructions
- Analyze the task: Classify by type, complexity (low/medium/high), and constraints (cost, speed, context length).
- Check user preferences: Factor in model preferences, cost limits, or subscription tiers.
- Route decision: Using the table above, recommend primary + fallback model.
- For Codex CLI routing (local dev):
- Heavy coding →
codex exec(GPT-5.3-Codex, free via subscription) - Quick questions → current model
- Cost-sensitive batch work → claude-haiku or gpt-4.1-mini
- Heavy coding →
- Output format:
🔀 Route: <task_type> | Complexity: <level> ✅ Recommended: <model> 🔄 Fallback: <model> 💰 Est. cost: <low/medium/high> 💡 Reason: <why> - Batch routing: For multiple tasks, create a routing plan table showing which model handles each task.
Edge Cases
- Ambiguous tasks: Default to claude-sonnet as the best general-purpose choice
- Multi-modal tasks (text + image): Ensure the chosen model supports vision
- Context overflow: If input exceeds model's context window, suggest chunking or switching to a larger-context model
- Rate limits: If primary model is rate-limited, auto-route to fallback
Requirements
- No API keys or dependencies — this is a decision framework, not an API
- Update routing table as model pricing/capabilities change
Установить agent-router в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл agent-router?
Route prompts to the optimal AI model based on task type, complexity, and cost constraints.
Как установить скилл agent-router?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл agent-router запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic