agentleFS
prisma-ddtiprisma-ddti/skills/skills/documentation-lookup/SKILL.md

documentation-lookup

Skill2 starsChanged 6 months agoMITView on GitHub

Fetch current library, framework, and API documentation via the Context7 MCP instead of relying on training data. Use this skill whenever the user asks a question that depends on accurate, up-to-date behavior of any library, framework, SDK, or API — including setup/configuration questions, code examples, API references, migration guides, or version-specific behavior. Trigger even if the user doesn't name the skill explicitly but clearly needs current docs to get a correct answer.

12 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use pytorch-patterns, architecture-decision-records and 3 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • mryeastcodeSkill

    pytorch-patterns

    PyTorch deep learning patterns and best practices for building robust, efficient, and reproducible training pipelines, model architectures, and data loading.

    Also in 3 projects that use this

  • xfstudioSkill

    architecture-decision-records

    Write and maintain Architecture Decision Records (ADRs) following best practices for technical decision documentation. Use when documenting significant technical decisions, reviewing past architectural choices, or establishing decision processes.

    Also in 4 projects that use this

  • mryeastcodeSkill

    context-budget

    Audits Claude Code context window consumption across agents, skills, MCP servers, and rules. Identifies bloat, redundant components, and produces prioritized token-savings recommendations.

    Also in 3 projects that use this

  • dcs-soniSkill

    codebase-onboarding

    Help developers understand unfamiliar codebases quickly. Use when

    Also in 3 projects that use this

  • VercelSkill

    frontend-design

    Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

4 rules. 1 is common, 3 are distinctive, and 0 are very specific to this project.

  • 1

    Common

    Most of the 12 edited versions we read keep these.

  • 3

    Distinctive

    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:

    If the returned content doesn't answer the question, try one more query-docs call with a rephrased question before falling back.

    line 30
  2. Distinctive:

    User didn't specify a library: if the question implies a library dependency but doesn't name one, ask which library they're using before …

    line 45
  3. Distinctive:

    Call resolve-library-id with the framework name and the user's question.

    line 51
  4. Common:

    Call query-docs with that ID and the question.

    line 53

“Common” is measured: kept by at least 6 in 10 of the 12 edited versions of this file we could read. “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

Documentation Lookup (Context7)

Answer library/framework/API questions using live documentation from the Context7 MCP, not training data. Two tools are available: resolve-library-id (find the Context7 library ID) and query-docs (fetch docs for that ID).

Workflow

1. Resolve the library ID

Call resolve-library-id with:

  • libraryName: the library or product name from the user's question.
  • query: the user's full question (improves relevance ranking).

This returns candidate library IDs. Pick the best match by considering exact name match, benchmark score (higher = better docs quality), source reputation, and version alignment if the user specified one.

A valid library ID is required before calling query-docs. If resolution returns no results, tell the user the library wasn't found in Context7 and offer to help via web search or training knowledge instead.

2. Fetch the documentation

Call query-docs with:

  • libraryId: the ID selected in step 1.
  • query: the user's specific question. Be precise — vague queries return vague results.

If the returned content doesn't answer the question, try one more query-docs call with a rephrased question before falling back. State uncertainty clearly rather than guessing.

3. Answer using the fetched docs

Respond using the current documentation. Include relevant code examples from the docs when helpful, and cite the library version when it matters.

Constraints

  • Max 3 MCP calls per question (combined resolve + query). Each call adds latency and token cost; keep it efficient. If 3 calls aren't enough, use the best information gathered so far and flag gaps honestly.
  • No secrets in queries: strip API keys, passwords, tokens, and other credentials from any text sent to resolve-library-id or query-docs.

Failure handling

  • No resolution results: the library may not be indexed in Context7. Say so and offer alternative approaches (web search, training knowledge).
  • Irrelevant docs returned: rephrase the query once. If still off-target, answer with what you have and note the limitation.
  • User didn't specify a library: if the question implies a library dependency but doesn't name one, ask which library they're using before calling resolve.

Example

User asks how to configure middleware in a web framework.

  1. Call resolve-library-id with the framework name and the user's question.
  2. From results, pick the official library ID (best name match + highest benchmark score). If the user mentioned a version, prefer a version-specific ID if available.
  3. Call query-docs with that ID and the question.
  4. Answer using the returned docs, including a minimal code example if the docs provide one.

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.