AGENT SKILL

agent-router

Route prompts to the optimal AI model based on task type, complexity, and cost constraints.

License 许可
MIT
最近更新
2026-08-23
Stars
★ 1
Forks
0

01 前言 Front Matter

description
Route prompts to the optimal AI model based on task type, complexity, and cost constraints.

02 资源文件 1

03 SKILL.md 正文

Agent Router

Route prompts to the optimal AI model based on task characteristics.

What This Does

Analyzes a task/prompt and recommends the best model, considering task type, complexity, cost, speed, and context length.

Model Routing Table

Task Type Complexity Recommended Fallback
Coding (generation) High claude-opus / gpt-5 claude-sonnet
Coding (simple edits) Low claude-sonnet / gpt-4.1 claude-haiku
Creative writing High claude-opus gpt-5
Summarization Low claude-haiku / gpt-4.1-mini gemini-flash
Data analysis Medium claude-sonnet gpt-4.1
Vision/Image Any claude-sonnet / gpt-4.1 gemini-pro
Translation Low gpt-4.1-mini claude-haiku
Long context (>100k) Any gemini-pro claude-sonnet
Real-time/fast Any claude-haiku / gpt-4.1-mini gemini-flash
Math/reasoning High claude-opus / o3 deepseek-r1

Instructions

  1. Analyze the task: Classify by type, complexity (low/medium/high), and constraints (cost, speed, context length).
  2. Check user preferences: Factor in model preferences, cost limits, or subscription tiers.
  3. Route decision: Using the table above, recommend primary + fallback model.
  4. For Codex CLI routing (local dev):
    • Heavy coding → codex exec (GPT-5.3-Codex, free via subscription)
    • Quick questions → current model
    • Cost-sensitive batch work → claude-haiku or gpt-4.1-mini
  5. Output format:
    ? Route: <task_type> | Complexity: <level>
    ✅ Recommended: <model>
    ? Fallback: <model>
    ? Est. cost: <low/medium/high>
    ? Reason: <why>
    
  6. Batch routing: For multiple tasks, create a routing plan table showing which model handles each task.

Edge Cases

  • Ambiguous tasks: Default to claude-sonnet as the best general-purpose choice
  • Multi-modal tasks (text + image): Ensure the chosen model supports vision
  • Context overflow: If input exceeds model's context window, suggest chunking or switching to a larger-context model
  • Rate limits: If primary model is rate-limited, auto-route to fallback

Requirements

  • No API keys or dependencies — this is a decision framework, not an API
  • Update routing table as model pricing/capabilities change

04 同仓库更多 Skills

kbarbel640-del
kbarbel640-del/skills

crowd-prompting

A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.

★ 1
kbarbel640-del
kbarbel640-del/skills

dilemm-ai

Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).

★ 1
kbarbel640-del
kbarbel640-del/skills

arxiv-paper-reviews

Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.

★ 1
kbarbel640-del
kbarbel640-del/skills

arxiv-paper-reviews

Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.

★ 1
kbarbel640-del
kbarbel640-del/skills

git-summary

Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.

★ 1
kbarbel640-del
kbarbel640-del/skills

agent-constitution

Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.

★ 1