context7

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

4|5|Updated Jan 19, 2026
One-click install
npx skills add https://github.com/QuestNova502/claude-skills-sync --skill context7-questnova502
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context7
Source: https://github.com/QuestNova502/claude-skills-sync/tree/main/skills/context7/skills/context7
Command: npx skills add https://github.com/QuestNova502/claude-skills-sync --skill context7-questnova502

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires jq, curl, and includes scripts (resource) components.

What problem does it solve?

Provides up-to-date library documentation on demand via Context7 REST API, reducing time spent searching through official docs and avoiding outdated references.

Core Features & Use Cases

  • Lookup current library docs and API references for any library using a REST-backed lookup.
  • Support for code-oriented references and conceptual guides via mode switching.
  • Use Case: When asked about a library's API or patterns, fetch the latest docs and examples for accurate guidance.

Quick Start

Run scripts/context7.sh search "library-name" to locate the library ID, then run scripts/context7.sh docs "/vendor/library" to fetch the documentation.

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 library documentation using a REST API?

To fetch up-to-date library documentation using a REST API, run the context7.sh search command with the library name to locate its ID, then execute the docs command with the resulting vendor path to retrieve current API references and code examples.

Can I find version-specific code examples and API patterns for external libraries?

Yes, you can find version-specific code examples and API patterns by applying the tool to library import statements and version-specific questions. It fetches current documentation via the Context7 REST API to provide accurate usage patterns.

Do I need curl and jq installed to look up library docs with this tool?

Yes, you need curl and jq installed as dependencies to look up library docs. The Skill relies on the context7.sh wrapper script which uses these tools to execute REST API requests and parse the returned library documentation data.

What's the best way to switch between conceptual guides and code-oriented references for a library?

The best way to switch between conceptual guides and code-oriented references is by using the optional mode parameter in the context7.sh docs command. This allows you to tailor the fetched library documentation to either conceptual explanations or code examples.

Why should I use a REST-backed documentation lookup instead of reading official docs directly?

Using a REST-backed documentation lookup reduces the time spent searching through official docs and avoids outdated references. It provides on-demand access to current library documentation, ensuring the API patterns and code examples you use are accurate.

How do I search for a specific topic within a library's documentation?

To search for a specific topic within library documentation, use the optional topic parameter with the context7.sh docs command. This filters the fetched REST API response to return relevant patterns and examples for your specific query.