Skip to content
Agentmart
Submit a tool

context7-cli

라이브러리·프레임워크 공식 문서와 API 예시를 조회할 때 사용한다.

Skill by Jonghakseo

IndexedMIT★ 15
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/jonghakseo-context7-cli

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

라이브러리·프레임워크 공식 문서와 API 예시를 조회할 때 사용한다.

Use cases: backend

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/context7-cli

What's inside

Skill name
context7-cli
Description
라이브러리·프레임워크 공식 문서와 API 예시를 조회할 때 사용한다.
License
MIT
Compatibility
Requires bash plus either `ctx7` in PATH or `npx -y ctx7`; Node.js 18+ recommended.
Instructions
179 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Context7 CLI

## What this skill is for

Use this skill when you need Context7 documentation lookup but do **not** want MCP tool registration.

Typical cases:
- 라이브러리/프레임워크 공식 문서 기반 답변이 필요할 때
- 패키지 사용법, API, 버전별 예시를 빠르게 찾을 때
- searcher가 bash로 Context7를 직접 호출해야 할 때

## Preferred flow

1. **Check how to run Context7 CLI**
   - Prefer `ctx7` if it is already installed.
   - Otherwise retry with `npx -y ctx7`.
2. **Resolve the library ID**
   - Run `ctx7 library <name> [query]`
3. **Fetch docs with the resolved ID**
   - Run `ctx7 docs <library-id> <query>`
4. **Prefer JSON when machine-readable output helps**
   - Add `--json`
   - If JSON is malformed, sparse, or hard to parse, retry without `--json`
5. **Report fallback path clearly**
   - If Context7 fails, fall back to official docs / `web_search` / `fetch_content`
   - State that confidence is reduced

If you already know the exact library ID, skip `library` and go straight to `docs`.

## Command patterns

### 1) Check availability

```bash
ctx7 --help
```

If that fails:

```bash
npx -y ctx7 --help
```

### 2) Resolve a library ID

```bash
ctx7 library react
ctx7 library nextjs "app router authentication"
ctx7 library prisma "relations"
```

JSON mode:

```bash
ctx7 library react --json
```

### 3) Query docs

```bash
ctx7 docs /facebook/react "useEffect cleanup"
ctx7 docs /vercel/next.js "middleware authentication"
ctx7 docs /prisma/prisma "one-to-many relations"
```

JSON mode:

```bash
ctx7 docs /facebook/react "hooks" --json
```

## Bash usage guidance

When you are unsure whether `ctx7` is installed, prefer a bash pattern like this:

```bash
if command -v ctx7 >/dev/null 2>&1; then
  ctx7 library react --json
else
  npx -y ctx7 library react --json
fi
```

For doc queries:

```bash
if command -v ctx7 >/dev/null 2>&1; then
  ctx7 docs /facebook/react "useEffect cleanup" --json
else
  npx -y ctx7 docs /facebook/react "useEffect cleanup" --json
fi
```

## Authentication

For automation, prefer environment-variable auth when needed:

```bash
export CONTEXT7_API_KEY=your_key_here
```

Interactive auth may also be available:

```bash
ctx7 login
ctx7 whoami
ctx7 logout
```

Optional telemetry disable:

```bash
export CTX7_TELEMETRY_DISABLED=1
```

If unauthenticated access works but appears rate-limited, mention that limitation in the report.

## Output handling rules

From Jonghakseo/my-pi, MIT.

More from Jonghakseo/my-pi

Signals

Stars
15
Forks
5
Open issues
0
Last commit (this folder)
Sep 30, 2026 (28 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from Jonghakseo

Cite this page

context7-cli skill. Agent Mart. https://agentmart.dev/skills/jonghakseo-context7-cli (last updated 2026-10-24)