context7

Fetches current library and framework documentation with code examples for developers.

6|Updated Feb 25, 2026
One-click install
npx skills add https://github.com/archibate/archibate-skills --skill context7-archibate
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context7
Source: https://github.com/archibate/archibate-skills/tree/main/old-skills/redundant-skills/context7
Command: npx skills add https://github.com/archibate/archibate-skills --skill context7-archibate

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Prevents outdated or hallucinated answers by fetching current, authoritative documentation for libraries, frameworks, and APIs so developers get accurate setup steps, API references, and real code examples.

Core Features & Use Cases

  • Live Documentation Retrieval: Resolve a library identifier and fetch the most relevant documentation entries for the user's query.
  • Version-aware Answers: Prefer version-specific documentation when the user cites a version, ensuring compatibility and correctness.
  • Code Example Integration: Extract and present code snippets from official docs to illustrate usage patterns and reduce manual lookup.
  • Use Case: When a developer asks for a Prisma query example or Next.js middleware configuration, provide the current docs and working sample code with source citation.

Quick Start

Ask context7 to resolve the library and fetch the latest documentation by saying: please fetch the latest Next.js documentation for middleware examples and show a working code snippet.

Frequently Asked Questions about context7

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fetch live documentation and code examples for React or Next.js frameworks?

Fetch live library documentation by resolving the framework identifier and querying current docs. context7 retrieves up-to-date API references and working code examples for frameworks like React and Next.js to ensure version-aware accuracy in developer workflows.

Why does my AI assistant give outdated or hallucinated API references for Prisma and Supabase?

AI assistants hallucinate API references without access to current documentation. context7 prevents outdated answers by fetching authoritative docs and extracting version-specific excerpts and real code samples for libraries like Prisma and Supabase to ensure correctness.

Can I get version-specific documentation and code snippets for a specific library version?

Yes, you can get version-specific documentation. When you cite a specific version in your query, context7 prefers version-specific documentation entries to ensure compatibility and correctness for the requested library setup and code generation tasks.

What is the best way to find official setup guides and code examples for developer libraries?

The best way to find official setup guides is fetching live documentation directly. context7 resolves library identifiers, queries authoritative documentation, and returns version-aware excerpts with source citation to reduce manual lookup during developer workflows.

Does context7 work with Prisma and Supabase for fetching API references and configuration code?

Yes, context7 works with Prisma and Supabase. It applies to developer workflows involving these frameworks and packages, fetching current API references, configuration steps, and practical code examples directly from official documentation to answer setup questions.