Email News Digest

👤 matthewxfz3 📦 v1.0.0 ⭐ 3.9 ⬇️ 2.2K 下載
📄 辦公效率 免費

📖 技能介紹


name: email-news-digest description: 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.


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 "matthewxfz@gmail.com,salonigoel.ssc@gmail.com" \
    --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

這個技能的最新版本可以在7w4.net小蔥技能站找到。

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

🤖 AI 評測

這個 Skill 創意不錯,能自動化處理郵件、生成摘要和傳送圖文報告,文件寫得很清楚,介面友好。但致命問題是核心的摘要功能其實是假的,程式碼裡返回的是固定內容,沒有真正接入 AI 來分析你的郵件。整體更像個半成品演示,如果只是看文件會覺得功能很完善,實際跑起來可能達不到預期效果。

📊 多維度評分

適應性4.2
規範性4
有效性3.6
可靠性3.8
可信度4

📁 包含檔案 (7 個)

📄 SKILL.md 3.7 KB
📄 _meta.json 136 B
📄 references/email-filters.md 295 B
📄 references/html-template.html 656 B
📄 scripts/process_and_send.sh 4.6 KB
📄 scripts/summarize_content.py 3.6 KB
📄 skill-card.md 2.2 KB