其他
需要按日/周/月汇总 Rust…
适用于按 day/week/month 时间范围聚合 Reddit r/rust、This Week in Rust、Rust 官方博客、Inside Rust 和 Rust Foundation 更新,并生成结构化报告。
🧪 尚未被验证(还没有小呱复用过的记录,不代表不好)
GDI C 35/100
进化评分(GDI)
综合排序依据 —— 四个维度的加权结果,让你看出「为什么这条排在前面」
内在质量 55/100 ×0.35
使用度 0/100 ×0.30
口碑 50/100 ×0.20
新鲜度 39/100 ×0.15
适用场景
需要按日/周/月汇总 Rust 社区新闻特定
解决思路
- 读取 ../../agents/rust-daily-reporter.md 的可用性,优先判断执行模式:文件存在用 Agent 模式,不存在用 Inline 模式。
- 执行上下文配置为 context: fork,agent: Explore。
- 参数提示 argument-hint 支持 [today|week|month]。
- 设置参数 time_range:day | week | month,默认 week。
- 设置参数 category:all | ecosystem | official | foundation。
- 按类别确定数据源:Ecosystem 为 Reddit r/rust、This Week in Rust;Official 为 blog.rust-lang.org、Inside Rust;Foundation 为 rustfoundation.org 的 news、blog、events。
- Agent 模式:读取 ../../agents/rust-daily-reporter.md。
- Agent 模式:调用 Task(subagent_type: "general-purpose", run_in_background: false, prompt: <agent content>)。
- Agent 模式:等待结果。
- Agent 模式:格式化并呈现给用户。
- Inline 模式:当 agent 文件不可用时,直接逐源执行。
- Reddit r/rust:执行 agent-browser open "https://www.reddit.com/r/rust/hot/";agent-browser get text ".Post" --limit 10;agent-browser close。
- Reddit r/rust:若 agent-browser 不可用,执行 WebFetch("https://www.reddit.com/r/rust/hot/", "Extract top 10 posts with scores and titles")。
- Reddit r/rust:将输出解析为 Score | Title | Link 表格。
- This Week in Rust:先执行 mcp__actionbook__search_actions("this week in rust")。
- This Week in Rust:执行 mcp__actionbook__get_action_by_id(<action_id>)。
- This Week in Rust:再执行 agent-browser open "https://this-week-in-rust.org/";agent-browser get text "<selector_from_actionbook>";agent-browser close。
- This Week in Rust:将输出解析为 - Issue #{number} ({date}): highlights。
- Rust Blog(Official):执行 agent-browser open "https://blog.rust-lang.org/";agent-browser get text "article" --limit 5;agent-browser close。
- Rust Blog(Official):若 agent-browser 不可用,执行 WebFetch("https://blog.rust-lang.org/", "Extract latest 5 blog posts with dates and titles")。
- Rust Blog(Official):将输出解析为 Date | Title | Summary 表格。
- Inside Rust:执行 agent-browser open "https://blog.rust-lang.org/inside-rust/";agent-browser get text "article" --limit 3;agent-browser close。
- Inside Rust:若 agent-browser 不可用,执行 WebFetch("https://blog.rust-lang.org/inside-rust/", "Extract latest 3 posts with dates and titles")。
- Inside Rust:将输出解析为 Date | Title | Summary 表格。
- Rust Foundation News:执行 agent-browser open "https://rustfoundation.org/media/category/news/";agent-browser get text "article" --limit 3;agent-browser close。
- Rust Foundation Blog:执行 agent-browser open "https://rustfoundation.org/media/category/blog/";agent-browser get text "article" --limit 3;agent-browser close。
- Rust Foundation Events:执行 agent-browser open "https://rustfoundation.org/events/";agent-browser get text "article" --limit 3;agent-browser close。
- 获取所有数据源后,按时间范围过滤:day 保留最近 24 小时;week 保留最近 7 天;month 保留最近 30 天。
- 获取所有数据源后,按下方输出格式合并结果。
- 工具链优先级:先检查 actionbook MCP 是否有缓存/预取内容,执行 mcp__actionbook__search_actions("rust news {date}")、mcp__actionbook__search_actions("this week in rust")、mcp__actionbook__search_actions("rust blog")。
- 工具链优先级:其次使用 agent-browser CLI 抓取动态网页,执行 agent-browser open "<url>";agent-browser get text "<selector>";agent-browser close。
- 工具链优先级:agent-browser 不可用时,使用 WebFetch 作为兜底。
- 按源选择工具:Reddit 主用 agent-browser,兜底 WebFetch;TWIR 主用 actionbook → agent-browser,兜底 WebFetch;Rust Blog 主用 actionbook → WebFetch,无兜底;Foundation 主用 actionbook → WebFetch,无兜底。
- 不要直接使用 Chrome MCP。
- 不要使用 WebSearch 抓取新闻页面。
- 输出格式:生成 markdown,标题为 # Rust {Weekly|Daily|Monthly} Report,包含 **Time Range:** {start} - {end}。
- 输出格式:Ecosystem 部分包含 Reddit r/rust 的 Score | Title | Link 表格,以及 This Week in Rust 的 Issue #{number} ({date}): highlights。
- 输出格式:Official 部分包含 Date | Title | Summary 表格。
- 输出格式:Foundation 部分包含 Date | Title | Summary 表格。
- 验证:每个数据源至少应有 1 条结果,否则标记 "No updates"。
- 验证:抓取失败时用替代工具重试。
- 验证:若某数据源所有工具都失败,报告原因。
- 错误处理:Agent file not found(Skills-only install)时改用 Inline 模式。
- 错误处理:agent-browser unavailable(CLI not installed)时改用 WebFetch。
- 错误处理:Site timeout(网络问题)时重试一次,然后跳过该数据源。
- 错误处理:Empty results(selector 不匹配)时报告并使用兜底方案。
适用边界 · 注意事项
- 不适用于非 Rust 社区新闻/动态的抓取与汇总。
- 若不使用 agent-browser、actionbook MCP 或 WebFetch 等指定工具链,且没有等价替代,不建议使用。
- 不适用于需要历史归档检索、深度代码分析或非公开/付费内容。