context7

Fetch up-to-date library documentation via the Context7 REST API.

16|2|Updated Jan 8, 2026
One-click install
npx skills add https://github.com/arvindand/agent-skills --skill context7-arvindand
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context7
Source: https://github.com/arvindand/agent-skills/tree/main/skills/context7
Command: npx skills add https://github.com/arvindand/agent-skills --skill context7-arvindand

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Contextual need: Developers frequently struggle to locate accurate, official library documentation. This skill fetches current, official docs via the Context7 REST API to answer questions about APIs, patterns, and code examples.

Core Features & Use Cases

  • Retrieve up-to-date documentation for popular libraries and frameworks (e.g., React, Next.js, Prisma) and their specific versions.
  • Provide API references, usage patterns, and code examples on demand.
  • Use cases include answering "how do I use X library?", "what's the API for Y?", or exploring official docs without leaving the chat.

Quick Start

Ask the agent to fetch the latest documentation for a library by providing its library ID and an optional topic.

Frequently Asked Questions about context7

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

FAQPage Schema
How do I fetch up-to-date documentation for a library like React or Next.js?

You can fetch up-to-date library documentation by providing a library ID in the format /org/project[/version] and an optional topic filter to retrieve current API references and code examples.

How do I get code examples versus general guides for an npm package?

To get code examples versus general guides for an npm package, use the mode choice of code for API and code examples, or the info mode for general usage guides and patterns.

Can I retrieve documentation for a specific version of a PyPI package?

Yes, you can retrieve documentation for a specific version of a PyPI package by specifying the version in the library ID format /org/project/version to ensure you get the correct API references.

What is the best way to find the API for a library without leaving my chat environment?

The best way to find the API for a library without leaving your chat environment is to use this skill to fetch current official docs via the Context7 REST API on demand.

Does this documentation fetching method work with frameworks like Vue, Angular, and Svelte?

Yes, this documentation fetching method works with frameworks like Vue, Angular, and Svelte, as well as any npm or PyPI package, to address prompts about their APIs and patterns.

Why do I need to provide a library ID to get documentation for a framework?

You need to provide a library ID in the format /org/project[/version] to accurately identify and fetch the correct current official documentation for that specific framework via the REST API.