agentleFS
valtterimelkkovaltterimelkko/agent-workflow-skills/skills/context7-search/SKILL.md

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

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
  1. Very specific:

    Search for libraries in the Context7 documentation database.

    line 8
  2. Distinctive:

    Use this skill when:

    line 12
  3. Very specific:

    Skip this skill: when you already know the exact library (e.g., vercel/next.js).

    line 18
  4. Distinctive:

    After getting results, select the best library based on:

    line 82
  5. Distinctive:

    Verify the API key is available in your environment or shell startup file

    line 123

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 5

Parameters

ParameterRequiredDefaultDescription
--queryYes-Library name to search (fuzzy matching)
--limitNo10Maximum 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:

  1. Trust score - Higher is better (0-10 scale)
  2. Stars - More stars indicates popularity
  3. Description relevance - Match to user's specific needs
  4. VIP status - VIP libraries are official/verified

Common Library IDs

For frequently used libraries, you can skip search and use directly:

LibraryID
Next.jsvercel/next.js
Reactfacebook/react
Prismaprisma/prisma
Supabasesupabase/supabase
FastAPIfastapi/fastapi
Expressexpressjs/express
Djangodjango/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 ID

Error 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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.