context7-search
Skill2 starsChanged 44 days agoMITView on GitHub
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.
- Reads credentials
In this repository41 other files it gives its agents.
- skills/web-asset-generator/CLAUDE.mdCLAUDE.md
- academic-writingSkill
- agent-os-childSkill
- agy-pSkill
- amazon-uk-scraperSkill
- artifact-variationsSkill
- audio-transcription-workflowSkill
- capture-dashboardSkill
- claude-channelsSkill
- claude-pSkill
- code-documenterSkill
- context7-docsSkill
- deep-researchSkill
- docx-draftSkill
- grill-meSkill
- handoffSkill
- long-horizon-waiting-strategiesSkill
- openapi-schemaSkill
- opencode-pluginSkill
- pi-extensionSkill
- pi-web-ui-internal-api-orchestrationSkill
- pptx-draftSkill
- saas-idea-finderSkill
- scraping-redditSkill
- scraping-twitterSkill
- secret-scanningSkill
- socialmedia-optimizationSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- text-to-speechSkill
- thematic-analysisSkill
- transcribe-audioSkill
- video-deep-understandingSkill
- video-useSkill
- web-asset-generatorSkill
- web-crawlingSkill
- web-create-assetsSkill
- web-data-acquisitionSkill
- webfetch-skillSkill
- youtube-captionSkill
- youtube-searchSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Search for libraries in the Context7 documentation database.
- Distinctive: line 12
Use this skill when:
- Very specific: line 18
Skip this skill: when you already know the exact library (e.g., vercel/next.js).
- Distinctive: line 82
After getting results, select the best library based on:
- Distinctive: line 123
Verify the API key is available in your environment or shell startup file
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Search for Libraries in Context7
Search for libraries in the Context7 documentation database. This helps identify the correct owner/repo format needed for fetching documentation.
When to Use
Use this skill when:
- User mentions a library by informal name (e.g., "next", "prisma", "mongo")
- You need to discover the exact library identifier
- User wants to compare multiple related libraries
- Library name is ambiguous or has multiple versions
Skip this skill when you already know the exact library (e.g., vercel/next.js). Use context7-docs directly instead.
Prerequisites
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.
How to Execute
Basic Library Search
python3 ./scripts/resolve_library.py --query "LIBRARY_NAME"Limit Results
python3 ./scripts/resolve_library.py --query "LIBRARY_NAME" --limit 5Parameters
| Parameter | Required | Default | Description |
--query | Yes | - | Library name to search (fuzzy matching) |
--limit | No | 10 | Maximum number of results |
Example Queries
# 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"Response Format
{
"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"]
}
]
}
}Selecting the Best Match
After getting results, select the best library based on:
- Trust score - Higher is better (0-10 scale)
- Stars - More stars indicates popularity
- Description relevance - Match to user's specific needs
- VIP status - VIP libraries are official/verified
Common Library IDs
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 |
Workflow
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 IDError Handling
No matches found:
- Try simpler search term (e.g., "next" instead of "next.js framework")
- Try the library's official name
- Check spelling
API error:
- Verify the API key is available in your environment or shell startup file
- Check network connectivity
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

