context7

Retrieve current library documentation and code examples via the Context7 API.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides up-to-date documentation for software libraries and components, preventing reliance on outdated training data and ensuring accurate usage.

Core Features & Use Cases

  • Real-time Documentation Lookup: Query the Context7 API to retrieve current information about libraries, frameworks, and components.
  • Code Example Retrieval: Find relevant code snippets and examples for specific APIs or features.
  • Usage Verification: Ensure correct implementation by referencing the latest documentation.
  • Use Case: When working with a new version of a popular JavaScript framework, use this skill to find the exact syntax for a recently added feature.

Quick Start

Use the context7 skill to find documentation for the 'useState' hook in React.

Frequently Asked Questions about context7

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fetch live documentation for a software library?

You can fetch live documentation for a software library by querying the Context7 API to retrieve current information, preventing reliance on outdated training data. This ensures accurate usage and up-to-date syntax for frameworks and components.

What's the best way to find code examples for specific APIs?

The best way to find code examples for specific APIs is to retrieve relevant snippets using a live documentation lookup tool. Querying the Context7 API allows you to obtain current code examples for programming languages and frameworks.

Can I use curl to retrieve current documentation snippets?

Yes, you can use curl to retrieve current documentation snippets by making direct API calls. The system requires curl to fetch the data and jq for parsing the JSON responses returned by the Context7 service.

Why does my library lookup return outdated framework syntax?

Your library lookup returns outdated framework syntax when relying on static training data instead of live sources. Fetching real-time documentation via the Context7 API ensures you reference the exact syntax of recently added features.

How do I find a library ID before fetching its documentation?

To find a library ID before fetching documentation, you query the Context7 API to search for the library or component by name. Once the ID is identified, you can use it to fetch specific documentation snippets and code examples.