Files
gh-wasabeef-claude-code-coo…/commands/context7.md
2025-11-30 09:05:49 +08:00

51 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
## Context7
使用 MCP 的 Context7 搜索技術文檔。
### 使用方法
```bash
# 以請求 Claude 的形式
"用 context7 搜索 [搜索關鍵詞]"
```
### 基本示例
```bash
# React hooks 調研
"用 context7 搜索 React hooks"
# 錯誤解決方法搜索
"用 context7 查找 TypeScript 的類型錯誤"
```
### 與 Claude 的協作
```bash
# 技術調研請求
"用 context7 查找 Rust 的所有權系統,並以初學者友好的方式解釋"
# 錯誤解決請求
"用 context7 搜索 Python 的 ImportError 常見原因和解決方法"
# 最佳實践確認
"用 context7 查找 React 性能優化的最佳實践"
```
### 詳细示例
```bash
# 從多個角度調研
"用 context7 從以下角度調研 GraphQL
1. 基本概念和與 REST API 的區別
2. 實現方法和最佳實践
3. 常見問題和解決方法"
# 特定版本或環境的調研
"用 context7 搜索 Next.js 14 的新功能,重點說明 App Router 的使用方法"
```
### 注意事項
如果 Context7 找不到資訊Claude 會自動建議其他方法,如 Web 搜索等。