/skill-madness:skill-triagefrom skill-madness
Measures skill routing accuracy using TypeSafe's Jev decision model. Detects description collisions where one skill steals another's triggers. Use when skills misfire or under-trigger.
Ships in skill-madness. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Skill routing fails quietly. With dozens of skill descriptions loaded at once, a request lands on a plausible-but-wrong skill, or on none, and nobody notices until the output is off. This skill makes routing measurable: it asks a small decision model which skill fits, gets back a probability for every skill, and turns that into accuracy numbers and a list of who is stealing from whom.
Jev is TypeSafe AI's "System One" model. You send it a state (here, the user
request) plus typed questions. It returns typed answers: a choice over up to
255 options with a full probability distribution and a confidence, or a noul
(the probability a statement is true). It does not write text or code, and it
cannot replace the model running your session. It is a fast, cheap classifier
that you call from code.
That shape fits skill routing well. Each skill's name and description become one option of a Choice question, which is roughly the same text a host sees when it decides whether to load a skill.
TypeSafe ships its own agent skill (typesafe-ai/skills) that teaches agents
the API in general. This skill doesn't duplicate it. It applies Jev to one job:
routing this catalog.
Everything runs through scripts/triage.py (python3 stdlib, no install).
It discovers skills the same way scripts/catalog.sh does
(skills/<category>/<skill>/SKILL.md plus the top-level orchestrator, skipping
archive/, in-progress/, node_modules/). Pass --root for any other
skills directory, and --only to narrow the catalog to the skills actually
available on this host.
| Mode | What it answers | Calls |
|---|---|---|
route "<request>" | Which one skill should handle this, or none | 2 |
check --cases F / --from-routing-table F | How often the catalog routes labeled requests correctly | 1 per 32 cases |
collisions [--skill X] | Which skills lose their own trigger phrases, and to whom | 1 per 32 trigger phrases |
check and collisions batch: the catalog goes in the state once per call and
each probe is one Choice question over the skill names, up to 32 per call
(Venice rejects 40). --batch-size 1 restores one call per probe, which costs
about 6× more and scored no better (62/65 vs 64/65 on the routing table).
Every run has a spend cap. The script estimates the cost before calling and
refuses anything over --max-cost (default $0.02, or JEV_MAX_COST) with exit
2. If the real spend still reaches the cap mid-run, it stops, prints the
partial results, and exits 5. Use --dry-run to see the estimate, and scope
with --skill rather than raising the cap: a full-catalog collision scan
(about $0.036) is refused by default on purpose.
route decidesIt follows TypeSafe's published skill-suggestion pattern (which cut wrong skill loads from 16.8% to 7.3% over 488 requests in their test):
GATE_THRESHOLD, the answer is no skill. That is a legitimate result,
the same as madness's "none is a legal outcome."SHORTLIST skills get their description plus a body
excerpt, a second Choice, and a per-skill "fits" noul. If no candidate fits
above FITS_THRESHOLD, there's no winner.The thresholds are constants at the top of the script, kept in one place so a human can review and tune them. Change them there, not with ad-hoc flags.
check and collisions rank on descriptions onlyThe host decides whether to load a skill from its name and description, not
its body. Scoring that same text means a miss points at the description,
which is the thing you can fix. route is different: it's making a real
decision, so it uses every signal it has.
Key: Venice is the default provider. The script uses the first of
VENICE_API_KEY (api.venice.ai/api), TYPESAFE_API_KEY (direct,
api.typesafe.ai) or OPENROUTER_API_KEY that is set, and JEV_PROVIDER
forces one. All three serve the same /v1/systemone contract. Venice omits usage.cost, so the script estimates it
from Venice's published input price, and Venice only offers jev-latest, so
pinned before/after comparisons need TypeSafe or OpenRouter. Look for
the key name in the environment and the project's .env files before
asking the user for anything, and pass --env-file rather than exporting it.
The script never prints the value.
Model: JEV_MODEL/--model, default jev-latest. Every run reports the
model that actually served it. Pin a version (e.g. jev-1.13) when comparing
two check runs, or a model change will look like a description change.
Cost: measured 2026-10-25 via Venice on the 78-skill catalog:
route is about $0.0006 and takes under a secondcheck is $0.0054 (3 calls)collisions --skill X is about $0.001A 402 "insufficient credits" means the account needs credits; topping up is the user's call, never yours.
Fallback (exit 4): no key, a rejected key, an empty account (401/402/403),
an unreachable endpoint, or rate limits that outlast the retries all exit
4 with a one-line jev unavailable: ... reason. Exit 4 means "carry on
without Jev": route by judgment exactly as you would have, and say so in one
line. Never retry in a loop and never fabricate probabilities. Exit 3 is
different: the API rejected the request itself, which is a bug to report.
Privacy: every call sends the request text and the catalog's descriptions to the provider in use: Venice by default, or TypeSafe or OpenRouter. The catalog here is public OSS, but a user's request may not be. Don't route private requests through it unless the user has opted in.
Treat Jev as a fast second opinion, not the judge. A disagreement is a reason to look, and either side can be wrong:
winner <- owner: count). The winner's description claims
territory the owner meant to own. Usually you'd sharpen the owner's
phrasing or add a scoped "not for X" to the stealer. Hand the edit to
skill-update, then re-run the same check to confirm it moved.loop-controller over fix-until-green, but madness deliberately routes
loops through loop-controller. That's a routing-table question, not a
description bug. Say which one you think it is, and why.collisions. Probes are the quoted strings after the
description's first trigger marker ("Trigger on", "Use when", ...), or every
quote if there's no marker. A quote that's prose, not a trigger (e.g. "don't
skip it because it 'looks fine'"), shows up as a miss. Read the quote in
context before calling it a collision.LOW_MARGIN). These are the next
misses waiting to happen, so they're worth fixing before they flip.--from-routing-table point at skills outside this
catalog (plugin skills like superpowers:*). That's expected; to include
them, add their roots with --root.For a report, give the accuracy, the stealer list, each miss with a one-line verdict (description fix / label fix / genuine ambiguity), and the served model and cost.
SKILL_TRIAGE_ROUTE=1
is set or the user asks for Jev in the session. madness then runs route and
uses the result as a hint; its own judgment and its confirm gate still decide.
A Jev pick never skips the "...go?" on an expensive route. Any non-zero exit
means madness routes as if the pre-check never ran.collisions --skill <name> gives trigger
evidence for one skill under review. Re-run it after the update.collisions --skill <new> and a
check over the routing table. A new skill's commonest failure is stealing
an existing skill's triggers.| Anti-pattern | Why it fails |
|---|---|
| Rewriting a description until Jev agrees | Overfits one classifier; the real router is the host model. Fix only what you can explain in a sentence |
Comparing runs on jev-latest | The alias moves (1.13 → 1.14 in October 2026); pin the model for before/after |
Raising --max-cost to push a full scan through | The cap is the user's budget; scope with --skill to the skills you changed instead |
| Letting a route hint override madness's confirm gate | Cost and blast radius are madness's call, not the classifier's |
| Sending private requests by default | Every call leaves the machine; opt-in only |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub ivy00johns/skill-madness --plugin skill-madness87 skills in this plugin
/accessibility-auditAudit and fix web accessibility against WCAG 2.2 AA, Section 508 and the ADA: axe scan, keyboard, screen-reader and zoom checks, plain-language content and PDFs, source fixes, and an honest conformance report (ACR/VPAT draft). Use for any a11y review, fix or compliance question. Trigger on "accessibility audit", "is this ADA compliant", "Section 508", "WCAG", "VPAT", "a11y"./andonRun work through a live Andon board (the kanban that dispatches cards to Claude Code, Codex and Gemini on your machines): push a plan's cards with the skills each run must load, read the board, answer what needs you, administer a machine, and refresh this skill when Andon changes. Trigger on "/andon", "put this plan on andon", "what needs me on andon", "why isn't my card running".
/Other plugins' skills for the same job