This skill should be used when the user asks about libraries, frameworks, API references, or needs code examples. Activates for setup questions, code generation involving libraries, or mentions of specific frameworks like React, Vue, Next.js, Prisma, Supabase, etc.
When the user asks about libraries, frameworks, or needs code examples, use Context7 to fetch current documentation instead of relying on training data.
Activate this skill when the user:
Do NOT use for: refactoring, writing scripts from scratch, debugging business logic, code review, or general programming concepts.
Run the following command using Bash to find the library:
npx ctx7@latest library "<library-name>" "<user's full question>"
Use the official library name with proper punctuation (e.g., "Next.js" not "nextjs", "Customer.io" not "customerio", "Three.js" not "threejs"). Pass the user's full question to improve relevance ranking.
From the resolution results, choose the best library ID (format: /org/project) based on:
/org/project/version)If results don't look right, try alternate names or rephrase the query.
Run the following command using Bash with the selected library ID:
npx ctx7@latest docs "<libraryId>" "<user's specific question>"
For version-specific docs, use /org/project/version from the library output (e.g., /vercel/next.js/v14.3.0).
Incorporate the fetched documentation into your response:
npx ctx7@latest login or setting CONTEXT7_API_KEY env var for higher limits. Do not silently fall back to training data.