What problem does it solve?
This Skill automates the intelligent routing of tasks to the most optimal AI model, ensuring cost efficiency and performance by classifying requests and delegating them appropriately, while also learning from past interactions.
Core Features & Use Cases
- Intelligent Classification: Analyzes incoming messages to determine the best model (e.g., cost-effective Haiku vs. powerful Opus) and task category (simple, complex code, research, etc.).
- Cost Optimization: Automatically selects cheaper models for simple tasks and more powerful ones for complex requests, significantly reducing operational costs.
- Institutional Memory: Learns from past decisions, errors, and successes to improve future routing accuracy through
lessons-learned.md and rules.json.
- Agent Delegation: Seamlessly spawns other agents (like 'dev') for complex tasks using predefined templates.
- Use Case: When a user asks a simple greeting, the router responds directly using a low-cost model. However, if the user asks to debug a complex piece of code, the router delegates the task to a more powerful 'dev' agent, saving costs on the simple query and ensuring quality on the complex one.
Quick Start
Use the smart-router skill to classify the user's message and delegate it to the appropriate agent.