find-docs

Retrieves current documentation, API references, and code examples for developer libraries and tools.

64.1k|3.2k|Updated Mar 26, 2025
Ready to run
npx skills add https://github.com/upstash/context7 --skill find-docs-upstash
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: find-docs
Source: https://github.com/upstash/context7/tree/main/skills/find-docs
Command: npx skills add https://github.com/upstash/context7 --skill find-docs-upstash

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires ctx7, and includes scripts (resource) and references (resource) components.

What problem does it solve? Developer training data becomes outdated quickly. API signatures change, configuration options are added or removed, and new versions introduce breaking changes. This Skill solves the problem of relying on stale knowledge by retrieving live documentation and verified code examples directly from authoritative sources. ## Core Features & Use Cases - Library Resolution: Converts a package name (React, Next.js, Prisma, etc.) into a Context7-compatible library ID for accurate documentation lookup. - Documentation Query: Retrieves current API syntax, configuration options, code examples, and migration guides for any resolved library. - Version-Specific Lookup: Supports querying specific library versions to verify behavior across major releases. - Use Case: A developer needs to implement JWT authentication in Express.js but is unsure of the current API. Instead of guessing from memory, they use this Skill to retrieve the latest Express.js documentation with working authentication examples. ## Quick Start Ask the AI to look up documentation for any library by providing the library name and your question, such as 'Find documentation on how to set up authentication with JWT in Express.js' or 'What are the configuration options for Next.js app router'.

Frequently Asked Questions about find-docs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find current API documentation for a library I'm using?▼

Run `npx ctx7@latest library <library-name> "<your-question>"` to resolve the library ID, then `npx ctx7@latest docs <library-id> "<your-question>"` to retrieve current documentation. This two-step process ensures you get verified, up-to-date API details rather than relying on potentially outdated training data.

Can I look up documentation for a specific version of a library?▼

Yes. After resolving the library name, use a version-specific library ID in the format `/org/project/version`. The `library` command output lists available versions. For example: `npx ctx7@latest docs /vercel/next.js/v16.2.9 "app router setup"`.

When should I use this instead of web search for library documentation?▼

Use this Skill for any question about API syntax, configuration options, setup instructions, or version-specific behavior. Web search may return outdated blog posts or community forums, while this Skill queries authoritative, current documentation sources with verified code examples.

What happens if the library I search for doesn't exist?▼

If no matches are found, the command returns no results. Try alternate spellings (e.g., 'next.js' instead of 'nextjs') or refine your query to be more specific about what you're looking for. The query directly affects result ranking, so include relevant details like framework or use case.

How do I filter code examples for a specific programming language?▼

Use the `--language` flag in the `docs` command: `npx ctx7@latest docs /org/project "<query>" --language Python`. This ranks code examples in your target language first, though examples in other languages may also appear.

What should I do if my Context7 quota is exhausted?▼

Authenticate for higher rate limits by running `npx ctx7@latest login` or setting the `CONTEXT7_API_KEY` environment variable. If you cannot authenticate, answer from your training knowledge but clearly note to the user that the information may be outdated.