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-your-api-key-here
}
}
快速开始
提示:研究可能需要30-120秒。按Ctrl+B可在后台运行。
使用脚本
bash
./scripts/research.sh [output_file]
示例:
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