Help us improve
Share bugs, ideas, or general feedback.
From context7
This skill should be used when the user asks to "fetch current library docs", "use Context7", "get up-to-date documentation", "look up the latest API", or when generating code for modern frameworks (Next.js 15, React 19, Tailwind v4, Svelte 5, etc.), when a user requests version-specific library docs, or when troubleshooting potentially outdated API patterns. Skip for vanilla JS/HTML/CSS, stable well-known APIs, or general programming concepts.
npx claudepluginhub grailautomation/claude-plugins --plugin context7How this skill is triggered — by the user, by Claude, or both
Slash command
/context7:context7The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Context7 provides current library documentation to prevent hallucinated APIs. It exposes two tools that must be used in sequence.
Fetches up-to-date library and framework documentation via Context7 MCP for setup questions, API references, and code examples.
Fetches up-to-date library/framework docs via Context7 MCP (resolve-library-id, query-docs) for setup questions, API references, code examples.
Fetches current library documentation via Context7 REST API for npm/PyPI packages. Use when the user needs official APIs, code examples, or migration guidance.
Share bugs, ideas, or general feedback.
Context7 provides current library documentation to prevent hallucinated APIs. It exposes two tools that must be used in sequence.
Step 1: Resolve the library ID
resolve-library-id(libraryName: "next.js")
→ Returns: /vercel/next.js (plus metadata, trust scores, versions)
Step 2: Fetch documentation
query-docs(
context7CompatibleLibraryID: "/vercel/next.js",
topic: "middleware", // optional — focuses results
tokens: 5000 // optional — default 5000, min 1000
)
Skip Step 1 only when the exact library ID is already known from a previous call or user input.
| Format | Example | Use Case |
|---|---|---|
/org/project | /vercel/next.js | Latest docs |
/org/project/vX.Y.Z | /vercel/next.js/v15.1.0 | Version-specific |
Note the v prefix on version numbers.
Activate for:
Skip for:
Focus documentation retrieval with specific topics:
query-docs(
context7CompatibleLibraryID: "/supabase/supabase-js",
topic: "authentication" // Much better than fetching all docs
)
Good topic values: routing, hooks, authentication, middleware, configuration, testing, deployment, database, api, components
See references/error-handling.md for common errors and solutions.
Quick reference:
These benefit most from Context7 (fast-changing APIs):
| Category | Libraries |
|---|---|
| React ecosystem | Next.js, React, TanStack Query, Zustand |
| CSS/Styling | Tailwind CSS, Panda CSS, StyleX |
| Validation | Zod, Valibot, ArkType |
| Database/ORM | Prisma, Drizzle, Supabase |
| Full-stack | Nuxt, SvelteKit, Astro, Remix |