context7

Retrieve current library documentation via the Context7 API.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill retrieves up-to-date documentation for software libraries and components by querying the Context7 API, helping developers access current references and usage patterns beyond training data.

Core Features & Use Cases

  • Live API references: Retrieve current library documentation and API references.
  • Usage examples: Obtain current code examples and common patterns for libraries like React, Next.js, or FastAPI.
  • Verification: Confirm correct usage of library functions and verify API behavior against latest docs.

Quick Start

Ask Context7 to fetch the latest documentation for a library and topic, for example "React hooks" or "FastAPI dependency injection".

Frequently Asked Questions about context7

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

FAQPage Schema
How do I retrieve up-to-date documentation for a software library?

To retrieve up-to-date documentation, query the Context7 API by searching with a library name and topic, then use the context endpoint with the library ID to fetch current API references and usage examples.

Can I get current usage examples for React and Next.js?

Yes, you can get current usage examples for React and Next.js by querying the Context7 API context endpoint with the library ID and your specific topic to retrieve readable text.

How do I verify correct library usage for FastAPI?

You verify correct FastAPI library usage by querying the Context7 API to fetch current documentation, confirming correct function usage and verifying API behavior against the latest references.

What's the best way to find API references for Axios?

The best way to find API references for Axios is calling the Context7 API search endpoint with the library name, then retrieving current documentation via the context endpoint.

Does the Context7 API return readable text for documentation?

Yes, the Context7 API returns readable text when you use the optional type parameter in the context endpoint, providing current library documentation and usage patterns.

Why use Context7 to obtain current library documentation?

Use Context7 to obtain current library documentation because it retrieves up-to-date API references and usage patterns beyond training data, helping developers verify correct library usage across frameworks.