Langsung ke konten
Skillpedia
Pemrograman umum64k · #3164

context7-mcp

Fungsinya

Skill ini membuat agent Anda memeriksa dokumentasi terkini untuk pustaka dan framework perangkat lunak sebelum menjawab. Skill ini cocok untuk developer yang menginginkan kode yang akurat, bukan contoh yang sudah usang.

Kapan dipakai

  • ✓Saat Anda meminta agent menulis kode yang memakai pustaka seperti React, Next.js, atau Prisma.
  • ✓Saat Anda mengajukan pertanyaan pengaturan atau konfigurasi tentang sebuah framework.
  • ✓Saat Anda membutuhkan metode API yang tepat untuk alat yang sedang Anda pakai.

Link skill

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

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/upstash/context7/blob/master/packages/opencode/skills/context7-mcp/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit →

Contoh permintaan ke AI

“Tunjukkan cara mengatur proxy Next.js memakai dokumentasi terbaru.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Skill pertama-tama mencari pustaka yang tepat di indeks Context7, lalu mengambil dokumentasi untuk pertanyaan Anda. Agent menjawab menggunakan dokumentasi tersebut, bukan hanya dari ingatan.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum

Mengapa tidak mengandalkan ingatan agent?

Pustaka sering berubah, sehingga ingatan bisa sudah usang. Dokumentasi terkini membantu menghindari contoh kode lama.

Bisakah skill menemukan dokumentasi untuk versi tertentu?

Bisa. Jika Anda menyebutkan versi seperti React 19, skill mengutamakan dokumentasi yang sesuai dengan versi tersebut.

Apakah ini berfungsi untuk banyak alat?

Ya. Skill berfungsi untuk banyak pustaka dan framework, seperti React, Vue, Next.js, Prisma, dan Supabase.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
64k
Peringkat
#3164
Lisensi
MIT
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa