
Find Docs
Retrieves current library docs and code examples via the Context7 CLI, verifying answers against recent API changes.
- skills.sh installs
- 10.5K
- GitHub stars
- 65.3K
- last updated
- Aug 21, 2026
What it does
- Covers two-step lookup:
libraryresolves a name to a library ID, thendocsqueries that ID for snippets - Supports version-specific queries with
--tagand language-ranked examples with--language - Enforces a limit of 3 lookup commands per question and requires a valid
/org/projectID before docs queries - Designed for API syntax, configuration, version migration, setup, and CLI usage questions that training data may miss
Install
$ npx -y skills add upstash/context7 --skill find-docs -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
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.
Details
- Repository
- github.com/upstash/context7
- Categories
- Technical Documentation, AI Agents & LLM Apps
- First seen
- Apr 16, 2026
More from upstash/context7
All 3Similar to Find Docs
More Technical Documentation
Context7MCP serverupstash65.3K starsCurrent, version-specific library docs and code examples fetched into an AI coding agent's context.
ask-docsSkillcrewaiinc/skills8.9K installsQuery the official CrewAI docs for framework and AMP platform questions, matched to the user's installed version.
context7-auto-researchSkillsickn33/agentic-awesome-skills572 installsFetches up-to-date library documentation through the Context7 API for version-accurate answers about frameworks.
microsoft-docsSkillgithub/awesome-copilot15K installsDocumentation lookup skill that routes Microsoft queries to Learn MCP, Aspire MCP, or Context7 by source.