context7-api

📁 chipagosfinest/claude-integration-tools 📅 7 days ago
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:

  1. Working with ANY external library (React, Next.js, Supabase, etc.)
  2. Users inquire about library APIs, patterns, or best practices
  3. Implementing features dependent on third-party packages
  4. Debugging library-specific issues
  5. 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:

  1. Detect: Next.js App Router may have updated since training
  2. Fetch: Context7 for nextjs/app-router documentation
  3. Apply: Provide current, accurate implementation guidance

Integration with ClawdBot

Combine with:

  • deep-research for comprehensive library comparisons
  • code-reviewer to verify library usage patterns
  • debugger to troubleshoot library issues

Fallback Behavior

If Context7 is unavailable:

  1. Note limitation to user
  2. Provide best-effort guidance from training
  3. Recommend checking official docs
  4. 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