Initial commit
This commit is contained in:
50
commands/context7.md
Normal file
50
commands/context7.md
Normal file
@@ -0,0 +1,50 @@
|
||||
## 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 搜索等。
|
||||
Reference in New Issue
Block a user