
context7
by netresearch
Context7 documentation lookup skill for AI coding agents. Lightweight REST API wrapper with no MCP context overhead.
SKILL.md
name: context7 description: "Fetch up-to-date library documentation via Context7 REST API. Use when needing current API docs, framework patterns, or code examples for any library. Lightweight alternative to Context7 MCP with no persistent context overhead. By Netresearch."
Context7 Documentation Lookup Skill
Fetch current library documentation, API references, and code examples without MCP context overhead.
When to Use This Skill
When the user asks about library APIs or framework patterns, use this skill to fetch current documentation.
When encountering import statements (import, require, from), use this skill to provide accurate API information.
When the user asks about specific library versions or "How do I use X library?", use this skill to get official patterns.
Core Workflow
To answer questions about library documentation, follow these steps:
- Search for the library ID using
scripts/context7.sh search - Fetch documentation using
scripts/context7.sh docs - Apply returned documentation to provide accurate, version-specific answers
Running Scripts
Searching for Libraries
To find a library ID for documentation lookup:
scripts/context7.sh search "library-name"
This returns library IDs in the format /vendor/library (e.g., /facebook/react).
Fetching Documentation
To fetch documentation for a specific library:
scripts/context7.sh docs "<library-id>" "[topic]" "[mode]"
Parameters:
library-id(required): From search result (e.g.,/facebook/react)topic(optional): Focus area (e.g.,hooks,routing,authentication)mode(optional):codefor API references (default) orinfofor conceptual guides
Examples
To get React hooks documentation:
scripts/context7.sh search "react"
scripts/context7.sh docs "/facebook/react" "hooks" "code"
To get Next.js routing guide:
scripts/context7.sh search "nextjs"
scripts/context7.sh docs "/vercel/next.js" "routing" "info"
Documentation Modes
When fetching API references, examples, or code patterns, use code mode (default).
When fetching conceptual guides, tutorials, or explanations, use info mode.
Environment Configuration
To use authenticated requests (optional), set the CONTEXT7_API_KEY environment variable:
export CONTEXT7_API_KEY="your-api-key"
Contributing: https://github.com/netresearch/context7-skill
スコア
総合スコア
リポジトリの品質指標に基づく評価
SKILL.mdファイルが含まれている
ライセンスが設定されている
100文字以上の説明がある
GitHub Stars 100以上
3ヶ月以内に更新がある
10回以上フォークされている
オープンIssueが50未満
プログラミング言語が設定されている
1つ以上のタグが設定されている
レビュー
レビュー機能は近日公開予定です