deep-research
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseGemini Deep Research Skill
Gemini Deep Research Skill
Run autonomous research tasks that plan, search, read, and synthesize information into comprehensive reports.
运行可自主规划、搜索、阅读并将信息整合为全面报告的研究任务。
Requirements
要求
- Python 3.8+
- httpx:
pip install -r requirements.txt - GEMINI_API_KEY environment variable
- Python 3.8+
- httpx:执行安装
pip install -r requirements.txt - 需配置GEMINI_API_KEY环境变量
Setup
配置步骤
- Get a Gemini API key from Google AI Studio
- Set the environment variable:
Or create abash
export GEMINI_API_KEY=your-api-key-herefile in the skill directory..env
- 从Google AI Studio获取Gemini API密钥
- 设置环境变量:
或在技能目录下创建bash
export GEMINI_API_KEY=your-api-key-here文件。.env
Usage
使用方法
Start a research task
启动研究任务
bash
python3 scripts/research.py --query "Research the history of Kubernetes"bash
python3 scripts/research.py --query "Research the history of Kubernetes"With structured output format
指定结构化输出格式
bash
python3 scripts/research.py --query "Compare Python web frameworks" \
--format "1. Executive Summary\n2. Comparison Table\n3. Recommendations"bash
python3 scripts/research.py --query "Compare Python web frameworks" \
--format "1. Executive Summary\n2. Comparison Table\n3. Recommendations"Stream progress in real-time
实时流式查看进度
bash
python3 scripts/research.py --query "Analyze EV battery market" --streambash
python3 scripts/research.py --query "Analyze EV battery market" --streamStart without waiting
启动任务后无需等待
bash
python3 scripts/research.py --query "Research topic" --no-waitbash
python3 scripts/research.py --query "Research topic" --no-waitCheck status of running research
查看运行中任务的状态
bash
python3 scripts/research.py --status <interaction_id>bash
python3 scripts/research.py --status <interaction_id>Wait for completion
等待任务完成
bash
python3 scripts/research.py --wait <interaction_id>bash
python3 scripts/research.py --wait <interaction_id>Continue from previous research
基于已有研究继续跟进
bash
python3 scripts/research.py --query "Elaborate on point 2" --continue <interaction_id>bash
python3 scripts/research.py --query "Elaborate on point 2" --continue <interaction_id>List recent research
列出近期研究任务
bash
python3 scripts/research.py --listbash
python3 scripts/research.py --listOutput Formats
输出格式
- Default: Human-readable markdown report
- JSON (): Structured data for programmatic use
--json - Raw (): Unprocessed API response
--raw
- 默认格式:易读的Markdown报告
- JSON(参数):适用于程序化调用的结构化数据
--json - 原始格式(参数):未处理的API响应
--raw
Cost & Time
成本与耗时
| Metric | Value |
|---|---|
| Time | 2-10 minutes per task |
| Cost | $2-5 per task (varies by complexity) |
| Token usage | ~250k-900k input, ~60k-80k output |
| 指标 | 数值 |
|---|---|
| 耗时 | 每任务2-10分钟 |
| 成本 | 每任务2-5美元(随复杂度变化) |
| Token使用量 | 输入约25万-90万Token,输出约6万-8万Token |
Best Use Cases
最佳适用场景
- Market analysis and competitive landscaping
- Technical literature reviews
- Due diligence research
- Historical research and timelines
- Comparative analysis (frameworks, products, technologies)
- 市场分析与竞品格局分析
- 技术文献综述
- 尽职调查研究
- 历史研究与时间线梳理
- 对比分析(框架、产品、技术)
Workflow
工作流程
- User requests research → Run
--query "..." - Inform user of estimated time (2-10 minutes)
- Monitor with or poll with
--stream--status - Return formatted results
- Use for follow-up questions
--continue
- 用户发起研究请求 → 执行命令
--query "..." - 告知用户预估耗时(2-10分钟)
- 使用参数实时监控,或用
--stream参数轮询状态--status - 返回格式化结果
- 使用参数跟进后续问题
--continue
Exit Codes
退出码
- 0: Success
- 1: Error (API error, config issue, timeout)
- 130: Cancelled by user (Ctrl+C)
- 0:执行成功
- 1:执行错误(API错误、配置问题、超时)
- 130:用户取消(Ctrl+C)