SkillSearch
Indexes every skill across all installed plugins and enables the agent to find them instantly via BM25 search through an MCP tool.
README
SkillSearch
Find and surface the right Claude Code skill — automatically. Indexes every skill across all your installed plugins, searched instantly at every prompt.
(demo GIF coming soon)
The problem
Claude Code ships with 1700+ skills — but your agent sees only a fraction of them.
Two limits cut most skills out of view:
skillListingBudgetFractioncaps the skill listing at roughly 1% of the context window. On a 200k-token model that is ~2000 tokens — enough for maybe 60–80 skills, not 1700+.- Description truncation: least-recently-used skills get their descriptions dropped entirely. The agent sees the name but not what the skill does.
Result: skills like impeccable, stop-slop, deep-research, and hundreds of plugin-bundled skills are invisible to the agent unless it happens to know the exact name.
SkillSearch fixes this by building a complete local index and routing skill lookups through BM25 search — so the agent finds impeccable when it needs copy polish, not just when someone types /impeccable.
What SkillSearch does
One index. Three surfaces.
~/.claude/skills/
~/.agents/skills/ ──► buildIndex() ──► SKILLS-INDEX.json
installed_plugins.json / │
plugin caches │
┌────────────┴────────────┐
│ │
MCP tool CLI
skill_search skillsearch search
(agent calls it) (you call it)
│
hooks (auto)
SessionStart + UserPromptSubmit
inject top matches into context
- Index — scans
~/.claude/skills,~/.agents/skills, and plugin caches discovered viainstalled_plugins.json. Deduplicates, namespaces plugin skills, parses YAML frontmatter. - BM25 search — MiniSearch with name-boosted scoring. Finds
impeccablefor "polish prose",stop-slopfor "remove filler",deep-researchfor "thorough web research". - MCP tool —
skill_search(query, top_k?)— the agent calls this when it needs to find a skill. Returns a text list of matching skills with name, description, and source. - CLI —
skillsearch search "<task>"for humans.skillsearch index [--if-changed]to refresh. - Hooks —
SessionStartprints a rotating generic nudge to use skill_search and fire-and-forget refreshes the index if stale;UserPromptSubmitruns BM25 on the actual prompt and injects up to 3 matching skill pointers into the system prompt (no injection when no match clears the pollution-guard threshold).
Install
Not on npm yet. Until
skillsearchis published, use the clone-based install below. (npx skillsearch …will work once published — the name is reserved.) The index is built locally from your installed skills on first run; nothing is bundled, so your skill inventory never leaves your machine.
Option A — Claude Code plugin (recommended)
# Clone + install deps (needed so hooks and the MCP server have their Node deps at runtime)
git clone https://github.com/TheQmaks/skillsearch
cd skillsearch && npm install
# Register as a plugin marketplace, then install
/plugin marketplace add https://github.com/TheQmaks/skillsearch
/plugin install skillsearch
The plugin wires up the MCP skill_search server and both hooks via .mcp.json and hooks/hooks.json. The SessionStart hook builds the index on first run and refreshes it when it goes stale.
Option B — standalone CLI + MCP (any project)
git clone https://github.com/TheQmaks/skillsearch
cd skillsearch && npm install
node bin/cli.mjs index # build the index for your machine
claude mcp add skillsearch node "$PWD/src/mcp-server.mjs" # expose skill_search to the agent
Usage
# Search for a skill
skillsearch search "product copy review"
# | skill | description |
# | --- | --- |
# | `impeccable` | Polish prose and remove filler words |
# | `stop-slop` | Ruthless filler-word removal |
# | `copy-editing` | Line-level editing for clarity |
# Rebuild the index (full)
skillsearch index
# Rebuild only if skills have changed since last index
skillsearch index --if-changed
# Ask "which skill should I use for X?"
skillsearch which "thorough web research"
MCP tool (called by the agent):
skill_search(query: string, top_k?: number) → text listing matching skills (name, description, source)
Hooks — no configuration needed after install. Control injection verbosity:
SKILLSEARCH_INJECT |
Behavior |
|---|---|
off |
No per-prompt injection |
minimal |
Inject only the single strongest match (very high threshold) |
medium (default) |
Inject up to 3 strong matches; nothing on weak/irrelevant prompts |
Injection is deliberately high-precision: the per-prompt hook stays silent unless a match
clears a conservative BM25 threshold (filler words are filtered out first), so it never pollutes
context on chatty or off-topic prompts. Borderline relevance is left to the skill_search tool.
Config
| Env var | Default | Description |
|---|---|---|
SKILLSEARCH_INJECT |
medium |
Hook injection level: off, minimal, medium |
SKILLSEARCH_THRESHOLD |
preset default | Override the BM25 score floor for injection (tune for your corpus size) |
SKILLSEARCH_INDEX |
~/.claude/SKILLS-INDEX.json |
Override index file path |
How it works
Every prompt Agent tool call CLI / human
│ │ │
▼ ▼ ▼
UserPromptSubmit hook MCP skill_search skillsearch search
│ │ │
└──────────────────────────────►│◄─────────────────────────┘
▼
loadIndex(SKILLS-INDEX.json)
│
BM25 search (MiniSearch)
name boost × 2, top-k results
│
┌───────┴───────────────┐
│ │
inject into return to caller
system prompt (tool / CLI output)
(seen-skill filter,
pollution guard)
The index is built once and loaded from disk on each search call. On a warm file-system cache, search latency is under 10 ms for 1684 skills.
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.