Skip to content
Skills Library
AI & agents · Automation

skill-router

/skill-router

Pick the right skill for an intent and print a pasteable command. Reads MANIFEST.json (or every SKILL.md frontmatter when there is no manifest) and scores the intent against use_when phrases, curated keywords and not_for exclusions. Use when an agent has several skills installed and must choose one entry point before doing anything, or when you want to know which script handles "make me a logo" versus "read this page".

Licence
MIT
Last repository change
02.11.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
2
Scripts
1
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 02.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 1 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: scripts/route.py

What it does and when to use it

Pick the right skill for an intent and print a pasteable command. Reads MANIFEST.json (or every SKILL.md frontmatter when there is no manifest) and scores the intent against use_when phrases, curated keywords and not_for exclusions. Use when an agent has several skills installed and must choose one entry point before doing anything, or when you want to know which script handles "make me a logo" versus "read this page".

Triggers from the description

make me a logoread this page
Original author description

Pick the right skill for an intent and print a pasteable command. Reads MANIFEST.json (or every SKILL.md frontmatter when there is no manifest) and scores the intent against use_when phrases, curated keywords and not_for exclusions. Use when an agent has several skills installed and must choose one entry point before doing anything, or when you want to know which script handles "make me a logo" versus "read this page".

How it works

  1. What it actually does
  2. Special case: meta questions
  3. Composition hint
  4. Output contract
  5. Failure modes
  6. Notes for the agent
Original SKILL.md headings · 99 lines, 727 words
SKILL.md preview
---
name: skill-router
description: Pick the right skill for an intent and print a pasteable command. Reads MANIFEST.json (or every SKILL.md frontmatter when there is no manifest) and scores the intent against use_when phrases, curated keywords and not_for exclusions. Use when an agent has several skills installed and must choose one entry point before doing anything, or when you want to know which script handles "make me a logo" versus "read this page".
version: 1.2.0
license: MIT
---

# skill-router

One command that answers "which of these seven things do I run?".

```bash
route.py "make me a logo for a coffee shop"
# anon-image  (1.88)
#   python3 anon-image/scripts/imgen.py gen "make me a logo for a coffee shop" -o out.jpg

route.py "which skill handles PDFs" --top 3
route.py "I need a voiceover for my video" --explain
route.py --list
route.py "read this page" --json
```

## What it actually does

1. **Find the pack.** `--skills-dir`, else `$AGENT_SKILLS_DIR`, else walk up from the
   script until it sees `MANIFEST.json` (or a directory of `SKILL.md` files).
2. **Load the catalogue.** `MANIFEST.json` if present — it carries `use_when`,
   `not_for`, `keywords`, `entry` and `commands`. No manifest? It parses the YAML
   frontmatter of every `SKILL.md` and guesses the entry point from `scripts/`.
   That fallback is what makes this work for *other* people's skill packs too.
3. **Score the intent.**

   ```
   score = 3.0 × best match against any use_when phrase
         + 3.0 × curated keyword hit rate        (two hits = full credit)
         + 1.5 × keyword overlap with description
         + 1.5 × keyword overlap with the skill name
         − 4.0 × match against not_for           (a veto, not a nudge)
   ```

   `not_for` is the field that stops an agent trying to generate music with a TTS
   endpoint, so it is weighted heavier than any positive signal.
4. **Refuse to guess.** Below `1.00` it prints "no confident match" and the closest
   three, exit code `1`. A wrong confident answer costs an agent more than an honest
   shrug — it will spend four tool calls doing the wrong thing.
5. **Print a command, not advice.** The output is pasteable and already contains the
   intent where the skill takes free text.

## Special case: meta questions

"which skill / what tool / list skills / what should I use" is a question about the
pack, not a task. Bag-of-words scoring will never rank the router first for those, so
there is an explicit detector that does. It is deliberately narrow — "route this: I
need a podcast intro" still routes to `anon-audio`, because `route` alone is not a
meta signal.

## Composition hint

When the runner-up is within ~1.2 points **and** the winner declares it in
`composes_with`, the router says so:

```
anon-audio  (2.62)
  python3 anon-audio/scripts/tts.py say "I need a voiceover for my video" -o out.mp3
```

