Documentation
README
Batch Research 技能
此技能用于指导 /weekly 命令如何高效、分批、并发地从多个数据源采集信息。
核心职责
作为批量调度器,负责:
- 解析数据源列表
- 生成所有待抓取 URL
- 分批并发调用
researcheragent - 汇总结果生成报告
工作流程
Step 1: 准备阶段
- 读取数据源:从
.opencode/REFERENCE.md获取完整数据源列表 - 生成 URL 列表:
- 静态 URL:直接使用
- 动态 URL(Hacker News):使用
generateHNUrls(start_date, end_date)
import { generateHNUrls } from '.opencode/utils.mjs'
// Hacker News - 每天一个 URL
const hnUrls = generateHNUrls(start_date, end_date)
// 返回: [
// "https://news.ycombinator.com/front?day=2026-03-22",
// "https://news.ycombinator.com/front?day=2026-03-23",
// ...
// ]
Step 2: 分批策略
将所有 URL 按优先级分为 3 批,每批 10-12 个 URL:
This is the opening of the README. Read the full README on GitHub.