mcpField
R
rust-daily

rust-daily

github.com/actionbook生产力1.6k3.0k 次安装9 周前更新
代码仓库

关于 rust-daily

Rust Daily Report 技能按时间范围汇总 Rust 社区、官方渠道和 Rust Foundation 的更新。适合需要浏览生态与项目动态的 Rust 开发者,并可按来源类别筛选。

主要功能

  1. 01按日、周或月筛选
  2. 02按来源类别筛选
  3. 03汇总 Reddit 与 This Week in Rust
  4. 04覆盖官方博客及 Rust Foundation

适用场景

  1. 01获取最近一周的 Rust 动态
  2. 02仅查看官方或基金会消息
  3. 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 天
合并结果

获取所有来源后,按下方的输出格式合并内容。


工具链优先级

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

  1. actionbook MCP - 先检查是否有缓存或预先获取的内容

    mcp__actionbook__search_actions("rust news {date}")
    mcp__actionbook__search_actions("this week in rust")
    mcp__actionbook__search_actions("rust blog")
    
  2. agent-browser CLI - 用于动态网页内容

    agent-browser open "<url>"
    agent-browser get text "<selector>"
    agent-browser close
    
  3. WebFetch - agent-browser 不可用时的备用方案

来源首选工具备用方案
Redditagent-browserWebFetch
TWIRactionbook → agent-browserWebFetch
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