Fetch up-to-date library documentation via Context7 REST API. Use when needing current API docs, framework patterns, or code examples for any library. Lightweight alternative to Context7 MCP with no persistent context overhead. By Netresearch.
/plugin marketplace add netresearch/claude-code-marketplace/plugin install netresearch-skills-bundle@netresearch-claude-code-marketplaceThis skill inherits all available tools. When active, it can use any tool Claude has access to.
LICENSEREADME.mdscripts/context7.shFetch current library documentation, API references, and code examples without MCP context overhead.
Activate when:
import, require, fromAlways search first to get the correct library ID:
scripts/context7.sh search "library-name"
Example output shows library IDs you can use:
ID: /facebook/react
Name: React
Snippets: 2135 | Score: 79.4
scripts/context7.sh docs "<library-id>" "[topic]" "[mode]"
Parameters:
library-id: From search results (e.g., /facebook/react)topic: Optional focus area (e.g., hooks, routing)mode: code (default) for API/examples, info for guidesExamples:
# Get React hooks documentation
scripts/context7.sh docs "/facebook/react" "hooks"
# Get Next.js routing docs
scripts/context7.sh docs "/vercel/next.js" "routing"
# Get conceptual guide (info mode)
scripts/context7.sh docs "/vercel/next.js" "app router" info
Use the returned documentation to:
| Command | Purpose | Example |
|---|---|---|
search | Find library ID | scripts/context7.sh search "prisma" |
docs | Fetch documentation | scripts/context7.sh docs "/prisma/prisma" "queries" |
| Mode | Use For |
|---|---|
code | API references, code examples, function signatures (default) |
info | Conceptual guides, tutorials, architecture docs |
# User asks: "How do I use React hooks?"
# Step 1: Search for React
scripts/context7.sh search "react"
# Output shows: ID: /facebook/react
# Step 2: Fetch hooks docs
scripts/context7.sh docs "/facebook/react" "hooks"
# Step 3: Use the returned documentation to answer
If the script fails:
jq and curl are installed/org/project)info mode if code returns nothingContributing: Improvements to this skill should be submitted to the source repository: https://github.com/netresearch/context7-skill