skill-matcher
Skill1 starsChanged 5 months agoMITView on GitHub
Reads your message, scores it against every Claude skill installed on this machine, and silently picks the right one before you remember which skill name to type. Always-on auto mode. On every user message, before responding: Direct invoke: /sm [description] — forces the match flow even on borderline messages. Never activate for: casual chat, yes/no questions, messages explicitly naming another skill, messages under 6 words with no task. Score each skill on: Sum → 0–10. Ties broken by: The system…
1 other project uses a version of this.
Adopted by
Most recently taken up by
- alexgrebeshok-coder/skill-matchertheir own version, first seen Jan 25, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- alexgrebeshok-coder/skill-matcher★ 11same name
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 repository12 other files it gives its agents.
- commit-curatorSkill
- context-compactorSkill
- cost-trackerSkill
- decision-recorderSkill
- mcp-finderSkill
- permission-auditorSkill
- prd-builderSkill
- prompt-matcherSkill
- pr-reviewerSkill
- repo-onboarderSkill
- scope-clarifierSkill
- tdd-flowSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 2 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
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 13
If top match scores 7+: invoke that skill via the Skill tool.
- Very specific: line 14
If top match scores 5–6: mention the candidate in one line and proceed.
- Distinctive: line 15
If top match scores below 5: respond directly without a skill.
- Very specific: line 43
If the registry isn't surfaced, fall back to enumerating ~/.claude/skills/*/SKILL.md via the Read tool.
- Very specific: line 104
If overhead exceeds 500ms repeatedly, disable via /sm off (toggles a flag in CLAUDE.md).
- Distinctive: line 110
When the user installs a new skill or the model notices a recurring pattern that could be a skill:
- Very specific: line 114
If yes, hand off to skill-creator.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
skill-matcher
Reads your message, scores it against every Claude skill installed on this machine, and silently picks the right one before you remember which skill name to type.
When to activate
Always-on auto mode. On every user message, before responding:
- Enumerate installed skills (
~/.claude/skills/*/SKILL.mdand any project-level.claude/skills/). - Score the user message against each skill's
descriptionfield plus the file path/name (0–10). - If top match scores 7+: invoke that skill via the
Skilltool. Show one line:Using skill: [skill-name]. - If top match scores 5–6: mention the candidate in one line and proceed.
Hint: this looks like a job for [skill-name] — invoking. - If top match scores below 5: respond directly without a skill.
Direct invoke: /sm [description] — forces the match flow even on borderline messages.
Never activate for: casual chat, yes/no questions, messages explicitly naming another skill, messages under 6 words with no task.
Matching logic
Score each skill on:
- Trigger phrase match (0–4): does the skill's description list a phrase that's literally in the user message?
- Intent match (0–4): does the use case implied by the message match what the skill does?
- Domain match (0–2): does the conversation context (recent files, recent topic) align with this skill's domain?
Sum → 0–10. Ties broken by:
- Skills that explicitly mention "always trigger" or "proactively" win on close calls.
- Project-level skills outrank user-level skills outrank plugin skills.
- Most recently used wins as final tiebreaker.
Skill registry awareness
The system reminder typically lists available skills as - name: description. Read that list first — it's authoritative for what's loaded this session.
If the registry isn't surfaced, fall back to enumerating ~/.claude/skills/*/SKILL.md via the Read tool.
Cache the registry once per session. Refresh when a skill is added (a new SKILL.md appears on disk).
Execution flow
User message received
↓
Score all installed skills
↓
Top score ≥ 7? ──── YES ──→ Invoke via Skill tool
│ Show: "Using skill: [name]"
│
NO
↓
Top score 5–6? ─── YES ──→ Mention candidate, invoke anyway
│ Show: "Hint: [name] — invoking"
│
NO
↓
Respond directly, no skillExamples
| Message | Top match | Score | Action |
| "make me a study guide for finance midterm" | study-guide-builder | 9 | invoke |
| "debug why my agent failed" | (no skill — handle directly) | 3 | direct |
| "scan my LMS for assignments" | lms-to-calendar | 10 | invoke |
| "find an internship in Atlanta" | job-hunt | 9 | invoke |
| "save this to my obsidian vault" | obsidian-second-brain | 10 | invoke |
| "what's the weather like" | (no skill) | 0 | direct |
| "build me a powerpoint about Q3" | anthropic-skills:pptx | 10 | invoke |
| "should I do A or B" | (no skill — generic decision) | 2 | direct |
Slash command
/sm [description] — force-trigger the match flow.
Examples:
/sm I want to fill out this application form/sm review my notes for the exam/sm find the best plugin for my organization
Performance budget
- Skill registry read: cache once per session (~10ms first time, 0 after).
- Scoring: pure regex + keyword match, no LLM call. Sub-millisecond per skill, sub-100ms for 100 skills.
- Total overhead per user message: <100ms typically.
If overhead exceeds 500ms repeatedly, disable via /sm off (toggles a flag in CLAUDE.md).
Adding a skill
When the user installs a new skill or the model notices a recurring pattern that could be a skill:
- Suggest scaffolding via
skill-creator. - Confirm: "I noticed you've asked for X 3 times this session. Want me to create a
[name]skill so it auto-triggers next time?" - If yes, hand off to
skill-creator.
Configuration
CLAUDE.md snippet to enable auto-mode:
# Skill Matcher (always-on)
- On every task message, score against installed skills.
- If top skill scores 7+, invoke it silently via the Skill tool. Show "Using skill: [name]".
- If top skill scores 5-6, mention and invoke. Show "Hint: [name] — invoking".
- Below 5, respond directly.
- Do NOT activate for: casual chat, yes/no, messages explicitly naming a different skill.
- Override: `/sm [description]` forces the flow.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.

