rust-daily
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseRust Daily Report
Rust 日报
Version: 2.1.0 | Last Updated: 2025-01-27
Fetch Rust community updates, filtered by time range.
版本: 2.1.0 | 最后更新: 2025-01-27
获取Rust社区动态,可按时间范围筛选。
Data Sources
数据源
| Category | Sources |
|---|---|
| Ecosystem | Reddit r/rust, This Week in Rust |
| Official | blog.rust-lang.org, Inside Rust |
| Foundation | rustfoundation.org (news, blog, events) |
| 分类 | 来源 |
|---|---|
| 生态 | Reddit r/rust, This Week in Rust |
| 官方 | blog.rust-lang.org, Inside Rust |
| 基金会 | rustfoundation.org (新闻、博客、活动) |
Parameters
参数
- : day | week | month (default: week)
time_range - : all | ecosystem | official | foundation
category
- : day | week | month(默认:week)
time_range - : all | ecosystem | official | foundation
category
Execution Mode Detection
执行模式检测
CRITICAL: Check agent file availability first to determine execution mode.
Try to read:
../../agents/rust-daily-reporter.md重要提示:请首先检查Agent文件是否存在以确定执行模式。
尝试读取:
../../agents/rust-daily-reporter.mdAgent Mode (Plugin Install)
Agent 模式(已安装插件)
When exists:
../../agents/rust-daily-reporter.md当存在时:
../../agents/rust-daily-reporter.mdWorkflow
工作流
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 user1. 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 userInline Mode (Skills-only Install)
内联模式(仅安装技能)
When agent file is NOT available, execute each source directly:
当Agent文件不存在时,直接执行每个来源的抓取逻辑:
1. Reddit r/rust
1. Reddit r/rust
bash
undefinedbash
undefinedUsing agent-browser CLI
Using agent-browser CLI
agent-browser open "https://www.reddit.com/r/rust/hot/"
agent-browser get text ".Post" --limit 10
agent-browser close
**Or with WebFetch fallback:**WebFetch("https://www.reddit.com/r/rust/hot/", "Extract top 10 posts with scores and titles")
**Parse output into:**
| Score | Title | Link |
|-------|-------|------|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
2. This Week in Rust
bash
undefinedbash
undefinedCheck actionbook first
Check actionbook first
mcp__actionbook__search_actions("this week in rust")
mcp__actionbook__get_action_by_id(<action_id>)
mcp__actionbook__search_actions("this week in rust")
mcp__actionbook__get_action_by_id(<action_id>)
Then fetch
Then fetch
agent-browser open "https://this-week-in-rust.org/"
agent-browser get text "<selector_from_actionbook>"
agent-browser close
**Parse output into:**
- Issue #{number} ({date}): highlightsagent-browser open "https://this-week-in-rust.org/"
agent-browser get text "<selector_from_actionbook>"
agent-browser close
**将输出解析为如下格式:**
- 第#{number}期 ({date}): 亮点内容3. Rust Blog (Official)
3. Rust 官方博客
bash
agent-browser open "https://blog.rust-lang.org/"
agent-browser get text "article" --limit 5
agent-browser closeOr with WebFetch fallback:
WebFetch("https://blog.rust-lang.org/", "Extract latest 5 blog posts with dates and titles")Parse output into:
| Date | Title | Summary |
|---|
bash
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
4. Inside Rust
bash
agent-browser open "https://blog.rust-lang.org/inside-rust/"
agent-browser get text "article" --limit 3
agent-browser closeOr with WebFetch fallback:
WebFetch("https://blog.rust-lang.org/inside-rust/", "Extract latest 3 posts with dates and titles")bash
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 Foundation
5. Rust 基金会
bash
undefinedbash
undefinedNews
新闻
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/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
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
undefinedagent-browser open "https://rustfoundation.org/events/"
agent-browser get text "article" --limit 3
agent-browser close
undefinedTime Filtering
时间筛选
After fetching all sources, filter by time range:
| Range | Filter |
|---|---|
| day | Last 24 hours |
| week | Last 7 days |
| month | Last 30 days |
抓取完所有来源内容后,按时间范围筛选:
| 范围 | 筛选规则 |
|---|---|
| 天 | 过去24小时 |
| 周 | 过去7天 |
| 月 | 过去30天 |
Combining Results
结果合并
After fetching all sources, combine into the output format below.
抓取完所有来源内容后,合并为如下输出格式。
Tool Chain Priority
工具链优先级
Both modes use the same tool chain order:
-
actionbook MCP - Check for cached/pre-fetched content first
mcp__actionbook__search_actions("rust news {date}") mcp__actionbook__search_actions("this week in rust") mcp__actionbook__search_actions("rust blog") -
agent-browser CLI - For dynamic web contentbash
agent-browser open "<url>" agent-browser get text "<selector>" agent-browser close -
WebFetch - Fallback if agent-browser unavailable
| Source | Primary Tool | Fallback |
|---|---|---|
| agent-browser | WebFetch | |
| TWIR | actionbook → agent-browser | WebFetch |
| Rust Blog | actionbook → WebFetch | - |
| Foundation | actionbook → WebFetch | - |
DO NOT use:
- Chrome MCP directly
- WebSearch for fetching news pages
两种模式使用相同的工具链顺序:
-
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 - 用于抓取动态网页内容bash
agent-browser open "<url>" agent-browser get text "<selector>" agent-browser close -
WebFetch - agent-browser不可用时的备选方案
| 来源 | 首选工具 | 备选工具 |
|---|---|---|
| agent-browser | WebFetch | |
| TWIR | actionbook → agent-browser | WebFetch |
| Rust Blog | actionbook → WebFetch | - |
| Foundation | actionbook → WebFetch | - |
禁止使用:
- 直接调用Chrome MCP
- 使用WebSearch抓取新闻页面
Output Format
输出格式
markdown
undefinedmarkdown
undefinedRust {Weekly|Daily|Monthly} Report
Rust {Weekly|Daily|Monthly} Report
Time Range: {start} - {end}
Time Range: {start} - {end}
Ecosystem
Ecosystem
Reddit r/rust
Reddit r/rust
| Score | Title | Link |
|---|---|---|
| {score} | {title} | link |
| Score | Title | Link |
|---|---|---|
| {score} | {title} | link |
This Week in Rust
This Week in Rust
- Issue #{number} ({date}): highlights
- Issue #{number} ({date}): highlights
Official
Official
| Date | Title | Summary |
|---|---|---|
| {date} | {title} | {summary} |
| Date | Title | Summary |
|---|---|---|
| {date} | {title} | {summary} |
Foundation
Foundation
| Date | Title | Summary |
|---|---|---|
| {date} | {title} | {summary} |
---| Date | Title | Summary |
|---|---|---|
| {date} | {title} | {summary} |
---Validation
校验规则
- Each source should have at least 1 result, otherwise mark "No updates"
- On fetch failure, retry with alternative tool
- Report reason if all tools fail for a source
- 每个来源至少要有1条结果,否则标记为「暂无更新」
- 抓取失败时,使用备选工具重试
- 若某个来源的所有工具都抓取失败,需报告失败原因
Error Handling
错误处理
| Error | Cause | Solution |
|---|---|---|
| Agent file not found | Skills-only install | Use inline mode |
| agent-browser unavailable | CLI not installed | Use WebFetch |
| Site timeout | Network issues | Retry once, then skip source |
| Empty results | Selector mismatch | Report and use fallback |
| 错误 | 原因 | 解决方案 |
|---|---|---|
| 未找到Agent文件 | 仅安装了技能 | 使用内联模式 |
| agent-browser不可用 | 未安装CLI | 使用WebFetch |
| 站点超时 | 网络问题 | 重试一次,仍失败则跳过该来源 |
| 结果为空 | 选择器不匹配 | 上报问题并使用备选方案 |