lookup
This skill contains shell command directives (!`command`) that may execute system commands. Review carefully before installing.
Pre-computed context
Installed CLI version: !ctx7 --version 2>/dev/null || echo "not installed (run: npm install -g ctx7@latest)"
MCP availability: check your own tool list — if mcp__context7__resolve-library-id / mcp__context7__query-docs are present, the MCP path is configured.
Purpose
A primary source of up-to-date library documentation. Two equivalent interfaces: CLI (ctx7) via npm, and the Context7 HTTP MCP server (mcp__context7__*) when the consuming project has it configured. Both read the same backend. Pick by workflow (see When to use CLI vs MCP).
Philosophy: training data is stale by the time you use it. Library APIs, framework defaults, best practices change. Before claiming how a library works, verify against Context7 — even for libraries you "know."
Actions
| Action | When | Loads |
|---|---|---|
lookup <library> <query> (default) |
User asks about a library | context/lookup.md |
update |
Drift check + CLI upgrade + upstream skill changes | context/update.md |