Skills
Chapter 4 of 5
This skill should be used when the user asks about libraries, frameworks, API references, or needs code examples.
2 minutes · 340 words · 7 sections
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 interactInstall this repository
npx skills add upstash/context7/plugin marketplace add upstash/context7Skills install per repository, not per chapter — the CLI has no documented per-skill form, so we do not print one.
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 verbatim description from this skill’s front matter — the string an agent matches on to decide whether to load it.
skills/context7-mcp/SKILL.mdmaster, last pushed 9 August 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 chapter at its own .md URL.