Files
claude-plugins-official/external_plugins/context7/commands/docs.md
Fahreddin Özcan c7ba9d4c43 Update Context7 plugin for v2 API
- Update skill/agent/command to use new query-docs tool (replaces get-library-docs)
- Add query parameter usage for intelligent reranking
- Add version pinning support (e.g., /vercel/next.js/v15.1.8)
- Add tools and model metadata to agent
- Simplify docs to focus on workflow, not parameter details
- Add README.md with usage examples
2026-01-16 11:10:53 +03:00

29 lines
777 B
Markdown

---
description: Fetch up-to-date documentation and code examples for any library
argument-hint: <library> [query]
---
# Context7 Documentation Lookup
Fetch current, version-specific documentation from source repositories.
## Arguments
`$ARGUMENTS` = `<library> [query]`
- First word: library name (or direct library ID starting with `/`)
- Remaining: your specific question or topic
Examples:
- `react hooks`
- `next.js authentication`
- `/vercel/next.js/v15.1.8 app router`
## Steps
1. Parse arguments: first word = library, remaining = query
2. If library starts with `/`, use it directly as library ID
3. Otherwise, call `resolve-library-id` with library name and query
4. Call `query-docs` with the library ID and query
5. Present documentation with code examples