mirror of
https://github.com/anthropics/claude-plugins-official.git
synced 2026-03-17 22:43:09 +00:00
1.1 KiB
1.1 KiB
description, argument-hint
| description | argument-hint |
|---|---|
| Look up documentation for any library | <library> [query] |
/context7:docs
Fetches up-to-date documentation and code examples for a library.
Usage
/context7:docs <library> [query]
- library: The library name, or a Context7 ID starting with
/ - query: What you're looking for (optional but recommended)
Examples
/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
How It Works
- If the library starts with
/, it's used directly as the Context7 ID - Otherwise,
resolve-library-idfinds the best matching library query-docsfetches documentation relevant to your query- Results include code examples and explanations
Version-Specific Lookups
Include 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.