Agent skill
route
Manually route a query to the optimal Claude model (Haiku/Sonnet/Opus)
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/route
SKILL.md
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:
haikuorfast- Use Haiku for simple, quick taskssonnetorstandard- Use Sonnet for typical coding tasksopusordeep- Use Opus for complex analysis
Instructions
Parse $ARGUMENTS to extract the model and query:
- Extract model - The first word should be the model name (haiku/fast, sonnet/standard, opus/deep)
- Extract query - Everything after the model name is the query to execute
- Validate - If no valid model is specified, show usage help
- 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
- 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
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?