context7 — community context7, ai-config, community, ide skills, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Perfect for AI Agents needing up-to-date documentation and code examples from libraries like react, nextjs, and fastapi via the Context7 API. Cross-platform AI tool configuration (Claude Code, etc.)

erwinkn erwinkn
[0]
[0]
Updated: 3/5/2026

Agent Capability Analysis

The context7 skill by erwinkn is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance.

Ideal Agent Persona

Perfect for AI Agents needing up-to-date documentation and code examples from libraries like react, nextjs, and fastapi via the Context7 API.

Core Value

Empowers agents to fetch and utilize the latest library documentation and code examples using the Context7 API, supporting cross-platform AI tool configuration with libraries like Claude Code, and enabling efficient searches with specific query contexts.

Capabilities Granted for context7

Fetching library IDs for react and nextjs
Searching for specific code examples in fastapi using query contexts
Automating documentation updates for AI tools using the Context7 API

! Prerequisites & Limits

  • Requires Context7 API access
  • Limited to libraries available on Context7
  • Two-step process needed for library ID search and documentation fetching
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

context7

Install context7, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

Context7 Documentation Fetcher

This skill fetches up-to-date documentation and code examples from libraries using the Context7 API.

Standard Workflow

Context7 requires a two-step process:

Step 1: Search for the Library ID

First, search for the library to get its ID:

GET https://context7.com/api/v2/libs/search?libraryName=<library>&query=<context>

Parameters:

  • libraryName: The library name (e.g., "react", "nextjs", "fastapi")
  • query: Search context to help find the right library

The response contains a results array with library objects. Use the id field from the first result.

Step 2: Get Documentation Context

Use the library ID to fetch relevant documentation:

GET https://context7.com/api/v2/context?libraryId=<id>&query=<question>

Parameters:

  • libraryId: The ID from step 1 (e.g., "/vercel/next.js")
  • query: Natural language question about the documentation

This returns ranked code snippets and documentation matching your query.

Example Usage

When the user asks about a library:

  1. Search for the library: Fetch https://context7.com/api/v2/libs/search?libraryName=nextjs&query=routing Extract the library ID from the response (e.g., "/vercel/next.js")

  2. Fetch documentation: Fetch https://context7.com/api/v2/context?libraryId=/vercel/next.js&query=How to setup dynamic routes

  3. Present the results to the user with the relevant code examples and documentation.

Tips for Best Results

  • Use specific, detailed queries rather than vague terms
  • Include relevant context in the query (e.g., "useState hook with TypeScript" instead of just "state")
  • The API works without an API key but has restricted rate limits

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is context7?

Perfect for AI Agents needing up-to-date documentation and code examples from libraries like react, nextjs, and fastapi via the Context7 API. Cross-platform AI tool configuration (Claude Code, etc.)

How do I install context7?

Run the command: npx killer-skills add erwinkn/ai-config/context7. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for context7?

Key use cases include: Fetching library IDs for react and nextjs, Searching for specific code examples in fastapi using query contexts, Automating documentation updates for AI tools using the Context7 API.

Which IDEs are compatible with context7?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for context7?

Requires Context7 API access. Limited to libraries available on Context7. Two-step process needed for library ID search and documentation fetching.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add erwinkn/ai-config/context7. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use context7 immediately in the current project.

Related Skills

Looking for an alternative to context7 or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI