搜索

PythonReactSEOPDF
GitHub Skill

route

Manually route a query to the optimal Claude model (Haiku/Sonnet/Opus)

aiskillstore☆ 122 仓库 Stars6 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

Manual Model Router

Override automatic model selection and force a specific Claude model for your query.

Usage

/route <model> <query>

Where <model> is one of:

  • haiku or fast - Use Haiku for simple, quick tasks
  • sonnet or standard - Use Sonnet for typical coding tasks
  • opus or deep - Use Opus for complex analysis

Instructions

Parse $ARGUMENTS to extract the model and query:

  1. Extract model - The first word should be the model name (haiku/fast, sonnet/standard, opus/deep)
  2. Extract query - Everything after the model name is the query to execute
  3. Validate - If no valid model is specified, show usage help
  4. Route - Use the Task tool to spawn the appropriate subagent:
    • haiku/fast -> spawn "fast-executor" subagent with model: haiku
    • sonnet/standard -> spawn "standard-executor" subagent with model: sonnet
    • opus/deep -> spawn "deep-executor" subagent with model: opus
  5. Return - Prefix the response with the model override info

Model Mapping

Argument Executor Model
haiku or fast fast-executor Haiku
sonnet or standard standard-executor Sonnet
opus or deep deep-executor Opus

Examples

Force Opus for a simple question
/route opus What's the syntax for a TypeScript interface?

Result: Routes to Opus (deep-executor) regardless of query complexity.

Force Haiku for any task
/route haiku Fix the authentication bug in login.ts

Result: Routes to Haiku (fast-executor) for cost savings.

Force Sonnet explicitly
/route sonnet Design a caching system

Result: Routes to Sonnet (standard-executor).

Error Handling

If the user doesn't provide a valid model, respond with:

Usage: /route <model> <query>

Models:
  haiku, fast     - Quick, simple tasks (cheapest)
  sonnet, standard - Typical coding tasks (default)
  opus, deep      - Complex analysis (most capable)

Example: /route opus Analyze the security of this authentication flow

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-01-20
索引更新时间
2026-01-28
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!