Research Skill
Conduct comprehensive research on any topic with automatic source gathering, analysis, and response generation with citations.
Authentication
The script uses OAuth via the Tavily MCP server. No manual setup required - on first run, it will:
- 1. Check for existing tokens in INLINECODE0
- If none found, automatically open your browser for OAuth authentication
Note: You must have an existing Tavily account. The OAuth flow only supports login — account creation is not available through this flow. Sign up at tavily.com first if you don't have an account.
Alternative: API Key
If you prefer using an API key, get one at https://tavily.com and add to ~/.claude/settings.json:
CODEBLOCK0
Quick Start
Tip: Research can take 30-120 seconds. Press Ctrl+B to run in the background.
Using the Script
CODEBLOCK1
Examples:
CODEBLOCK2
Parameters
| Field | Type | Default | Description |
|---|
| INLINECODE2 | string | Required | Research topic or question |
| INLINECODE3 |
string |
"mini" | Model:
mini,
pro,
auto |
Model Selection
Rule of thumb: "what does X do?" -> mini. "X vs Y vs Z" or "best way to..." -> pro.
| Model | Use Case | Speed |
|---|
| INLINECODE8 | Single topic, targeted research | ~30s |
| INLINECODE9 |
Comprehensive multi-angle analysis | ~60-120s |
|
auto | API chooses based on complexity | Varies |
Examples
Quick Overview
CODEBLOCK3
Technical Comparison
CODEBLOCK4
Market Research
CODEBLOCK5
研究技能
对任意主题进行全面的研究,自动完成来源收集、分析并生成带引用的回答。
身份验证
脚本通过Tavily MCP服务器使用OAuth认证。无需手动设置——首次运行时,它将:
- 1. 检查~/.mcp-auth/中是否存在已有令牌
- 如果未找到,自动打开浏览器进行OAuth认证
注意: 您必须拥有一个Tavily账户。OAuth流程仅支持登录——无法通过此流程创建账户。如果您没有账户,请先在tavily.com注册。
备选方案:API密钥
如果您更倾向于使用API密钥,请前往https://tavily.com获取密钥,并添加到~/.claude/settings.json:
json
{
env: {
TAVILYAPIKEY: tvly-在此处输入您的API密钥
}
}
快速开始
提示:研究可能需要30-120秒。按Ctrl+B可在后台运行。
使用脚本
bash
./scripts/research.sh [输出文件]
示例:
bash
基础研究
./scripts/research.sh {input: 量子计算趋势}
使用专业模型进行综合分析
./scripts/research.sh {input: AI智能体对比, model: pro}
保存到文件
./scripts/research.sh {input: 电动汽车市场分析, model: pro} ./ev-report.md
快速定向研究
./scripts/research.sh {input: 气候变化影响, model: mini}
参数
| 字段 | 类型 | 默认值 | 描述 |
|---|
| input | 字符串 | 必填 | 研究主题或问题 |
| model |
字符串 | mini | 模型:mini、pro、auto |
模型选择
经验法则:X是做什么的? -> mini。X vs Y vs Z或做某事的最佳方法... -> pro。
| 模型 | 使用场景 | 速度 |
|---|
| mini | 单一主题、定向研究 | 约30秒 |
| pro |
全面的多角度分析 | 约60-120秒 |
| auto | API根据复杂度自动选择 | 视情况而定 |
示例
快速概览
bash
./scripts/research.sh {input: 什么是检索增强生成?, model: mini}
技术对比
bash
./scripts/research.sh {input: LangGraph与CrewAI在多智能体系统中的对比, model: pro}
市场研究
bash
./scripts/research.sh {input: 2025年金融科技创业格局, model: pro} fintech-report.md