Terminal
Terminal/Skill
Pulls current library and framework docs through Context7 so answers and code examples match the latest versions instead of training data.
By Upstash
Works with
npx skills add upstash/context7 --skill context7-mcpWhen 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