← 返回 Skills 市场
flyingtimes

MailMe X News

作者 flyingtimes · GitHub ↗ · v1.6.1
cross-platform ⚠ suspicious
490
总下载
0
收藏
0
当前安装
9
版本数
在 OpenClaw 中安装
/install mailme-x-news
功能描述
抓取 X/Twitter 帖子,通过 AI 翻译成中文,并发送邮件。完全通过技能控制,无需额外脚本。
使用说明 (SKILL.md)

MailMe X News

抓取 X/Twitter 帖子,通过 AI 翻译成中文,生成综述,并发送邮件。

配置

创建配置文件 config.json(与 SKILL.md 同目录):

{
  "to": "[email protected]",
  "cc": "[email protected]"
}
  • to: 主收件人(必填)
  • cc: 抄送人(可选)

前置要求

  1. crawl-from-x - X/Twitter 抓取工具(Browser Relay + 登录 X)
  2. send-email - 邮件发送工具(已配置 SMTP 和密钥)
  3. translate - 翻译技能(已安装)

使用方法

快速开始

使用 crawl-from-x 技能抓取 X 推文

AI 会自动完成所有步骤:抓取 → 翻译 → 生成综述 → 合并 → 发送邮件 ✨


工作流程

  1. 抓取 - 调用 crawl-from-x 技能,保存到 results/posts_YYYYMMDD_HHMMSS.md
  2. 翻译 - 翻译为中文,保存为 posts_YYYYMMDD_HHMMSS_zh.md
  3. 生成综述 - 分析推文内容,生成综述,保存为 summary_YYYYMMDD_HHMMSS.md
  4. 合并 - 将综述和翻译推文合并为 summary_complete_YYYYMMDD_HHMMSS.md
  5. 发送邮件 - 使用合并后的文件发送邮件,内嵌图片,应用模板

文件说明

  • posts_*.md - 原始抓取文件
  • posts_*_zh.md - 翻译后的文件
  • summary_*.md - 仅包含综述部分
  • summary_complete_*.md - 综述 + 翻译推文的完整内容(用于邮件发送)

发送邮件

邮件发送会自动:

  • 读取 config.json 中的收件人和抄送人
  • 查找最新的 summary_complete_*.md 文件
  • 切换到 results/ 目录(确保图片相对路径正确)
  • 使用 default 模板(仿照 x.com 样式)
  • 自动检测 Markdown 格式并内嵌图片

关键: 必须在 results/ 目录下执行发送命令,否则图片无法正确解析。


注意事项

  1. Browser Relay 必须启动并已连接浏览器扩展
  2. 浏览器必须登录 X 账号
  3. 确保 send-email 技能已正确配置 SMTP 和密钥
  4. 定期清理旧文件,避免占用磁盘空间

故障排查

抓取失败

  • 检查 Browser Relay 状态:openclaw browser status
  • 确认浏览器扩展已连接(绿色图标)

翻译失败

  • 确认抓取已完成:ls -lht $CLAWD/skills/crawl-from-x/results/

发送失败

  • 检查配置:cat $CLAWD/skills/mailme-x-news/config.json
  • 检查 SMTP:cd $CLAWD/skills/send-email/scripts && python3 send_email.py config
  • 检查密钥:python3 send_email.py usernamepython3 send_email.py password
  • 确认合并文件存在:ls -lht $CLAWD/skills/crawl-from-x/results/summary_complete_*.md

邮件中没有图片

  • 确认在 results/ 目录下执行发送命令
  • 检查图片文件存在:ls -lh $CLAWD/skills/crawl-from-x/results/images/

定时任务

通过 OpenClaw cron 设置定时任务,每天自动发送 X 推文摘要。

示例:每天早上 8:00 执行

mailme-x-news

更新日志

  • 2026-03-02 v6 - 明确工作流程:抓取 → 翻译 → 生成综述 → 合并 → 发送邮件
