context7
Installation
SKILL.md
Context7
Live documentation lookup for libraries, frameworks, and SDKs. Operates Context7 via its public REST API — no MCP server required.
Use this instead of training memory whenever the answer depends on the library's current behavior (current major version, recent API changes, new methods, deprecations). Training data goes stale fast for active libraries.
When to use vs. skip
| Use Context7 | Skip Context7 |
|---|---|
| "How do I do X in Next.js 15 / React 19 / Prisma 6?" | "What's a closure in JavaScript?" (language concept) |
| "What's the right way to set up Auth.js v5 middleware?" | "Fix this TypeError in my code" (debugging user's own code) |
| "Did the Supabase client API change for storage uploads?" | "Convert this loop to a map" (pure refactor, no SDK) |
| Anything where you'd otherwise hedge with "as of my training cutoff…" | Std-lib (fs, os, collections) unless asking about a recent runtime version |
If you catch yourself about to write code from memory for a library that's released in the last 18 months, stop and call this skill first.