# Context7

> Library documentation query via ctx7 CLI with deepwiki fallback

- Skill: `wenjunduan/context7-9` (Agent Skill)
- Install (CLI): `npx skillmds@latest add wenjunduan/context7-9`
- Raw SKILL.md: https://api.skillmd.com/api/skills/wenjunduan/context7-9/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Docs & Writing
- Author: wenjunduan (https://skillmd.com/u/wenjunduan)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/wenjunduan/context7-9

---


# Context7 (库文档查询)

## 工具

| 工具 | 类型 | 用法 | 调用方式 |
|:---|:---|:---|:---|
| ctx7 CLI | NPX | 搜索和查询库文档 | `npx ctx7 search/docs` |
| deepwiki | MCP | 架构/设计模式 | `deepwiki.query("主题")` |

## 触发条件

E 阶段检测到外部库/框架使用时按需激活。

## 用法

```bash
npx ctx7 search "react hooks"
npx ctx7 docs react --topic="useState"
npx ctx7 docs next@14 --topic="app router"
```

## 降级链

ctx7 → deepwiki → Web 搜索。

