context7
Installation
SKILL.md
Context7 - Library Documentation Fetcher
Fetch library documentation directly from the terminal using the ctx7 CLI. Resolve any library by name and query its up-to-date docs without opening a browser.
执行环境
| 路径类型 | 说明 |
|---|---|
| CLI | npx ctx7 (无需全局安装) |
| 认证 | 大部分命令无需认证,ctx7 skills generate 需要 |
| API Key | 可选:export CONTEXT7_API_KEY=your_key |
工作流程
Step 1: 解析库名 → 获取 Library ID
# 基础搜索
npx ctx7 library react