model-auto-router: An Agent Skill for automatic model selection based on task

Introduction

When integrating multiple models into an Agent, a common practice is to manually switch /model or stick to a single default model for all tasks. However, coding, long-form analysis, and creative writing have different requirements for capability, cost, and latency. Using a fixed model often leads to either wasted quota or insufficient performance on complex tasks. Below, we introduce the SkillHub community Skill model-auto-router: when the user does not specify a model or explicitly asks to “select a model,” it performs routing based on the task before executing it.

What is this

model-auto-router (Coordinates: @user_e89fc98c/model-auto-router, Version 1.0.0) is categorized as ai-agent, sourced from the community, and published by user_e89fc98c. The tag requires_api_key=false indicates that the Skill itself does not require additional API Key configuration (though the specific authentication depends on the Agent and backend model you are using).

One-liner positioning: Automatically selects the most suitable AI model based on task requirements; the model candidates are derived from the list identified by the /model command in the OpenClaw environment, rather than a hardcoded list within the Skill.

Official Entry Points:

  • SkillHub Page: https://www.skillhub.cn/skills/user_e89fc98c/model-auto-router
  • API Coordinate Page: https://api.skillhub.cn/user_e89fc98c/model-auto-router

Core Features

The following capabilities are derived from the official description on SkillHub; details not present in the source material are not expanded upon.

Triggering Methods

  1. Explicit Model Selection: Triggered when the user says things like “Help me choose a model,” “Which model is good?”, “Switch model,” “What model is suitable for this task?”, “Invoke a model for me,” “Select a cheap/strong model,” etc.
  2. Implicit Routing: Should also be actively triggered when the user describes a task without specifying a model—for example, “Help me write code,” “Analyze this report,” or “Write a novel.” The workflow is to complete model routing first, then execute the task, avoiding starting directly with an incorrect model.

Routing Mechanism

  1. Dynamic Model List: Selects from the model list recognized by the OpenClaw /model command, aligning with the models actually available in the current environment.
  2. Keyword Quick Matching: Performs rapid matching for common task types to reduce the latency of each routing operation.
  3. Unknown Model Classification: When unfamiliar model names appear in the list, it can search the web to classify them, facilitating correspondence with task types.
  4. In-Session Caching: Classification and selection results are reused within the session. This saves time on repeated routing within the same conversation and balances speed with accuracy.

Installation and Activation

The installation process follows the general SkillHub instructions (https://skillhub.cn/install/skillhub.md). First, confirm that the skillhub CLI is available on your machine, then install it to the skills directory actually read by the current Agent. Installing to the wrong directory will prevent the Agent from recognizing it; usually, a restart or reload of the Agent is required.

1. Check SkillHub CLI

command -v skillhub && skillhub --version

If not installed, you can use the official script (full installation includes CLI and default Skills):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

Install CLI only:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only

2. Install model-auto-router

Replace <skills directory> with the path in your current environment. Common path examples provided in SkillHub documentation:

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

Installation command:

skillhub install user_e89fc98c/model-auto-router --dir ~/.cursor/skills/

For clients other than Cursor, simply change --dir to the corresponding directory. You can also search first and then install:

skillhub search model-auto-router
skillhub install user_e89fc98c/model-auto-router --dir <skills directory>

The SkillHub page also provides another method: letting the AI install @user_e89fc98c/model-auto-router based on https://skillhub.cn/install/skillhub.md. Essentially, this still follows SkillHub’s installation conventions.

3. Work with OpenClaw Model List

Routing relies on the model list exposed by OpenClaw’s /model. After installing the Skill, ensure that the Agent can normally list and switch models; if the list is empty or outdated, auto-routing lacks candidates, and the behavior will depend on your current OpenClaw configuration.

Typical Usage

The source material does not provide standalone script examples; the reproducible usage consists of the dialogue patterns and execution order described officially.

Route first, then work

User input (Model not specified):

Help me write a Python script to read a CSV and plot a line chart

Expected Agent behavior: Identify it as a task with no specified model → Trigger model-auto-router → Select a suitable model from the /model list → Then generate the code.

Explicitly request cheap or strongest

User input:

Select a cheap model and help me polish this English email

Or:

What model is suitable for this task? I need to analyze an 80-page industry report

Expected Agent behavior: Route based on the “cheap / strongest / task type” intent, then execute the polishing or analysis.

Switch model

User input:

Switch model, use one that is better suited for writing novels

Expected Agent behavior: Re-select a model leaning towards creative writing from the currently available list, and potentially reuse the routing results cached within the session in subsequent turns.

Applicable Scenarios and Notes

Who is it for

  • Individuals who integrate multiple models in OpenClaw or Agents compatible with the /model list but do not want to manually pick a model every time.
  • Teams or individuals who want different capability tiers for default routing of tasks like “coding / report analysis / creative writing.”

Limitations and Notes

  1. Environment Binding: The model source is the OpenClaw /model list, not a global model catalog built into the Skill. The material does not specify equivalent behavior when switching Agents or if OpenClaw is not configured, so universal applicability should not be assumed.
  2. Web Classification: Unfamiliar model names rely on web search for classification; offline or network-restricted environments may weaken accuracy. Quick matching and caching mitigate latency but cannot replace the quality of your local model configuration.
  3. Installation Path: skillhub install must use --dir to point to the correct skills directory; otherwise, the default ./skills/ may not be loaded by the current Agent.
  4. Data Subject to SkillHub: The page shows a rating of 100000, 948 downloads, and 38 installs (as of the time of capture); these may differ from statistics reposted by third parties, so the SkillHub page prevails.

Conclusion

model-auto-router transforms “model selection” from a manual list-checking process into the first step of task-driven execution: route first when explicitly asked or when the model is unspecified, then execute. Combined with keyword quick matching, web classification for unknown models, and session caching, it enables dynamic selection on top of the OpenClaw model list. If you often struggle with “who should I use for this task” in a multi-model Agent, you can try installing @user_e89fc98c/model-auto-router from SkillHub.

  • SkillHub: https://www.skillhub.cn/skills/user_e89fc98c/model-auto-router
  • Installation Instructions: https://skillhub.cn/install/skillhub.md
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye