agentleFS
ktundwalktundwal/librarian/skills/library-knowledge/SKILL.md

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.

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
  1. Distinctive:

    Run a search query against the local index:

    line 24
  2. Distinctive:

    Be selective: only surface results that are clearly relevant to the current task.

    line 36
  3. Distinctive:

    If the search returns empty results or the index doesn't exist, suggest:

    line 40
  4. Distinctive:

    When citing library results, use this format:

    line 50
  5. Distinctive:

    Never fabricate library results — only cite what the search actually returns.

    line 57
  6. Distinctive:

    Don't search on every message — only when the context clearly benefits from grounded documentation.

    line 58
  7. Distinctive:

    Keep searches focused: use specific, targeted queries rather than broad ones.

    line 59

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 3

The script returns JSON with ranked results including content excerpts, source attribution, and section paths.

How to Use Results

  1. Read the JSON output and identify the most relevant chunks.
  2. Surface key insights naturally in your response — don't dump raw results.
  3. Always attribute: mention the source name, section, and origin for any information you reference.
  4. 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.