context7

Fetch current library documentation from the Context7 API via CLI.

1|Updated Nov 12, 2025
One-click install
npx skills add https://github.com/grahama1970/fetcher --skill context7-grahama1970
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context7
Source: https://github.com/grahama1970/fetcher/tree/main/.agents/skills/context7
Command: npx skills add https://github.com/grahama1970/fetcher --skill context7-grahama1970

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Context7 Documentation Lookup provides fast access to current library documentation via the Context7 API, helping developers avoid outdated references and accelerate learning.

Core Features & Use Cases

  • Real-time library documentation retrieval for any code library.
  • Context-aware snippets that highlight relevant API usage for quick integration.
  • Use Case: When onboarding a new library, fetch up-to-date docs to verify APIs and usage examples.

Quick Start

Use the Context7 CLI to search for a library and then retrieve its documentation context for your query.

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 for API integration?

You retrieve up-to-date library documentation by using the Context7 CLI to search for a library and fetch its current API reference context. The CLI requires a valid CONTEXT7_API_KEY environment variable to execute the lookup and return workflow-ready text.

What is the best way to find current API references when learning a new code library?

The best way to find current API references when learning a new code library is using a live documentation lookup tool. It provides context-aware snippets that highlight relevant API usage, helping you verify endpoints and usage examples quickly during onboarding.

Do I need an API key to retrieve library docs via the Context7 CLI?

Yes, you need an API key to retrieve library docs via the Context7 CLI. The skill explicitly requires the CONTEXT7_API_KEY environment variable to be configured before it can execute search operations and fetch live documentation context.

Can I get context-aware documentation snippets for debugging an existing library integration?

Yes, you can get context-aware documentation snippets for debugging an existing library integration. The tool fetches relevant API usage context on demand, providing immediate text references suitable for diagnosing integration issues and verifying expected behaviors.

Why does my library documentation lookup return outdated API references?

Your library documentation lookup returns outdated API references if the source is not synchronized with the latest package releases. Using a live lookup mechanism fetches current documentation context directly, avoiding stale references during integration and debugging.