Becomes, when `ffmpeg-pipeline` wins by a hair:

```
  note: close call with anon-audio and it composes — ffmpeg-pipeline can call it for you
```

That one line is usually the correct answer: the task genuinely needs two skills.

## Output contract

| Mode | Shape |
|---|---|
| default | `skill  (score)` + indented command (+ alternatives when `--top > 1`) |
| `--json` | `{intent, root, match:{skill,entry,command,score}, alternatives[], all[]}` |
| `--explain` | the per-field score breakdown for the winner |
| `--list` | the whole routing table: name, entry, first `use_when` phrase |

Exit codes: `0` matched · `1` nothing above threshold · `2` no skills found.

## Failure modes

| Symptom | Meaning | Action |
|---|---|---|
| `no confident match` | intent too vague, or genuinely not covered | rephrase with the object you want ("logo", "voiceover", "PDF"); the three closest are printed |
| everything scores `0.00` | no skill owns those words | check `--list`; the pack has no such capability and it is telling you so |
| wrong skill wins | that skill's `keywords` are too broad | edit `keywords` in `MANIFEST.json` — the router is data-driven on purpose, fixing routing should not mean editing Python |
| `no skills found` | pack layout not recognised | `--skills-dir /path/to/pack` or export `AGENT_SKILLS_DIR` |
| `only one skill found under …` | you installed the router on its own — there is nothing to route between | point it at a pack: `--skills-dir ~/agent-skills` or `export AGENT_SKILLS_DIR=~/agent-skills` |

## Notes for the agent

- Run the router **once**, before a multi-step task, not before every call. It costs
  nothing but it is a decision, not a reflex.
- `--json` if you are parsing; the human output is for humans and its exact spacing
  is not a contract.
- If the router says no confident match and you still think a skill applies, run it
  anyway with `--provider`-style explicit arguments — the router is a hint, and the
  scripts are the source of truth.
Files in this package (2)
  • SKILL.md 5 KB
  • scripts/route.py 12 KB

Versions

RepositoryScoreLicence
This page · aminmzadev/keyless-agent-skills100MIT
FrancoStino/opencode-skills-collection100MIT
dreamlab-ai/agentbox100AGPL-3.0
hanmariyang/giting-skills100MIT
wrongstack/wrongstack100MIT
sickn33/agentic-awesome-skills100MIT
dotslashsimran/simcraft100MIT
borghei/Claude-Skills100MIT
byrmeng/skill-router100MIT

Database snapshot: 13.11.2026 · package version 568268d1026a (SHA-256 digest of the entire package)

Downloads in the last 30 days: 1 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 98agent-library-skill-create
    一条命令创建/入库 agent-library skill:生成 SKILL.md、manifest、intent, 默认所有 Agent 可见;只有确实需要时才加 ignore 或特殊版本。用户说“做一个 skill”、 “把它入库”、“新建技能/意图”时使用,不要先走 skill-creator 的长评估流程。
  • 100vault-router
    Entry point for the skill-vault collection. Use FIRST whenever a user makes a task request and any skill-vault skills are installed: read the request, analyze what the actual task and deliverable are, then route to the one matching vault skill and follow it. Also use when the…
  • 100add-skill
    Use this skill when the user asks to "add a skill", "create a skill", "new skill", "write a skill for", "skill for cx <something>", "add a user-facing skill", "create a SKILL.md", "teach an agent how to use", "agent skill for", "document a command as a skill", "make a skill",…
  • 100using-foundationskills
    User-invoked slash command: run ONLY when the user types /using-foundationskills; never choose it on your own. Entry point for FoundationSkills: routes a user's intent (or a have→want chain such as {raw_data_ref, goal_spec} to fs_launch_spec) to the right FoundationSkills skill,…
  • 100guide
    Hub skill 地圖:本 repo 實際裝到的 skill 的使用場景、邊界與銜接流程(router,零 context 成本;依 consumer manifest 的 modules 分層)。
  • 100skill-frontmatter
    Write the YAML frontmatter for a SKILL.md file so it activates reliably — name, description, and activation keywords that the model matches against. Covers length, tone, and the most common frontmatter mistakes. Use this skill when authoring a new skill, fixing a skill that…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.