skill-router

Your skill first, the process skill second, gates and memory on the card — before any tool fires.
A hook-driven router for Claude Code. It indexes every skill you have installed by when it applies, ranks them against each prompt in ~80 ms, asks a small model only when the ranking is unsure, and injects a route card before Claude's first action. Enforcement is tiered: hard where a wrong skill is expensive, soft everywhere else. The route follows every sub-agent you dispatch.
Live dashboard
See routing decisions, loaded skills, ignored suggestions and suggested next steps in one local view.

Watch or download the 11-second dashboard video (MP4).
The recording shows one local setup; its counts are observations, not a performance benchmark.
Run from the repository root:
python3 scripts/cli.py dashboard
Open http://127.0.0.1:8790. The dashboard reads local logs and refreshes as you work.
Optional model-based routing has its own data flow; see Jev and privacy.
> my macbook restarted again last night, can you check why
[skill-router] This is a BROKEN task — 2-step chain.
[skill-router] Chain: mac-doctor → superpowers:systematic-debugging
[skill-router] Invoke step 1/2 now:
▶ mac-doctor (inherit, in-session)
▶ superpowers:systematic-debugging (inherit, in-session)
[skill-router] Memory: mac_crash_root_cause (read from ~/.claude/projects/.../memory/)
[skill-router] IRON RULE: call Skill(skill="mac-doctor") before any Edit/Write/Task.
Every line is [skill-router]-prefixed, so grep '\[skill-router\]' on a transcript shows exactly what was routed.
Why (v4, September 2026)
An audit of this machine after five months of use:
| Finding | Number |
|---|
| Skills installed / ever invoked / invoked last month | 291 / 80 / 32 |
| Tokens the skill listing cost every session start | ~22,600 |
| Skills the v3 routing table could name | ~20 (all process skills) |
| Real prompts the v3 router answered with silence | 4 of 10 |
writing-plans announced / followed | 6 / 1 |
| Months routing was dead without anyone noticing | 2 |
The routing table could never enumerate the domain skills — they change weekly — and hard-blocking edits on a process skill the model does not value produced workarounds, not compliance. v4 replaces the table with an index, and replaces uniform enforcement with tiers. Full evidence and design: docs/v4-design.md.
How it decides
prompt ──► project route (SKILL.personal.md) deterministic, wins outright
──► Jev over the whole index (jev_choose.py) ~0.4 s, two Choice questions, no pre-filter;
≥ 0.8 route · below: silent (0.5–0.8 suggestion line is opt-in)
──► on Jev failure / 1.2 s timeout:
enriched index rank (skill_index.json) ~80 ms, name · use_when · keywords · project aliases
small-model tie-break (Gemini Flash-Lite) only below 35 % margin, ~1 s, cached
──► path (BROKEN / BUILD / OPERATE) + process leg from the table
──► route card: domain skill · process skill · gates · memory · tier