
Find Docs
Pull current library, SDK, and CLI documentation into the agent session instead of trusting stale training data for APIs and config.
Install
npx skills add https://github.com/upstash/context7 --skill find-docsWhat is this skill?
- Mandatory two-step Context7 CLI flow: resolve library ID, then query docs
- Explicitly covers well-known stacks and “how do I” library questions agents often guess wrong
- Install via global ctx7@latest or run with npx ctx7@latest without a permanent install
- Intended to beat training-data drift on signatures, config, migrations, and CLI usage
- Prefer over generic web search for API syntax and official-style examples
Adoption & trust: 3k installs on skills.sh; 57k GitHub stars; 1/3 security scanners passed (skills.sh audits).
Recommended Skills
Journey fit
Integrations is the canonical shelf because the workflow resolves library IDs and queries live docs for frameworks and services you wire into the product. Most invocations happen while connecting stacks—React, Next, Prisma, cloud SDKs—even though the same lookup helps debug and migrate later.
Common Questions / FAQ
Is Find Docs safe to install?
skills.sh reports 1 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.
SKILL.md
READMESKILL.md - Find Docs
# Documentation Lookup Retrieve current documentation and code examples for any library using the Context7 CLI. Make sure the CLI is up to date before running commands: ```bash npm install -g ctx7@latest ``` Or run directly without installing: ```bash npx ctx7@latest <command> ``` ## Workflow Two-step process: resolve the library name to an ID, then query docs with that ID. ```bash # Step 1: Resolve library ID ctx7 library <name> <query> # Step 2: Query documentation ctx7 docs <libraryId> <query> ``` You MUST call `ctx7 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. ```bash ctx7 library react "How to clean up useEffect with async operations" ctx7 library nextjs "How to set up app router with middleware" ctx7 library prisma "How to define one-to-many relations with cascade delete" ``` Always pass a `query` argument — it is required and directly affects result ranking. Use the user's intent to form the query, which helps disambiguate when multiple libraries share a similar name. Do not include any sensitive or confidential information such as API keys, passwords, credentials, personal data, or proprietary code in your query. ### Result fields Each result includes: - **Library ID** — Context7-compatible identifier (format: `/org/project`) - **Name** — Library or package name - **Description** — Short summary - **Code Snippets** — Number of available code examples - **Source Reputation** — Authority indicator (High, Medium, Low, or Unknown) - **Benchmark Score** — Quality indicator (100 is the highest score) - **Versions** — List of versions if available. Use one of those versions if the user provides a version in their query. The format is `/org/project/version`. ### Selection process 1. Analyze the query to understand what library/package the user is looking for 2. Select the most relevant match based on: - Name similarity to the query (exact matches prioritized) - Description relevance to the query's intent - Documentation coverage (prioritize libraries with higher Code Snippet counts) - Source reputation (consider libraries with High or Medium reputation more authoritative) - Benchmark score (higher is better, 100 is the maximum) 3. If multiple good matches exist, acknowledge this but proceed with the most relevant one 4. If no good matches exist, clearly state this and suggest query refinements 5. For ambiguous queries, request clarification before proceeding with a best-guess match ### Version-specific IDs If the user mentions a specific version, use a version-specific library ID: ```bash # General (latest indexed) ctx7 docs /vercel/next.js "How to set up app router" # Version-specific c