agentleFS
OpentypeAIOpentypeAI/opentype-claude-plugin/skills/route-model/SKILL.md

route-model

Skill0 starsChanged 2 months agoApache-2.0View on GitHub

Pick the best LLM for a task with the OpenType router and explain the choice. Use when the user asks which model to use, wants to compare models for a job, needs the cheapest model that can still handle a task, wants a fast model for an interactive path, wants an open-weights or provider-restricted pick, or when you are about to delegate a sub-task to another model and should choose it on evidence rather than habit. Not for answering the task itself.

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. MarkTripoli/skills★ 2same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository3 other files it gives its agents.

The file

Files
SKILL.md

Route a task to the best model

Call the opentype_route_model MCP tool (Router v2). Neon 1.1 classifies the task into a task type (for example code_generation, grouped into families such as coding) and a set of facets (difficulty, output length, needs tools, needs vision, language). A deterministic scorer then weighs each model's benchmarks by that task type's benchmark vector, estimates cost and latency for this exact request, and ranks the catalog under a policy. The router only selects; it never calls the chosen model.

Build the request

Send the task as prompt (the user's words, or a summary) or as messages, never both. Bodies up to 4 MiB are accepted; only the head and tail are read to classify, so a long prompt is fine.

policy (default balanced). Map the user's intent:

User sayspolicy
"best", "right model", nothing specificbalanced: quality, cost and latency traded off above a quality bar
"cheapest", "budget", "at scale", "high volume"cost_efficient: cheapest model that clears the quality bar
"most capable", "hardest", "cost doesn't matter"capability_heavy: highest expected quality
"specialist", "best at coding / math / ..."domain_skills: best on this task type's benchmarks

Knobs, all optional. Only set what the user asked for:

  • task_type: skip classification and route as this type (wins over domain). Use it when the user names the kind of task precisely, or when a previous call came back low_confidence. Valid ids: opentype_list_models returns them in task_types; an opentype_task_types tool, if available, also gives each type's family and benchmark weights.
  • domain (v1): coding, math, reasoning, knowledge, agentic, long_context, writing, multilingual, general. Routes as that domain's default task type. Prefer task_type.
  • latency: interactive (a user is waiting: latency weighs more), standard (default), batch (latency barely counts). Affects balanced only.
  • max_latency_ms: hard cap on estimated time to the full answer. Models slower than this, or without measured speed, are dropped.
  • weights: {quality, cost, speed}, your own balanced trade-off, normalized server-side. Only with balanced; any other policy is 400 weights_require_balanced.
  • models filters:
    • include / exclude: model ids (from opentype_list_models); unknown ids are 400 unknown_model_id
    • providers: e.g. ["anthropic", "google"]
    • open_weights: true open weights only, false closed only
    • max_price_per_mtok: blended USD price cap (3:1 input:output)
    • min_context_tokens, modalities (every listed one required: text, image, audio, video)

no_eligible_model means the filters (or max_latency_ms) removed every model. filters_applied in a successful response shows how many models each filter removed; on the error, say which constraint is tightest and offer to relax it.

Read the response

  • model: the pick (id, name, provider, open_weights).
  • classification.task_type: label, family, top (five most probable types with probabilities; the ranking blends every type at 5 % or more) and fixed (true when you passed task_type or domain).
  • classification.facets: difficulty (trivial, standard, hard, expert), output_length, output_tokens_est, needs_tools, needs_vision, safety_sensitive (probabilities), language, target_language. classification.domain and .difficulty are the v1 labels.
  • ranking (up to 10, best first), per model:
    • expected_quality (0-1): weighted, normalized benchmark quality for this task type. uncertainty > 0 means some benchmarks were imputed (listed in imputed); treat close calls with care.
    • estimated_cost_usd: this request, including input, expected output, reasoning tokens and expected turns (agentic types are multi-turn). Not a per-token price.
    • estimated_latency_ms: time to the full answer. latency_estimated: true means a catalog median stood in for a missing measurement.
    • strengths: the top three benchmarks by contribution (name, value, rank, weight, contribution). This is why it scored well.
    • weaknesses: up to two benchmarks where it trails the best candidate most, with gap_to_best.
    • score: the policy's sort key (for cost_efficient, the negated cost).
  • threshold (balanced, cost_efficient): q_star is the best expected quality among eligible models, r the share of it required at this difficulty, tau the resulting bar. Models under tau are not picked on cost or speed.
  • low_confidence: domain_skills with a top task type under 40 %. The specialist pick may be for the wrong kind of task; show the top types and suggest re-running with task_type.
  • reason: the router's one-line explanation.

Report the result

  1. The pick: name, provider, open weights or not, and the policy.
  2. The task type and family with its probability (or "fixed"), plus difficulty. Flag low_confidence, or a top probability under 0.6, and suggest task_type.
  3. Why: reason and the pick's strengths; mention a weakness if its gap is large.
  4. A table of the top 3 to 5 of ranking: name, expected quality, estimated cost (USD), estimated latency, blended price per Mtok. Mark imputed latency.
  5. One line on the trade-off, e.g. the runner-up at a third of the cost, or 2x faster for 0.03 less quality. Mention the threshold bar when it decided the pick.

Selection is billed like one decision run. Do not call it in a loop over many tiny tasks; route the category of task once.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.