research
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseResearch Skill
调研Skill
API Keys Required
需要配置API密钥
This skill works best with these optional API keys configured in :
~/.env| Feature | API Key | Get It From |
|---|---|---|
| Perplexity Research | | https://perplexity.ai/settings/api |
| Gemini Research | | https://aistudio.google.com/app/apikey |
Works without API keys:
- Claude-based research (uses built-in WebSearch)
- Basic web fetching (uses built-in WebFetch)
在中配置以下可选API密钥,可使本Skill发挥最佳效果:
~/.env| 功能 | API密钥 | 获取地址 |
|---|---|---|
| Perplexity调研 | | https://perplexity.ai/settings/api |
| Gemini调研 | | https://aistudio.google.com/app/apikey |
无需API密钥即可使用的功能:
- 基于Claude的调研(使用内置WebSearch工具)
- 基础网页抓取(使用内置WebFetch工具)
Workflow Routing
工作流路由
Multi-Source Research Workflows
多源调研工作流
When user requests comprehensive parallel research:
Examples: "do research on X", "research this topic", "find information about Y", "investigate this subject"
→ READ:
→ EXECUTE: Parallel multi-agent research using available researcher agents
${PAI_DIR}/skills/research/workflows/conduct.mdWhen user requests Claude-based research (FREE - no API keys):
Examples: "use claude for research", "claude research on X", "use websearch to research Y"
→ READ:
→ EXECUTE: Intelligent query decomposition with Claude's WebSearch
${PAI_DIR}/skills/research/workflows/claude-research.tsWhen user requests Perplexity research (requires PERPLEXITY_API_KEY):
Examples: "use perplexity to research X", "perplexity research on Y"
→ READ:
→ EXECUTE: Fast web search with query decomposition via Perplexity API
${PAI_DIR}/skills/research/workflows/perplexity-research.tsWhen user requests interview preparation:
Examples: "prepare interview questions for X", "interview research on Y"
→ READ:
→ EXECUTE: Interview prep with diverse question generation
${PAI_DIR}/skills/research/workflows/interview-research.md当用户请求全面并行调研时:
示例:"调研X主题"、"对该话题开展调研"、"查找关于Y的信息"、"调查此主题"
→ 读取:
→ 执行: 使用可用的调研Agent启动多Agent并行调研
${PAI_DIR}/skills/research/workflows/conduct.md当用户请求基于Claude的调研(免费,无需API密钥):
示例:"用Claude调研"、"Claude调研X"、"用WebSearch调研Y"
→ 读取:
→ 执行: 借助Claude的WebSearch工具进行智能查询分解
${PAI_DIR}/skills/research/workflows/claude-research.ts当用户请求基于Perplexity的调研(需PERPLEXITY_API_KEY):
示例:"用Perplexity调研X"、"Perplexity调研Y"
→ 读取:
→ 执行: 通过Perplexity API实现快速网页搜索与查询分解
${PAI_DIR}/skills/research/workflows/perplexity-research.ts当用户请求面试准备时:
示例:"为X岗位准备面试问题"、"针对Y主题做面试调研"
→ 读取:
→ 执行: 生成多样化问题,完成面试准备
${PAI_DIR}/skills/research/workflows/interview-research.mdContent Retrieval Workflows
内容检索工作流
When user indicates difficulty accessing content:
Examples: "can't get this content", "site is blocking me", "CAPTCHA blocking"
→ READ:
→ EXECUTE: Content retrieval via WebFetch
${PAI_DIR}/skills/research/workflows/retrieve.mdWhen user provides YouTube URL:
Examples: "get this youtube video", "extract from youtube URL"
→ READ:
→ EXECUTE: YouTube content extraction
${PAI_DIR}/skills/research/workflows/youtube-extraction.mdWhen user requests web scraping:
Examples: "scrape this site", "extract data from this website"
→ READ:
→ EXECUTE: Web scraping techniques and tools
${PAI_DIR}/skills/research/workflows/web-scraping.md当用户表示无法访问内容时:
示例:"无法获取此内容"、"网站限制访问"、"验证码拦截"
→ 读取:
→ 执行: 通过WebFetch工具检索内容
${PAI_DIR}/skills/research/workflows/retrieve.md当用户提供YouTube链接时:
示例:"获取该YouTube视频内容"、"从YouTube链接提取信息"
→ 读取:
→ 执行: YouTube内容提取
${PAI_DIR}/skills/research/workflows/youtube-extraction.md当用户请求网页爬取时:
示例:"爬取该网站"、"从该网站提取数据"
→ 读取:
→ 执行: 使用网页爬取技术与工具
${PAI_DIR}/skills/research/workflows/web-scraping.mdContent Enhancement Workflows
内容增强工作流
When user requests content enhancement:
Examples: "enhance this content", "improve this draft"
→ READ:
→ EXECUTE: Content improvement and refinement
${PAI_DIR}/skills/research/workflows/enhance.mdWhen user requests knowledge extraction:
Examples: "extract knowledge from X", "get insights from this"
→ READ:
→ EXECUTE: Knowledge extraction and synthesis
${PAI_DIR}/skills/research/workflows/extract-knowledge.md当用户请求内容优化时:
示例:"优化此内容"、"改进这份草稿"
→ 读取:
→ 执行: 内容优化与精炼
${PAI_DIR}/skills/research/workflows/enhance.md当用户请求知识提取时:
示例:"从X提取知识"、"从此内容获取洞见"
→ 读取:
→ 执行: 知识提取与整合
${PAI_DIR}/skills/research/workflows/extract-knowledge.mdMulti-Source Research
多源调研
Three Research Modes
三种调研模式
QUICK RESEARCH MODE:
- User says "quick research" → Launch 1 agent per researcher type
- Timeout: 2 minutes
- Best for: Simple queries, straightforward questions
STANDARD RESEARCH MODE (Default):
- Default for most research requests → Launch 3 agents per researcher type
- Timeout: 3 minutes
- Best for: Most research needs, comprehensive coverage
EXTENSIVE RESEARCH MODE:
- User says "extensive research" → Launch 8 agents per researcher type
- Timeout: 10 minutes
- Best for: Deep-dive research, comprehensive reports
快速调研模式:
- 用户输入"快速调研" → 为每种类型的调研工具启动1个Agent
- 超时时间:2分钟
- 适用场景:简单查询、直接性问题
标准调研模式(默认):
- 大多数调研请求的默认模式 → 为每种类型的调研工具启动3个Agent
- 超时时间:3分钟
- 适用场景:多数调研需求、全面覆盖主题
深度调研模式:
- 用户输入"深度调研" → 为每种类型的调研工具启动8个Agent
- 超时时间:10分钟
- 适用场景:深度调研、生成全面报告
Available Research Agents
可用调研Agent
Check for agents with "researcher" in their name:
${PAI_DIR}/agents/- - Uses Claude's WebSearch (FREE, no API key needed)
claude-researcher - - Uses Perplexity API (requires PERPLEXITY_API_KEY)
perplexity-researcher - - Uses Gemini API (requires GOOGLE_API_KEY)
gemini-researcher
在目录下查找名称含"researcher"的Agent:
${PAI_DIR}/agents/- - 使用Claude内置WebSearch工具(免费,无需API密钥)
claude-researcher - - 使用Perplexity API(需PERPLEXITY_API_KEY)
perplexity-researcher - - 使用Gemini API(需GOOGLE_API_KEY)
gemini-researcher
Speed Benefits
速度优势
- ❌ Old approach: Sequential searches → 5-10 minutes
- ✅ Quick mode: 1 agent per type → 2 minute timeout
- ✅ Standard mode: 3 agents per type → 3 minute timeout
- ✅ Extensive mode: 8 agents per type → 10 minute timeout
- ❌ 旧方案: 串行搜索 → 耗时5-10分钟
- ✅ 快速模式: 每种类型1个Agent → 2分钟超时
- ✅ 标准模式: 每种类型3个Agent → 3分钟超时
- ✅ 深度模式: 每种类型8个Agent → 10分钟超时
Intelligent Content Retrieval
智能内容检索
Three-Layer Escalation System
三层递进检索体系
Layer 1: Built-in Tools (Try First - FREE)
- WebFetch - Standard web content fetching
- WebSearch - Search engine queries
- When to use: Default for all content retrieval
Critical Rules:
- Always try simplest approach first (Layer 1)
- Escalate only when previous layer fails
- Document which layers were used and why
第一层:内置工具(优先尝试 - 免费)
- WebFetch - 标准网页内容抓取
- WebSearch - 搜索引擎查询
- 适用场景:所有内容检索的默认选项
核心规则:
- 始终优先尝试最简单的方案(第一层)
- 仅当前一层失败时,才升级到下一层
- 记录使用的层级及原因
File Organization
文件组织
Working Directory (Scratchpad)
工作目录(临时草稿区)
${PAI_DIR}/scratchpad/YYYY-MM-DD-HHMMSS_research-[topic]/
├── raw-outputs/
├── synthesis-notes.md
└── draft-report.md${PAI_DIR}/scratchpad/YYYY-MM-DD-HHMMSS_research-[topic]/
├── raw-outputs/
├── synthesis-notes.md
└── draft-report.mdPermanent Storage (History)
永久存储(历史记录)
${PAI_DIR}/history/research/YYYY-MM/YYYY-MM-DD_[topic]/
├── README.md
├── research-report.md
└── metadata.json${PAI_DIR}/history/research/YYYY-MM/YYYY-MM-DD_[topic]/
├── README.md
├── research-report.md
└── metadata.jsonKey Principles
核心原则
- Parallel execution - Launch multiple agents simultaneously
- Hard timeouts - Don't wait indefinitely, proceed with partial results
- Simplest first - Always try free tools before paid services
- Auto-routing - Skill analyzes intent and activates appropriate workflow
- 并行执行 - 同时启动多个Agent
- 强制超时 - 不无限等待,基于部分结果推进
- 从简原则 - 优先使用免费工具,再尝试付费服务
- 自动路由 - Skill分析用户意图并激活对应工作流
WebSearch Tool Usage
WebSearch工具使用指南
Built-in Web Search (FREE)
内置Web搜索(免费)
Claude Code includes a built-in WebSearch tool for real-time web queries.
When to Use:
- Current events and recent information
- Documentation and API references
- Pricing, availability, status checks
- Fact verification beyond training data
Best Practices:
typescript
// Include year for recent info
WebSearch({ query: "Next.js 15 features 2024" })
// Be specific
WebSearch({ query: "TypeScript 5.4 satisfies operator examples" })
// Use domain filtering for trusted sources
WebSearch({
query: "React hooks best practices",
allowed_domains: ["react.dev", "kentcdodds.com"]
})Query Optimization:
- Include year: "React Server Components 2024"
- Be specific: "Bun vs Node.js benchmark comparison"
- Use domain filters: Focus on official docs or trusted sources
Source Citation:
Always cite sources in research output:
markdown
undefinedClaude Code内置WebSearch工具,支持实时网页查询。
适用场景:
- 时事与近期资讯
- 文档与API参考
- 价格、可用性、状态查询
- 训练数据之外的事实验证
最佳实践:
typescript
// 针对近期信息,需包含年份
WebSearch({ query: "Next.js 15 features 2024" })
// 查询需具体
WebSearch({ query: "TypeScript 5.4 satisfies operator examples" })
// 限制域名,仅从可信来源获取信息
WebSearch({
query: "React hooks best practices",
allowed_domains: ["react.dev", "kentcdodds.com"]
})查询优化技巧:
- 包含年份:"React Server Components 2024"
- 明确具体:"Bun vs Node.js benchmark comparison"
- 使用域名过滤:聚焦官方文档或可信来源
来源引用:
调研输出中需始终标注来源:
markdown
undefinedSources
参考来源
undefinedWebSearch vs WebFetch
WebSearch与WebFetch对比
| Need | Tool |
|---|---|
| Search for information | WebSearch |
| Get specific page content | WebFetch |
| Multiple search results | WebSearch |
| Full article extraction | WebFetch |
| 需求 | 工具 |
|---|---|
| 搜索信息 | WebSearch |
| 获取特定页面内容 | WebFetch |
| 多搜索结果 | WebSearch |
| 全文提取 | WebFetch |
Integration with Research Workflows
与调研工作流的整合
WebSearch is the foundation of agent:
claude-researcher- Query decomposition into sub-queries
- Parallel WebSearch calls
- Result synthesis
- Source attribution
WebSearch是 Agent的核心:
claude-researcher- 将查询分解为子查询
- 并行调用WebSearch
- 整合搜索结果
- 标注来源
Workflow Files
工作流文件列表
| Workflow | File | API Keys Needed |
|---|---|---|
| Multi-Source Research | | Varies by agent |
| Claude Research | | None (FREE) |
| Perplexity Research | | PERPLEXITY_API_KEY |
| Interview Prep | | None |
| Content Retrieval | | None |
| YouTube Extraction | | None |
| Web Scraping | | None |
| Content Enhancement | | None |
| Knowledge Extraction | | None |
| 工作流 | 文件 | 是否需要API密钥 |
|---|---|---|
| 多源调研 | | 依使用的Agent而定 |
| Claude调研 | | 无需(免费) |
| Perplexity调研 | | 需要PERPLEXITY_API_KEY |
| 面试准备 | | 无需 |
| 内容检索 | | 无需 |
| YouTube内容提取 | | 无需 |
| 网页爬取 | | 无需 |
| 内容增强 | | 无需 |
| 知识提取 | | 无需 |