Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问clear审计未展示

context7Context7 文档搜索

Agent Skill

context7 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

235

周安装

10

GitHub Stars

公开资料未说明

下载量

82
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:context7(Context7 文档搜索)
来源仓库:https://github.com/michaelfisher1997/opencode-config
仓库路径:skills/context7
安装命令:
npx skills add michaelfisher1997/opencode-config --skill "context7"
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add michaelfisher1997/opencode-config --skill "context7"

简介

发现并安装 AI 代理的技能,支持多宿主环境集成。

  • 适用于技能扩展、工具链管理和自动化流程搭建场景。
  • 通过标准化接口发现和部署各类辅助功能模块。context7 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 安装前需验证宿主兼容性,避免权限冲突或执行异常。
  • 建议定期检查技能仓库更新以保障功能稳定性。

SKILL.md

Context7 Integration

Context7 is an MCP server that provides up-to-date documentation and code examples for programming libraries and frameworks.

When to Use Context7

Use Context7 when you need:

  • Latest documentation for any programming library or framework
  • Code examples and usage patterns
  • API reference information
  • Best practices for specific libraries

Before using Context7, you must:

  1. Call context7_resolve-library-id to get the exact library ID
  2. Then call context7_query-docs with that library ID

Required Workflow

Step 1: Resolve Library ID

Use context7_resolve-library-id first:

context7_resolve-library-id({
  libraryName: "react",
  query: "How do I use React hooks?"
})

This returns the exact Context7-compatible library ID (e.g., /vercel/next.js/v14.3.0-canary.87).

Only skip this step if the user explicitly provides a library ID in the format /org/project or /org/project/version.

Step 2: Query Documentation

Use context7_query-docs with the resolved library ID:

context7_query-docs({
  libraryId: "/vercel/next.js/v14.3.0-canary.87",
  query: "How to implement server-side rendering with next 14?"
})

Important Rules

  • NEVER use context7_query-docs without first calling context7_resolve-library-id (unless user provides library ID)
  • NEVER call these tools more than 3 times per question
  • If you can't find what you need after 3 attempts, use the best information you have
  • Don't include sensitive information (API keys, credentials, secrets) in queries
  • Be specific and include relevant details in your query

Examples

Basic Example

# User asks: "How do I use React Query?"

1. Call context7_resolve-library-id:
   - libraryName: "react-query"
   - query: "How do I use React Query?"

2. Get result: /tanstack/react-query

3. Call context7_query-docs:
   - libraryId: "/tanstack/react-query"
   - query: "How do I use React Query? Include setup examples and basic usage patterns"

Version-Specific Example

# User asks: "What's new in Next.js 14?"

1. Call context7_resolve-library-id:
   - libraryName: "next.js"
   - query: "What's new in Next.js 14?"

2. Get result: /vercel/next.js/v14.3.0-canary.87

3. Call context7_query-docs:
   - libraryId: "/vercel/next.js/v14.3.0-canary.87"
   - query: "What's new in Next.js 14? List new features and breaking changes"

With User-Provided Library ID

# User asks: "Show me examples of /mongodb/docs aggregation"

1. Skip resolve-library-id (user provided ID)
2. Call context7_query-docs directly:
   - libraryId: "/mongodb/docs"
   - query: "Show me aggregation pipeline examples"

What Context7 Provides

  • Code snippets
  • API documentation
  • Usage examples
  • Best practices
  • Version-specific information
  • Multiple library versions (when available)

When NOT to Use Context7

Don't use Context7 for:

  • Searching local codebase
  • General web searches
  • Running shell commands or local operations
  • File operations (read/write files)
  • Git operations

Keywords

Context7, documentation, library docs, API reference, code examples, framework documentation, react, next.js, mongodb, express, django, rails, programming libraries, npm packages

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenCode

28.63%
按下载量换算23

Claude Code

24.54%
按下载量换算20

windsurf

18.31%
按下载量换算15

Cursor

14.81%
按下载量换算12

Codex

8%
按下载量换算7

Antigravity

3.45%
按下载量换算3

安全审计

暂无安全审计结果可展示。

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add michaelfisher1997/opencode-config --skill "context7" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills