Velin
올리기
/context7

최신 개발 문서 조회

라이브러리의 최신 문서와 예제 코드를 가져와 답해요.

설치

$ npx ctx7 setup

터미널에서 프로젝트 폴더를 연 다음 붙여넣어요. 설치하면 Claude가 필요할 때 이 스킬을 꺼내 써요. 모든 프로젝트에 쓰려면 -g를 붙여요.

이럴 때 써요

  • Next.js, Prisma처럼 자주 바뀌는 라이브러리로 코드를 쓸 때
  • Claude가 옛 버전 문법이나 존재하지 않는 API를 쓸 때
  • 버전을 올린 뒤 바뀐 설정 방법을 확인하고 싶을 때

이렇게 말해 보세요

Next.js 최신 버전 기준으로 미들웨어 예제를 찾아 줘
Prisma 문서를 확인해서 이 쿼리를 고쳐 줘
Supabase 이메일 가입 API 사용법을 문서에서 찾아 줘

SKILL.md 원문

원문은 영어예요. 위 설명은 Velin이 원문을 읽고 정리했어요.

name:
context7-mcp
description:
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.

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