context7-cli
하는 일
이 스킬은 에이전트가 ctx7 명령줄 도구로 라이브러리의 최신 문서를 찾고, Context7을 코드 편집기에 연결하도록 합니다. 터미널에서 작업하는 개발자를 위한 스킬입니다.
사용하는 경우
- ✓명령줄에서 라이브러리의 최신 문서를 찾고 싶을 때.
- ✓Claude Code, Cursor, OpenCode에 Context7을 설정하고 싶을 때.
- ✓Context7에 로그인되어 있는지 확인해야 할 때.
스킬 링크
https://github.com/upstash/context7/blob/master/skills/context7-cli/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“Claude Code에서 최신 라이브러리 문서를 읽을 수 있도록 Context7을 설정해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
이 스킬은 ctx7 도구를 실행합니다. 이 도구는 라이브러리를 검색한 뒤, 질문에 맞는 문서를 가져옵니다. 또한 편집기와 Context7을 연결하는 설정도 안내할 수 있습니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
ctx7 CLI
The Context7 CLI does two things: fetches up-to-date library documentation and sets up Context7 MCP for your editor.
Make sure the CLI is up to date before running commands:
npm install -g ctx7@latest
Or run directly without installing:
npx ctx7@latest <command>
What this skill covers
- Documentation — Fetch current docs for any library. Use when writing code, verifying API signatures, or when training data may be outdated.
- Setup — Configure Context7 MCP for Claude Code / Cursor / OpenCode.
Quick Reference
# Documentation
ctx7 search <query> # Search all libraries in one step
ctx7 library <name> <query> # Step 1: resolve library ID
ctx7 docs <libraryId> <query> # Step 2: fetch docs
# Setup
ctx7 setup # Configure Context7 MCP (interactive)
ctx7 login # Log in for higher rate limits
ctx7 whoami # Check current login status
Authentication
ctx7 login # Opens browser for OAuth
ctx7 login --no-browser # Prints URL instead of opening browser
ctx7 logout # Clear stored tokens
ctx7 whoami # Show current login status (name + email)
Most commands work without login. Exception: ctx7 setup requires it unless --api-key or --oauth is passed. Login also unlocks higher rate limits on docs commands.
Set an API key via environment variable to skip interactive login entirely:
export CONTEXT7_API_KEY=your_key
Common Mistakes
- Library IDs require a
/prefix —/facebook/reactnotfacebook/react - Always run
ctx7 libraryfirst —ctx7 docs react "hooks"will fail without a valid ID
자주 묻는 질문
따로 설치해야 하나요?
이 스킬은 ctx7 도구를 사용하며, npx로 실행하거나 npm으로 전역 설치할 수 있습니다.
로그인해야 하나요?
대부분의 명령은 로그인 없이 동작하지만, 설정 명령은 로그인이 필요합니다.
어떤 편집기를 설정할 수 있나요?
이 스킬은 Claude Code, Cursor, OpenCode를 언급합니다.
상세 정보
작성자의 원본 설명
Use the ctx7 CLI to fetch library documentation and configure Context7 MCP. Activate when the user mentions "ctx7" or "context7", needs current docs for any library, or needs to set up Context7 for their AI coding agent.
repo: upstash/context7
인기도
- GitHub 스타
- 64k
- 순위
- #3166
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …