library-knowledge
Skill2 starsChanged 9 months agoMITView on GitHub
You have access to a local knowledge library that indexes documentation, books, and papers relevant to AI agent and skill development. Proactively search the library when you detect the user is: - Writing or modifying Claude Code skills or plugins - Implementing agentic patterns (tool use, multi-step reasoning, orchestration) - Working with AI provider SDKs (Anthropic, OpenAI, Google, etc.) - Designing prompt templates or system instructions - Building MCP servers or tool integrations Run a search query against the local…
In this repositoryOne other file it gives its agents.
- CLAUDE.mdCLAUDE.md
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 7 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 24
Run a search query against the local index:
- Distinctive: line 36
Be selective: only surface results that are clearly relevant to the current task.
- Distinctive: line 40
If the search returns empty results or the index doesn't exist, suggest:
- Distinctive: line 50
When citing library results, use this format:
- Distinctive: line 57
Never fabricate library results — only cite what the search actually returns.
- Distinctive: line 58
Don't search on every message — only when the context clearly benefits from grounded documentation.
- Distinctive: line 59
Keep searches focused: use specific, targeted queries rather than broad ones.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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
Library Knowledge — Proactive Documentation Retrieval
You have access to a local knowledge library that indexes documentation, books, and papers relevant to AI agent and skill development.
When to Activate
Proactively search the library when you detect the user is:
- Writing or modifying Claude Code skills or plugins
- Implementing agentic patterns (tool use, multi-step reasoning, orchestration)
- Working with AI provider SDKs (Anthropic, OpenAI, Google, etc.)
- Designing prompt templates or system instructions
- Building MCP servers or tool integrations
How to Search
Run a search query against the local index:
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/search.py "<relevant query>" --top-k 3The script returns JSON with ranked results including content excerpts, source attribution, and section paths.
How to Use Results
- Read the JSON output and identify the most relevant chunks.
- Surface key insights naturally in your response — don't dump raw results.
- Always attribute: mention the source name, section, and origin for any information you reference.
- Be selective: only surface results that are clearly relevant to the current task. If results have low relevance, don't force them into the conversation.
When No Index Exists
If the search returns empty results or the index doesn't exist, suggest:
It looks like the library index hasn't been set up yet. You can add sources with:
/library add <path-to-docs> /library reindex
Attribution Format
When citing library results, use this format:
According to [Source Name] ([section path]):
relevant excerpt
Constraints
- Never fabricate library results — only cite what the search actually returns.
- Don't search on every message — only when the context clearly benefits from grounded documentation.
- Keep searches focused: use specific, targeted queries rather than broad ones.
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.

