context7

Retrieve version-specific API documentation for libraries via the Context7 API.

Updated Mar 10, 2026
One-click install
npx skills add https://github.com/adoval4/context7 --skill context7-adoval4
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context7
Source: https://github.com/adoval4/context7/tree/main
Command: npx skills add https://github.com/adoval4/context7 --skill context7-adoval4

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides instant access to up-to-date, version-specific API documentation for libraries and frameworks, preventing the use of outdated or hallucinated information.

Core Features & Use Cases

  • Real-time Documentation Retrieval: Fetches current API details directly from the Context7 API.
  • Version Specificity: Ensures accuracy by retrieving documentation for the exact library version needed.
  • Search and Fetch: Allows searching for libraries and then fetching specific documentation snippets.
  • Use Case: When implementing a new feature using React, use this Skill to quickly find the correct syntax and usage for the useEffect hook in React v18.

Quick Start

Use the context7 skill to get documentation for the 'useState' hook in the 'react' library.

Frequently Asked Questions about context7

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

FAQPage Schema
How do I get current API documentation for a specific library version?

To get current API documentation for a specific library version, use this Skill to search for the library by name and retrieve exact, up-to-date documentation snippets directly from the Context7 API, preventing the use of outdated information.

Why does my AI agent hallucinate outdated framework documentation?

AI agents hallucinate outdated framework documentation when relying on static training data. This Skill solves the problem by fetching real-time, version-specific API documentation via the Context7 API, ensuring your coding agent uses accurate and current syntax.

How do I search for a library and fetch its API usage snippets?

You can search for a library and fetch its API usage snippets by querying the Context7 API through this Skill, which allows agents to find the target framework by name and return relevant, version-specific documentation sections.

Do I need an API key to retrieve library documentation through Context7?

You do not need an API key to retrieve library documentation, as the Skill supports unauthenticated requests. However, authenticating your requests provides higher rate limits when fetching documentation from the Context7 API.

Can I use this to find the correct syntax for React hooks in a specific version?

Yes, you can use this to find the correct syntax for React hooks in a specific version. It retrieves real-time, version-specific API documentation, allowing you to accurately verify usage for features like the useEffect hook in React v18.