find-docs

Retrieves current library documentation and code examples via the Context7 CLI.

Updated Oct 15, 2019
One-click install
npx skills add https://github.com/kkkaoru/dotfiles --skill find-docs-kkkaoru
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: find-docs
Source: https://github.com/kkkaoru/dotfiles/tree/main/.claude/skills/find-docs
Command: npx skills add https://github.com/kkkaoru/dotfiles --skill find-docs-kkkaoru

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires ctx7.

What problem does it solve? Model knowledge of libraries, frameworks, and APIs becomes outdated quickly, leading to incorrect code and deprecated usage. This Skill fetches authoritative, up-to-date documentation and code examples on demand so technical answers reflect current versions. ## Core Features & Use Cases - Library Resolution: Converts a package or product name into a Context7 library ID, ranked by relevance, snippet count, source reputation, and benchmark score. - Documentation Queries: Retrieves code snippets and prose explanations for a resolved library ID, including version-specific IDs like /org/project/version. - Use Case: When asked how to add authentication middleware to a Next.js app router, resolve the Next.js library ID, then query its docs to return current examples instead of relying on stale training data. ## Quick Start Ask the assistant to look up how to clean up useEffect with async operations in React using current documentation.

Frequently Asked Questions about find-docs

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

FAQPage Schema
How do I look up current documentation for a library with Context7?

Run ctx7 library with the package name and a descriptive query to get a library ID, then run ctx7 docs with that ID and your question. The two-step process ensures queries target the correct library.

How do I get version-specific documentation for a framework?

Use a version-specific library ID in the format /org/project/version, such as /vercel/next.js/v14.3.0-canary.87. Available versions are listed in the ctx7 library output; pick the closest match to the requested version.

Does Context7 require an API key or authentication?

Context7 works without authentication. For higher rate limits, set the CONTEXT7_API_KEY environment variable or run ctx7 login to authenticate via OAuth.

Why does ctx7 docs fail with an invalid library error?

The docs command requires a valid library ID with a leading slash, like /facebook/react, not a plain name like react. Always run ctx7 library first to resolve the correct ID before querying documentation.

What happens when the Context7 monthly quota is exceeded?

The CLI returns a quota error. Inform the user, suggest authenticating with ctx7 login for higher limits, and only fall back to training knowledge with an explicit note that it may be outdated.