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-code

Installs 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
1maxnorm avatarmagento-performance-analystmaxnorm/magento2-agent-skillsConducts comprehensive Magento 2 performance analysis and optimization. Use when analyzing performance bottlenecks, profiling applications, optimizing database 434skills.sh installs
2pedronauck avatarelectron-builderpedronauck/skillsComprehensive guide for electron-builder (v26.x) packaging, code signing, auto-updates, and release workflows. Use when: (1) configuring electron-builder builds433skills.sh installs
3jezweb avatargoogle-workspacejezweb/claude-skillsBuild integrations with Google Workspace APIs (Gmail, Calendar, Drive, Sheets, Docs, Chat, Meet, Forms, Tasks, Admin SDK). Covers OAuth 2.0, service accounts, r428skills.sh installs
4kernel avatarkernel-typescript-sdkkernel/skillsBuild Kernel browser automation in TypeScript with server-side Playwright or CDP, including profiles, proxies, and reliable session cleanup.425skills.sh installs
5aj-geddes avatardata-replication-setupaj-geddes/useful-ai-promptsSet up database replication for high availability and disaster recovery. Use when configuring master-slave replication, multi-master setups, or replication moni424skills.sh installs
6bobmatnyc avatardigitalocean-overviewbobmatnyc/claude-mpm-skillsDigitalOcean platform overview for account setup, projects, tooling (Control Panel, doctl, API, Terraform), and service selection across compute, storage, datab419skills.sh installs