Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Search for libraries in Context7. Use when the user mentions a library by name and you need to find its exact Context7 ID before fetching documentation.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-09 | ✗→✓ | ▲ Improved | -32% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 3% | 0% |
| case-14 | ✗→✓ | ▲ Improved | 6% | 0% |
| case-20 | ✗→✓ | ▲ Improved | -18% | 0% |
| case-21 | ✗→✓ | ▲ Improved | -3% | 0% |
Search for libraries in the Context7 documentation database. This helps identify the correct owner/repo format needed for fetching documentation.
Use this skill when:
Skip this skill when you already know the exact library (e.g., vercel/next.js). Use context7-docs directly instead.
Make CONTEXT7_API_KEY available either in the current environment or in a shell startup file such as ~/.bashrc. The bundled scripts can read either form.
bashpython3 ./scripts/resolve_library.py --query "LIBRARY_NAME"
bashpython3 ./scripts/resolve_library.py --query "LIBRARY_NAME" --limit 5
| Parameter | Required | Default | Description | |-----------|----------|---------|-------------| | --query | Yes | - | Library name to search (fuzzy matching) | | --limit | No | 10 | Maximum number of results |
bash# Search for Next.js python3 ./scripts/resolve_library.py --query "next.js" # Search for Prisma python3 ./scripts/resolve_library.py --query "prisma" --limit 5 # Search for MongoDB driver python3 ./scripts/resolve_library.py --query "mongodb"
json{ "success": true, "data": { "query": "next.js", "count": 3, "matches": [ { "id": "/vercel/next.js", "title": "Next.js", "description": "React framework for full-stack web applications", "stars": 131745, "trustScore": 10, "versions": ["v15.1.8", "v14.3.0", "v13.5.11"] } ] } }
After getting results, select the best library based on:
For frequently used libraries, you can skip search and use directly:
| Library | ID | |---------|-------------| | Next.js | vercel/next.js | | React | facebook/react | | Prisma | prisma/prisma | | Supabase | supabase/supabase | | FastAPI | fastapi/fastapi | | Express | expressjs/express | | Django | django/django |
1. User asks about a library (e.g., "How do I use Prisma?")
|
2. Run context7-search to find library ID
|
3. Select best match from results (e.g., prisma/prisma)
|
4. Use context7-docs skill with the library IDNo matches found:
API error:
Other measured skills in the registry, with their headline benchmark lift.