context7

Retrieve latest documentation and code samples from GitHub repositories.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/taptap/claude-plugins-marketplace --skill context7-taptap
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context7
Source: https://github.com/taptap/claude-plugins-marketplace/tree/main/plugins/sync/skills/context7
Command: npx skills add https://github.com/taptap/claude-plugins-marketplace --skill context7-taptap

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

context7 作为 Context Protocol 服务器,帮助从公开的 GitHub 仓库获取最新文档与示例,避免训练数据过时导致的信息不准确。

Core Features & Use Cases

  • 自动检测并调用 context7 以获取公开仓库的最新文档
  • 注入最新文档到对话上下文,提供精准的代码示例
  • 支持按版本获取特定文档与 API 参考

Quick Start

在提问中直接包含仓库链接,例如:use context7 来获取 https://github.com/facebook/react 的最新文档

Frequently Asked Questions about context7

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fetch the latest documentation and code samples from a GitHub repository?

Use context7 to retrieve current documentation and code samples directly from public GitHub repositories. Provide the repository URL in your query, and context7 fetches the latest README, docs, API references, and TypeScript definitions for accurate, up-to-date guidance.

Can I get documentation for a specific version of a framework or library?

Yes, context7 supports version-specific documentation retrieval. Specify the version when referencing a repository, and context7 extracts the corresponding API references and code samples for that exact version from GitHub.

Why should I use GitHub documentation instead of relying on training data?

Training data becomes outdated as libraries evolve. context7 pulls live documentation from public repositories, ensuring you receive current API signatures, examples, and features without relying on potentially stale information.

What types of files can context7 extract from a repository?

context7 extracts README files, documentation, code samples, and TypeScript definitions from public GitHub repositories. These materials are injected into your conversation context to provide accurate, current guidance for the specified library or framework.

Does context7 work with any public repository on GitHub?

Yes, context7 works with any publicly accessible GitHub repository. It automatically detects when you reference a public repo or open-source project and retrieves the latest materials to support accurate code guidance.