context7-mcp
하는 일
이 스킬은 답하기 전에 에이전트가 소프트웨어 라이브러리와 프레임워크의 최신 문서를 확인하게 합니다. 오래된 예제 대신 정확한 코드를 원하는 개발자를 위한 스킬입니다.
사용하는 경우
- ✓React, Next.js, Prisma 같은 라이브러리를 사용하는 코드를 작성해 달라고 요청할 때.
- ✓프레임워크의 설정이나 구성에 관한 질문을 할 때.
- ✓사용 중인 도구의 정확한 API 메서드가 필요할 때.
스킬 링크
https://github.com/upstash/context7/blob/master/packages/opencode/skills/context7-mcp/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“최신 문서를 바탕으로 Next.js 프록시를 설정하는 방법을 보여 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
이 스킬은 먼저 Context7 색인에서 알맞은 라이브러리를 찾고, 질문에 맞는 문서를 가져옵니다. 에이전트는 기억만이 아니라 그 문서를 바탕으로 답합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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
자주 묻는 질문
에이전트의 기억을 믿으면 안 되나요?
라이브러리는 자주 바뀌므로 기억은 오래되었을 수 있습니다. 최신 문서는 오래된 코드 예제를 피하는 데 도움이 됩니다.
특정 버전의 문서도 찾을 수 있나요?
네. React 19처럼 버전을 말하면 이 스킬은 해당 버전의 문서를 우선합니다.
여러 도구에서 동작하나요?
React, Vue, Next.js, Prisma, Supabase 등 많은 라이브러리와 프레임워크에서 동작합니다.
상세 정보
작성자의 원본 설명
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
인기도
- GitHub 스타
- 64k
- 순위
- #3164
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …