finding-docslisted
Install: claude install-skill isvlasov/rageatc-oss
# Finding Documentation
Retrieve current documentation and code examples for any library using the Context7 CLI.
```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.
### 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 exa