skills/context7-docs/SKILL.md
Fetch official library docs via Context7 MCP for Tailwind CSS, React, Next.js, Vue, MCP, OpenCode, or any npm library. Always use before external web search.
npx skillsauth add Thomashighbaugh/opencode context7-docsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Fetch up-to-date library documentation via the Context7 MCP server. Use this skill when you need to research any npm library, framework, or tool.
| Action | Command | Description |
|--------|---------|-------------|
| search | ./scripts/docs.sh search <library> | Find library ID for a given name |
| docs | ./scripts/docs.sh docs <library> [topic] [--tokens N] | Get documentation for a library |
| help | ./scripts/docs.sh help | Show usage help |
# Search for a library
./scripts/docs.sh search react
./scripts/docs.sh search "next.js"
# Get documentation (automatically resolves library ID)
./scripts/docs.sh docs react hooks
./scripts/docs.sh docs next.js "app router"
./scripts/docs.sh docs tailwindcss utilities
# Get general documentation without topic filter
./scripts/docs.sh docs vue
Find the Context7-compatible library ID for a given library name.
Parameters:
library (required): Library name to search for (e.g., "react", "next.js")Example:
./scripts/docs.sh search react
# Returns: /npm/react, /websites/react_dev, etc.
Get documentation for a library, optionally filtered by topic.
Parameters:
library (required): Library name (will be resolved to ID automatically)topic (optional): Topic to filter documentation (e.g., "hooks", "routing")Example:
# Get React hooks documentation
./scripts/docs.sh docs react hooks
# Get general Next.js documentation
./scripts/docs.sh docs next.js
# Get specific Vue documentation
./scripts/docs.sh docs vue "composition api"
This skill encodes the Context7 two-step workflow:
This is handled automatically by the docs action.
Context7 supports thousands of libraries including:
brew tap steipete/tap && brew install mcporternpx mcporterNote: Context7 server configuration is optional. The skill automatically falls back to the Context7 public URL (
https://mcp.context7.com/mcp) if no local server is configured.
CONTEXT7_SERVER: MCP server name (default: context7)CONTEXT7_API_BASE: Direct Context7 REST base URL (default: https://context7.com/api/v2)CONTEXT7_REST_FALLBACK: Enable direct REST fallback when MCP calls fail (default: 1)MCPORTER_TIMEOUT: Timeout in seconds for MCPorter calls (default: 20)--tokens N to control response size when context budget is tightmcporter skill insteaddocumentation
Agentic memory system for writers - track characters, relationships, scenes, and themes
documentation
LLM Wiki — persistent markdown knowledge base that compounds across sessions (Karpathy model)
tools
Use ONLY when the user explicitly says: 'use the skill web-to-markdown ...' (or 'use a skill web-to-markdown ...'). Converts webpage URLs to clean Markdown by calling the local web2md CLI (Puppeteer + Readability), suitable for JS-rendered pages.
testing
Structured visual QA verdict for screenshot-to-reference comparisons