context7

Fetch library documentation and code examples via the Context7 API.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Quickly access up-to-date library documentation, API references, and code examples from Context7 to accelerate library usage and integration without digging through disparate sources.

Core Features & Use Cases

  • Search libraries by name or technology to identify the correct library ID.
  • Retrieve contextual documentation snippets and references for targeted questions.
  • Use in learning, integration, and debugging tasks to gather authoritative references efficiently.

Quick Start

Ask Context7 to search for a library and fetch its documentation context for your 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 library documentation for API integration?

To fetch up-to-date library documentation for API integration, search for the library by name to retrieve its ID, then pull targeted context snippets and code examples via the Context7 API using a provided API key.

What is the best way to find code examples for a specific programming library?

Finding code examples for a specific programming library is done by querying the Context7 API with the library name to get an ID, then requesting contextual snippets to gather authoritative references efficiently.

Do I need an API key to retrieve library documentation and references?

Yes, retrieving library documentation and references requires an API key provided in the environment to authenticate requests and deliver JSON or text context from the Context7 endpoints.

Can I search for a library by technology name to get its ID?

You can search for a library by technology name to identify the correct library ID, which is then used to pull relevant context and documentation snippets for your targeted questions.

How does Context7 handle documentation retrieval for debugging tasks?

Documentation retrieval for debugging tasks is handled by fetching targeted contextual snippets and API references via the Context7 API, allowing you to gather authoritative references without digging through disparate sources.