am-will

Context7 API Documentation Fetcher

知识管理v1.0.0
作者:am-will更新于 2026-05-17context7-api@clawhub_am-will/context7-api
信息检索文档问答#Documentation#Debugging

据 AlphaMoat 统计,截至 2026-09,Context7 API Documentation Fetcher 累计下载 3,575 次、获 0 个星标,在全部 5,078 个 AI 技能中排名第 3,054 位,在「知识管理」分类(442 个)中排名第 280 位。

累计安装
106
累计下载
3,575
星标
-
全站排名
#3,054
全站前 61% · 「知识管理」前 64%
平台累计安装累计下载星标评论
ClawHub ↗1063,293--
SkillHub ↗1053,575-—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

主文描述先搜索库名,再使用返回的标识获取文档上下文,供 API 查询、实现或调试使用。随附卡片报告分发源码包含 Context7 bearer token,并指出查询会发送给远程服务。在确认捆绑凭据已移除或轮换、并改用用户自己的受保护密钥前,不应运行该版本。查询中不得包含私有源码、内部标识、密钥或其他机密内容。

资料发布于 2026-10-29

可以用来做什么

  • 查找公开库或 SDK 的官方文档
  • 获取针对 API 用法的精简上下文
  • 审查查询内容和凭据配置风险

什么时候用

  • 需要核对第三方库当前文档时
  • 分发版本的捆绑密钥已移除或轮换且凭据安全配置时
  • 查询内容可安全发送给 Context7 时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

先审查该版本是否仍含捆绑 bearer token,不要执行
用公开库名称检索文档,不提交私有源码或凭据
在请求文档前检查查询是否含有内部或客户信息

月度数据趋势

累计下载3,575
2,0012,8473,6922026-03 · 累计下载 2,1182026-05 · 累计下载 2,6522026-07 · 累计下载 3,0722026-08 · 累计下载 3,2292026-09 · 累计下载 3,57526-0326-09
星标-
0112026-03 · 星标 -2026-05 · 星标 -2026-07 · 星标 -2026-08 · 星标 -2026-09 · 星标 -26-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-093,575—-
2026-083,229+5.1%-
2026-073,072—-
2026-052,652—-
2026-032,118—-

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

1.7 KB · ClawHub v1.0.0
---
name: context7
description: |
  Fetch up-to-date library documentation via Context7 API. Use PROACTIVELY when:
  (1) Working with ANY external library (React, Next.js, Supabase, etc.)
  (2) User asks about library APIs, patterns, or best practices
  (3) Implementing features that rely on third-party packages
  (4) Debugging library-specific issues
  (5) Need current documentation beyond training data cutoff
  Always prefer this over guessing library APIs or using outdated knowledge.
展开全部(共 62 行)
---

# Context7 Documentation Fetcher

Retrieve current library documentation via Context7 API.

## Workflow

### 1. Search for the library

```bash
python3 ~/.claude/skills/context7/scripts/context7.py search "<library-name>"
```

Example:
```bash
python3 ~/.claude/skills/context7/scripts/context7.py search "next.js"
```

Returns library metadata including the `id` field needed for step 2.

### 2. Fetch documentation context

```bash
python3 ~/.claude/skills/context7/scripts/context7.py context "<library-id>" "<query>"
```

Example:
```bash
python3 ~/.claude/skills/context7/scripts/context7.py context "/vercel/next.js" "app router middleware"
```

Options:
- `--type txt|md` - Output format (default: txt)
- `--tokens N` - Limit response tokens

## Quick Reference

| Task | Command |
|------|---------|
| Find React docs | `search "react"` |
| Get React hooks info | `context "/facebook/react" "useEffect cleanup"` |
| Find Supabase | `search "supabase"` |
| Get Supabase auth | `context "/supabase/supabase" "authentication row level security"` |

## When to Use

- Before implementing any library-dependent feature
- When unsure about current API signatures
- For library version-specific behavior
- To verify best practices and patterns

「知识管理」分类下的热门技能

am-will 的其他技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。