context7

Retrieve current library documentation from the Context7 API in TXT or MD formats.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/manuelvanrijn/.dotfiles --skill context7-manuelvanrijn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context7
Source: https://github.com/manuelvanrijn/.dotfiles/tree/main/agents/skills/context7
Command: npx skills add https://github.com/manuelvanrijn/.dotfiles --skill context7-manuelvanrijn

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Context-aware retrieval of current library documentation via the Context7 API to keep your knowledge base accurate.

Core Features & Use Cases

  • Library discovery: search for a library by name to obtain its library ID for precise context retrieval.
  • Contextual documentation fetch: fetch documentation context in TXT or MD formats for any library, enabling quick answers during development or debugging.
  • Guarded usage: requires a Context7 API key and supports local environment configuration for repeatable workflows.

Quick Start

Set CONTEXT7_API_KEY in your environment and run the provided context7.py script to search for a library and then fetch its documentation context.

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 Next.js during development?

You can fetch up-to-date library documentation by using a script that queries the Context7 API. It retrieves current API details and docs on demand for frameworks like React, Next.js, or Supabase to assist with debugging and onboarding.

How can I search for a library's exact ID to retrieve its current API details?

You can search for a library by name to obtain its precise library ID. This ID is then used for accurate context retrieval, ensuring the documentation fetched during development or debugging is highly targeted.

Do I need an API key to retrieve current library docs on demand?

Yes, you need a Context7 API key to retrieve current library docs. You must configure this key in your local environment before running the search and context retrieval scripts for your workflows.

Can I retrieve library documentation context in TXT or MD formats?

Yes, you can retrieve library documentation context in either TXT or MD formats. The output format is configurable, and you can also apply optional token limits to manage the size of the retrieved context.

What is the best way to keep my knowledge base accurate with external library documentation?

The best way to keep your knowledge base accurate is context-aware retrieval of current library documentation. Querying the Context7 API on demand ensures you have the latest API details during active development.