agentleFS
UsmanBukUsmanBuk/Skills/skills/context7-docs/SKILL.md

context7-docs

Skill0 starsChanged 8 days agoMITView on GitHub

Look up current, version-specific docs for a third-party library, framework, SDK, CLI or cloud service through the Context7 MCP before writing, configuring, upgrading or debugging code that uses it. Use it whenever the task touches an external package's API or config (FastAPI, SQLAlchemy, Pydantic, React, TanStack Query, Vite, TypeScript, Azure SDKs, Bicep and the like), and especially when a version is named or pinned, a major version changed, an option may have been renamed or removed, or an error comes from inside a library. Use it even when you feel sure of the API, because confident code against an older version is the usual failure. Skip it for language built-ins, plain algorithms, SQL, and code that only touches the project's own modules.

5 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Find the version in use: Read the project's pin (pyproject.toml/uv.lock, package.json/lockfile, go.mod, etc.) or take it from the user's …

    line 12
  2. Very specific:

    Resolve the library: Call the Context7 MCP tool resolve-library-id (in Claude Code: mcp__context7__resolve-library-id) with the library …

    line 13
  3. Very specific:

    Query the docs: Call query-docs (in Claude Code: mcp__context7__query-docs) with that ID and a specific question, such as "async engine …

    line 14
  4. Very specific:

    If Context7 doesn't index the library, or the result is thin, fall back to web search, the package's changelog, or the installed source …

    line 17

“Common” is measured: kept by at least 6 in 10 of the 4 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

Context7 documentation lookup

Library APIs move faster than training data. Code that looks right but targets an older version (a renamed option, a removed flag, a changed signature) is the most common way library code goes wrong, and it fails late. Context7 serves the library's current docs and examples, so check there before writing against the API.

Steps

  1. Find the version in use. Read the project's pin (pyproject.toml/uv.lock, package.json/lockfile, go.mod, etc.) or take it from the user's message. If nothing pins it, assume the latest release.
  2. Resolve the library. Call the Context7 MCP tool resolve-library-id (in Claude Code: mcp__context7__resolve-library-id) with the library name and what you are trying to do. Pick the match by name, reputation and snippet count. If it lists versions, use the /org/project/version ID that matches step 1.
  3. Query the docs. Call query-docs (in Claude Code: mcp__context7__query-docs) with that ID and a specific question, such as "async engine dispose in a FastAPI lifespan handler" rather than "lifespan".
  4. Write the code from what came back. Where the docs and your memory disagree, the docs win. Mention briefly which version you checked.

If Context7 doesn't index the library, or the result is thin, fall back to web search, the package's changelog, or the installed source (e.g. site-packages/<pkg>, node_modules/<pkg>), which is ground truth for the installed version.

Limits

  • At most 3 Context7 calls per question; then use the best result you have.
  • One lookup per library per task is usually enough. Don't re-query for every line.
  • Skip it for language built-ins, standard algorithms, and code that only calls the project's own modules.

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.