context7

Retrieve current library documentation from the Context7 API via curl.

Updated Nov 11, 2025
One-click install
npx skills add https://github.com/codexyzdev/codexyz --skill context7-codexyzdev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context7
Source: https://github.com/codexyzdev/codexyz/tree/main/.trae/skills/context7
Command: npx skills add https://github.com/codexyzdev/codexyz --skill context7-codexyzdev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Context7 provides up-to-date library documentation on demand, ensuring developers aren't pulled into outdated training data.

Core Features & Use Cases

  • Live Documentation: Retrieve current docs for popular libraries and frameworks.
  • API Verification: Access examples and usage notes to validate correct API usage.
  • Use Case: When integrating a new library (e.g., React, Next.js, FastAPI), fetch the latest guides to implement features accurately.

Quick Start

Use Context7 to search for a library like "react" and fetch its latest API references.

Frequently Asked Questions about context7

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

FAQPage Schema
How do I fetch current API documentation for libraries like React or FastAPI?

To fetch current API documentation for libraries like React or FastAPI, you can retrieve up-to-date references directly from the Context7 API. This replaces outdated training data by applying curl-based requests to search for libraries and parse responses into JSON or text outputs.

What is the best way to verify correct API usage when integrating a new library?

The best way to verify correct API usage when integrating a new library is to fetch live documentation on demand. By querying Context7 endpoints, you access current examples and usage notes that validate correct implementation and replace outdated training data.

Can I use curl to search for library documentation and get JSON output?

Yes, you can use curl to search for library documentation and get JSON output. The system requires curl-based requests to query Context7 endpoints, offering optional JSON or text output while parsing responses to find current guides and API references.

Does Context7 work with Next.js and Axios documentation retrieval?

Yes, Context7 works with Next.js and Axios documentation retrieval. It retrieves up-to-date documentation for software libraries and frameworks like Next.js and Axios, applying curl-based requests to obtain current information and verify correct API usage.

Why does my code use outdated library APIs instead of current references?

Your code uses outdated library APIs because models often rely on outdated training data. You can resolve this by fetching live documentation on demand via curl requests to the Context7 API, ensuring you obtain current information and verify correct usage.