context7

Retrieve current documentation snippets for software libraries via Context7 API.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It solves the problem of outdated or hard-to-find documentation for software libraries by retrieving fresh, topic-specific snippets from the Context7 API.

Core Features & Use Cases

  • Up-to-date documentation retrieval: Looks up the correct library and then fetches relevant context for a specific topic.
  • API- and framework-specific examples: Helps you verify correct usage of functions, hooks, routing, and other APIs that may have changed.
  • Use case: When you need the latest guidance for a React hook or Next.js routing behavior, use this Skill to pull the most relevant snippet instead of relying on memory.

Quick Start

Ask for the Context7 documentation for a specific library topic, then use the returned snippet to confirm current API usage and examples.

Frequently Asked Questions about context7

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

FAQPage Schema
How do I get current documentation for a software library when my knowledge is outdated?

To get current library documentation, you can fetch fresh, topic-specific snippets using Context7. It retrieves up-to-date usage notes and code examples for software libraries, resolving ambiguity caused by stale training knowledge.

How do I find the correct API usage for frameworks like React and Next.js?

Finding correct API usage for React and Next.js requires fetching current documentation snippets. You can retrieve topic-specific code examples and verify correct behavior for functions, hooks, and routing that may have changed recently.

Can I retrieve specific code examples for FastAPI and other frameworks?

Yes, you can retrieve specific code examples for FastAPI and other frameworks. The process looks up the correct library by name and fetches relevant context for your specific query, returning API- and framework-specific examples.

What is the best way to verify correct API behavior for a specific library?

The best way to verify correct API behavior is to pull the most relevant documentation snippet from Context7. This approach confirms current API usage and examples instead of relying on potentially outdated memory or training data.

Do I need to provide a library ID to look up framework documentation?

You need to provide a library name and query to look up framework documentation. The process calls Context7 endpoints to find the correct library, then uses the returned library ID parameter to fetch the relevant documentation context.

Can I return retrieved library documentation as JSON?

Yes, you can return retrieved library documentation as JSON. The documentation retrieval process optionally returns results as either JSON or plain text, allowing you to integrate the fetched snippets into your preferred workflow.