/install context7-api
Context7 Documentation Fetcher
Retrieve current library documentation via Context7 API.
Workflow
1. Search for the library
python3 ~/.claude/skills/context7/scripts/context7.py search "\x3Clibrary-name>"
Example:
python3 ~/.claude/skills/context7/scripts/context7.py search "next.js"
Returns library metadata including the id field needed for step 2.
2. Fetch documentation context
python3 ~/.claude/skills/context7/scripts/context7.py context "\x3Clibrary-id>" "\x3Cquery>"
Example:
python3 ~/.claude/skills/context7/scripts/context7.py context "/vercel/next.js" "app router middleware"
Options:
--type txt|md- Output format (default: txt)--tokens N- Limit response tokens
Quick Reference
| Task | Command |
|---|---|
| Find React docs | search "react" |
| Get React hooks info | context "/facebook/react" "useEffect cleanup" |
| Find Supabase | search "supabase" |
| Get Supabase auth | context "/supabase/supabase" "authentication row level security" |
When to Use
- Before implementing any library-dependent feature
- When unsure about current API signatures
- For library version-specific behavior
- To verify best practices and patterns
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install context7-api - After installation, invoke the skill by name or use
/context7-api - Provide required inputs per the skill's parameter spec and get structured output
What is Context7 API Documentation Fetcher?
Fetch up-to-date library documentation via Context7 API. Use PROACTIVELY when: (1) Working with ANY external library (React, Next.js, Supabase, etc.) (2) User asks about library APIs, patterns, or best practices (3) Implementing features that rely on third-party packages (4) Debugging library-specific issues (5) Need current documentation beyond training data cutoff Always prefer this over guessing library APIs or using outdated knowledge. It is an AI Agent Skill for Claude Code / OpenClaw, with 2171 downloads so far.
How do I install Context7 API Documentation Fetcher?
Run "/install context7-api" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Context7 API Documentation Fetcher free?
Yes, Context7 API Documentation Fetcher is completely free (open-source). You can download, install and use it at no cost.
Which platforms does Context7 API Documentation Fetcher support?
Context7 API Documentation Fetcher is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Context7 API Documentation Fetcher?
It is built and maintained by am-will (@am-will); the current version is v1.0.0.