Library documentation via Context7. Use for API references, code examples, framework docs.
From dev-toolsnpx claudepluginhub alexei-led/cc-thingz --plugin dev-toolsThis skill is limited to using the following tools:
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Designs and optimizes AI agent action spaces, tool definitions, observation formats, error recovery, and context for higher task completion rates.
Context7 provides up-to-date, version-specific documentation and code examples directly from source libraries.
mcp__context7__resolve-library-id with libraryNamemcp__context7__query-docs with context7CompatibleLibraryID and topic| Mode | Use For |
|---|---|
code | API references, code examples (default) |
info | Conceptual guides, architecture, tutorials |
# 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"
Be specific with queries:
topic="hooks" → returns everything hook-relatedtopic="useEffect cleanup function" → precise resultsFilter strategies:
topic with function/method names: topic="json.Unmarshal"libraryName="react 18"topic="middleware error handling"When results are too broad:
topic parametermode="code" to focus on examplespage=2, page=3 for additional resultsQuality check:
When Context7 returns no results or doesn't have the library:
Context7 query returns empty?
├── Try broader query (e.g., "hooks" instead of "useCallback")
├── Still empty?
│ ├── Re-resolve library ID with alternative name
│ │ (e.g., "nextjs" → "next.js", "golang" → "go")
│ └── Still empty?
│ ├── Library not indexed → Use fallbacks below
│ └── Very niche library → WebSearch for official docs
Alternative library ID: Try variations
# If "fastapi" fails, try:
resolve-library-id: "starlette" # FastAPI's underlying framework
resolve-library-id: "pydantic" # Often used with FastAPI
WebSearch for official docs:
WebSearch: "<library> official documentation <feature>"
WebFetch: Official docs URL → extract relevant info
Source code exploration (for open-source):
# Clone and explore
git clone --depth=1 <repo>
Grep: "function <name>" --type=<lang>
Perplexity for recent/niche libraries:
<!-- CC-ONLY: begin -->mcp__perplexity-ask__perplexity_ask: "How to use <feature> in <library> 2024"
<!-- CC-ONLY: end -->
| Library | Fallback |
|---|---|
| Internal/proprietary | Source code + README |
| Very new (<6 months) | WebSearch + official docs |
| Niche/specialized | Perplexity or GitHub issues |
| Language stdlib | Use language docs directly |
# Initial attempt fails
resolve-library-id: "htmx"
→ No results
# Fallback 1: WebSearch
WebSearch: "htmx documentation hx-swap"
→ Found: https://htmx.org/docs/
# Fallback 2: Fetch docs
WebFetch: url="https://htmx.org/docs/", prompt="Explain hx-swap attribute"
→ Returns relevant documentation