Rust每日报告 rust-daily

这是一个Rust编程语言社区动态聚合工具,能够自动抓取和整理Rust相关的新闻、博客、周报和社区讨论。支持按日、周、月时间范围筛选,从Reddit、官方博客、Rust基金会等多个权威来源聚合信息,为Rust开发者提供一站式社区动态追踪服务。关键词:Rust编程,社区动态,技术新闻,开发工具,开源社区,Rust日报,Rust周报,TWIR,Reddit r/rust,Rust基金会

后端开发 0 次安装 0 次浏览 更新于 2/27/2026

name: rust-daily description: | 关键:用于Rust新闻和每日/每周/月度报告。触发条件: rust新闻, rust每日, rust每周, TWIR, rust博客, Rust日报, Rust周报, Rust新闻, Rust动态 argument-hint: “[today|week|month]” context: fork agent: Explore

Rust每日报告

版本: 2.1.0 | 最后更新: 2025-01-27

获取Rust社区更新,按时间范围筛选。

数据源

类别 来源
生态系统 Reddit r/rust, This Week in Rust
官方 blog.rust-lang.org, Inside Rust
基金会 rustfoundation.org (新闻, 博客, 活动)

参数

  • time_range: day | week | month (默认: week)
  • category: all | ecosystem | official | foundation

执行模式检测

关键:首先检查代理文件可用性以确定执行模式。

尝试读取:../../agents/rust-daily-reporter.md


代理模式(插件安装)

../../agents/rust-daily-reporter.md存在时:

工作流程

1. 读取:../../agents/rust-daily-reporter.md
2. 任务(子代理类型: "general-purpose", 后台运行: false, 提示: <代理内容>)
3. 等待结果
4. 格式化并呈现给用户

内联模式(仅技能安装)

当代理文件不可用时,直接执行每个源:

1. Reddit r/rust

# 使用agent-browser CLI
agent-browser open "https://www.reddit.com/r/rust/hot/"
agent-browser get text ".Post" --limit 10
agent-browser close

或使用WebFetch回退:

WebFetch("https://www.reddit.com/r/rust/hot/", "提取前10个帖子的分数和标题")

解析输出为:

分数 标题 链接

2. This Week in Rust

# 首先检查actionbook
mcp__actionbook__search_actions("this week in rust")
mcp__actionbook__get_action_by_id(<action_id>)

# 然后获取
agent-browser open "https://this-week-in-rust.org/"
agent-browser get text "<selector_from_actionbook>"
agent-browser close

解析输出为:

  • 第{number}期 ({date}): 亮点

3. Rust博客(官方)

agent-browser open "https://blog.rust-lang.org/"
agent-browser get text "article" --limit 5
agent-browser close

或使用WebFetch回退:

WebFetch("https://blog.rust-lang.org/", "提取最新5篇博客文章的日期和标题")

解析输出为:

日期 标题 摘要

4. Inside Rust

agent-browser open "https://blog.rust-lang.org/inside-rust/"
agent-browser get text "article" --limit 3
agent-browser close

或使用WebFetch回退:

WebFetch("https://blog.rust-lang.org/inside-rust/", "提取最新3篇文章的日期和标题")

5. Rust基金会

# 新闻
agent-browser open "https://rustfoundation.org/media/category/news/"
agent-browser get text "article" --limit 3
agent-browser close

# 博客
agent-browser open "https://rustfoundation.org/media/category/blog/"
agent-browser get text "article" --limit 3
agent-browser close

# 活动
agent-browser open "https://rustfoundation.org/events/"
agent-browser get text "article" --limit 3
agent-browser close

时间筛选

获取所有源后,按时间范围筛选:

范围 筛选
day 最近24小时
week 最近7天
month 最近30天

合并结果

获取所有源后,合并为以下输出格式。


工具链优先级

两种模式使用相同的工具链顺序:

  1. actionbook MCP - 首先检查缓存/预获取内容

    mcp__actionbook__search_actions("rust新闻{日期}")
    mcp__actionbook__search_actions("this week in rust")
    mcp__actionbook__search_actions("rust博客")
    
  2. agent-browser CLI - 用于动态网页内容

    agent-browser open "<url>"
    agent-browser get text "<selector>"
    agent-browser close
    
  3. WebFetch - 如果agent-browser不可用则回退

主要工具 回退
Reddit agent-browser WebFetch
TWIR actionbook → agent-browser WebFetch
Rust博客 actionbook → WebFetch -
基金会 actionbook → WebFetch -

不要使用:

  • 直接使用Chrome MCP
  • 使用WebSearch获取新闻页面

输出格式

# Rust {每周|每日|月度}报告

**时间范围:** {开始} - {结束}

## 生态系统

### Reddit r/rust
| 分数 | 标题 | 链接 |
|-------|-------|------|
| {分数} | {标题} | [链接]({url}) |

### This Week in Rust
- 第{number}期 ({date}): 亮点

## 官方
| 日期 | 标题 | 摘要 |
|------|-------|---------|
| {日期} | {标题} | {摘要} |

## 基金会
| 日期 | 标题 | 摘要 |
|------|-------|---------|
| {日期} | {标题} | {摘要} |

验证

  • 每个源应至少有1个结果,否则标记“无更新”
  • 获取失败时,使用替代工具重试
  • 如果某个源的所有工具都失败,报告原因

错误处理

错误 原因 解决方案
代理文件未找到 仅技能安装 使用内联模式
agent-browser不可用 CLI未安装 使用WebFetch
网站超时 网络问题 重试一次,然后跳过源
空结果 选择器不匹配 报告并使用回退