mirror of
https://github.com/anthropics/claude-plugins-official.git
synced 2026-03-17 10:33:08 +00:00
909 B
909 B
description, argument-hint
| description | argument-hint |
|---|---|
| Fetch up-to-date documentation and code examples for any library | <library> [topic] |
Context7 Documentation Lookup
Fetch current, version-specific documentation straight from source repositories.
Arguments
$ARGUMENTS = <library> [topic]
Examples:
react hooks→ library="react", topic="hooks"next.js routing→ library="next.js", topic="routing"prisma→ library="prisma", topic=none
Steps
- Parse arguments: first word = library, remaining = topic
- Call
resolve-library-idwith the library name - Call
get-library-docswith:context7CompatibleLibraryID: the resolved IDtopic: the topic (if provided)
- Present documentation with code examples
Tips
- If you know the exact library ID, use it directly:
/context7:docs /vercel/next.js routing - Use
pageparameter (1-10) if initial results aren't sufficient