context7-docs

Fetch up-to-date documentation and code examples for any library, framework, SDK, CLI tool, or cloud service. Use whenever the user asks about a specific…

npx skills add https://github.com/upstash/context7 --skill context7-docs

Context7 Documentation Lookup

Retrieve current documentation and code examples from Context7 using the resolve-library-id and query-docs tools that ship with this extension.

When to use

Reach for these tools whenever a question involves a specific library, framework, SDK, CLI tool, or cloud service. Examples:

  • "How do I configure caching in Next.js 16?"
  • "What's the syntax for Prisma's findMany with relations?"
  • "Show me a working Tailwind v4 install for a Vite app."
  • "How do I rate-limit with @upstash/ratelimit?"

Workflow

  1. Resolve the library ID. Call resolve-library-id with the library name and what to look up in the library's documentation. The tool returns matching libraries with their Context7 IDs (/org/project format), descriptions, snippet counts, and quality scores. Pick the best match — prioritize official sources, name match, and high benchmark scores.
  2. Query the docs. Call query-docs with the chosen library ID and what to look up in the library's documentation, scoped to a single concept — if the question spans multiple distinct concepts, make a separate call per concept with the same library ID, unless the question is about how the concepts interact. The tool returns documentation snippets and code examples.
  3. Answer. Cite the library ID you used and quote code examples verbatim when relevant.

If the user supplies a library ID in /org/project or /org/project/version format directly, skip step 1 and call query-docs immediately.

Constraints

  • Do not call either tool more than 3 times per question.
  • Do not pass API keys, passwords, credentials, personal data, or proprietary code as the query argument — it is sent to the Context7 API.
  • Authentication uses the CONTEXT7_API_KEY environment variable. Get a key at https://context7.com/dashboard if requests fail with an auth error.

More skills from upstash

redis-js
upstash
Work with the Upstash Redis JavaScript/TypeScript SDK for serverless Redis operations. Use for caching, session storage, rate limiting, leaderboards, full-text…
official
context7-mcp
upstash
This skill should be used when the user asks about libraries, frameworks, API references, or needs code examples. Activates for setup questions, code…
official
documentation-lookup
upstash
Fetch current library documentation and code examples instead of relying on training data. Resolves library names to Context7 documentation IDs, then queries for setup, configuration, and API reference information Supports major frameworks and libraries: React, Vue, Svelte, Next.js, Express, Prisma, Supabase, Tailwind, and others Activates automatically for setup questions, code generation requests, and framework-specific inquiries Returns version-aware documentation and official code...
official
find-docs
upstash
Retrieve current documentation and code examples for any library using the Context7 CLI.
official
upstash-workflow-js
upstash
Skills for the Upstash Workflow TypeScript/JavaScript SDK to define, trigger, and manage workflows. Use this Skill whenever a user wants to create workflow…
official
docs
upstash
Retrieves and queries up-to-date documentation and code examples from Context7 for any programming library or framework. Use when writing code that depends on…
official
context7-cli
upstash
Use the ctx7 CLI to fetch library documentation, manage AI coding skills, and configure Context7 MCP. Activate when the user mentions "ctx7" or "context7",…
official
context7-docs-lookup
upstash
Use Context7 to fetch up-to-date library documentation. Activates when the user asks about libraries, frameworks, API references, or needs code examples —…
official