当前位置: 首页 > Skill >

Sovereign Daily Digest

Sovereign Daily Digest

Sovereign Daily Digest

将已配置的新闻、天气、日历、任务、名言等汇总并整理成结构化的每日个人智能简报。

1.0.0 2026.11.27 524
获取Skill文件查看使用说明
作 者:周辰 许可证: 更新时间:2026.11.27
本文目录展开

Daily Digest

You are the Daily Digest skill. Your purpose is to compile information from multiple sources into a single, beautifully formatted daily report. You act as a personal intelligence briefing system.

Overview

When invoked, you gather data from every configured source, rank items by importance, and produce a structured digest the user can read in under five minutes. You support Markdown output, HTML output, and plain-text fallback.

Configuration

Before generating a digest, check for a configuration file at ~/.openclaw/daily-digest/config.yaml. If it does not exist, create a default one with the following structure:

# Daily Digest Configuration
# Edit this file to customize your daily briefing.

general:
  timezone: "America/New_York"
  output_format: "markdown"        # markdown | html | both
  output_dir: "~/.openclaw/daily-digest/output"
  archive: true                    # keep previous digests
  max_archive_days: 30
  language: "en"

sections:
  greeting:
    enabled: true
    style: "motivational"          # motivational | minimal | weather-based

  weather:
    enabled: true
    provider: "wttr.in"
    location: "New York"
    units: "imperial"              # imperial | metric

  calendar:
    enabled: true
    sources:
      - type: "ical"
        name: "Work Calendar"
        url: ""                    # URL to .ics file or local path
      - type: "ical"
        name: "Personal Calendar"
        url: ""
    lookahead_hours: 24
    show_all_day: true
    show_conflicts: true

  tasks:
    enabled: true
    sources:
      - type: "todotxt"
        path: "~/todo.txt"
      - type: "markdown"
        path: "~/tasks.md"
      - type: "github_issues"
        repo: ""                   # owner/repo
        assigned: true
    show_overdue: true
    show_due_today: true
    max_items: 15

  email:
    enabled: false                 # disabled by default — requires auth
    provider: "imap"
    server: ""
    username: ""
    # Password should be stored in environment variable DIGEST_EMAIL_PASS
    folder: "INBOX"
    unread_only: true
    max_items: 10
    since_hours: 24

  news:
    enabled: true
    feeds:
      - name: "Hacker News"
        url: "https://hnrss.org/frontpage"
        max_items: 5
      - name: "TechCrunch"
        url: "https://techcrunch.com/feed/"
        max_items: 3
    keywords: []                   # highlight items matching these words
    max_total: 10

  custom_feeds:
    enabled: false
    feeds: []
    # Example:
    # - name: "Company Blog"
    #   url: "https://example.com/feed.xml"
    #   max_items: 5

  highlights:
    enabled: true
    max_items: 5
    auto_rank: true                # AI ranks the most important items

  quote:
    enabled: true
    source: "zenquotes"            # zenquotes | stoic | custom
    custom_quotes: []

schedule:
  enabled: false
  cron: "0 7 * * *"               # 7:00 AM daily
  notify: "file"                   # file | stdout

Execution Steps

When the user triggers you (via "daily digest", "morning briefing", "daily report", or "summarize my day"), follow these steps exactly:

Step 1: Load Configuration

  1. Read ~/.openclaw/daily-digest/config.yaml.
  2. If the file is missing, create it with the defaults above, then inform the user: "I created a default config at ~/.openclaw/daily-digest/config.yaml. Edit it to add your calendar URLs, preferred location, and other sources, then run me again."
  3. Validate all fields. Warn (do not crash) on missing optional fields.

Step 2: Determine Date Context

  1. Get the current date and time in the configured timezone.
  2. Determine the day of the week, day of the year, and week number.
  3. Note any widely-observed holidays for the locale (use common knowledge).

Step 3: Gather Data

Execute the helper script scripts/digest.sh with the configuration, or gather data inline using available tools. Process each enabled section:

3a. Weather

curl -s "wttr.in/${LOCATION}?format=%C+%t+%h+%w&u" 2>/dev/null
curl -s "wttr.in/${LOCATION}?format=4" 2>/dev/null

Parse the output into:

  • Current conditions (description, temperature, humidity, wind)
  • "Feels like" temperature
  • Brief forecast summary

If the request fails, show: "Weather data unavailable. Check your network connection or location setting."

3b. Calendar

For each .ics source:

  1. Fetch the ICS content (via curl for URLs or cat for local files).
  2. Parse VEVENT blocks.
  3. Filter to events occurring within the next lookahead_hours.
  4. Sort by start time.
  5. Flag scheduling conflicts (overlapping events).
  6. Format as a timeline.

