
Context7
This hooks Claude up to Context7's documentation API so it can pull current docs, API references, and code examples instead of relying on potentially stale training data. You'd reach for it when writing code against external libraries, debugging framework issues, or answering technical questions where version accuracy matters. It's a two-step process: resolve the library name to an ID, then query the docs with that ID. The quality of results depends heavily on writing specific queries rather than vague one-word searches. Works without auth but has quota limits. One thing to note is the three-query limit per question, which keeps you from going down rabbit holes but might feel restrictive for complex debugging sessions.
- skills.sh installs
- 435
- GitHub stars
- 652
- last updated
- Aug 21, 2026
Install
$ npx -y skills add pedronauck/skills --skill context7 --agent claude-codeInstalls into .claude/skills of the current project.
Files
Documentation Lookup
Retrieve current documentation and code examples for any library using the Context7 CLI.
Run commands with npx ctx7@latest so setup always uses the latest CLI without a global install:
npx ctx7@latest library <name> "<query>"
npx ctx7@latest docs <libraryId> "<query>"
Optionally install globally if you prefer a bare ctx7 command:
npm install -g ctx7@latest
Workflow
Two-step process: resolve the library name to an ID, then query docs with that ID.
# Step 1: Resolve library ID
npx ctx7@latest library <name> "<query>"
# Step 2: Query documentation
npx ctx7@latest docs <libraryId> "<query>"
You MUST call library first to obtain a valid library ID UNLESS the user explicitly provides a library ID in the format /org/project or /org/project/version.
IMPORTANT: Do not run these commands more than 3 times per question. If you cannot find what you need after 3 attempts, use the best result you have.
Step 1: Resolve a Library
Resolves a package/product name to a Context7-compatible library ID and returns matching libraries.
Sponsors
Details
- Repository
- github.com/pedronauck/skills
- Categories
- Backend & APIs, Documentation, Release Management, Debugging, Cloud & Infrastructure, CLI & Terminal
- First seen
- Jun 3, 2026
More from pedronauck/skills
All 70- Electron Builder433
- Refactoring Analysis425
- Zod410
- Git Rebase395
- Next Best Practices394
- Systematic Debugging388
- Shadcn383
- Tanstack380
- Vitest376
- Zustand362
- Vercel React Best Practices360
- Brainstorming356
- A11y Testing355
- Hormozi Ad Factory353
- Humanizer346
- Evolution Api344
- To Prompt343
- Brand Storytelling342
- Drizzle Safe Migrations339
- Vercel Composition Patterns334
- Mermaid Diagrams333
- Verification Before Completion324
- Writing Clearly And Concisely316
- Lesson Learned313