← スキル一覧に戻る

context7
by trancong12102
A curated marketplace of Claude Code plugins with skills, commands, agents, and MCP server configurations.
⭐ 1🍴 0📅 2026年1月23日
SKILL.md
name: context7 description: Retrieve up-to-date documentation and code examples for any library using Context7. Use this skill when looking up library documentation, API references, code examples, or when implementing features with external libraries. Also use when the user mentions a specific library version or needs current docs instead of training knowledge.
Context7 Documentation Lookup
Retrieve current documentation and code examples for any programming library directly from the source.
Prerequisite: Set CONTEXT7_API_KEY environment variable.
API Quick Reference
| Endpoint | Purpose |
|---|---|
/api/v2/libs/search | Find libraries by name |
/api/v2/context | Get documentation for a library |
Usage
Search Libraries
curl "https://context7.com/api/v2/libs/search?libraryName=react&query=hooks" \
-H "Authorization: Bearer $CONTEXT7_API_KEY"
Returns library IDs, descriptions, and metadata for matching libraries.
Get Documentation
# JSON format (default)
curl "https://context7.com/api/v2/context?libraryId=/facebook/react&query=useEffect" \
-H "Authorization: Bearer $CONTEXT7_API_KEY"
# Text format (for LLM prompts)
curl "https://context7.com/api/v2/context?libraryId=/facebook/react&query=useEffect&type=txt" \
-H "Authorization: Bearer $CONTEXT7_API_KEY"
# Specific version
curl "https://context7.com/api/v2/context?libraryId=/vercel/next.js/v15.1.8&query=app%20router" \
-H "Authorization: Bearer $CONTEXT7_API_KEY"
Workflow
Think step-by-step when using Context7:
- Search first - Find the correct library ID using the search endpoint
- Query docs - Use the library ID with the context endpoint to get relevant documentation
- Refine if needed - Use specific queries or version parameters to narrow results
When to Use Each Endpoint
Use /libs/search | Use /context |
|---|---|
| Finding library IDs | Querying documentation |
| Exploring available libraries | Getting code examples |
| Unknown or ambiguous library name | You have a library ID |
Common Library IDs
| Library | ID |
|---|---|
| React | /facebook/react |
| Next.js | /vercel/next.js |
| Prisma | /prisma/prisma |
| Supabase | /supabase/supabase |
| TailwindCSS | /tailwindlabs/tailwindcss |
Rules
- Always search for the library ID first if unsure
- Use
type=txtfor LLM-friendly text output - Include version in library ID for specific releases (e.g.,
/vercel/next.js/v15.1.8) - URL-encode query parameters with spaces
References
スコア
総合スコア
60/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
✓説明文
100文字以上の説明がある
+10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です