context7

Fetch up-to-date library documentation from Context7 in txt or md format.

7|4|Updated Jun 7, 2025
One-click install
npx skills add https://github.com/lootlog/monorepo --skill context7-lootlog
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context7
Source: https://github.com/lootlog/monorepo/tree/main/.agents/skills/context7
Command: npx skills add https://github.com/lootlog/monorepo --skill context7-lootlog

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Fetch up-to-date library documentation via Context7 API to help developers quickly access current API references, patterns, and best practices when working with external libraries.

Core Features & Use Cases

  • Search for libraries by name to locate the correct context.
  • Fetch documentation context for a specific query in txt or md format.
  • Uses CONTEXT7_API_KEY from the environment or a local .env file to authenticate requests.

Quick Start

Search for a library with the context7.py tool and then fetch documentation for your query using the library ID.

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 during development?

To fetch up-to-date library documentation during development, use context7 to search for a library by name and retrieve current API references, patterns, and best practices directly on demand via the Context7 API.

What is the best way to get current API references for external libraries like React or Supabase?

The best way to get current API references for external libraries like React or Supabase is using context7, which retrieves on-demand documentation and best practices directly from the Context7 platform in txt or md format.

Do I need an API key to fetch library docs and context?

Yes, you need a CONTEXT7_API_KEY environment variable to authenticate requests and fetch library docs. You can set this environment variable directly or load it from a local .env file.

How does searching for library documentation on demand work?

Searching for library documentation on demand works by executing a search query with the context7.py script to locate the correct library ID, then fetching specific documentation context for your query in txt or md format.

Can I use this to evaluate dependencies and find best practices for frameworks like Next.js?

Yes, you can use context7 to evaluate dependencies and find best practices for frameworks like Next.js by fetching up-to-date documentation context, API references, and patterns on demand during your development workflow.

What format is the fetched documentation output available in?

The fetched documentation output is available in txt or md format, allowing you to retrieve library context, API references, and best practices in either plain text or markdown depending on your needs.