router
Intelligent model selection for cost optimization. Routes tasks to Haiku (cheap/fast), Sonnet (balanced), or Opus (powerful) based on complexity. USE WHEN starting a session to enable automatic cost-optimized routing for all Task calls.
SKILL.md
| Name | router |
| Description | Intelligent model selection for cost optimization. Routes tasks to Haiku (cheap/fast), Sonnet (balanced), or Opus (powerful) based on complexity. USE WHEN starting a session to enable automatic cost-optimized routing for all Task calls. |
name: router description: Intelligent model selection for cost optimization. Routes tasks to Haiku (cheap/fast), Sonnet (balanced), or Opus (powerful) based on complexity. USE WHEN starting a session to enable automatic cost-optimized routing for all Task calls.
Router Skill - Intelligent Model Selection
Version: 1.0.0
Purpose: Automatically route tasks to optimal Claude model tier (Haiku/Sonnet/Opus)
Activation: Type /router to activate
Core Directive
When this skill is active, you MUST apply these routing rules for ALL Task tool calls.
Always specify the model parameter based on task classification below.
Routing Rules
→ HAIKU (model="haiku")
Cost: $0.25/MTok input | Speed: ⚡⚡⚡ Fastest
Use for: Simple, deterministic tasks requiring minimal reasoning
Route to Haiku:
- ✓ File operations (search, list, read)
- ✓ Code/document search (grep, glob)
- ✓ Simple Q&A, status checks
- ✓ Git commands
- ✓ Citation formatting
- ✓ Basic bash operations
Examples:
- "Find all contract templates"
- "Search for cases citing Brown v. Board"
- "List files modified this week"
- "Format this citation in Bluebook"
→ SONNET (model="sonnet")
Cost: $3/MTok input | Speed: ⚡⚡ Moderate
Use for: Standard legal work requiring analysis and drafting
Route to Sonnet:
- ✓ Legal drafting (motions, contracts, briefs)
- ✓ Case law analysis and research
- ✓ Document review
- ✓ Discovery responses
- ✓ Client correspondence
- ✓ Risk assessment (routine)
Examples:
- "Draft motion to compel discovery"
- "Analyze this contract for liability"
- "Research summary judgment standards"
- "Prepare interrogatory responses"
→ OPUS (model="opus")
Cost: $15/MTok input | Speed: ⚡ Powerful
Use for: Complex reasoning, novel issues, strategic planning
Route to Opus:
- ✓ Strategic litigation planning
- ✓ Novel legal issues (first impression)
- ✓ Multi-party negotiations
- ✓ Conflicting precedents
- ✓ High-stakes decisions
- ✓ Blades Overseer coordination
Examples:
- "Develop settlement strategy for 12-party case"
- "Analyze novel First Amendment question"
- "Synthesize conflicting circuit precedents"
- "Strategic analysis: remove to federal court?"
Special Rules
Multi-Step Tasks
Break into sub-tasks when possible:
Task: "Research FRCP 26 and draft discovery plan"
→ Step 1: Search FRCP 26 (Haiku)
→ Step 2: Draft plan (Sonnet)
User Override
Users can force specific models:
[HAIKU] your request- Force Haiku[SONNET] your request- Force Sonnet[OPUS] your request- Force Opus
Uncertainty Default
If uncertain: Default to SONNET (balanced)
Decision Tree
Is it a simple lookup/search?
├─ YES → HAIKU
└─ NO → ↓
Is it routine legal work (drafting/analysis)?
├─ YES → SONNET
└─ NO → ↓
Is it complex/novel/high-stakes?
├─ YES → OPUS
└─ UNCERTAIN → SONNET
Skills Integration
When Blades Active:
- Overseer: OPUS
- Workers: SONNET
- Searches: HAIKU
When Research Active:
- Initial search: HAIKU
- Analysis: SONNET
- Complex synthesis: OPUS
When Fabric Active:
- Simple patterns: HAIKU
- Moderate patterns: SONNET
- Complex patterns: OPUS
Transparency
When routing, briefly state your decision:
User: "Find discovery deadlines"
You: "I'll use Haiku for this file search."
[Execute with model="haiku"]
User: "Research and draft motion"
You: "I'll use Haiku for research, Sonnet for drafting."
[Execute both]
Do NOT ask permission - just route intelligently.
Cost Impact
Before Router:
- 50 tasks/day on Sonnet
- Daily cost: ~$1.20
With Router:
- 40 tasks on Haiku: $0.008
- 8 tasks on Sonnet: $0.192
- 2 tasks on Opus: $0.240
- Daily cost: ~$0.44 (63% savings)
Status Confirmation
When activated, confirm:
✓ Router v1.0.0 active
✓ All Task calls will be routed to optimal models
✓ Using Haiku/Sonnet/Opus based on complexity
Deactivation
To deactivate:
- User says: "Deactivate router"
- Or: Start new session (skills don't persist)
Router v1.0.0 | Optimized for legal practice | 60-80% cost reduction