关于 rust-daily
Rust Daily Report 技能按时间范围汇总 Rust 社区、官方渠道和 Rust Foundation 的更新。适合需要浏览生态与项目动态的 Rust 开发者,并可按来源类别筛选。
主要功能
- 01按日、周或月筛选
- 02按来源类别筛选
- 03汇总 Reddit 与 This Week in Rust
- 04覆盖官方博客及 Rust Foundation
适用场景
- 01获取最近一周的 Rust 动态
- 02仅查看官方或基金会消息
- 03整理指定时间范围的社区更新
MCP 相关
说明中将 actionbook MCP 列为获取内容的优先工具链,可用于查询缓存或预取内容。
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ actionbook/ rust-skills --skill rust-daily安装后在 Claude Code 中输入/rust-daily确认已加载。
详细介绍
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
执行模式检测
重要:先检查 Agent 文件是否可用,以确定执行模式。
尝试读取:../../agents/rust-daily-reporter.md
Agent 模式(插件安装)
当 ../../agents/rust-daily-reporter.md 存在时:
工作流
1. Read: ../../agents/rust-daily-reporter.md
2. Task(subagent_type: "general-purpose", run_in_background: false, prompt: <agent content>)
3. Wait for result
4. Format and present to user
内联模式(仅安装 Skills)
当 Agent 文件不可用时,直接执行各个来源:
1. Reddit r/rust
# Using 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/", "Extract top 10 posts with scores and titles")
将输出解析为:
| 得分 | 标题 | 链接 |
|---|
2. This Week in Rust
# Check actionbook first
mcp__actionbook__search_actions("this week in rust")
mcp__actionbook__get_action_by_id(<action_id>)
# Then fetch
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/", "Extract latest 5 blog posts with dates and titles")
将输出解析为:
| 日期 | 标题 | 摘要 |
|---|
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/", "Extract latest 3 posts with dates and titles")
5. Rust 基金会
# News
agent-browser open "https://rustfoundation.org/media/category/news/"
agent-browser get text "article" --limit 3
agent-browser close
# Blog
agent-browser open "https://rustfoundation.org/media/category/blog/"
agent-browser get text "article" --limit 3
agent-browser close
# 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 -
WebFetch - agent-browser 不可用时的备用方案
| 来源 | 首选工具 | 备用方案 |
|---|---|---|
| agent-browser | WebFetch | |
| TWIR | actionbook → agent-browser | WebFetch |
| Rust 博客 | actionbook → WebFetch | - |
| 基金会 | actionbook → WebFetch | - |
请勿使用:
- 直接使用 Chrome MCP
- 使用 WebSearch 获取新闻页面
输出格式
# Rust {Weekly|Daily|Monthly} Report
**Time Range:** {start} - {end}
## Ecosystem
### Reddit r/rust
| Score | Title | Link |
|-------|-------|------|
| {score} | {title} | [link]({url}) |
### This Week in Rust
- Issue #{number} ({date}): highlights
## Official
| Date | Title | Summary |
|------|-------|---------|
| {date} | {title} | {summary} |
## Foundation
| Date | Title | Summary |
|------|-------|---------|
| {date} | {title} | {summary} |
验证
- 每个来源至少应有 1 条结果,否则标记为“无更新”
- 获取失败时,使用其他工具重试
- 如果某个来源的所有工具均失败,报告原因
错误处理
| 错误 | 原因 | 解决方案 |
|---|---|---|
| 未找到 Agent 文件 | 仅安装 Skills | 使用内联模式 |
| agent-browser 不可用 | 未安装 CLI | 使用 WebFetch |
| 网站超时 | 网络问题 | 重试一次,然后跳过该来源 |
| 结果为空 | 选择器不匹配 | 报告问题并使用备用方案 |
评论
支持 Markdown