Context7

Fetch up-to-date, version-specific library documentation and code examples from Context7. Use this skill whenever the user asks about a specific programming library, framework, or API, or when writing code that depends on a library. Replaces stale training-data knowledge with live docs.

46 stars 56 forksWriting & Content

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add zocomputer/skills --skill context7
Manual install
git clone --depth 1 https://github.com/zocomputer/skills.git /tmp/skills
mkdir -p ~/.claude/skills
cp -r /tmp/skills/Community/context7 ~/.claude/skills/context7

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Context7 -- Live Library Documentation

Pull current docs and code examples for any programming library directly into context. No more hallucinated APIs or outdated patterns.

## When to Use

- The user asks how to use a library, framework, or SDK (e.g. "how do I do X with Hono?")
- The user asks about a specific API, method, or configuration for a library
- You are writing or reviewing code that depends on an external library and need accurate API details
- The user says "use context7" explicitly
- The user asks about setup, installation, or configuration of a library

## How to Use

The script is at `Skills/context7/scripts/context7.ts`. Run with `bun`.

### Commands

**Search for a library:**
```bash
bun Skills/context7/scripts/context7.ts search "<library-name>"
```
Returns matching libraries with their Context7 IDs, descriptions, snippet counts, and quality scores. Pick the best match by name relevance, reputation, and benchmark score.

**Fetch docs for a specific query:**
```bash
bun Skills/context7/scripts/context7.ts docs <library-id> "<query>"
```
Returns documentation and code examples relevant to the query. Use the library ID from a search result.

**One-shot lookup (search + fetch docs):**
```bash
bun Skills/context7/scripts/context7.ts lookup "<library-name>" "<query>" --tokens 10000
```
Resolves the library and fetches relevant docs in one step. This is the most common workflow.

### Options
Read the full skill on GitHub

Details

Skill name
context7
Path
Community/context7/SKILL.md
License
MIT
Repo updated
29 July 2026

FAQ

What does the Context7 skill do?

Fetch up-to-date, version-specific library documentation and code examples from Context7. Use this skill whenever the user asks about a specific programming library, framework, or API, or when writing code that depends on a library. Replaces stale training-data knowledge with live docs.

How do I install the Context7 skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add zocomputer/skills --skill context7. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Context7 popular?

It lives in zocomputer/skills, which has 46 GitHub stars and 56 forks.

Related skills

Browse the most popular Claude skills, all writing & content skills, or write your own with the skills generator.