Skip to content
Back to skills

Route

ASecurity

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

  • 416 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added February 7, 2026
ai-agentstypescriptsecurity

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned February 12, 2026

npx -y skills add aiskillstore/marketplace --skill route --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Route?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Route
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/aiskillstore-route/badge)](https://www.skillsdirectory.com/skills/aiskillstore-route)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: route
description: Manually route a query to the optimal Claude model (Haiku/Sonnet/Opus)
user_invokable: true
---

# 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
```

Files in this skill

  • SKILL.md2.1 KB
  • skill-report.json9.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…