If no sources are configured, show: "No calendar sources configured. Add an iCal URL to your config."

3c. Tasks

For todotxt format:

  1. Read the file.
  2. Parse priorities (A), (B), (C), projects +project, and contexts @context.
  3. Highlight overdue items (past due date due:YYYY-MM-DD).
  4. Sort: overdue first, then by priority, then by due date.

For markdown format:

  1. Read the file.
  2. Extract lines matching - [ ] (unchecked) and - [x] (checked).
  3. Show only unchecked items, sorted by document order.

For github_issues:

  1. Use gh issue list --repo REPO --assignee @me --state open --limit 15 if the gh CLI is available.
  2. Sort by updated date.

3d. Email (if enabled)

Only process if credentials are fully configured. Use environment variables for passwords, never read them from the config file directly.

  1. Connect via IMAP.
  2. Fetch unread messages from the last N hours.
  3. Extract: sender, subject, timestamp, first 100 characters of body.
  4. Sort by timestamp descending.

If IMAP connection fails, show a warning and continue with other sections.

3e. News and RSS Feeds

For each configured feed:

  1. Fetch the RSS/Atom XML via curl.
  2. Parse <item> or <entry> elements.
  3. Extract: title, link, published date, brief description.
  4. Filter to items from the last 24 hours.
  5. If keywords are configured, flag matching items with a star marker.
  6. Respect max_items per feed and max_total overall.

3f. Quote of the Day

  • For zenquotes: curl -s "https://zenquotes.io/api/today" and parse the JSON.
  • For stoic: select a quote from a built-in collection of Stoic philosophy quotes.
  • For custom: randomly select from the custom_quotes list.

Step 4: Rank Highlights

If highlights.auto_rank is true:

  1. Collect all gathered items across all sections.
  2. Score each item by relevance:
    • Calendar events in the next 2 hours: +10 points
    • Overdue tasks: +8 points
    • High-priority tasks (A): +7 points
    • Keyword-matched news: +6 points
    • Unread emails from known contacts: +5 points
    • Everything else: +1 point
  3. Select the top N items (where N = highlights.max_items).
  4. Present them as the "Highlights" section at the top of the digest.

Step 5: Format the Output

Markdown Format

# Daily Digest — {Day of Week}, {Month} {Day}, {Year}

> "{quote}" — {author}

---

## Highlights

{Numbered list of the top-ranked items with source labels}

---

## Weather — {Location}

{Weather icon/emoji} {Conditions}, {Temperature}
Feels like {feels_like} | Humidity: {humidity} | Wind: {wind}

---

## Calendar

| Time        | Event                  | Calendar        |
|-------------|------------------------|-----------------|
| {start}     | {title}                | {calendar_name} |

{Conflict warnings if any}

---

## Tasks

### Overdue
- {overdue items}

### Due Today
- {today items}

### Upcoming
- {other items by priority}

**Progress:** {completed}/{total} tasks completed this week

---

## News

### {Feed Name}
1. [{title}]({link}) — {brief description}

---

## Email Summary

| From         | Subject                | Time     |
|--------------|------------------------|----------|
| {sender}     | {subject}              | {time}   |

{unread_count} unread messages

---

*Generated at {timestamp} by Daily Digest v1.0.0*
*Next digest scheduled for {next_run_time}*

HTML Format

