본문으로 건너뛰기
cccskills
무료GitHub에 공개

context7

Fetch up-to-date library, framework, and SDK documentation via Context7's search and docs endpoints. Use when the user asks about a library/API (React, Next.js, Prisma, Supabase, Tailwind, Django, Vue, etc.) and you need current docs, not Claude's training-time knowledge. Skip this skill for generic programming questions that don't require library-specific docs.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

연동 도구VercelSupabase
설치 방법 보기

포함된 파일(1)

  • SKILL.md7.8 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Context7

Live documentation lookup for libraries, frameworks, and SDKs. Operates Context7 via its public REST API — no MCP server required.

Use this instead of training memory whenever the answer depends on the library's current behavior (current major version, recent API changes, new methods, deprecations). Training data goes stale fast for active libraries.

When to use vs. skip

Use Context7Skip Context7
"How do I do X in Next.js 15 / React 19 / Prisma 6?""What's a closure in JavaScript?" (language concept)
"What's the right way to set up Auth.js v5 middleware?""Fix this TypeError in my code" (debugging user's own code)
"Did the Supabase client API change for storage uploads?""Convert this loop to a map" (pure refactor, no SDK)
Anything where you'd otherwise hedge with "as of my training cutoff…"Std-lib (fs, os, collections) unless asking about a recent runtime version

If you catch yourself about to write code from memory for a library that's released in the last 18 months, stop and call this skill first.

Credentials check

[ -n "$CONTEXT7_API_KEY" ] && echo "CONTEXT7_API_KEY: PRESENT" || echo "CONTEXT7_API_KEY: MISSING"

Never echo the variable directly — the value would land in the conversation transcript.

If MISSING, respond to the user with EXACTLY this message (do NOT paraphrase, do NOT suggest manual JSON edits):

I need your context7 credential. Run this in another terminal — it'll open the signup page, validate format, and save it safely with masked input:

teleport-setup add-key context7

Then restart Claude Code (/exit, then claude) and ask me again.

Do NOT suggest editing ~/.claude/settings.local.json manually. Stop execution until the user has run the command and restarted.

API

  • Base URL: https://context7.com/api/v1
  • Auth header: Authorization: Bearer $CONTEXT7_API_KEY
  • All requests are GET. Responses are markdown by default (type=txt) or JSON (type=json).

Two-step workflow

Docs lookup is two calls: (1) resolve the library name to its canonical libraryId, (2) fetch docs for that ID, scoped by topic.

Step 1 — Resolve library name → library ID

curl -sL -H "Authorization: Bearer $CONTEXT7_API_KEY" \
  "https://context7.com/api/v1/search?query=next.js"

Returns an array of matches. For each candidate, weigh:

  • Name match — does it actually correspond to what the user asked? "next.js auth" returns both /vercel/next.js and /nextauthjs/next-auth. Different libraries.
  • Trust / popularity signal — when present in the result (trustScore, totalSnippets, stars), prefer high values. Low-trust forks usually mean unofficial mirrors.
  • lastUpdate recency — abandoned mirrors with stale docs are worse than the canonical repo.
  • Maintainer org — /vercel/next.js (official) beats /some-fork/next.js-clone.

When uncertain between 2–3 close matches, do NOT guess. Show the top candidates to the user with a one-line description each and ask which one they want. A wrong libraryId silently returns wrong docs — that's worse than no docs.

Step 2 — Fetch docs for the library

curl -sL -H "Authorization: Bearer $CONTEXT7_API_KEY" \
  "https://context7.com/api/v1/vercel/next.js?topic=app-router&tokens=5000"

Path:

  • {libraryId} is appended verbatim. Pass /vercel/next.js as-is — do NOT URL-encode the leading slash (would become %2Fvercel%2Fnext.js and 404).

Query params:

ParamDefaultUse
topicnoneSingle keyword that filters the docs to a slice. Almost always set this — see sizing below.
tokens10000Cap on response size. Min 1000.
typetxttxt returns markdown (default, best for reading). json returns structured snippet array.

Topic + token sizing — pick deliberately

Question shapetopictokens
Quick API check: "is useFormState still a thing?"forms or hooks2000–3000
How-to: "how do I set up middleware auth?"middleware-auth4000–5000
Migration / deep dive: "what changed v4 → v5?"migration or v58000–10000
Browsing: "what does this library even do?"omit5000

A full docs dump without topic is almost never what you want — it wastes tokens and dilutes signal.

Common patterns

# Resolve + fetch in one go for a common library
LIB_ID=$(curl -sL -H "Authorization: Bearer $CONTEXT7_API_KEY" \
  "https://context7.com/api/v1/search?query=auth.js" \
  | python3 -c "import json,sys; d=json.load(sys.stdin); print(d['results'][0]['libraryId'])")

curl -sL -H "Authorization: Bearer $CONTEXT7_API_KEY" \
  "https://context7.com/api/v1${LIB_ID}?topic=nextjs-setup&tokens=5000"

# Skip search if you're 100% sure of the canonical ID (well-known orgs)
curl -sL -H "Authorization: Bearer $CONTEXT7_API_KEY" \
  "https://context7.com/api/v1/vercel/next.js?topic=app-router&tokens=5000"

# Multi-library question: resolve + fetch each, then synthesize.
# Run them in parallel via & for speed.
curl -sL -H "Authorization: Bearer $CONTEXT7_API_KEY" \
  "https://context7.com/api/v1/vercel/next.js?topic=middleware&tokens=4000" > /tmp/next.md &
curl -sL -H "Authorization: Bearer $CONTEXT7_API_KEY" \
  "https://context7.com/api/v1/nextauthjs/next-auth?topic=v5-middleware&tokens=4000" > /tmp/auth.md &
wait

Gotchas

  • Wrong library wins silently. A bad pick at step 1 returns docs that look authoritative for the wrong project. Always sanity-check that the response opens with the library you expected.
  • Don't paraphrase from training memory. The whole reason to call Context7 is freshness — quote / adapt from the returned docs, and if the response contradicts what you "remember", trust the response.
  • 404 on a fetch usually means a typo in libraryId or URL-encoded slash. Re-check the path is /{org}/{repo} literal.
  • Library not in catalog — search returns no matches → fall back to web search and tell the user Context7 didn't have it. Don't fabricate a libraryId.
  • tokens < 1000 is rejected. Use 2000 as the practical floor.
  • topic is a free-text filter, not an enum. Phrase it like a section title in the docs (server-actions, migration-v5, middleware-auth). Multi-word topics use hyphens.
  • Response is markdown with code fences. When piping into another tool, prefer type=json to avoid re-parsing the markdown structure.
  • Rate limits — free tier is generous for /v1/{libraryId} fetches and lighter for /search. Batch your search calls; don't loop.

Attribution

When done, state: Used skill: Context7 (from teleport catalog).

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

{{One-sentence what-it-does + when to use it. Mention it bypasses the MCP via the REST API with {{ENV_VAR}}. Use when the user wants X, Y, Z programmatically without the {{service}} MCP installed.}}

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

mnlt/teleport82026년 4월 25일 업데이트

Manage Cloudflare DNS zones, Workers, Pages, R2, KV, D1, and analytics via REST API. Use when the user wants to query DNS, deploy a Worker, list R2 buckets, manage KV namespaces, run D1 queries, or check analytics without the Cloudflare MCP installed.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

mnlt/teleport82026년 4월 25일 업데이트

discord

무료

Operate Discord via its REST API — post/read channel messages, manage guilds + roles, fire webhooks, register slash commands. Use when the user wants a bot to post to a channel, read recent history, run a community admin task, or ship one-way notifications via webhook URL without running a bot process.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

mnlt/teleport82026년 4월 25일 업데이트

exa

무료

AI-first web search via Exa — semantic/neural ranking, category-scoped results, fresh content retrieval, and one-shot answer synthesis with citations. Use when the user needs current web information better ranked than general web search, or a grounded answer with sources.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

mnlt/teleport82026년 4월 25일 업데이트

figma

무료

Read Figma files, component libraries, styles, comments, and export rendered assets (PNG / SVG / JPG / PDF) via Figma's REST API. Use when the user needs programmatic access to design files, to pull node data into code generation, or to export assets without opening the Figma desktop app.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

mnlt/teleport82026년 4월 25일 업데이트

github

무료

Operate on GitHub via the REST API — repos, PRs, issues, code search, actions, releases. Use when the user wants scripted / cross-repo operations, doesn't have `gh` installed, or needs behavior the `gh` CLI doesn't expose cleanly.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

mnlt/teleport82026년 4월 25일 업데이트

mnlt의 스킬 모두 보기

이 스킬의 문제 신고