context7

Retrieve current library documentation and examples from the Context7 API.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps developers obtain current documentation for software libraries, frameworks, and components by querying the Context7 API, avoiding outdated or incomplete training data.

Core Features & Use Cases

  • Real-time API documentation fetch: query libraries and topics to retrieve authoritative docs and examples.
  • Cross-library guidance: obtain usage notes and code snippets for popular libraries such as React, Next.js, FastAPI, and Axios.
  • Use Case: Imagine you need up-to-date useState documentation for React and example code; Context7 provides the latest API references in plain text for quick integration.

Quick Start

Retrieve the latest documentation for a library and topic by calling the Context7 API, for example: curl -s 'https://context7.com/api/v2/libs/search?libraryName=LIBRARY_NAME&query=TOPIC' | jq '.results[0]'

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 React or FastAPI?

To fetch up-to-date library documentation, query the Context7 API via curl using the library name and topic. This retrieves current API references and code examples to replace outdated training data.

Can I retrieve API documentation in JSON format instead of plain text?

Yes, you can retrieve API documentation in JSON format. The Context7 API supports optional output formats including txt and json, allowing you to parse library search results programmatically.

What is the best way to get current code examples for libraries when my training data is outdated?

The best way to get current code examples is searching the Context7 API by library name and topic. It provides authoritative, real-time usage notes and snippets to replace outdated training data.

Does this documentation retrieval method work with curl or similar HTTP clients?

Yes, this documentation retrieval method works with curl and similar HTTP clients. You query the Context7 API endpoint directly, applying it across real-world tasks to fetch accurate references.

How do I search for a specific software library topic using the Context7 API?

To search for a specific software library topic, call the Context7 API with the libraryName and query parameters. This retrieves context-specific topics and documentation from the live API.