find-library-docslisted
Install: claude install-skill itsjavi/skills
# Library Documentation Lookup
Retrieve current documentation and code examples using the Context7 CLI. Verify API details against documentation for
the relevant version. Use the library's official documentation or source repository when Context7 is unavailable or
incomplete, following the error handling guidance below.
Prefer running without global installation:
```bash
npx ctx7@latest <command>
```
Do not install or upgrade the CLI globally unless the user explicitly asks.
## 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.
Run Context7 CLI requests outside Codex's default sandbox. If a Context7 CLI command fails with DNS or network errors
such as ENOTFOUND, host resolution failures, or fetch failed, rerun it outside the sandbox instead of retrying inside
the sandbox.
## 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 lib