← 返回
AI智能 Key 中文

Auto Model Router

Automatically select and use the best AI model for any task based on task type. ALWAYS activate this skill at the start of a new task or when the user asks a...
根据任务类型自动选择并使用最佳AI模型。在新任务开始时或用户要求时始终激活此技能。
joyyyced
AI智能 clawhub v0.1.1 1 版本 99875.8 Key: 需要
★ 1
Stars
📥 784
下载
💾 31
安装
1
版本
#latest

概述

Auto Model Router Skill

You have intelligent model routing. For every substantive task, follow this procedure.

Task Categories

Classify tasks into one of these categories:

CategoryWhen to use
-----------------------
codingWriting code, debugging, implementing features, architecture
code_reviewReviewing existing code, security/performance analysis
math_reasoningMath problems, logic puzzles, quantitative analysis
writing_longArticles, reports, essays, long documents
writing_shortTitles, slogans, social posts, short copy
translationTranslating between languages
summarizationSummarizing long texts, meeting notes
data_analysisAnalyzing data, writing SQL, interpreting charts
image_understandingAnalyzing or describing images
daily_chatCasual Q&A, simple questions, general assistance

Procedure

Check whether AUTO_MODEL_ROUTER_URL is set to determine which mode to use.


Mode A — Local (default, no router needed)

Use this when AUTO_MODEL_ROUTER_URL is NOT set.

Step 1 — Classify the task yourself

Read the user's task and determine the best category from the table above.

Be decisive — pick one category.

Step 2 — Call the model

python3 ~/.claude/skills/auto-model-router/scripts/call_model.py "<category>" "<user task text>"

Exit codes:

  • 3 — API key missing: tell the user which env var to set
  • 4 — Config not found: tell the user to run python3 scripts/setup.py
  • 5 — No routes configured at all: tell the user to run python3 scripts/setup.py

Step 3 — Present the result

Show the response naturally. Add a subtle footer:

_[auto-model-router: used {category} → {model}]_


Mode B — Router (with learning)

Use this when AUTO_MODEL_ROUTER_URL is set.

> Privacy note: Task text and an anonymous session ID are sent to the router

> at AUTO_MODEL_ROUTER_URL. This URL is always set by the user — the skill has

> no built-in remote endpoint. If the user has not explicitly set this variable,

> always use Mode A.

Step 1 — Get recommendation

python3 ~/.claude/skills/auto-model-router/scripts/recommend.py "<user task text>" "<USER_ID>"
  • Capture stdout as the model response.
  • Extract TASK_ID from stderr (line starting with TASK_ID=).

Exit codes:

  • 2 — Router offline: fall back to Mode A automatically
  • 3 — API key missing: tell the user which env var to set

Step 2 — Present the result

Same as Mode A Step 3.

Step 3 — Collect feedback

Ask once after presenting the result:

> "Was this response helpful? Reply 👍, 👎, or skip."

If 👍:

python3 ~/.claude/skills/auto-model-router/scripts/feedback.py "<TASK_ID>" 1 "<USER_ID>"

If 👎:

python3 ~/.claude/skills/auto-model-router/scripts/feedback.py "<TASK_ID>" -1 "<USER_ID>"

If skip, do nothing.


Changing Model Assignments

When the user says things like "switch to GPT-4o for translation" or "use DeepSeek for coding":

python3 ~/.claude/skills/auto-model-router/scripts/update_route.py <category> <provider> <model>

Examples:

python3 ~/.claude/skills/auto-model-router/scripts/update_route.py translation openai gpt-4o
python3 ~/.claude/skills/auto-model-router/scripts/update_route.py coding deepseek deepseek-chat
python3 ~/.claude/skills/auto-model-router/scripts/update_route.py daily_chat google gemini-2.0-flash

Confirm to the user: "Done, {category} tasks will now use {model}."

First-time Setup

If config is missing, tell the user to run:

python3 ~/.claude/skills/auto-model-router/scripts/setup.py

Manual Invocation

/auto-model-router

版本历史

共 1 个版本

  • v0.1.1 当前
    2026-03-30 09:48 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Nano Banana Pro

steipete
使用 Nano Banana Pro (Gemini 3 Pro Image) 生成或编辑图像。支持文生图、图生图及 1K/2K/4K 分辨率,适用于图像创建、修改及编辑请求,使用 --input-image 指定输入图像。
★ 418 📥 115,264
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,360 📥 318,618
ai-intelligence

Proactive Agent

halthelobster
将AI智能体从任务执行者升级为主动预判需求、持续优化的智能伙伴。集成WAL协议、工作缓冲区、自主定时任务及实战验证模式。Hal Stack核心组件 🦞
★ 836 📥 213,248