一键导入
model-routing
Intelligent model selection - routes tasks to Haiku (fast/cheap), Sonnet (balanced), or Opus (complex/strategic) based on task complexity analysis
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Intelligent model selection - routes tasks to Haiku (fast/cheap), Sonnet (balanced), or Opus (complex/strategic) based on task complexity analysis
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when the user asks to review, grill, pressure-test, or sanity-check an AI agent or multi-agent system design before building it — triggers include "grill me on my design", "design review", "review my agent architecture", "is this architecture sound", "pressure-test this before I build". Interrogates the design against the four failure modes that kill enterprise agent initiatives and returns a go / no-go verdict with ranked fixes.
Author, audit, and maintain CLAUDE.md memory files the way Anthropic recommends — under 200 lines, only-always-true facts, situational knowledge moved to path-scoped rules or skills. Use when creating/editing any CLAUDE.md, when a CLAUDE.md grows past ~200 lines, when rules stop being obeyed, when splitting a monolith into rules/skills, or before committing memory changes. Trigger phrases: write claude.md, edit claude.md, audit claude.md, claude.md too long, claude.md bloated, refactor claude.md, memory file, prune memory, agent rules, AGENTS.md.
Build autonomous AI agents using Claude Agent SDK with computer use, tool calling, MCP integration, and production best practices for Anthropic models
Build production-grade agentic workflows with LangGraph using graph-based orchestration, state machines, human-in-the-loop, and advanced control flow
Build production-ready multi-agent systems using OpenAI AgentKit and Agents SDK with best practices for agent orchestration, handoffs, and routines
Current best practices for Model Context Protocol server design, implementation, and integration. Updated patterns for 2025 MCP ecosystem including multi-server orchestration, security, and performance.
| name | model-routing |
| description | Intelligent model selection - routes tasks to Haiku (fast/cheap), Sonnet (balanced), or Opus (complex/strategic) based on task complexity analysis |
| version | 1.0.0 |
You have access to intelligent model routing. Before executing any task, analyze complexity and route to the appropriate model tier.
TASK COMPLEXITY ANALYSIS
────────────────────────────────────────────────────────────────
HAIKU (Fast, Cheap) - Use for:
├── Simple file operations (read, list, navigate)
├── Scaffolding and boilerplate generation
├── Deterministic transformations (format, lint, compile)
├── Status checks and health monitoring
├── SEO metadata generation
├── Deployment commands (after code is written)
├── Documentation formatting
├── Simple search and replace
│
│ Token cost: ~$0.25/1M input, $1.25/1M output
│ Latency: Fastest
│ Use when: Task has clear, unambiguous steps
SONNET (Balanced) - Use for:
├── Feature implementation (standard complexity)
├── Bug fixes requiring analysis
├── Content writing (articles, social posts)
├── Code review and quality checks
├── Test generation
├── Refactoring with clear patterns
├── API integration work
├── Database schema design
│
│ Token cost: ~$3/1M input, $15/1M output
│ Latency: Medium
│ Use when: Task requires reasoning but not deep strategy
OPUS (Strategic, Complex) - Use for:
├── Architecture decisions (system design)
├── Multi-agent coordination (council, swarm)
├── Strategic planning (business, product)
├── Complex debugging (multi-file, subtle bugs)
├── Security audits and vulnerability analysis
├── Enterprise AI system design
├── Book writing (narrative, character development)
├── Research synthesis (multiple sources)
├── Ambiguous requirements interpretation
│
│ Token cost: ~$15/1M input, $75/1M output
│ Latency: Slowest but most capable
│ Use when: Task requires deep reasoning, creativity, or strategy
When processing a request, apply these rules:
*.config.*, package.json, tsconfig.json/mcp-status, /inventory-status, /nextjs-deploy (execution phase)*.ts, *.tsx, *.py, *.md (content files)/article-creator, /create-music, /spec, /generate-social/architect, /council, /writing-team, /researchBEFORE (No routing):
All tasks → Opus → $75/1M output tokens
AFTER (With routing):
Simple tasks (40%) → Haiku → $1.25/1M = $0.50
Medium tasks (45%) → Sonnet → $15/1M = $6.75
Complex tasks (15%) → Opus → $75/1M = $11.25
──────────────────────────────────────────────
TOTAL: $18.50 vs $75 = 75% cost reduction
When using the Task tool, specify model based on routing:
// Simple task - use haiku
Task({
subagent_type: "Explore",
model: "haiku",
prompt: "List all files in src/"
})
// Medium task - use sonnet (default)
Task({
subagent_type: "code-reviewer",
model: "sonnet",
prompt: "Review this PR for issues"
})
// Complex task - use opus
Task({
subagent_type: "Plan",
model: "opus",
prompt: "Design the architecture for a multi-tenant SaaS platform"
})
| Command | Default Model | Rationale |
|---|---|---|
/orchestrate | sonnet | Router needs reasoning |
/article-creator | sonnet | Content creation |
/create-music | sonnet | Creative work |
/deep-research | sonnet | Research + creation |
/architect | opus | Strategic design |
/council | opus | Multi-perspective |
/research | sonnet | Information synthesis |
/spec | sonnet | Feature planning |
/nextjs-deploy | haiku | Execution |
/mcp-status | haiku | Status check |
/inventory-status | haiku | Status check |
/publish | haiku | Execution |
/polish-content | sonnet | Editing |
/review-content | sonnet | Quality check |
If a haiku-routed task fails or produces poor results:
haiku (attempt) → fail → sonnet (retry) → fail → opus (final)
Model Routing v1.0 - Implementing claude-flow's intelligent routing pattern