Agent skill

route

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

Stars 232
Forks 15

Install this agent skill to your Project

npx add-skill https://github.com/aiskillstore/marketplace/tree/main/skills/0xrdan/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:

  • 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

Expand your agent's capabilities with these related and highly-rated skills.

aiskillstore/marketplace

perigon-backend

Perigon ASP.NET Core + EF Core + Aspire conventions

232 15
Explore
aiskillstore/marketplace

perigon-agent

Pointers for Copilot/agents to apply Perigon conventions

232 15
Explore
aiskillstore/marketplace

perigon-angular

Angular 21+ standalone/Material/signal conventions for Perigon WebApp

232 15
Explore
aiskillstore/marketplace

fastapi-mastery

Comprehensive FastAPI development skill covering REST API creation, routing, request/response handling, validation, authentication, database integration, middleware, and deployment. Use when working with FastAPI projects, building APIs, implementing CRUD operations, setting up authentication/authorization, integrating databases (SQL/NoSQL), adding middleware, handling WebSockets, or deploying FastAPI applications. Triggered by requests involving .py files with FastAPI code, API endpoint creation, Pydantic models, or FastAPI-specific features.

232 15
Explore
aiskillstore/marketplace

context7-efficient

Token-efficient library documentation fetcher using Context7 MCP with 86.8% token savings through intelligent shell pipeline filtering. Fetches code examples, API references, and best practices for JavaScript, Python, Go, Rust, and other libraries. Use when users ask about library documentation, need code examples, want API usage patterns, are learning a new framework, need syntax reference, or troubleshooting with library-specific information. Triggers include questions like "Show me React hooks", "How do I use Prisma", "What's the Next.js routing syntax", or any request for library/framework documentation.

232 15
Explore
aiskillstore/marketplace

browser-use

Browser automation using Playwright MCP. Navigate websites, fill forms, click elements, take screenshots, and extract data. Use when tasks require web browsing, form submission, web scraping, UI testing, or any browser interaction.

232 15
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results