context7

Fetch current library documentation and API references via the Context7 REST API.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Context7 provides on-demand access to up-to-date library documentation, API references, and code examples via a centralized REST API, reducing time spent hunting for official sources and ensuring guidance matches current versions.

Core Features & Use Cases

  • Live documentation lookup: Retrieve current API references and code examples for any library using the Context7 REST API.
  • Version-aware guidance: Access docs aligned with specific library versions and topics.
  • Use Case: When you need official API patterns or migration notes, search for a library by name and fetch topic-specific docs to apply correct usage in your code.

Quick Start

  • Search for a library by name: curl -s "https://context7.com/api/v1/search?q=library-name" | jq
  • Retrieve documentation for a library and topic: curl -s "https://context7.com/api/v1/docs?library=<library-id>&topic=<topic>&mode=code" | jq
  • Apply docs to your task by citing API signatures and examples from the response.

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 API documentation for a specific library?

Retrieve current API documentation by querying the Context7 REST API search endpoint with curl to find the library, then request specific docs using the library ID. This returns version-aware API references and code examples formatted in JSON.

Can I get version-specific code examples for a REST API library?

Yes, you can retrieve version-specific code examples by calling the Context7 API docs endpoint with the library ID and topic parameters. It supplies version-aware guidance and framework patterns across any library.

What is the best way to look up framework patterns and API references without leaving the terminal?

The best way to look up framework patterns is querying the Context7 REST API via standard HTTP tools like curl and processing JSON with jq. It fetches current library documentation and API references directly on demand.

Do I need any special dependencies to query library documentation via a REST API?

No special dependencies are required to query library documentation. The process relies entirely on standard HTTP tools (curl) and JSON processing (jq) to query the /api/v1/search and /api/v1/docs endpoints.

How do I search for a library by name to find its official API signatures?

Search for a library by name by sending a curl request to the search endpoint with the library name as the query parameter. This yields a JSON response containing the library ID needed to fetch official API signatures and examples.