Files
claude-plugins-official/external_plugins/context7/skills/documentation-lookup/SKILL.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

1.2 KiB

name, description
name description
documentation-lookup Use when user needs code generation, setup/configuration steps, or library/API documentation. Automatically fetch up-to-date docs for any library or framework without requiring "use context7" in the prompt.

Context7 Documentation Skill

Fetch up-to-date, version-specific documentation and code examples from source repositories.

When to Trigger

  • User asks "how do I..." for any library
  • User needs code generation with a specific library
  • User asks about setup or configuration
  • User needs API reference or examples
  • User mentions any framework: React, Next.js, Vue, Svelte, Express, Prisma, Tailwind, etc.

Workflow

  1. Call resolve-library-id with the library name and user's question
  2. Select the best match (prioritize exact name, high totalSnippets, high benchmarkScore)
  3. Call query-docs with the library ID and user's question
  4. Present code examples and explanations

Tips

  • Use version-specific IDs for pinned versions: /vercel/next.js/v15.1.8
  • The query parameter improves result relevance - pass the user's full question
  • Limited to 3 query-docs calls per question to prevent context bloat
  • Check versions field from resolve-library-id for available versions