Receber por email
← Voltar para o catálogo

route

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

367estrelas
Atualizado há 4 meses

Ver no GitHub ↗

Como adicionar

/plugin marketplace add aiskillstore/marketplace

O comando exato pode variar conforme o repositório. Confira o README no GitHub.

Para o autor da skill

Cole no README do seu repo

Mostra que sua skill está catalogada na Skillteca, gera backlink e tráfego rastreável.

[![Skillteca](https://www.skillteca.com.br/api/badge/route/svg)](https://www.skillteca.com.br/skills/route)
#ai

Skills relacionadas

Ver todas de Segurança →

Alerta por categoria

Receba novas skills de Segurança toda segunda

1 email curto, só com as skills novas de Segurança. 4 minutos de leitura, sem spam, cancela com 1 clique.

Você confirma o email no primeiro envio. Sem spam. Cancela com 1 clique.

Ler descrição completa

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:
  5. haiku/fast -> spawn "fast-executor" subagent with model: haiku
  6. sonnet/standard -> spawn "standard-executor" subagent with model: sonnet
  7. opus/deep -> spawn "deep-executor" subagent with model: opus
  8. 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
Compartilhar X LinkedIn