How this command is triggered — by the user, by Claude, or both
Slash command
/context7:docs <library> [query]The summary Claude sees in its command listing — used to decide when to auto-load this command
# /context7:docs Fetches up-to-date documentation and code examples for a library. ## Usage - **library**: The library name, or a Context7 ID starting with `/` - **query**: What you're looking for (optional but recommended; run the command once per distinct concept, unless asking how they interact) ## Examples ## How It Works 1. If the library starts with `/`, it's used directly as the Context7 ID 2. Otherwise, `resolve-library-id` finds the best matching library 3. `query-docs` fetches documentation relevant to your query 4. Results include code examples and explanations ## Vers...
Fetches up-to-date documentation and code examples for a library.
/context7:docs <library> [query]
//context7:docs react hooks
/context7:docs next.js authentication
/context7:docs prisma relations
/context7:docs /vercel/next.js/v15.1.8 app router
/context7:docs /supabase/supabase row level security
/, it's used directly as the Context7 IDresolve-library-id finds the best matching libraryquery-docs fetches documentation relevant to your queryInclude the version in the library ID for pinned documentation:
/context7:docs /vercel/next.js/v15.1.8 middleware
/context7:docs /facebook/react/v19.0.0 use hook
This is useful when you're working with a specific version and want docs that match exactly.
2plugins reuse this command
First indexed Jul 18, 2026
npx claudepluginhub edisplay/context7 --plugin context7/docsFetches up-to-date documentation and code examples for any library, with optional version-specific lookups via Context7 IDs.
/docsGenerates and exports documents in PPTX, DOCX, PDF, and Markdown formats from natural language requests. Supports technical specifications, presentations, reports, and more.
/docsGenerates or updates YAML documentation for SQL models, including column descriptions, data types, and tests. Operates on a single model or folder, inferring from SQL code and upstream sources.
/docsGenerates or updates YAML documentation for SQL models, including column descriptions, data types, and tests. Operates on a single model or folder, inferring from SQL code and upstream sources.
/docsGenerates structured documentation for a specified code scope, producing API references, code annotations, user guides, and developer handbooks.
/docsFetches Rust API documentation from docs.rs for a given crate and optional item, returning a formatted overview of key types, functions, and traits.