npx skills add ...
npx skills add upstash/context7 --skill context7-mcp
npx skills add upstash/context7 --skill context7-mcp
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.
The same skill content is published under more than one repo. The install counts are split across them; any of these commands works.
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:
Call resolve-library-id with:
libraryName: The library name extracted from the user's questionquery: What to look up in the library's documentation (improves relevance ranking)From the resolution results, choose based on:
Call query-docs with:
libraryId: The selected Context7 library ID (e.g., /vercel/next.js)query: What to look up in the library's documentation, scoped to a single conceptIf the user's question spans multiple distinct concepts (e.g. routing and auth and caching), make a separate query-docs call per concept with the same library ID, unless the question is about how the concepts interact — combined queries dilute ranking and return shallow results for each topic.
Incorporate the fetched documentation into your response:
query-docs calls — resolve the library ID once, then query per concept, unless the question is about how the concepts interact