Skip to content
Skill

Model and skill router

Routes coding tasks to a cheap model, strong model, skill or the user

Model and skill router is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
440
Last commit
License
MIT
Listing updated

Similar skills

About Model and skill router

This skill sorts incoming tasks by intent, difficulty and risk before any model is asked to do the work. It sends three classification requests to a keyless external classifier in parallel, one each for intent, difficulty and risk, then applies a routing table to choose a destination: a cheap model, a strong model, a named skill, or asking the user.

The routing table lives in a Python script the agent is given, and it is meant to be edited by the person maintaining it rather than adjusted through prompt wording. Difficulty is treated as an ordered rubric and converted into an expected value across its labels, which the table compares against thresholds. Low-confidence results are treated as unknown, and an unclear intent falls back to asking the user only when it changes the outcome.

The script reads tasks line by line from standard input and prints the chosen destination with the difficulty score and intent for each one. It relies on Python 3 standard library modules and a network call to classifier.dev, and it is intended for queues or batches of tasks rather than a single request.

When your agent uses it

Classify an incoming task by intent, difficulty and risk in three parallel calls to a keyless classifier, then route it to a cheap model, a strong model, a named skill or the user, from a routing table you maintain instead of a prompt. Use when deciding which model or skill should take a request, when someone says "route this", "which model should handle this" or "pick the right skill", or when a queue of tasks should not all get the same treatment.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (6 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

Copy the skill folder to ~/.claude/skills/model-and-skill-router to use it in all your projects:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mrmps/classifier-dev.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/model-and-skill-router &&
cp -R "$tmp/skills/model-and-skill-router" ~/.claude/skills/model-and-skill-router &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/model-and-skill-router inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/model-and-skill-router to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mrmps/classifier-dev.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/model-and-skill-router &&
cp -R "$tmp/skills/model-and-skill-router" ~/.agents/skills/model-and-skill-router &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/model-and-skill-router inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/model-and-skill-router to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mrmps/classifier-dev.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/model-and-skill-router &&
cp -R "$tmp/skills/model-and-skill-router" ~/.cursor/skills/model-and-skill-router &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/model-and-skill-router inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/mrmps/classifier-dev.git --path skills/model-and-skill-router

Or copy the folder to ~/.gemini/skills/model-and-skill-router yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/model-and-skill-router:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mrmps/classifier-dev.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/model-and-skill-router &&
cp -R "$tmp/skills/model-and-skill-router" ~/.copilot/skills/model-and-skill-router &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/model-and-skill-router inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/mrmps/classifier-dev.git

Then copy classifier-dev/skills/model-and-skill-router into your agent's skills folder as model-and-skill-router. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Three parallel classifications
Intent, difficulty and risk are each scored in a separate call so the results run concurrently.
Editable routing table
Routing rules are a plain list of conditions and destinations that can be changed without rewriting prompts.
Expected-value difficulty
Difficulty scores across ordered labels are combined into one number used for routing decisions.
Confidence thresholds
Results below 0.5 are treated as unknown and results between 0.5 and 0.9 are routed upward.
Batch task routing
A Python script reads a file of tasks from standard input and prints a routing decision for each line.

Good for

  • Decide which model should handle each issue in a backlog
  • Route a queue of coding requests to a cheap or strong model
  • Send risky production changes to the user for confirmation
  • Pick a debugging or repository search skill for incoming tasks

Model and skill router FAQ

What does Model and skill router need to run?

It uses a Python 3 script that calls the classifier.dev API over the network using only standard library modules. The skill itself has no separate scripts or install steps beyond that file.

When does the skill trigger?

It is meant for deciding which model or skill should take a request, when someone asks to route a task or pick the right skill, or when a queue of tasks should not all get the same treatment.

Does Model and skill router change any files or code?

The skill describes classification and routing decisions. The listed script prints a destination for each task and does not modify repository files.

When is Model and skill router not recommended?

The skill suggests skipping it when only one model is available, when a task is already in context and cheap to do directly, or when a single person is waiting on one request.

How do I install Model and skill router in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/model-and-skill-router to use it in all your projects, or to .claude/skills/model-and-skill-router in one project.

Does Model and skill router run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Model and skill router?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Model and skill router?

The closest alternatives to Model and skill router are Skill triage, Go skills router, Skills map, Cost aware LLM pipeline and Support ticket triage.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from mrmps/classifier-dev

  1. Sorts many texts into your own labels in one call, with a confidence per answer

    • Open source
    • 440 GitHub stars
    • Developer tools
  2. Lets a browser or desktop agent pick its next action from on-screen elements

    • Open source
    • 440 GitHub stars
    • Browser automation
  3. Gates user posts against a written content policy using per-category scores

    • Open source
    • 440 GitHub stars
    • Security
  4. Sorts each page of a multi-document intake packet by type before extraction

    • Open source
    • 440 GitHub stars
    • Files and documents
  5. Sorts a downloads folder into invoice, receipt and contract folders with an undo log

    • Open source
    • 440 GitHub stars
    • Files and documents