#601

Globales Ranking · von 601 Skills

context7 AI Agent Skill

Quellcode ansehen: dirnbauer/webconsulting-skills

Medium

Installation

npx skills add dirnbauer/webconsulting-skills --skill context7

29

Installationen

Context7 Documentation Lookup Skill

Fetch current library documentation, API references, and code examples via the Context7 REST API.

When to Use

Activate this skill when:

  • User asks about library APIs or framework patterns
  • Import statements suggest documentation needs: import, require, from
  • Questions about specific library versions or migration
  • Need for official documentation patterns vs generic solutions
  • "How do I use X library?", "What's the API for Y?"

Workflow

Step 1: Search for Library ID

Always search first to get the correct library ID:

curl -s "https://context7.com/api/v1/search?q=library-name" | jq

Example output shows library IDs you can use:

{
  "id": "/facebook/react",
  "name": "React",
  "snippets": 2135,
  "score": 79.4
}

Step 2: Fetch Documentation

curl -s "https://context7.com/api/v1/docs?library=<library-id>&topic=<topic>&mode=<mode>" | jq

Parameters:

  • library: Library ID from search results (e.g., /facebook/react)
  • topic: Optional focus area (e.g., hooks, routing)
  • mode: code (default) for API/examples, info for guides

Examples:

# Get React hooks documentation
curl -s "https://context7.com/api/v1/docs?library=/facebook/react&topic=hooks" | jq

# Get Next.js routing docs
curl -s "https://context7.com/api/v1/docs?library=/vercel/next.js&topic=routing" | jq

# Get conceptual guide (info mode)
curl -s "https://context7.com/api/v1/docs?library=/vercel/next.js&topic=app%20router&mode=info" | jq

Step 3: Apply to User's Question

Use the returned documentation to:

  1. Provide accurate, version-specific answers
  2. Show official code patterns and examples
  3. Reference correct API signatures
  4. Include relevant caveats or deprecations

Common Library IDs

Library ID
React /facebook/react
Next.js /vercel/next.js
Vue.js /vuejs/vue
Prisma /prisma/prisma
Laravel /laravel/laravel
Symfony /symfony/symfony
TYPO3 /typo3/typo3
Tailwind CSS /tailwindlabs/tailwindcss
TypeScript /microsoft/typescript

Documentation Modes

Mode Use For
code API references, code examples, function signatures (default)
info Conceptual guides, tutorials, architecture docs

Example Workflow

# User asks: "How do I use React hooks?"

# Step 1: Search for React
curl -s "https://context7.com/api/v1/search?q=react" | jq '.results[0]'
# Output shows: id: /facebook/react

# Step 2: Fetch hooks docs
curl -s "https://context7.com/api/v1/docs?library=/facebook/react&topic=hooks" | jq

# Step 3: Use the returned documentation to answer

TYPO3 Documentation Lookup

For TYPO3-specific documentation:

# Search for TYPO3
curl -s "https://context7.com/api/v1/search?q=typo3" | jq

# Get DataHandler docs
curl -s "https://context7.com/api/v1/docs?library=/typo3/typo3&topic=DataHandler" | jq

# Get Fluid ViewHelper docs
curl -s "https://context7.com/api/v1/docs?library=/typo3/typo3&topic=ViewHelper" | jq

Error Handling

If requests fail:

  1. Verify jq and curl are installed
  2. Check the library ID format (/org/project)
  3. Try a broader topic or no topic filter
  4. Try info mode if code returns nothing
  5. Check network connectivity

MCP Alternative

If you have the Context7 MCP server configured, you can use it directly:

{
  "mcpServers": {
    "context7": {
      "command": "npx",
      "args": ["-y", "@context7/mcp-server"]
    }
  }
}

Notes

  • No persistent context overhead: Uses REST API directly
  • API key optional: Works without key, but rate-limited
  • Topic filtering: Use specific topics for focused results
  • Search first: Always search to find the correct library ID
  • Fresh data: Results are not cached; each call fetches fresh data

Credits & Attribution

This skill is based on the excellent work by
Netresearch DTT GmbH.

Original repository: https://github.com/netresearch/context7-skill

Copyright (c) Netresearch DTT GmbH — Methodology and best practices (MIT / CC-BY-SA-4.0)
Adapted by webconsulting.at for this skill collection

Installationen

Installationen 29
Globales Ranking #601 von 601

Sicherheitsprüfung

ath Safe
socket Safe
Warnungen: 0 Bewertung: 90
snyk Medium
EU EU-Hosted Inference API

Power your AI Agents with the best open-source models.

Drop-in OpenAI-compatible API. No data leaves Europe.

Explore Inference API

GLM

GLM 5

$1.00 / $3.20

per M tokens

Kimi

Kimi K2.5

$0.60 / $2.80

per M tokens

MiniMax

MiniMax M2.5

$0.30 / $1.20

per M tokens

Qwen

Qwen3.5 122B

$0.40 / $3.00

per M tokens

So verwenden Sie diesen Skill

1

Install context7 by running npx skills add dirnbauer/webconsulting-skills --skill context7 in your project directory. Führen Sie den obigen Installationsbefehl in Ihrem Projektverzeichnis aus. Die Skill-Datei wird von GitHub heruntergeladen und in Ihrem Projekt platziert.

2

Keine Konfiguration erforderlich. Ihr KI-Agent (Claude Code, Cursor, Windsurf usw.) erkennt installierte Skills automatisch und nutzt sie als Kontext bei der Code-Generierung.

3

Der Skill verbessert das Verständnis Ihres Agenten für context7, und hilft ihm, etablierte Muster zu befolgen, häufige Fehler zu vermeiden und produktionsreifen Code zu erzeugen.

Was Sie erhalten

Skills sind Klartext-Anweisungsdateien — kein ausführbarer Code. Sie kodieren Expertenwissen über Frameworks, Sprachen oder Tools, das Ihr KI-Agent liest, um seine Ausgabe zu verbessern. Das bedeutet null Laufzeit-Overhead, keine Abhängigkeitskonflikte und volle Transparenz: Sie können jede Anweisung vor der Installation lesen und prüfen.

Kompatibilität

Dieser Skill funktioniert mit jedem KI-Coding-Agenten, der das skills.sh-Format unterstützt, einschließlich Claude Code (Anthropic), Cursor, Windsurf, Cline, Aider und anderen Tools, die projektbezogene Kontextdateien lesen. Skills sind auf Transportebene framework-agnostisch — der Inhalt bestimmt, für welche Sprache oder welches Framework er gilt.

Data sourced from the skills.sh registry and GitHub. Install counts and security audits are updated regularly.

EU Made in Europe

Chat with 100+ AI Models in one App.

Use Claude, ChatGPT, Gemini alongside with EU-Hosted Models like Deepseek, GLM-5, Kimi K2.5 and many more.

Kundensupport