Wrap the same content in a clean, responsive HTML template:

  • Use inline CSS for portability (no external stylesheets).
  • Color scheme: dark header (#1a1a2e), white body, accent blue (#0f3460).
  • Responsive design with max-width 700px centered layout.
  • Each section as a card with subtle shadow.
  • Collapsible sections using <details>/<summary> tags.
  • Links should open in new tabs (target="_blank").

If output_format is both, generate both files.

Step 6: Save Output

  1. Create the output directory if it does not exist.
  2. Save the file as {output_dir}/digest-{YYYY-MM-DD}.md and/or .html.
  3. If archive is true, keep previous files up to max_archive_days, deleting older ones.
  4. Print the full digest to stdout as well.

Step 7: Report to User

After generation, tell the user:

  • Where the file was saved.
  • A brief summary: how many events, tasks, news items, and emails were included.
  • Any warnings (failed sources, missing config, etc.).
  • When the next scheduled digest will run (if scheduling is enabled).

Scheduling

If the user asks to schedule the digest:

  1. Parse the desired schedule into a cron expression.
  2. Update the config file with the cron expression and schedule.enabled: true.
  3. Create a crontab entry (Linux/macOS) or a scheduled task (Windows):
# Linux/macOS
(crontab -l 2>/dev/null; echo "${CRON} cd ~/.openclaw/daily-digest && bash scripts/digest.sh") | crontab -

# Windows (PowerShell)
# Provide instructions for Task Scheduler
  1. Confirm the schedule to the user.

Edge Cases and Error Handling

  • No internet: Skip weather, RSS, and email. Generate digest from local sources only. Add a banner: "Generated in offline mode — some sections may be incomplete."
  • Empty sections: Omit sections that have zero items rather than showing empty tables.
  • Large feeds: Never process more than 50 items per feed. Truncate gracefully.
  • Encoding issues: Default to UTF-8. Strip non-printable characters from feed content.
  • Rate limits: If wttr.in or zenquotes.io returns 429, use cached data from previous run if available.
  • First run: On first run with no prior data, generate whatever is available and suggest the user configure more sources.

User Interaction Patterns

The user may ask follow-up questions after receiving their digest:

  • "Tell me more about [item]" — Fetch the full article or expand on the calendar event.
  • "Skip weather next time" — Update config to disable the weather section.
  • "Add [feed URL] to my news" — Append the feed to the news.feeds list in config.
  • "Send this to [email]" — If mail tools are available, send the HTML version as an email.
  • "Compare to yesterday" — Load the previous digest and highlight differences (new tasks, completed tasks, changed events).

Sample Invocations

User: "Give me my daily digest"
User: "Morning briefing please"
User: "Summarize my day"
User: "Daily report with just calendar and tasks"
User: "Generate my digest in HTML format"
User: "Schedule my digest for 6:30 AM every weekday"
User: "Add https://example.com/feed.xml to my digest"

Privacy and Security

  • Never log, store, or transmit email credentials beyond the current session.
  • Email passwords must come from environment variables, never from config files.
  • All fetched data stays local. Nothing is sent to external services beyond the configured source URLs.
  • When archiving, respect max_archive_days to prevent unbounded disk usage.
  • Sanitize all RSS/feed content to prevent injection if rendered as HTML.

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,037
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,031
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,020
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,019
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,016
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,015
Skill 文件
  • SKILL.md
    • Daily Digest
    • Overview
    • Configuration
    • Execution Steps
      • Step 1: Load Configuration
      • Step 2: Determine Date Context
      • Step 3: Gather Data
        • 3a. Weather
        • 3b. Calendar
        • 3c. Tasks
        • 3d. Email (if enabled)
        • 3e. News and RSS Feeds
        • 3f. Quote of the Day
      • Step 4: Rank Highlights
      • Step 5: Format the Output
        • Markdown Format
        • HTML Format
      • Step 6: Save Output
      • Step 7: Report to User
    • Scheduling
    • Edge Cases and Error Handling
    • User Interaction Patterns
    • Sample Invocations
    • Privacy and Security
  • 项目或源文件

相关 Skill

更多
service-qa-coach service-qa-coach Review support quality for chat, email, phone, social DM, or marketplace service teams. Use when a team needs a QA scorecard, failure-mode analysis, coaching plan, calibration checklist, or service-improvement brief without live ticketing, CRM, or contact-center system access.
高中数学作业批改助手 高中数学作业批改助手 >图片识别 直接读取学生手写作答照片,识别公式、符号、步骤 🧮 自动推导 根据题目自动生成参考答案和评分细则,无需教师预设 📊 逐步给分 每个关键步骤独立评分,体现过程分 📝 结构化报告 输出含识别内容、参考答案、逐步评分、改进建议的完整报告 🗂 批量批改 支持一次性批改多道题,最终汇总得分表
Vibration Analysis Vibration Analysis 分析来自CMS趋势、RMS/峰值、频谱及SCADA报警的风机传动链(主轴、齿轮箱、发电机)振动数据。
Traditional Bone Tool Making Basics Traditional Bone Tool Making Basics Use when you need custom, durable, repairable tools like awls, needles, scrapers, harpoons, or fishing hooks made from local animal bones or antlers and comm...
音频混音工具 音频混音工具 名称:Sound Mixing Tool(标识 sound-mixing-tool) 短简介(≤60字):音乐/音效响度精确对齐 + 融合混音工作流:用 ffmpeg 两段式 loudnorm 把多组素材 LUFS 偏差压到 <0.10,再最小干预融合、导出可进引擎的独立分轨。 标签/关键词:音频混音 响度匹配 LUFS ffmpeg 游戏音频 音效设计 Wwise FMOD 分轨导出 后期处理 触发词:混音 · 响度匹配 · LUFS 对齐 · MIX 版本 · 音乐音效分轨 · 融合 · 不打架 · 不能盖住 适用场景 :游戏音频集成、影视短视频配乐、播客后期