← 返回 Skills 市场
matthewxfz3

Email News Digest

作者 matthewxfz3 · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
1524
总下载
0
收藏
4
当前安装
1
版本数
在 OpenClaw 中安装
/install email-news-digest
功能描述
Summarize recent emails, generate a thematic image, and send a formatted HTML email report with the summary and image. Use for daily news digests, project updates, or any email-based reporting that needs visual enhancement and rich formatting.
使用说明 (SKILL.md)

Email News Digest

This skill automates the process of creating an AI-powered news digest from your recent emails, generating a relevant image, and sending a formatted HTML report.

Usage

To use this skill, run the process_and_send.sh script with the required parameters:

skills/email-news-digest/scripts/process_and_send.sh \
    --recipients "[email protected],[email protected]" \
    --email-query "newer_than:2d subject:news" \
    --image-prompt "A sharp, modern western style image representing AI growth, fierce competition, and diverse applications."

Parameters

  • --recipients: Comma-separated list of email addresses to send the digest to.
  • --email-query: Gmail search query to filter recent emails (e.g., "newer_than:2d subject:AI"). See email-filters.md for more examples.
  • --image-prompt: A descriptive prompt for the AI image generation.

How it Works

  1. Email Retrieval: Fetches the most recent email matching your query.
  2. Content Summarization: Extracts content and generates a structured summary (TL;DR, main title, and sections) using an internal Python script. (Note: The summarization script currently uses a placeholder summary; future enhancements will integrate a full LLM for dynamic summarization.)
  3. Image Generation: Creates a thematic image using the nano-banana-pro skill based on your image-prompt.
  4. HTML Report Assembly: Constructs a dynamic HTML email body using a template, incorporating the summary and a reference to the generated image.
  5. Email Dispatch: Sends the formatted HTML email with the image as an attachment using gog gmail send, employing a robust Base64 encoding/decoding method to handle complex HTML content safely.

Summarization Standards

To ensure high-quality output, the summarization process within this skill adheres to the following standards:

  • Key Insights & Trends: Prioritize extracting major announcements, significant developments, and overarching trends rather than mere factual recitations.
  • Conciseness: The TL;DR should be 3-4 sentences, providing a quick overview. Detailed sections should elaborate succinctly.
  • Accuracy & Fidelity: Summaries must faithfully represent the original content without introducing new information or distorting facts.
  • Clarity & Professionalism: Use clear, straightforward, and professional language. Avoid jargon where simpler terms suffice.
  • Bias Neutrality: Summaries should be objective, presenting information as-is without injecting personal opinions or biases.

Implementation Standards (Summarization Component)

  • Modularity: The summarization logic resides in scripts/summarize_content.py to ensure it's self-contained and easily upgradable.
  • Input/Output: The script should accept raw email content (or extracted text) as input and output a structured JSON object containing the TL;DR, main title, and markdown-formatted sections.
  • Future LLM Integration: The current Python script uses a placeholder. Future development will focus on integrating a robust Large Language Model (LLM) API (e.g., Gemini) to perform dynamic, context-aware summarization based on these standards.

References

安全使用建议
Before installing or running this skill: (1) Inspect the two scripts (scripts/process_and_send.sh and scripts/summarize_content.py) line-by-line to see exactly what commands are executed, what files or env vars are read, and what network endpoints are contacted. (2) Confirm how you will provide Gmail access and image-generation credentials—do not run the script until you understand where OAuth tokens or API keys must live and whether they will be transmitted anywhere. (3) Verify the 'gog' CLI and 'nano-banana-pro' skill are trusted and configured in a minimal-privilege way. (4) Run the script in a safe environment (isolated container or throwaway account) with test recipients to confirm behavior. (5) Look for any hardcoded endpoints, unusual curl/wget commands, or any steps that read ~/ (home) or environment variables like *TOKEN/KEY/PASSWORD; if present, treat as high risk. If you want, provide the contents of scripts/process_and_send.sh and scripts/summarize_content.py and I can analyze them line-by-line and update this assessment.
功能分析
Type: OpenClaw Skill Name: email-news-digest Version: 1.0.0 This skill is classified as suspicious due to its inherent high-risk capabilities, specifically the extensive use of `gog gmail` commands in `scripts/process_and_send.sh` to search, retrieve, and send emails. While these actions are explicitly aligned with the skill's stated purpose of creating and sending an email news digest, they grant broad access to sensitive user data (inbox content) and the ability to send emails on the user's behalf. There is no clear evidence of intentional malicious behavior like unauthorized data exfiltration or persistence, but the significant permissions required and the nature of the operations elevate its risk profile beyond benign.
能力评估
Purpose & Capability
The skill claims to fetch emails and send HTML messages with an attached generated image. Those capabilities normally require access to a Gmail account (OAuth tokens or SMTP credentials) and an image-generation API/key. Yet the skill declares no required environment variables, no primary credential, and no config paths. That discrepancy suggests either the skill expects external tooling (e.g., a preconfigured 'gog' CLI or another skill) to supply credentials or the metadata is incomplete.
Instruction Scope
SKILL.md instructs running scripts that will 'fetch the most recent email matching your query', assemble HTML, call another skill ('nano-banana-pro') to generate an image, and call 'gog gmail send' to dispatch mail. Those runtime actions may read local files, access credential stores, or make network calls. The README does not document what local configuration is required, where credentials are read from, or any safeguards around recipient lists or sensitive content. Because actual scripts are present (not just prose), you must inspect them before running.
Install Mechanism
No install spec is present (instruction-only plus two scripts). That minimizes automatic installation risk—nothing will be downloaded or installed automatically by the skill registry. However, the included scripts will run when invoked, so risk remains at execution time rather than installation time.
Credentials
The skill requests no env vars but clearly needs access to email-sending and email-reading capabilities as well as an image-generation skill. Absence of declared credentials (OAuth tokens, SMTP credentials, API keys) is a red flag: either the metadata is incomplete or the scripts rely on other preconfigured CLI tools/config files to obtain credentials. That increases the chance of unexpected credential usage or misconfiguration.
Persistence & Privilege
The skill does not set always:true and does not declare model invocation privileges. It therefore does not request permanent or always-on presence via the registry metadata. Risk is limited to when a user explicitly runs the provided script.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install email-news-digest
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /email-news-digest 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the email-news-digest skill. - Automates summarizing recent emails, generating a thematic image, and sending a formatted HTML email report. - Supports customizable recipient lists, email search queries, and image prompts. - Uses modular Python script for structured summarization; currently features placeholder summaries with future LLM integration planned. - Constructs and sends dynamic HTML emails with image attachments, ensuring safe handling of complex content. - Adheres to defined summarization standards for clarity, accuracy, and professionalism.
元数据
Slug email-news-digest
版本 1.0.0
许可证
累计安装 4
当前安装数 4
历史版本数 1
常见问题

Email News Digest 是什么?

Summarize recent emails, generate a thematic image, and send a formatted HTML email report with the summary and image. Use for daily news digests, project updates, or any email-based reporting that needs visual enhancement and rich formatting. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1524 次。

如何安装 Email News Digest?

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

Email News Digest 是免费的吗?

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

Email News Digest 支持哪些平台?

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

谁开发了 Email News Digest?

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

💬 留言讨论