context7

Retrieve current library documentation via the Context7 API using curl.

Updated Apr 19, 2026
One-click install
npx skills add https://github.com/NihaalManaf/LDR-Island --skill context7-nihaalmanaf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context7
Source: https://github.com/NihaalManaf/LDR-Island/tree/main/.cursor/skills/context7
Command: npx skills add https://github.com/NihaalManaf/LDR-Island --skill context7-nihaalmanaf

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Retrieve up-to-date documentation for software libraries, frameworks, and components by querying the Context7 API via curl. This ensures you have accurate references and usage details that stay current beyond training data.

Core Features & Use Cases

  • On-demand documentation retrieval: query libraries for current references, usage examples, and API details.
  • Library and topic targeting: search by libraryName and topic to get an id, title, description, and totalSnippets, then fetch with libraryId and query.
  • Flexible output: fetch results in default json or optional txt for plain-text readability.

Quick Start

Use Context7 to search for a library and fetch documentation for a specific 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 software library?

To fetch up-to-date library documentation, query the Context7 API via curl by searching a library name and topic to retrieve an id, then fetch structured textual or plain-text docs using that library id.

What is the best way to get current API references beyond training data?

Retrieving current API references beyond training data is done by querying the Context7 API, which searches by library name and fetches structured documentation snippets that stay current with the latest library updates.

Can I retrieve plain-text documentation instead of JSON from Context7?

Yes, you can retrieve plain-text documentation by specifying the optional txt type parameter during the fetch step, which returns readable plain-text output instead of the default structured JSON format.

How does Context7 search for library documentation work?

The Context7 search works by querying a library name and topic to return an id, title, description, and totalSnippets, followed by a secondary fetch using the library id and query to retrieve the actual documentation.

Do I need any dependencies to retrieve library docs on demand?

No dependencies are needed to retrieve library docs on demand, as the Skill operates independently using curl to query the Context7 API and output structured textual or plain-text references suitable for development workflows.