context7-api
1
总安装量
1
周安装量
#53026
全站排名
安装命令
npx skills add https://github.com/chipagosfinest/claude-integration-tools --skill context7-api
Agent 安装分布
replit
1
openclaw
1
opencode
1
codex
1
claude-code
1
Skill 文档
Context7 API Documentation Fetcher
Retrieve up-to-date library documentation beyond Claude’s training cutoff.
Triggers
- Working with external libraries
- User asks about library APIs
- Implementing features with third-party packages
- Debugging library-specific issues
- “What’s the latest API for [library]?”
- “How does [library] handle [feature]?”
When to Use
PROACTIVELY use this skill when:
- Working with ANY external library (React, Next.js, Supabase, etc.)
- Users inquire about library APIs, patterns, or best practices
- Implementing features dependent on third-party packages
- Debugging library-specific issues
- Information needed may exceed training data availability
DO NOT guess about library APIs – fetch current documentation instead.
API Endpoint
# Resolve library ID
curl -s "https://context7.com/api/v1/resolve?name=react" | jq
# Get library documentation
curl -s "https://context7.com/api/v1/context7/react?topic=hooks" | jq
# Search for specific patterns
curl -s "https://context7.com/api/v1/context7/nextjs?topic=server%20components" | jq
Common Libraries
| Library | Context7 ID | Common Topics |
|---|---|---|
| React | react | hooks, state, effects, context |
| Next.js | nextjs | app router, server components, api routes |
| Supabase | supabase | auth, database, realtime, storage |
| Tailwind | tailwindcss | utilities, config, plugins |
| TypeScript | typescript | types, generics, utility types |
| Prisma | prisma | schema, queries, migrations |
| tRPC | trpc | procedures, routers, middleware |
| Zod | zod | schemas, validation, transforms |
Workflow
Step 1: Identify Library Need
When code involves external libraries, check if you have current knowledge.
Step 2: Fetch Documentation
# Get library context
curl -s "https://context7.com/api/v1/context7/[library]?topic=[topic]"
Step 3: Apply to Task
Use fetched documentation to provide accurate, current guidance.
Example Usage
User asks: “How do I use the new Next.js App Router?”
Response process:
- Detect: Next.js App Router may have updated since training
- Fetch: Context7 for nextjs/app-router documentation
- Apply: Provide current, accurate implementation guidance
Integration with ClawdBot
Combine with:
deep-researchfor comprehensive library comparisonscode-reviewerto verify library usage patternsdebuggerto troubleshoot library issues
Fallback Behavior
If Context7 is unavailable:
- Note limitation to user
- Provide best-effort guidance from training
- Recommend checking official docs
- Suggest WebSearch for recent changes
Benefits
- Current: Documentation from recent releases
- Accurate: Direct from official sources
- Contextual: Focused on specific topics
- Efficient: No hallucinating deprecated APIs