Skills
Skill 2 of 5
Fetches current, version-specific library documentation and code examples through the Context7 MCP server.
2 minutes · 340 words · 7 sections
Install
npx skills add upstash/context7 --skill context7-mcpnpx skills add upstash/context7/plugin marketplace add upstash/context7The first command installs just this skill, by the name in its SKILL.md; the second installs the whole repository.
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 interactFetches current, version-specific library documentation and code examples through the Context7 MCP server. Use whenever the user asks about a library, framework, SDK, API, CLI tool, or cloud service, including API syntax, configuration, setup instructions, version migration, CLI usage, and library-specific debugging. Use when generating code that calls a third-party library, and when the user names a version such as Next.js 15 or React 19. Use even for well-known libraries like React, Vue, Next.js, Prisma, Supabase, Express, Tailwind, Django, and Spring Boot, because training data may not reflect recent changes. Prefer this over web search for library documentation. Do not use it for refactoring, writing scripts from scratch, debugging business logic, code review, or general programming concepts, or when the user has already supplied the relevant documentation.
The verbatim description from this skill’s front matter — the string an agent matches on to decide whether to load it.
master, last pushed 24 September 2026.SKILL.md, not by matching a directory convention. 3 distinct layouts observed: packages/pi/skills/*/SKILL.md, plugins/agent-plugins/context7/skills/*/SKILL.md, skills/*/SKILL.md..claude-plugin/marketplace.json by Upstash, declaring 1 plugin. It is read for editorial metadata only — never as the skill index, which is always the repository tree./upstash/context7.md, and each skill at its own .md URL.