looking-up-docs

majiayu000's avatarfrom majiayu000

Library documentation via Context7. Use for API references, code examples, framework docs.

⭐5stars🔀1forks📁View on GitHub🕐Updated Jan 11, 2026

When & Why to Use This Skill

The Context7 Documentation Lookup skill empowers developers by providing instant, real-time access to version-specific library documentation and verified code examples. By pulling data directly from official source libraries, it eliminates AI hallucinations and outdated information, ensuring that API references, architectural guides, and implementation patterns for frameworks like React, Next.js, and Kubernetes are always accurate and current.

Use Cases

  • API Reference Verification: Quickly retrieve precise method signatures, parameters, and return types for specific library versions to prevent the use of deprecated or incorrect code patterns.
  • Framework Implementation: Access functional, real-world code snippets for complex features such as Next.js middleware, React hooks, or Go net/http servers to accelerate the development cycle.
  • Architectural Research: Consult official conceptual guides and tutorials for large-scale infrastructure tools like Kubernetes to inform system design and deployment strategies.
  • Version-Specific Troubleshooting: Resolve compatibility issues and bugs by cross-referencing local code against the exact documentation version of the dependency being used.
namelooking-up-docs
descriptionLibrary documentation via Context7. Use for API references, code examples, framework docs.
allowed-toolsRead, Grep, Glob, mcp__context7__resolve-library-id, mcp__context7__get-library-docs

Documentation Lookup with Context7

Context7 provides up-to-date, version-specific documentation and code examples directly from source libraries.

Why Context7

  • Current APIs: No hallucinated or outdated patterns
  • Version-specific: Gets docs for exact library versions
  • Code examples: Real, working code from actual documentation

Workflow

  1. Resolve library ID: mcp__context7__resolve-library-id with libraryName
  2. Get documentation: mcp__context7__get-library-docs with context7CompatibleLibraryID and topic

Modes

Mode Use For
code API references, code examples (default)
info Conceptual guides, architecture, tutorials

Examples

# React hooks
resolve-library-id: "react"
get-library-docs: context7CompatibleLibraryID="/facebook/react", topic="hooks", mode="code"

# Next.js middleware
resolve-library-id: "next.js"
get-library-docs: context7CompatibleLibraryID="/vercel/next.js", topic="middleware"

# Go net/http
resolve-library-id: "go net/http"
get-library-docs: context7CompatibleLibraryID="/golang/go", topic="http server"

# Kubernetes API
resolve-library-id: "kubernetes"
get-library-docs: context7CompatibleLibraryID="/kubernetes/kubernetes", topic="deployment"

Tips

  • Use topic parameter to narrow results to specific features
  • Try mode="info" for architectural questions
  • Paginate with page=2, page=3 if initial results insufficient