New: Earn 20% as an AgentAlley affiliate. Share your link and earn on every sale you refer. Join now New: Earn 20% as an affiliate. Join now

Fetch up-to-date documentation and code examples for any

Context7 Documentation Lookup

by upstash · MIT license · ★ 62,297 on GitHub · updated Sep 21

Context7 Documentation Lookup cover

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 library — even well-known ones like React, Next.js, Prisma, Express, Tailwind,…

---
name: context7-docs
description: >-
  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
  library — even well-known ones like React, Next.js, Prisma, Express, Tailwind,
  Django, or Spring Boot — because training data may not reflect recent API
  changes or version updates.

  Always use for: API syntax questions, configuration options, version migration
  issues, "how do I" questions mentioning a library name, debugging that involves
  library-specific behavior, setup instructions, and CLI tool usage.

  Use even when you think you know the answer. Do not rely on training data for
  API details, signatures, or configuration options — they are frequently out of
  date. Prefer this over web search for library documentation.
license: MIT
---

Overview

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

Manual install (npx, ZIP)
Claude Codenpx skills add upstash/context7 --skill context7-docs -g -a claude-code
Claude Code (degit)npx degit upstash/context7/packages/pi/skills/context7-docs#master ~/.claude/skills/context7-docs
Claude.ai / desktopZip the folder and upload it under Settings → Capabilities → Skills.
Codex, Cursor, other agentsPoint them at SKILL.md. The other files are plain text.

Connects with Agent Alley MCP · agentalley.io/mcp

Files included

  • SKILL.md2.7 KB
Read SKILL.md here
upstash/master1 file shown
SKILL.md
Show the full text46 lines
context7-docs/SKILL.md46 lines · 2.7 KB

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.
1---
2name: context7-docs
3description: >-
4 Fetch up-to-date documentation and code examples for any library, framework,
5 SDK, CLI tool, or cloud service. Use whenever the user asks about a specific
6 library — even well-known ones like React, Next.js, Prisma, Express, Tailwind,
7 Django, or Spring Boot — because training data may not reflect recent API
8 changes or version updates.
9 
10 Always use for: API syntax questions, configuration options, version migration
11 issues, "how do I" questions mentioning a library name, debugging that involves
12 library-specific behavior, setup instructions, and CLI tool usage.
13 
14 Use even when you think you know the answer. Do not rely on training data for
15 API details, signatures, or configuration options — they are frequently out of
16 date. Prefer this over web search for library documentation.
17license: MIT
18---
19 
20# Context7 Documentation Lookup
21 
22Retrieve current documentation and code examples from [Context7](https://context7.com) using the `resolve-library-id` and `query-docs` tools that ship with this extension.
23 
24## When to use
25 
26Reach for these tools whenever a question involves a specific library, framework, SDK, CLI tool, or cloud service. Examples:
27 
28- "How do I configure caching in Next.js 16?"
29- "What's the syntax for Prisma's `findMany` with relations?"
30- "Show me a working Tailwind v4 install for a Vite app."
31- "How do I rate-limit with `@upstash/ratelimit`?"
32 
33## Workflow
34 
351. **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.
362. **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.
373. **Answer.** Cite the library ID you used and quote code examples verbatim when relevant.
38 
39If the user supplies a library ID in `/org/project` or `/org/project/version` format directly, skip step 1 and call `query-docs` immediately.
40 
41## Constraints
42 
43- Do not call either tool more than 3 times per question.
44- Do not pass API keys, passwords, credentials, personal data, or proprietary code as the `query` argument — it is sent to the Context7 API.
45- Authentication uses the `CONTEXT7_API_KEY` environment variable. Get a key at https://context7.com/dashboard if requests fail with an auth error.
46 
View all files on GitHub →

Details

Updated
Sep 21, 2026
License
MIT
Stars on the repo
★ 62,297
Checked
Source
upstash/context7 ↗
Creator
upstash · 6 listings
View creator

Similar skills

See all →
SkillGuides stable API and interface designaddyosmani/agent-skills · by addyosmaniGuides stable API and interface design. Use when designing APIs, module boundaries, or any public interface. Use when creating REST or GraphQL endpoints, defining type contracts between modules, or establishing boundaries between frontend and backend.★ 98.7k GitHub starsMCPPulls up-to-date, version-specific library docsContext7upstash/context7 · by upstashPulls up-to-date, version-specific library docs and code examples into the prompt so the AI stops inventing old APIs.★ 62.3k GitHub starsSkillHow to use the Adaptyv Bio Foundry API and Python SDKK-Dense-AI/scientific-agent-skills · by K-Dense-AIHow to use the Adaptyv Bio Foundry API and Python SDK for protein experiment design, submission, and results retrieval. Use this skill whenever the user mentions Adaptyv, Foundry API, protein binding assays, protein screening experiments, BLI/SPR assays, thermostability assays, or wants to submit protein sequences for experimental characterization. Also trigger when code imports `adaptyv`, `adaptyv_sdk`, or `FoundryClient`, or references `foundry-api-public.adaptyvbio.com`.★ 46k GitHub starsSkillMaster C/.NET backend development patterns for buildingwshobson/agents · by wshobsonMaster C#/.NET backend development patterns for building robust APIs, MCP servers, and enterprise applications. Covers async/await, dependency injection, Entity Framework Core, Dapper, configuration, caching, and testing with xUnit. Use when developing .NET backends, reviewing C# code, or designing API architectures.★ 39.9k GitHub starsSkillGuides the usage of Gemini Interactions API on GeminiGemini Interactions API Skillgoogle/skills · by googleGuides the usage of Gemini Interactions API on Gemini Enterprise Agent Platform. Use when the user wants to use the stateful, server-managed Interactions API for multi-turn conversations, background execution, streaming, structured output, and function calling on the Agent Platform.★ 20.9k GitHub starsSkillInstall, authenticate, troubleshootGemini Notebook Automationteng-lin/notebooklm-py · by teng-linInstall, authenticate, troubleshoot, and operate Gemini Notebook through the notebooklm-py CLI or typed async Python API. Use for notebook and source management, grounded chat and research, and artifact generation or download when the user mentions Gemini Notebook, notebooklm-py, the notebooklm CLI, or its Python API. Do not use for the generic Gemini API or unrelated content creation.★ 19.6k GitHub stars

More from upstash

MCPPulls up-to-date, version-specific library docsContext7upstash/context7 · by upstashPulls up-to-date, version-specific library docs and code examples into the prompt so the AI stops inventing old APIs.★ 62.3k GitHub starsSkillAbout libraries, frameworks, API referencesContext7 MCPupstash/context7 · by upstashThis 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.★ 62.3k GitHub starsSkillUse the ctx7 CLI to fetch library documentationupstash/context7 · by upstashUse the ctx7 CLI to fetch library documentation, manage AI coding skills, and configure Context7 MCP. Activate when the user mentions "ctx7" or "context7", needs current docs for any library, wants to install/search/generate skills, or needs to set up Context7 for their AI coding agent.★ 62.3k GitHub starsMCPLightweight agent for fetching library documentationDocs researcherupstash/context7 · by upstashLightweight agent for fetching library documentation without cluttering your main conversation context.★ 62.3k GitHub starsSkillRetrieves up-to-date documentation, API referencesDocumentation Lookupupstash/context7 · by upstashRetrieves up-to-date documentation, API references, and code examples for any developer technology. Use this skill whenever the user asks about a specific library, framework, SDK, CLI tool, or cloud service — even for well-known ones like React, Next.js, Prisma, Express, Tailwind, Django, or Spring Boot. Your training data may not reflect recent API changes or version updates. Always use for: API syntax questions, configuration options, version migration issues, "how do I" questions mentioning a library name, debugging that involves library-specific behavior, setup instructions, and CLI tool usage. Use even when you think you know the answer — do not rely on training data for API details, signatures, or configuration options as they are frequently outdated. Always verify against current docs. Prefer this over web search for library documentation and API details.★ 62.3k GitHub stars