Zum Inhalt springen
Skillpedia
Allgemeines Programmieren64k · #3164

context7-mcp

Was er macht

Dieser Skill lässt deinen Agenten vor einer Antwort die aktuelle Dokumentation für Softwarebibliotheken und Frameworks prüfen. Er ist für Entwickler gedacht, die genauen Code statt veralteter Beispiele wollen.

Wann du ihn nutzt

  • ✓Wenn du deinen Agenten bittest, Code mit einer Bibliothek wie React, Next.js oder Prisma zu schreiben.
  • ✓Wenn du eine Einrichtungs- oder Konfigurationsfrage zu einem Framework stellst.
  • ✓Wenn du die genauen API-Methoden eines Werkzeugs brauchst, das du verwendest.

Link zum Skill

https://github.com/upstash/context7/blob/master/packages/opencode/skills/context7-mcp/SKILL.md

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/upstash/context7/blob/master/packages/opencode/skills/context7-mcp/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Zeig mir, wie ich einen Next.js-Proxy einrichte, und nutze dafür die neueste Dokumentation.”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Der Skill findet zuerst die passende Bibliothek im Index von Context7 und holt dann die Dokumentation zu deiner Frage. Der Agent antwortet anhand dieser Dokumentation und nicht nur aus dem Gedächtnis.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von GitHub.

When the user asks about libraries, frameworks, or needs code examples, use Context7 to fetch current documentation instead of relying on training data.

When to Use This Skill

Activate this skill when the user:

  • Asks setup or configuration questions ("How do I configure a Next.js proxy?")
  • Requests code involving libraries ("Write a Prisma query for...")
  • Needs API references ("What are the Supabase auth methods?")
  • Mentions specific frameworks (React, Vue, Svelte, Express, Tailwind, etc.)

How to Fetch Documentation

Step 1: Resolve the Library ID

Call resolve-library-id with:

  • libraryName: The library name extracted from the user's question
  • query: What to look up in the library's documentation (improves relevance ranking)

Step 2: Select the Best Match

From the resolution results, choose based on:

  • Exact or closest name match to what the user asked for
  • Higher benchmark scores indicate better documentation quality
  • If the user mentioned a version (e.g., "React 19"), prefer version-specific IDs

Step 3: Fetch the Documentation

Call query-docs with:

  • libraryId: The selected Context7 library ID (e.g., /vercel/next.js)
  • query: What to look up in the library's documentation, scoped to a single concept

If the user's question spans multiple distinct concepts (e.g. routing and auth and caching), make a separate query-docs call per concept with the same library ID, unless the question is about how the concepts interact — combined queries dilute ranking and return shallow results for each topic.

Step 4: Use the Documentation

Incorporate the fetched documentation into your response:

  • Answer the user's question using current, accurate information
  • Include relevant code examples from the docs
  • Cite the library version when relevant

Guidelines

  • Be specific: Describe what to look up in the library's documentation, but keep each query to a single concept
  • One topic per query: Split multi-topic questions into separate query-docs calls — resolve the library ID once, then query per concept, unless the question is about how the concepts interact
  • Version awareness: When users mention versions ("Next.js 16", "React 19"), use version-specific library IDs if available from the resolution step
  • Prefer official sources: When multiple matches exist, prefer official/primary packages over community forks
Häufige Fragen

Warum nicht auf das Gedächtnis des Agenten verlassen?

Bibliotheken ändern sich oft, das Gedächtnis kann also veraltet sein. Aktuelle Dokumentation hilft, alte Code-Beispiele zu vermeiden.

Kann er Dokumentation für eine bestimmte Version finden?

Ja. Nennst du eine Version wie React 19, bevorzugt der Skill versionsspezifische Dokumentation.

Funktioniert er mit vielen Werkzeugen?

Er funktioniert mit vielen Bibliotheken und Frameworks, etwa React, Vue, Next.js, Prisma und Supabase.

Details

Originalbeschreibung des Autors

This skill should be used when the user asks about libraries, frameworks, API references, or needs code examples. Activates for setup questions, code generation involving libraries, or mentions of specific frameworks like React, Vue, Next.js, Prisma, Supabase, etc.

repo: upstash/context7

Beliebtheit

GitHub-Sterne
64k
Platz im Ranking
#3164
Lizenz
MIT
Aktualisiert
2.11.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills