context7
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.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/am-will/context7-apiWhat This Skill Does
The Context7 documentation fetcher is an essential developer tool designed to bridge the gap between static LLM training data and the rapidly evolving landscape of modern software libraries. By interfacing directly with the Context7 API, this skill allows the OpenClaw agent to retrieve verified, real-time documentation for third-party packages, frameworks, and tools. Instead of relying on potentially outdated internal knowledge, the agent uses this tool to search for specific library repositories, extract technical context, and provide accurate, version-aware guidance for your codebase.
Installation
To integrate the Context7 skill into your OpenClaw environment, ensure you have the necessary repository access and run the following command in your terminal:
clawhub install openclaw/skills/skills/am-will/context7-api
Once installed, verify that the context7.py script is executable in your path, as the agent relies on this binary to perform search and context-retrieval operations.
Use Cases
This skill is indispensable for any development workflow involving external dependencies. Use it when:
- Implementing features in rapidly changing frameworks like Next.js or React, where API signatures may have evolved since your training data cutoff.
- Debugging library-specific error messages that are not well-documented in static training sets.
- Learning best practices for newer libraries where community patterns have recently shifted.
- Verifying the implementation of complex authentication or database patterns in tools like Supabase.
- Starting a new module or service that requires a deep understanding of an unfamiliar SDK.
Example Prompts
- "Check the current Next.js documentation for the App Router middleware syntax and provide a modern example."
- "I am implementing authentication in Supabase; search for the latest patterns on Row Level Security and guide me through the configuration."
- "The current implementation of my React useEffect hook is causing dependency warnings. Fetch the latest best practices from the React documentation and suggest a refactor."
Tips & Limitations
- Proactive Usage: Do not wait for errors to occur. Use this skill as a baseline step whenever you are introducing a new dependency.
- Precision: When using the
contextcommand, be as specific as possible with your query string to minimize token usage and improve result relevance. - Limitations: The skill is dependent on the connectivity of the Context7 API. If the API is unreachable, the agent will gracefully report a network failure. Additionally, ensure you manage your token limits properly if performing deep research on large libraries to avoid truncation of critical information.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-am-will-context7-api": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, file-read, code-execution
Related Skills
get-you-some-britches
Use this skill any time I start complaining about my love life, or, if I indicate I need to find some pants.
morning-email-rollup
Daily morning rollup of important emails and calendar events at 8am with AI-generated summaries
remotion-best-practices
Best practices for Remotion - Video creation in React
gemini-computer-use
Build and run Gemini 2.5 Computer Use browser-control agents with Playwright. Use when a user wants to automate web browser tasks via the Gemini Computer Use model, needs an agent loop (screenshot → function_call → action → function_response), or asks to integrate safety confirmation for risky UI actions.
openai-docs-skill
Query the OpenAI developer documentation via the OpenAI Docs MCP server using CLI (curl/jq). Use whenever a task involves the OpenAI API (Responses, Chat Completions, Realtime, etc.), OpenAI SDKs, ChatGPT Apps SDK, Codex, MCP integrations, endpoint schemas, parameters, limits, or migrations and you need up-to-date official guidance.