
upstash/context7
5 skills13.7k installs301k starsGitHub
Install
npx skills add https://github.com/upstash/context7Skills in this repo
1Find DocsThe find-docs skill >-. Documentation Lookup Retrieve current documentation and code examples for any library using the Context7 CLI. Make sure the CLI is up to date before running commands: Or run directly without installing: Workflow Two-step process: resolve the library name to an ID, then query docs with that ID. You MUST call `ctx7 library` first to obtain a valid library ID UNLESS the user explicitly provides a library ID in the format `/org/project` or `/org/project/version`. IMPORTANT: Do not run these commands more than 3 times per question. If you cannot find what Agents should read SKILL.md quick start steps, verify required binaries and environment variables, and follow reference files for exact parameters before calling tools. The workflow includes decision gates, anti-patterns, and cross-links to sibling skills so agents stay aligned with upstream documentation rather than improvising.5.2kinstalls2Context7 CliThe Context7 CLI (ctx7) provides three core workflows: fetch up-to-date library documentation via `ctx7 docs`, manage AI coding skills (install, search, generate, list, remove) through `ctx7 skills`, and configure Context7 MCP for AI coding agents with `ctx7 setup`. Developers use it when training data is outdated, when verifying API signatures, or when building agent workflows that require current reference material. The CLI resolves library identifiers, searches a centralized skill registry, and auto-suggests skills based on project dependencies. Authentication via OAuth or API key unlocks higher rate limits and skill generation. Works with npm/npx without local installation. Fetch current docs for any library without outdated training data Install, search, suggest, list, and generate AI coding skills from registry Configure Context7 MCP for Claude Code, Cursor, or OpenCode OAuth and API key4.7kinstalls3Context7 Mcpcontext7-mcp is an Upstash Context7 skill that routes coding questions to live library documentation instead of stale training data. It activates when users ask setup or configuration questions, request code involving frameworks, need API references, or mention stacks such as React, Vue, Next.js, Prisma, or Supabase. The workflow resolves a libraryName with the user's full question via resolve-library-id, selects the best match using name accuracy and benchmark scores while honoring version hints like React 19, then calls query-docs with the chosen libraryId and the specific question. Guidelines stress passing the full user query for relevance, preferring official packages over community forks, and citing versions when available. This MCP-oriented variant complements CLI-based Context7 skills by embedding the same documentation retrieval pattern inside agent tool calls. Developers invoke it whenever generated code must follow current framework APIs, middleware rules, auth methods, or ORM query syntax that changes between releases.3.8kinstalls4Context7 Docscontext7-docs is a Claude Code skill for ai & agent building. It helps solo builders move faster with AI-assisted coding.7installs5Context7context7 is a Claude Code skill in the Documentation category. Up-to-date documentation lookup. Pull version-specific documentation and code examples directly from source repositories into your LLM context.0installs