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.mdSalin 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
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
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 questionquery: 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-docscalls — 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
Komentar
- …
Skill lain dari repositori ini
context7-docs
64kMemungkinkan agent Anda mengambil dokumentasi dan contoh kode terkini untuk pustaka, framework, SDK, atau layanan cloud apa pun sebelum menjawab.
context7-cli
64kMemungkinkan agent Anda memakai alat baris perintah ctx7 untuk mengambil dokumentasi pustaka dan mengatur Context7 untuk editor kode Anda.
find-docs
64kMemungkinkan agent Anda mencari dokumentasi terkini, referensi API, dan contoh kode untuk alat pengembang, pustaka, atau layanan cloud apa pun.
Skill serupa
diffs
394kMemungkinkan agent Anda menghasilkan diff perubahan yang nyata dan dapat dibagikan sebagai tautan viewer atau file gambar, bukan ringkasan yang ditulis manual.
coding-agent
394kMembantu agent Anda menyerahkan pekerjaan pemrograman besar ke Codex, Claude Code, atau OpenCode di latar belakang, lalu memeriksa kemajuannya.
gh-issues
394kMembantu agent Anda menemukan issue GitHub, memilih yang dikerjakan, dan membuka pull request perbaikan, termasuk tindak lanjut komentar tinjauan.