context7

Searches libraries and fetches API documentation via Context7 API.

1.0k|56|Updated Jan 16, 2026
One-click install
npx skills add https://github.com/am-will/codex-skills --skill context7-am-will
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context7
Source: https://github.com/am-will/codex-skills/tree/main/skills/context7
Command: npx skills add https://github.com/am-will/codex-skills --skill context7-am-will

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This skill enables developers to retrieve up-to-date library documentation directly from the Context7 API, eliminating guesswork when integrating external packages.

Core Features & Use Cases

  • Real-time library context: search for libraries by name and fetch authoritative docs or API details.
  • Contextual guidance: obtain usage patterns, best practices, and version-specific notes for libraries like React, Next.js, Supabase, etc.
  • Use Case: Before implementing a feature that relies on a third-party package, fetch the latest API signatures and recommended practices.

Quick Start

  1. Search for a library: python3 ~/.codex/skills/context7/scripts/context7.py search "<library-name>"
  2. Retrieve documentation context: python3 ~/.codex/skills/context7/scripts/context7.py context "<library-id>" "<query>"

Frequently Asked Questions about context7

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

FAQPage Schema
How do I fetch current library documentation for an external package?

You can fetch current library documentation by querying the Context7 API to search for a library by name and retrieve authoritative, up-to-date docs, API signatures, and best practices directly.

What's the best way to verify API signatures and patterns before integrating a third-party library?

Verifying API signatures and patterns is done by retrieving contextual documentation from the Context7 API, which provides real-time, version-specific notes and recommended practices for libraries like React or Supabase.

Do I need an API key to retrieve up-to-date library docs?

Yes, you need a valid Context7 API key to authenticate requests. The skill uses local scripts to search libraries and fetch contextual documentation through the API.

How do I search for a specific library and retrieve its usage context?

To search for a library, run the local script with the search command and library name, then use the returned library ID with the context command and your query to fetch relevant documentation.

Can I get version-specific notes and best practices for frameworks like Next.js?

Yes, fetching contextual documentation through the Context7 API provides version-specific notes and recommended usage patterns for frameworks like Next.js, eliminating guesswork during integration.