Skill Router logo

Skill Router

Community
hussi9
skill-router

Use when a [skill-router] route card appears in the turn, when no card appeared on a non-trivial task, or when a route looks wrong. Routes every prompt to the right installed skill, pairs it with a process skill, tiers enforcement, and briefs sub-agents. 79 local skills + plugin skills indexed.

Overview

Publisherhussi9
Repositoryskill-router
Skill nameskill-router
Stars
32
Forks
1
Bundled files
206
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 206 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by hussi9 on GitHub. Read the source before you install it.

Installation

Install the Skill Router AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/hussi9/skill-router/tree/main
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/hussi9/skill-router.git \
  .claude/skills/skill-router
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Skill Router in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Skill Router on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Skill Router is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Skill Router (v4.2)

Routing runs from hooks. A UserPromptSubmit hook classifies every prompt and injects a route card before your first action. Your job is to follow the card, not to compute one.

The route card

[skill-router] This is a BROKEN task — 2-step chain.
[skill-router] Chain: mac-doctor → superpowers:systematic-debugging
▶ mac-doctor  (inherit, in-session)
▶ superpowers:systematic-debugging  (inherit, in-session)
[skill-router] Gates before done: simulator screenshot
[skill-router] Memory: mac_crash_root_cause  (read from your project's memory/ directory)
[skill-router] IRON RULE: call Skill(skill="mac-doctor") before any Edit/Write/Task.
  • First ▶ is the domain skill — one of yours, or a plugin's. Load it first.
  • Second ▶ is the process skill (debugging, planning, TDD). Load it next.
  • Gates are completion conditions from the project. Check every one before "done".
  • Memory names the memory file for this project. Read it before deciding.

Two tiers

Line on the cardMeaning
IRON RULE: …hard — Edit/Write/Task are denied until the skill is loaded. BROKEN path, and project routes with gates.
Soft route: …soft — nothing is blocked. If you finish without loading it, the Stop hook asks once; answer by loading it or by one line [skill-router] skipped <skill>: <reason>.

Wrong route either way: python3 ~/.claude/skills/skill-router/scripts/router_override.py "<reason>" --session-id "<current session id>". The user can also write [no-router] in their message.

How the card is decided

  1. Project route in SKILL.personal.md (@economicalai, capgo, …) — deterministic.
  2. Jev (TypeSafe System One, jev_choose.py, ~0.4 s, cached) reads the whole enriched index (~/.claude/skill_index.json) in one call — no lexical pre-filter, so typos do not matter — and answers two Choice questions: domain skill, process skill. Confidence ≥ 0.8 routes; anything lower is silence (a 0.5–0.8 Possible fit: line exists behind SKILL_ROUTER_JEV_SUGGEST=1, off by default — it was right one time in three). When Jev answers, only Jev puts a skill on the card; a skill already loaded this session is never carded again.
  3. Fallback when Jev fails or passes 1.2 s: lexical rank of the index (~50 ms), then a small model (Gemini Flash-Lite, ~1 s, cached) over the top candidates.
  4. Process table (references/routing-tables.md) supplies the process leg on the fallback path only.

Questions, discussion and harness noise get no card. Silence is an answer.

Which model does the work (v4.2)

The same Jev call answers a fourth question, work tier: light (grep, list, summarise, rename, one fixed rule across files), standard (routine work against a clear spec) or heavy (design, root cause, security, anything ambiguous). Same 0.8 gate; below it, or heavy, nothing changes.

WhereWhat happens
Sub-agent dispatchThe Task/Agent hook judges the sub-agent's own prompt and sets model: light → haiku, standard → sonnet, else inherits the session. An explicit model= in your call always wins.
Route cardWork: light (jev 0.91) → sub-agents dispatch on haiku — one line, only when the tier moves the model. Delegate the bulk part; it will come back on Haiku.
Quota strainedWhen the status line has reported a 5-hour or weekly window ≥ 80 % and the work is light/standard, the card adds one line pointing at Kimi: bash scripts/kimi_offload.sh [--tier light] "<task>" — a second claude -p on Moonshot (K2.7-code for light, K3 1M otherwise). Run it from Bash and use its output. Heavy work never goes to Kimi. Once per half hour per session; at ≥ 95 % the bar drops from 0.8 to 0.5.

Knobs: SKILL_ROUTER_SUBAGENT_MODEL=0 (never set a dispatch model), SKILL_ROUTER_KIMI=quota|always|off (default quota), SKILL_ROUTER_QUOTA_HIGH=80, SKILL_ROUTER_QUOTA_CRITICAL=95. scripts/quota.py prints what the router currently believes. The whole router stands down under SKILL_ROUTER_OFF=1 (the Kimi child sets it).

Sub-agents

Every Agent(...) dispatch gets the parent's route appended to its prompt (skill, gates, memory) and its model set from the work tier above, and SubagentStart briefs the agent with the skills paired to its type. Enforcement never reaches inside a sub-agent.

When there is no card

Non-trivial task, no [skill-router] line? Run the fallback yourself: python3 ~/.claude/skills/skill-router/scripts/router.py <<< "the prompt". If that is silent too, routing may be dead: python3 ~/.claude/skills/skill-router/scripts/doctor.py.

Find an external skill

When the user asks to find a skill or extend capabilities, use the integrated manual discovery command with short public search terms:

sh
python3 scripts/find_skills.py --query 'react performance' --out /tmp/skill-search-new --rank

Search queries go to skills.sh; --rank additionally sends the query and source descriptions to the configured JEV provider. Never pass private conversation history automatically. The command checks the installed index, inspects pinned public SKILL.md sources, and returns candidates with provenance, popularity metadata and structured inspection failures. JEV ranks at the unchanged 0.8 threshold and can abstain. Results require source review and cannot invoke or install a skill. Installation is a separate user-directed action. See manual discovery for bounds, options and partial-result handling. This command does not change prompt hooks or the current installed-skill routing policy.

Maintenance

CommandWhen
scripts/doctor.pyrouting feels dead, or after a Claude Code upgrade
scripts/build_index.py --enrichyou installed or edited a skill
scripts/index_match.py --all "<prompt>"a route looked wrong — see the ranking
scripts/learn.py --showwhat has been learned
scripts/check.shafter editing any routing logic

Project routes, projects, gates: SKILL.personal.md. Full tables and protocols: references/routing-tables.md.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

and 140 more files.

Frequently asked questions

What does the Skill Router AI skill do?

Use when a [skill-router] route card appears in the turn, when no card appeared on a non-trivial task, or when a route looks wrong. Routes every prompt to the right installed skill, pairs it with a process skill, tiers enforcement, and briefs sub-agents. 79 local skills + plugin skills indexed.

Why use Skill Router on TypingMind?

Because you install it once and use it with any model. Skill Router is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Skill Router in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/hussi9/skill-router/tree/main. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Skill Router?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Skill Router?

As many as you like. As long as a model supports skills, you can use Skill Router with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Skill Router AI skill free?

Yes. It is published on GitHub by hussi9 under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