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