Zum Inhalt springen
Skillpedia
Allgemeines Programmieren64k · #3166

context7-cli

Was er macht

Dieser Skill lässt deinen Agenten das Kommandozeilenwerkzeug ctx7 nutzen, um aktuelle Bibliotheksdokumentation nachzuschlagen und Context7 mit einem Code-Editor zu verbinden. Er ist für Entwickler gedacht, die im Terminal arbeiten.

Wann du ihn nutzt

  • ✓Wenn du über die Kommandozeile aktuelle Dokumentation zu einer Bibliothek nachschlagen willst.
  • ✓Wenn du Context7 für Claude Code, Cursor oder OpenCode einrichten willst.
  • ✓Wenn du prüfen willst, ob du bei Context7 angemeldet bist.

Link zum Skill

https://github.com/upstash/context7/blob/master/skills/context7-cli/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/skills/context7-cli/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

“Richte Context7 für meinen Claude Code ein, damit er aktuelle Bibliotheksdokumentation lesen kann.”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Der Skill führt das Werkzeug ctx7 aus, das eine Bibliothek sucht und dann ihre Dokumentation zu deiner Frage abruft. Er kann auch bei der Einrichtung helfen, die Context7 mit deinem Editor verbindet.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von GitHub.

ctx7 CLI

The Context7 CLI does two things: fetches up-to-date library documentation and sets up Context7 MCP for your editor.

Make sure the CLI is up to date before running commands:

npm install -g ctx7@latest

Or run directly without installing:

npx ctx7@latest <command>

What this skill covers

  • Documentation — Fetch current docs for any library. Use when writing code, verifying API signatures, or when training data may be outdated.
  • Setup — Configure Context7 MCP for Claude Code / Cursor / OpenCode.

Quick Reference

# Documentation
ctx7 search <query>                   # Search all libraries in one step
ctx7 library <name> <query>           # Step 1: resolve library ID
ctx7 docs <libraryId> <query>         # Step 2: fetch docs

# Setup
ctx7 setup                            # Configure Context7 MCP (interactive)
ctx7 login                            # Log in for higher rate limits
ctx7 whoami                           # Check current login status

Authentication

ctx7 login               # Opens browser for OAuth
ctx7 login --no-browser  # Prints URL instead of opening browser
ctx7 logout              # Clear stored tokens
ctx7 whoami              # Show current login status (name + email)

Most commands work without login. Exception: ctx7 setup requires it unless --api-key or --oauth is passed. Login also unlocks higher rate limits on docs commands.

Set an API key via environment variable to skip interactive login entirely:

export CONTEXT7_API_KEY=your_key

Common Mistakes

  • Library IDs require a / prefix — /facebook/react not facebook/react
  • Always run ctx7 library first — ctx7 docs react "hooks" will fail without a valid ID
Häufige Fragen

Muss ich etwas installieren?

Der Skill nutzt das Werkzeug ctx7, das mit npx ausgeführt oder mit npm global installiert werden kann.

Muss ich mich anmelden?

Die meisten Befehle funktionieren ohne Anmeldung, aber der Einrichtungsbefehl braucht einen Login.

Welche Editoren unterstützt die Einrichtung?

Der Skill nennt Claude Code, Cursor und OpenCode.

Details

Originalbeschreibung des Autors

Use the ctx7 CLI to fetch library documentation and configure Context7 MCP. Activate when the user mentions "ctx7" or "context7", needs current docs for any library, or needs to set up Context7 for their AI coding agent.

repo: upstash/context7

Beliebtheit

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

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills