model-router

Classify user inputs by complexity and route them to Flash, Sonnet, or Opus model tiers.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Silently classify every user input by task complexity and route it to the most suitable AI model tier to optimize cost and response quality.

Core Features & Use Cases

  • Silent complexity classification before every reply, switching models as needed to balance speed, cost, and accuracy.
  • Bidirectional routing to Sonnet, Flash, or Opus based on the task, ensuring the right model is used for the right job.
  • Use Case: A chat assistant downgrades routine queries to a cheaper model and escalates complex debugging to a higher-capacity model.

Quick Start

Ensure the correct model tier is selected before replying to a user, using the ROUTINE/MODERATE/COMPLEX rules to switch to Flash, Sonnet, or Opus.

Frequently Asked Questions about model-router

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

FAQPage Schema
How do I optimize AI chat costs by switching models based on task complexity?

To optimize AI chat costs, you can use silent complexity classification to evaluate each input and route it to the most suitable model tier. This minimizes cost while preserving quality by downgrading routine queries and escalating complex tasks.

How does bidirectional model routing work for AI tier switching?

Bidirectional model routing works by classifying every user input as routine, moderate, or complex before replying. It then switches to Flash, Sonnet, or Opus respectively to ensure the right model is used for the right job.

Can I automatically downgrade routine queries to a cheaper AI model?

Yes, you can automatically downgrade routine queries. The router silently classifies task complexity before every reply, applying appropriate model switches to downgrade routine queries to Flash and escalate complex debugging to Opus.

When should I use Opus versus Sonnet or Flash for AI workflow automation?

You should use Opus for complex tasks, Sonnet for moderate tasks, and Flash for routine tasks. The explicit model map ensures correct tier usage by applying appropriate model switches based on the classified complexity of the user message.

What is the best way to balance speed and accuracy in an AI chat assistant?

The best way to balance speed and accuracy is silent complexity classification before every reply. By routing user messages bidirectionally to the optimal AI model tier, you balance speed, cost, and accuracy automatically.

Do I need to manually tag task complexity to trigger model switching?

No, you do not need to manually tag task complexity. The routing mechanism silently classifies each input by task complexity before responding, applying appropriate model switches automatically to minimize cost.