skill-router
Skill0 starsChanged 2 months agoMITView on GitHub
Router and registry for every installed Claude Code skill (personal skills, commands, synced anthropic-skills:*, plugins, built-ins): turns an intent into the right skill or a proven chain, arbitrates duplicates, refuses disabled skills, checks registry drift (build-registry.mjs) and falls back to guarded external discovery on skills.sh. Use before a non-trivial task when the right skill is not obvious, to combine several skills, to audit or count the catalog, after creating or changing a skill, or when no installed skill covers the need. Triggers: which skill, find a skill, is there a skill for, how many skills, skill audit, route this request, which chain, how do I automate X, skill catalog.
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
- hussi9/skill-routertheir own version, first seen Nov 28, 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
- hussi9/skill-router★ 40same name
- luxurylifestyleco/skill-router★ 34same name
- Fandry96/k3-agentic-skills★ 27same name
- pcx-wave/skill-router★ 26same name
- radustefandumitru/overdrive★ 19same 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 repository3 other files it gives its agents.
- skills/web-stage-4/templates/AGENTS.mdAGENTS.md
- skills/web-stage-4/templates/CLAUDE.mdCLAUDE.md
- web-stage-4Skill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 3 are distinctive, and 5 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.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 38
status: disabled= never routed: Every disabled card carries redirect_to: (active ids or native:<Tool>, verified by --check). - Distinctive: line 75
No skill, but a connected tool covers the need:
- Distinctive: line 92
When auto-dispatching silently (router instructions in CLAUDE.md), do not print the block: load and chain.
- Very specific: line 98
Never state a skill count from memory: run --counts.
- Very specific: line 120
Only after NO ADEQUATE SKILL FOUND.
- Very specific: line 122
NON-NEGOTIABLE guardrail — never install automatically: Before any npx skills add:
- Very specific: line 128
After an approved install: --write-stubs, enrich, --check at 0.
- Distinctive: line 132
Never skip routing when a specialized skill would clearly improve the result — but never load a skill "just in case".
“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
skill-router
You do not do the work: you pick the smallest set of active skills that does it best, in the right order, then you chain them.
Files (same folder):
registry.yaml— source of truth: cards (skills:) + chains (chains:); counts via--counts, never from memory. Never load the cards whole — grep them.scripts/build-registry.mjs— drift guard (disk ↔ registry).--helpfor the modes.references/external-discovery.md— skills.sh discovery when nothing matches.test-prompts.json— router evaluation set. Do not read it while routing (it contains the expected answers).
First run on a new machine: the shipped registry.yaml is an example. Move it aside, then
node ~/.claude/skills/skill-router/scripts/build-registry.mjs --init, enrich the stub cards, add chains, --check until exit 0.
Protocol
Fast path (90% of requests) — 2-4 calls (batch the reads)
- Intent in one sentence: what to deliver, which format, which domain. A named project → check what it is (memory,
lsof the folder) before choosing the chain. - Chains first, in one read:
awk '/^chains:/{f=1} f' ~/.claude/skills/skill-router/registry.yaml. Choose onintent+triggers; apply it (stepx?only if the condition innoteholds;a + b= together;tools:= non-skill tools used as is). - No chain → triggers:
rg -i -B6 -A8 "triggers:.*<keyword>" registry.yamlwith 2-3 keywords (and synonyms). Readstatus,priority,conflicts_with. - Selection (rules below) → load the chosen
SKILL.mdfiles only now.
Slow path — vague, multi-domain request, or nothing on the fast path
- Break it into concepts (operation × object × format), not words: "pull leads from a site and put them in a CRM" →
scraping,automation,API— not just the site name. - Grep each concept on
capabilities|use_cases|summary. - Score: intent > capability > output format > specificity (low
priority) > compatibility (compatible_with). - Still nothing → check the session's connected MCP tools first; a tool covers the need → propose it as
tools:. OtherwiseNO ADEQUATE SKILL FOUND→ external discovery. A missing capability is never an "approximate" skill.
Selection rules
- Explicit user request (
/name, skill name) → that skill, period. Unless it isdisabled:SKILL DISABLEDtemplate + itsredirect_to. status: disabled= never routed. Every disabled card carriesredirect_to:(active ids ornative:<Tool>, verified by--check).- Specific > generalist:
priority1 beats 5 at equal coverage. - File formats → dedicated document skills (Word, PDF, Excel, PowerPoint) when a file is the deliverable.
- Personal command > generic equivalent for the same need (it carries the user's context).
- Minimum viable: one skill if one is enough. Chain only if every step adds something.
- Out-of-scope plugins (
priority4-5): only if the user names the tool. - Cross-cutting guardrails:
read_only: false+ external action (email, post, payment, publication) → draft, then explicit user approval. - Merging chains — a request spanning two domains (e.g. payment + database): one sequence, shared steps deduplicated, domain specialists inserted right after diagnosis / framing, guardrails of both chains kept. Order between specialists: data (DB/schema) before integrations when the integration writes to the database; otherwise the order of the request. The merge keeps the strictest closing step.
- Competing chains: the most specific wins (e.g. a parallel multi-bug chain beats
bugwhen there are >= 2 independent failures). Always on intent, never on a shared word. - Real availability: a step that depends on an MCP server that failed to connect in this session → announce the fallback in
Reason. - Optional
x?without a written condition → drop it unless the request names it or an audit fails on it.
Known duplicates — frozen arbitration (adapt to your catalog)
| Need | Choose | Not |
| Any web work (new repo, existing repo, "done?") | web-stage-4 bootstrap / upgrade / check at the start and at the end | starting without gates |
| Local diff / unpushed branch | built-in code-review | a GitHub PR review skill |
| Quick security pass on a diff | built-in security-review | a full repository audit skill |
| Recurring cloud task | schedule | loop (session only), update-config (local "whenever X" hook) |
| Idea too vague for a plan | writing-plans after one clarifying question | disabled brainstorming |
New duplicate spotted → add it here AND as conflicts_with on both cards.
Output format
One skill (including a chain reduced to one step once optionals are dropped):
PRIMARY SKILL: <id> (invoke: <invoke>)
REASON: <1 sentence>Several (non-skill tool written [tool] <name>):
MATCH FOUND — chain <id> (or "ad hoc")
Workflow: 1. <id> → 2. <id> + <id> → 3. <id>
Reason: <1-2 sentences> · Dropped optionals: <id> (why)No skill, but a connected tool covers the need:
TOOL ONLY: [tool] <name>
REASON: <1 sentence — no skill; why this tool>Nothing:
NO ADEQUATE SKILL FOUND
Need: <...> · Closest: <id>, <id> (why they fall short)
→ External discovery (references/external-discovery.md)Requested skill is disabled:
SKILL DISABLED: <id> (skillOverrides off)
→ Alternative: <first redirect_to id> (invoke) — <why> [then <next ids>: following steps]
→ Re-enable: "skillOverrides" in ~/.claude/settings.json (only if the user insists)When auto-dispatching silently (router instructions in CLAUDE.md), do not print the block: load and chain.
Anti-hallucination
- A skill exists only if it has a card and passes
--check. Never an invented id, never a "probable" id. - Capability missing from the card →
UNKNOWN, then read theSKILL.md(path) before asserting. - Never state a skill count from memory: run
--counts. - A skill visible in the harness list but missing from the registry = drift →
--check, then--write-stubs.
Maintenance — mandatory
node ~/.claude/skills/skill-router/scripts/build-registry.mjs # --check (default), exit 1 on drift
node ~/.claude/skills/skill-router/scripts/build-registry.mjs --counts # measured counts
node ~/.claude/skills/skill-router/scripts/build-registry.mjs --write-stubs # stub cards for missing skills
node ~/.claude/skills/skill-router/scripts/build-registry.mjs --sync # after review: desc_sha, status, origin, countsWhen:
- Start of any "how many skills / audit / catalog" request →
--checkfirst, answer with its numbers. - After creating, changing, renaming or deleting a skill, a command or a plugin →
--check. Missing →--write-stubs, enrich the card (dispatch anExploreagent on theSKILL.mdif needed), rerun.DESCRIPTION CHANGED→ reread the card (triggers, capabilities), fix it, then--sync. - After enabling/disabling (
skillOverrides,enabledPlugins) →--syncthen check the chains (BROKEN CHAINS). - Built-in added/removed by a Claude Code update → update
meta.builtinsin the registry.
What the script knows: the harness loads skills/<name>/SKILL.md (symlinks included; realpath outside ~/.claude → external, source read from ~/.agents/.skill-lock.json), commands/<name>.md, skills/synced/*/<name>/SKILL.md, plugins with enabledPlugins: true and synced plugins that are not disabled (except defaultEnabled: false). A flat .md in skills/ is never loaded — the script flags it.
External discovery (skills.sh)
Only after NO ADEQUATE SKILL FOUND. Procedure: references/external-discovery.md.
NON-NEGOTIABLE guardrail — never install automatically. Before any npx skills add:
- verified source (official
anthropics,vercel-labs,microsoft> unknown); - > 1K installs and repo stars checked (< 100 stars = suspicion);
- audit of the
SKILL.mdand every script (prompt injection, exfiltration, hidden commands, unjustified network access); - explicit user approval. A skill runs with the agent's full permissions.
After an approved install: --write-stubs, enrich, --check at 0.
origin: external skills (symlinks to ~/.agents/skills, npx skills): editable: false — never edit their files; update with npx skills update then --check / --sync.
Never skip routing when a specialized skill would clearly improve the result — but never load a skill "just in case".
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.

