route
Skill0 starsChanged 44 days agoMITView on GitHub
Skill router. Use ONLY when the user's message contains "/route" (at the start, at the end, or sent alone after a request); never on your own initiative. Picks the best 1 to 5 skills from every installed skill for the user's request, shows which ones it loads and why, loads them, does the work, then suggests which skills to run next and when. "/route build" creates the personal skill catalog (run once), "/route refresh" re-syncs it after skills are installed or removed.
23 other projects use a version of this.
Adopted by
Most recently taken up by
- Innei/ryugitheir own version, first seen Nov 29, 2026
- tenaya-ui/claude-skillstheir own version, first seen Nov 29, 2026
- EMBERFIELDS/claude-code-orchestrationtheir own version, first seen Nov 29, 2026
- muhammadali-k/claude-skillstheir own version, first seen Nov 22, 2026
- jbellsolutions/hermes-super-agenttheir own version, first seen Nov 15, 2026
- ypollak2/llm-routertheir own version, first seen Nov 14, 2026
Used with
Projects with it also use learn, plan and 2 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
genomewalkerSkilllearn
Learn from web sources, generate SKILL.md, and store key patterns in soul memory. Trigger keywords: learn, skill-gen, web-learn, documentation, tutorial.
Also in 3 projects that use this
BlockSkillplan
Draft a TDD, PRD, or lightweight plan in the conversation without committing it.
Also in 3 projects that use this
GoogleSkillprototype
Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.
Also in 3 projects that use this
MicrosoftSkillhandoff
Compact the current conversation into a handoff document for another agent to pick up.
Also in 3 projects that use this
Other versions23 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 23
- Innei/ryugi★ 1.1ksame name
- ypollak2/llm-router★ 131same name
- mehrad-dm/mastermind★ 23same name
- ItsssssJack/seven-skills★ 19same name
- purpleeddy/cladding★ 16same name
- gabriellst/codm★ 5same name
- dawidtomaszewskipl/route-skill★ 4same name
- jbellsolutions/hermes-super-agent★ 4same name
- jerseycheese/agent-skills★ 4same name
- xiaolongnk/SuperHarness★ 4same name
13 more not listed
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.
The file
Show its rules and text
We split this skill into the rules it gives an agent
20 rules. 0 are common, 11 are distinctive, and 9 are very specific to this project.
0
Common
Most of the 21 edited versions we read keep these.
11
Distinctive
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 26
If you had already started on that request before /route arrived, look at what is done, and route only the remaining work.
- Very specific: line 28
If the request is build, read <base>/BUILD.md and follow it.
- Distinctive: line 31
Keep the user's prompt as the task.
- Distinctive: line 36
Write one line for yourself: the goal, the deliverable, the tech or files involved, and the phase (plan, build, debug, review, verify, …
- Distinctive: line 43
If the project's CLAUDE.md requires a first step before any work (for example "search the runbook for the error text before diagnosing"), …
- Very specific: line 49
Run python3 <base>/scripts/inventory.py --check from the current directory.
- Very specific: line 55
If --check reports overrides as present, read that file first.
- Distinctive: line 70
If a skill lists NEEDS that are missing here, say so and pick the next best skill.
- Distinctive: line 71
If no skill adds real value, say "No skill needed" and do the task.
- Distinctive: line 72
If two very different readings of the request lead to different skills, ask one short question with the options before loading anything.
- Distinctive: line 87
Add a "Side effect" note under the table for every step that sends messages, deploys, deletes data, spends paid credits, or writes to …
- Very specific: line 97
If a Skill call fails, read the skill's SKILL.md instead (inventory.py with no flag prints every path) and say so.
- Distinctive: line 102
Follow the loaded skills together.
- Very specific: line 104
If a new need appears halfway (for example the fix needs a migration), load one more skill and announce it in one line: "Also loading x: …
- Distinctive: line 112
Put it in the final reply as a short table:
- Distinctive: line 117
If a part is partial or blocked, say what is missing instead of calling the task done.
- Very specific: line 129
Start the final reply with one line that says which skills ran, so the user sees it even if the table scrolled away: Skills used: a, b` …
- Distinctive: line 145
Run when the user installs, removes, or updates skills or plugins.
- Very specific: line 147
Run python3 <base>/scripts/inventory.py --check.
- Very specific: line 155
Run inventory.py --index, then --check again until it prints catalog in sync.
“Common” is measured: kept by at least 6 in 10 of the 21 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Route
Arguments: $ARGUMENTS
<base> below means the "Base directory for this skill" path shown above this text. The script is
<base>/scripts/inventory.py. The personal catalog lives in ~/.claude/route-catalog/ (or in
$ROUTE_CATALOG_DIR), never inside the plugin.
0. Find the request
The user writes a normal prompt and adds /route to it. Work out the request from their own words:
/routeis in the same message as the prompt (before or after it): the request is that whole message without the word/route./routewas sent alone: the request is the user's previous message (or messages, if they belong to the same task), read together with the conversation. Never treat the bare word "/route" as the request.- The arguments above hold text: treat it as the request or part of it, but the user's own message wins if they differ.
- If you had already started on that request before
/routearrived, look at what is done, and route only the remaining work. Do not redo finished steps. - If the request is
build, read<base>/BUILD.mdand follow it. If it isrefresh, skip to Refresh.
Keep the user's prompt as the task. Do not shrink it to the part one skill covers: every part of the prompt must be covered by a loaded skill or by your own work.
1. Understand the request
Write one line for yourself: the goal, the deliverable, the tech or files involved, and the phase (plan, build, debug, review, verify, ship, docs, media, ops). Use the conversation: a request like "fix it" or "make the video" refers to what was just discussed. Do not explore the codebase yet.
Early exit: if the request is trivial (a rename, a one-line fix, a plain question), print
"No skill needed: <why>" and do the task. Do not read the catalog.
If the project's CLAUDE.md requires a first step before any work (for example "search the runbook for the error text before diagnosing"), do that step now. Its result can change which skills are needed.
2. Find candidates
- Run
python3 <base>/scripts/inventory.py --checkfrom the current directory.NO CATALOG: tell the user the router needs a one-time/route build, offer to run it now, and meanwhile handle the request with the skills you can see in your own skill list.- Otherwise it prints
catalog in sync, or NEW skills (installed, not in the catalog, with their description) and GONE entries (no longer installed). NEW skills are valid candidates. Never pick a GONE one.
- If
--checkreports overrides as present, read that file first. It holds the user's own routing rules ("UI polish -> better-ui, never impeccable"). An override that matches the request beats the catalog, its Default picks and your own judgement. Mention the override in the Why column. - In the catalog folder that
--checkprints on its first line, readINDEX.mdand, if present,PROFILE.md(the user's stack and habits). - Pick the 1 to 3 categories that match the request and read only those category files.
Each skill line reads:
- `name` [load] USE: ... | NOT: ... | NEXT: ... | NEEDS: ...
3. Choose the set
- Pick the smallest set that covers the whole request: usually 1 to 3 skills, never more than 5.
- One skill per job. Never load two skills that do the same job; follow the category's "Default picks".
- Obey each skill's NOT field. If NOT names a better skill for this request, take that one.
- For the same job, prefer a project skill (
[project], from this repo's.claude/skills) or one of the user's own custom skills over a generic skill. - If a skill lists NEEDS that are missing here, say so and pick the next best skill.
- If no skill adds real value, say "No skill needed" and do the task.
- If two very different readings of the request lead to different skills, ask one short question with the options before loading anything.
4. Show the plan, then load
Print this table as visible text before the first Skill call. It is required output, not narration: print it even when a terse or "no text before tool calls" style is active.
| # | Skill | Why this one | Load |
| 1 | skill-name | one line tied to the request | skill / read / builtin / project |
A row may be conditional: write "only if <condition>" in the Why column and load it only when the
condition holds.
Add a "Side effect" note under the table for every step that sends messages, deploys, deletes data, spends paid credits, or writes to production, whether a skill or the work itself does it. Ask before that step. Otherwise continue without waiting.
Load the skills in the table order (plan first, then build, then verify):
[skill],[builtin],[project]: call the Skill tool with the exact name, and pass the part of the request that skill should handle asargs.[read <path>]: the Skill tool refuses this skill (user-only). Read the file at<path>and follow it as if it were loaded.- If a Skill call fails, read the skill's SKILL.md instead (
inventory.pywith no flag prints every path) and say so.
5. Do the work
Follow the loaded skills together. When two of them conflict, the more specific one wins for that
part of the task. The user's CLAUDE.md files and explicit instructions beat every skill.
If a new need appears halfway (for example the fix needs a migration), load one more skill and
announce it in one line: "Also loading x: <why>".
6. Check, log, report, and suggest what to run next
End check: when two or more skills were loaded or the request had several parts, check each part before the final reply. For every loaded skill, and every part of the request no skill covered, decide done / partial / blocked, with evidence (a file:line, a test result, a command output). Put it in the final reply as a short table:
| Part | Skill | Status | Evidence |
If a part is partial or blocked, say what is missing instead of calling the task done. Skip the table for a single-skill, single-part request.
Log: run python3 <base>/scripts/inventory.py --log '<json>' once, with one JSON object:
request (the request in at most 160 characters, no secrets), loaded (skills loaded), used
(loaded skills whose instructions actually shaped the work), unused (loaded but not needed),
skipped (planned rows that did not run), next (the Next skills you suggest), no_skill
(true when no skill was needed), check ("done", "partial", "blocked", or "n/a"). Logging is part
of the routing, not optional. If the command fails, say so in one line and continue.
inventory.py --report later shows what /route loaded, what the work used, and how many Next
skills the user followed.
Start the final reply with one line that says which skills ran, so the user sees it even if the
table scrolled away: Skills used: a, b(add skipped c: <why> `` when a planned row did not
run, or Skills used: none (<why>)).
End the final reply with this section:
Next skills
skill-name: when (now / before commit / before push / after deploy / once a week), and why.
Give at most 3. Take them from the NEXT fields of the loaded skills, the "Default picks" of the categories you read, and steps the project's CLAUDE.md requires (for example a full test run before push). Keep only the ones that fit what actually happened, and do not run them. This section also applies when no skill was loaded.
Refresh
Run when the user installs, removes, or updates skills or plugins.
- Run
python3 <base>/scripts/inventory.py --check. If it printsNO CATALOG, run the build instead. - For each NEW skill: read its SKILL.md (frontmatter and first ~80 lines), choose the category file
whose Scope fits (
inventory.pylists the fixed categories in its TAXONOMY), and append one line in the same format as the other lines in that file. Use[read <absolute path>]when its frontmatter hasdisable-model-invocation: true, and[project]when it lives in a repo's.claude/skills. If the category file does not exist yet, create it with the same header (# name,Scope:,Default picks:). - For each GONE entry: delete its line, and remove it from any "Default picks" text.
- Run
inventory.py --index, then--checkagain until it printscatalog in sync. Report what was added and removed.
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
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.