安全使用建议
Before installing or invoking this skill, verify how the required credentials and other skills are handled: 1) Inspect the 'send-email' skill to confirm where SMTP username/password are stored and whether they are kept in a secure secret store (not in plain scripts); 2) Inspect the 'crawl-from-x' skill to ensure it does not exfiltrate scraped content to unknown endpoints and that Browser Relay operation is local and authorized; 3) Confirm what $CLAWD points to in your environment and whether cross-skill file reads are acceptable; 4) Test in an isolated environment (or with non-sensitive accounts) first; 5) If you plan to schedule it, ensure the automated run uses least privilege and that recipient addresses in config.json are intended defaults; 6) If you need higher assurance, ask the publisher for a clear list of required credentials and a description of where secrets live and how image/content data is handled before granting the skill access. If you cannot audit the dependent skills, treat this skill as potentially risky.
功能分析
Type: OpenClaw Skill Name: mailme-x-news Version: 1.6.1 The skill's `SKILL.md` instructs the AI agent to perform actions that, while aligned with its stated purpose of processing and emailing X/Twitter content, demonstrate risky capabilities. Specifically, the agent is instructed to change directories (`cd results/`) and to execute diagnostic commands like `python3 send_email.py password` (in SKILL.md) which queries sensitive configuration data. While these actions are presented for legitimate troubleshooting, they highlight the agent's ability to navigate the filesystem and access potentially sensitive information, which could be leveraged by a malicious prompt injection if the agent's output is not properly secured.
能力评估
Purpose & Capability
The skill claims only to fetch X posts, translate, and email them, which is coherent at a high level, but it relies on three other skills (crawl-from-x, send-email, translate) and platform state (Browser Relay, logged-in browser). The SKILL.md does not declare any required credentials or environment variables even though sending email (SMTP credentials) and driving a logged-in X account clearly require secrets and config held somewhere. That gap is disproportionate and unexplained.
Instruction Scope
Runtime instructions tell the agent to read and operate on files in other skills' directories (e.g., $CLAWD/skills/crawl-from-x/results/, $CLAWD/skills/send-email/scripts) and to run commands such as 'python3 send_email.py username' and 'openclaw browser status'. The document references the $CLAWD environment variable and instructs the agent to change directories into results/ before sending mail. These steps mean the agent will read other skills' files and may access credentials or sensitive files — but those accesses are not documented in requires.env.
Install Mechanism
This is an instruction-only skill with no install spec and no code files; nothing is written to disk by an installer. That minimizes installation risk.
Credentials
No environment variables, credentials, or config paths are declared, yet the workflow depends on SMTP keys, a logged-in X browser session, and a platform path ($CLAWD). The skill implicitly assumes other installed skills hold sensitive credentials, but doesn't state which secrets are required or how they're protected. That lack of declared proportionality is a red flag.
Persistence & Privilege
always is false and there is no install-time persistence requested. The skill can be invoked by the agent (normal default), but it does not claim elevated or always-on privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install mailme-x-news
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /mailme-x-news 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.6.1
完善工作流程文档,明确抓取→翻译→生成综述→合并→发送邮件的步骤
v1.6.0
v1.6.0 - 更新 default 模板。正文 24px 粗体,浅色渐变底色,装饰边框。YouTube 风格配色,清晰易读。
v1.5.0
v1.5.0 - 更新 default 模板为 YouTube 风格。使用 YouTube 的设计语言,清晰易读,现代简约。
v1.4.0
v1.4.0 - 更新 default 模板集成。使用新的紫色渐变设计,每个帖子独立卡片,增强视觉效果。更新文档,说明模板的使用方式和效果。
v1.3.0
v1.3.0 - 添加模板支持。使用 --template default 参数启用仿照 x.com 样式的默认模板,现代简约商务风格,卡片式布局。完全兼容 Markdown 自动检测和图片内嵌。
v1.2.0
v1.2.0 - 完善文档,添加环境变量说明。修正所有使用绝对路径的地方,改用 确保跨环境兼容。
v1.1.0
v1.1.0 - 使用 环境变量确保跨环境兼容。修正发送邮件时的工作目录问题,确保图片正确内嵌。新增故障排查文档。
v1.0.1
修复:使用 环境变量替代绝对路径,确保跨环境兼容。新增:发送邮件前必须切换到 results 目录的工作流程说明。
v1.0.0
Initial release: 抓取 X/Twitter 帖子,AI 翻译成中文并自动发送邮件
元数据
Slug mailme-x-news
版本 1.6.1
许可证
累计安装 0
当前安装数 0
历史版本数 9
常见问题

MailMe X News 是什么?

抓取 X/Twitter 帖子,通过 AI 翻译成中文,并发送邮件。完全通过技能控制,无需额外脚本。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 490 次。

如何安装 MailMe X News?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install mailme-x-news」即可一键安装,无需额外配置。

MailMe X News 是免费的吗?

是的,MailMe X News 完全免费(开源免费),可自由下载、安装和使用。

MailMe X News 支持哪些平台?

MailMe X News 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 MailMe X News?

由 flyingtimes(@flyingtimes)开发并维护,当前版本 v1.6.1。

💬 留言讨论