# context7

This skill fetches library documentation and code examples through Context7. Use it for API questions or when an answer depends on a particular library version.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 411 installs · ★ 3
- Author: dotneet
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/dotneet/claude-code-marketplace/tree/HEAD/research/skills/context7/SKILL.md
- Updated: 2026-01-23
- HTML: https://affpapa.org/en/nevibecode/skills/dotneet-context7

## What it does

The skill searches for a library in Context7, then selects an ID using its trust score, available snippets, and version information. It requests material for a focused topic and uses the result to explain an API or prepare a code example.

Ask it to check how a library works, show a usage example, or verify version-specific details. API requests require `CONTEXT7_API_KEY`; without that credential, the documented `curl` calls cannot authenticate. For a combined example using multiple libraries, the skill resolves and retrieves documentation for each one.

## Requirements
- Works with: Context7

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add dotneet/claude-code-marketplace --skill context7 -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/context7/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/context7/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add dotneet/claude-code-marketplace --skill context7 -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/context7/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add dotneet/claude-code-marketplace --skill context7 -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/context7/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install dotneet/claude-code-marketplace context7
```

2. **Manually: put the files in place**
- File: `.github/skills/context7/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add dotneet/claude-code-marketplace --skill context7 -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/dotneet/claude-code-marketplace --path research/skills/context7
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/context7/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add dotneet/claude-code-marketplace --skill context7 -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/dotneet/claude-code-marketplace/tree/HEAD/research/skills/context7/SKILL.md

## When to use it
- check the current way to call a library API
- find an example for a specific function
- verify documentation for a particular library version
- build an example that combines multiple libraries

## Example prompts
- Check the current React `useEffect` cleanup pattern through Context7 and show an example.
- Find how to configure authentication middleware in the Next.js App Router using Context7.
- Compare the Context7 docs for TailwindCSS and shadcn/ui, then draft a button example.

## Similar
- [setup-matt-pocock-skills](https://affpapa.org/en/nevibecode/skills/setup-matt-pocock-skills.md) — skill · 1052851 installs
- [ask-matt](https://affpapa.org/en/nevibecode/skills/ask-matt.md) — skill · 766587 installs
- [to-tickets](https://affpapa.org/en/nevibecode/skills/to-tickets.md) — skill · 711230 installs
- [writing-plans](https://affpapa.org/en/nevibecode/skills/writing-plans.md) — skill · 282859 installs
- [caveman-review](https://affpapa.org/en/nevibecode/skills/caveman-review.md) — skill · 411800 installs
- [caveman-compress](https://affpapa.org/en/nevibecode/skills/caveman-compress.md) — skill · 411500 installs

## Other versions with the same name
- [context7 · intellectronica](https://affpapa.org/en/nevibecode/skills/context7.md) — 11200 installs
- [context7 · netresearch](https://affpapa.org/en/nevibecode/skills/netresearch-dtt-gmbh-context7.md) — 1900 installs

From the same set: [dotneet/claude-code-marketplace](https://affpapa.org/en/nevibecode/by/dotneet/claude-code-marketplace.md) — 5 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
