Context7

From archibate/dotfiles-claude · View interactive version

Context7 is an AI agent skill from the GitHub repository archibate/dotfiles-claude. Fetch current docs and code examples for third-party libraries, SDKs, APIs, and CLI tools via Context7. Use before writing or editing non-stdlib library calls — your prior knowledge may be stale. Prefer over web search for library docs.

How to use this skill

Skill file

Context7

Fetch up-to-date library documentation and code examples. Requires CONTEXT7_API_KEY environment variable.

When not to use

Skip Context7 for internal/private libraries, stdlib code, raw HTTP/filesystem, shell built-ins, or stable primitives whose signatures haven't changed in years (e.g. json.dumps, os.path).

resolve-library-id

Resolve a package/product name to a Context7 library ID. Call this before query-docs unless the user provides an ID in /org/project format.

scripts/mcpcall.py resolve-library-id libraryName:"Next.js" query:"app router setup"

query-docs

Retrieve documentation and code examples for a resolved library.

scripts/mcpcall.py query-docs libraryId:"/vercel/next.js" query:"how to set up authentication with JWT"
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.