context7

Fetches current library API references and usage examples from source repositories via Context7 CLI.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Fetches up-to-date, version-specific library documentation and code examples from source repos directly into context to prevent API hallucinations and outdated usage.

Core Features & Use Cases

  • Retrieve current API references and usage examples for popular libraries/frameworks (React, Next.js, Supabase, etc.) to ensure correct integration.
  • Resolve API signatures, parameters, and setup steps before writing code or templates.
  • Use in workflows that require accurate, source-of-truth documentation during development and onboarding.

Quick Start

Install the Context7 CLI and run a docs query for your library (e.g., npx ctx7 docs /vercel/next.js "getting started").

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 to prevent API hallucinations?

Fetch current library documentation by querying source repositories to retrieve version-specific API references and code examples, preventing outdated usage and API hallucinations during code integration. Context7 returns snippets directly into your context.

How do I verify API signatures and setup steps before integrating a framework like React or Next.js?

Verify API signatures and setup steps by querying the library's source repository for current documentation. This retrieves version-specific usage patterns, parameters, and code examples to guide your framework integration before writing templates.

What is the best way to get up-to-date code examples for popular libraries like Supabase?

The best way to get up-to-date code examples is fetching them directly from source repositories. This ensures you retrieve current, version-specific API references and usage patterns, avoiding outdated documentation and preventing incorrect integration.

Can I retrieve version-specific documentation for a library without manually browsing online repositories?

Yes, you can retrieve version-specific documentation without manual browsing by running a CLI docs query against the target library. This fetches current API references and code snippets directly into your context for immediate use.

Does fetching documentation directly from source repos work for verifying usage patterns during onboarding?

Yes, fetching documentation from source repos works for onboarding workflows by providing accurate, source-of-truth API signatures and code examples. This ensures new developers access current usage patterns and setup steps for the target library.

Why does my code integration fail because of outdated library API usage?

Code integration fails because of outdated library API usage when relying on stale memory rather than current documentation. Fetching version-specific API references and code examples from source repositories prevents hallucinations and resolves correct signatures.