skill-router
Skill40 starsChanged yesterdayMITView on GitHub
Use when a [skill-router] route card or a "Consider installing" line appears in the turn, when no card appeared on a non-trivial task, when a route looks wrong, or when the user asks to find a skill. Routes every prompt to the right installed skill (ranked with your own usage), pairs it with a process skill, tiers enforcement, briefs sub-agents, and suggests uninstalled skills only when nothing installed fits.
65 other projects use a version of this.
Adopted by
Most recently taken up by
- phycomp/oskilltheir own version, first seen Nov 29, 2026
- gromov0737/skillstheir own version, first seen Nov 29, 2026
- radustefandumitru/overdrivetheir own version, first seen Nov 29, 2026
- Rune-kit/runetheir own version, first seen Nov 29, 2026
- yj-skill-library/skill-routertheir own version, first seen Nov 29, 2026
- rodeyseijkens/skillstheir own version, first seen Nov 26, 2026
Used with
Projects with it also use context-engineering, accessibility and 10 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.
mrgoonieSkillcontext-engineering
Master context engineering for AI agent systems. Use when designing agent architectures, debugging context failures, optimizing token usage, implementing memory systems, building multi-agent coordination, evaluating agent performance, or developing LLM-powered pipelines. Covers context fundamentals, degradation patterns, optimization techniques (compaction, masking, caching), compression strategies, memory architectures, multi-agent patterns, LLM-as-Judge evaluation, tool design, and project development.
Also in 3 projects that use this
MicrosoftSkillaccessibility
Consolidated accessibility skill entrypoint for WCAG 2.2, ARIA Authoring Practices, cognitive accessibility, Section 508, EN 301 549, design intent verification, and the Accessibility Planner workflow.
Also in 3 projects that use this
MicrosoftSkillcaveman
Ultra-compressed response style that reduces output token count while preserving technical accuracy, with intensity levels and auto-clarity safety rules
Also in 4 projects that use this
SupabaseSkillcopywriting
Write or audit UI copy (buttons, labels, empty states, error messages, tooltips, form text) anywhere in the monorepo. Load it before shipping or reviewing any user-facing text — including when copy is incidental to the task, like a new feature that adds buttons, toasts, dialogs, or validation messages.
Also in 3 projects that use this
nicolasestremSkillbrainstorm
Structured idea generation and solution exploration with systematic analysis.
Also in 3 projects that use this
GoogleSkillteach
Teach the user a new skill or concept, within this workspace.
Also in 3 projects that use this
- +3 more from microsoft
Other versions65 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 65
- rohitg00/pro-workflow★ 2.9ksame name
- stevesolun/ctx★ 583same name
- dotslashsimran/simcraft★ 451same name
- Rune-kit/rune★ 96same name
- Fmarzochi/EGC★ 61same name
- luxurylifestyleco/skill-router★ 34same name
- Fandry96/k3-agentic-skills★ 27same name
- pcx-wave/skill-router★ 26same name
- radustefandumitru/overdrive★ 19same name
- Hassaan146/claude-skills★ 18same name
55 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.
In this repositoryOne other file it gives its agents.
- skill-routerSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 3 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 56 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 44
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 …
- Very specific: line 70
Every Agent(...) dispatch gets the parent's route appended to its prompt (skill, gates, memory) and its model set from the work tier above, …
- Very specific: line 79
If that is silent too, routing may be dead: python3 ~/.claude/skills/skill-router/scripts/doctor.py.
- Distinctive: line 103
When you see one: mention it to the user with the source link.
- Distinctive: line 109
When the user asks to find a skill or extend capabilities, use the integrated manual discovery command with short public search terms:
“Common” is measured: kept by at least 6 in 10 of the 56 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
<!-- Generated from skills/skill-router/SKILL.md by scripts/sync_skill_md.py for legacy ~/.claude/skills/skill-router installs. Edit the source, not this file. -->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 card | Meaning |
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
- Project route in
SKILL.personal.md(@economicalai,capgo, …) — deterministic. - 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.8Possible fit:line exists behindSKILL_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. - 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.
- Process table (
~/.claude/skills/skill-router/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.
| Where | What happens |
| Sub-agent dispatch | The 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 card | Work: 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 strained | When 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 ~/.claude/skills/skill-router/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.
~/.claude/skills/skill-router/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.
How discovery works
Two layers feed one route card.
- Your skills, ranked by your usage.
preference.pybuilds a usage store (~/.claude/skill_router_usage.json) from every Skill call: the router log,skill_usage.logand a one-time, incremental backfill of Claude Code transcripts. Score = recency-weighted frequency (30-day half-life) × test outcomes after the skill loaded, plus optional pins/demotions in~/.claude/skill_router_prefs.json({"pin": [...], "demote": [...]}). The ranker uses it only to break near-ties: at most ±8 % of a skill's score, so a clearly better match always wins. - Skills you do not have. A background SessionStart job keeps an offline catalog of uninstalled skills (antigravity, Anthropic marketplace, skills.sh), screened with risk heuristics. Only when no installed domain skill clears the routing bar does the card add at most two lines:
[skill-router] Consider installing `helm-charts` (online:antigravity): Create, manage, and deploy Helm charts… — <source URL>
[skill-router] install (review the source first): <install command>When you see one: mention it to the user with the source link; do not install it yourself, and carry on with the best installed skill or none. Installing is the user's decision, after they review the source.
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:
python3 ~/.claude/skills/skill-router/scripts/find_skills.py --query 'react performance' --out /tmp/skill-search-new --rankSearch 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 ~/.claude/skills/skill-router/docs/find-skills.md for bounds, options and partial-result handling. This command does not change prompt hooks or the current installed-skill routing policy.
Maintenance
| Command | When |
~/.claude/skills/skill-router/scripts/doctor.py | routing feels dead, or after a Claude Code upgrade |
~/.claude/skills/skill-router/scripts/build_index.py --enrich | you installed or edited a skill |
~/.claude/skills/skill-router/scripts/index_match.py --all "<prompt>" | a route looked wrong — see the ranking |
~/.claude/skills/skill-router/scripts/learn.py --show | what has been learned |
~/.claude/skills/skill-router/scripts/check.sh | after editing any routing logic |
~/.claude/skills/skill-router/scripts/preference.py --show | which skills your usage ranks first |
~/.claude/skills/skill-router/scripts/external_discovery.py "<prompt>" | what external skill would be suggested, and why |
~/.claude/skills/skill-router/scripts/skill_safety.py --dupes | byte-identical skills installed under several names or agents |
~/.claude/skills/skill-router/scripts/listing_plan.py | keep the skill listing inside Claude Code's budget |
Project routes, projects, gates: SKILL.personal.md (kept outside the plugin at ~/.claude/skill-router/SKILL.personal.md, so updates never touch it). Full tables and protocols: ~/.claude/skills/skill-router/references/routing-tables.md.
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.

