context7

Retrieve up-to-date library documentation via the Context7 API.

Updated Jan 22, 2026
One-click install
npx skills add https://github.com/tomlupo/ai-playground --skill context7-tomlupo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context7
Source: https://github.com/tomlupo/ai-playground/tree/main/.claude/skills/context7
Command: npx skills add https://github.com/tomlupo/ai-playground --skill context7-tomlupo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This skill retrieves up-to-date library documentation from the Context7 API, enabling developers to quickly understand APIs, patterns, and best practices without relying on outdated sources.

Core Features & Use Cases

  • Library discovery: Find relevant documentation for libraries by name.
  • Context-aware fetch: Retrieve precise context for API queries, setup steps, and usage examples.
  • On-demand guidance: Ideal when building features that rely on third-party packages or debugging library-specific issues.

Quick Start

Use the context7 script to search for a library and fetch its documentation.

  • Search for a library: python3 ~/.codex/skills/context7/scripts/context7.py search "react"
  • Get documentation context: python3 ~/.codex/skills/context7/scripts/context7.py context "/vercel/next.js" "app router middleware"

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 Python APIs?

Fetch up-to-date library documentation by executing the context7 Python script to query the Context7 API, retrieving current API context, setup steps, and usage examples on demand.

What is the best way to search for third-party library docs on demand?

Searching for library documentation on demand involves using a script to query the Context7 API by library name, returning precise context for API queries and best-practice guidance with current data.

Do I need an API key to retrieve library documentation with Context7?

Yes, retrieving library documentation with Context7 requires a Context7 API key to authenticate search requests and fetch current documentation context for external libraries.

Can I get markdown formatted documentation context for external libraries?

Yes, you can get markdown formatted documentation context for external libraries by configuring the fetch request to optionally return text or markdown formats from the Context7 API.

When do I need to fetch current library documentation instead of using cached sources?

Fetch current library documentation when building features that rely on third-party packages, debugging library-specific issues, or needing best-practice guidance without relying on outdated sources.

How do I retrieve specific API usage examples for a library?

Retrieve specific API usage examples by passing a library path and a targeted query string to the documentation fetch script, which queries the Context7 API and returns precise context for setup steps and usage.