smart-router

Classify AI tasks and delegate them to suitable models.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/fruterito101/openclaw-workspace --skill smart-router-fruterito101
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: smart-router
Source: https://github.com/fruterito101/openclaw-workspace/tree/main/skills/smart-router
Command: npx skills add https://github.com/fruterito101/openclaw-workspace --skill smart-router-fruterito101

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

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.

Frequently Asked Questions about smart-router

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How does AI agent task routing optimize LLM costs?

AI agent task routing optimizes LLM costs by classifying incoming requests and delegating simple tasks to cheaper models like Haiku, while reserving powerful models like Opus for complex code or research tasks.

How do I set up intelligent task delegation for different AI models?

You can set up intelligent task delegation by configuring specific AI agents and using a routing system to evaluate message complexity, automatically spawning the appropriate predefined agent for execution and feedback processing.

Can AI agents learn from past interactions to improve routing accuracy?

Yes, AI agents can learn from past interactions by maintaining institutional memory through logs and learned rules, updating files like lessons-learned.md and rules.json to improve future routing accuracy.

What is the best way to categorize AI requests for complex code versus simple lookups?

The best way to categorize AI requests is using an intelligent classification system that analyzes incoming messages to sort them into categories like simple, lookup, code-complex, research, reasoning, and creative.

Do I need specific agent configurations for LLM routing to work?

Yes, you need specific agent configurations established before implementation, as the router requires predefined templates to seamlessly spawn other agents like a dev agent for complex code debugging.

Why does task delegation to cheaper models sometimes fail for complex AI requests?

Task delegation to cheaper models fails for complex requests when the intelligent router incorrectly classifies the message complexity, highlighting the need for institutional memory to refine routing rules and prevent mismatched model assignment.