微算力 · API 导航与自营网关
API 接入 EN
未登录登录
📰

你的每日情报中心,一目了然

Sovereign Daily Digest · v1.0.0
效率 安全 S 级 作者 ryudi84 公开目录收录
1.2k 下载 0 安装 4k 收藏 21 浏览

简介

个人智能简报系统,自动聚合天气、日程、任务、新闻等多源信息,生成精美的每日报告,5分钟速览全天关键事项。

原始描述

Compile and summarize configured news, weather, calendar, tasks, quotes, and more into a structured, daily personal intelligence briefing.

通过你的 Agent 添加

点「快速安装」复制一段指令,粘给你正在用的 Agent(Claude Code、Codex、OpenClaw 等),它会自己完成安装。

或者手动安装

Claude Codeunzip -o skill.zip -d ~/.claude/skills/sovereign-daily-digest/
其它 Agent解压到它自己的 skills 目录,目录名用 sovereign-daily-digest

包里是 SKILL.md 加作者附带的文件,解压后目录名就是技能名。 技能申请的权限由作者决定,装之前请确认它能读什么、能执行什么。

中文使用说明 来自收录源

核心用法

Daily Digest 是一款个人信息聚合工具,通过 YAML 配置文件定义数据来源,自动生成每日情报简报。用户可通过自然语言指令(如"morning briefing"或"summarize my day")触发执行,支持 Markdown、HTML 或双格式输出。

使用时需先配置 ~/.openclaw/daily-digest/config.yaml,指定时区、输出格式及各模块参数。支持的功能模块包括:问候语、天气预报(wttr.in)、日历(iCal 订阅)、任务管理(Todo.txt/Markdown/GitHub Issues)、邮件摘要(IMAP)、RSS 新闻订阅、智能高亮排序以及每日名言。每个模块均可独立开关,高度可定制。

执行时按以下流程运作:加载配置→确定日期上下文→并行采集各数据源→AI 智能评分排序→格式化为结构化报告→本地保存并输出。整个流程约需数秒至数十秒,视网络和数据量而定。

显著优点

隐私优先设计:所有数据处理均在本地完成,邮箱密码仅从环境变量读取,不向外传输用户敏感信息。配置文件和输出存档均存储于用户主目录下的隔离目录中。

多源整合能力:原生支持 10+ 种数据源类型,覆盖主流生产力工具生态。日历支持标准 iCal 格式;任务系统兼容 Todo.txt 规范、Markdown 待办列表及 GitHub Issues;新闻订阅支持任意 RSS/Atom feed。

智能优先级排序:内置评分算法自动识别高优先级事项,如即将开始的会议、逾期任务、高优先级标记等,帮助用户在 5 分钟内快速定位关键信息。

专业输出品质:生成的报告采用精心设计的排版结构,Markdown 版本可直接用于文档系统,HTML 版本内置响应式布局和暗色主题,适合邮件发送或浏览器阅读。

离线友好:当网络不可用时自动降级为本地模式,仍可基于已缓存的数据和本地文件生成摘要,并明确标注离线状态。

潜在缺点与局限性

配置门槛较高:YAML 配置文件涉及十余个嵌套结构,对非技术用户有一定学习成本。部分高级功能(如邮件 IMAP 配置、GitHub Issues 集成)需要手动获取 API 凭证或令牌。

依赖外部服务稳定性:天气、名言、RSS 等数据依赖第三方公开 API,虽设置了超时机制,但服务中断或限流(如 wttr.in 的 429 响应)仍会影响部分模块完整性。

功能边界明确:定位为"只读"简报生成器,不支持直接在报告中完成任务勾选、邮件回复、日历修改等操作,需跳转至原工具执行。

平台兼容性:调度功能(cron)主要针对 Linux/macOS 设计,Windows 用户需手动配置任务计划程序,体验不够无缝。

数据刷新频率:默认按日生成,对于需要实时同步的场景(如高频变动的任务列表)可能不够及时。

适合的目标群体

  • 信息过载的知识工作者:需要同时跟进多个项目、日历密集、订阅大量资讯源的职场人士
  • 效率工具重度用户:已在使用 Todo.txt、GitHub Issues、iCal 等工具,希望统一视图的技术从业者
  • 隐私敏感型用户:不愿将个人数据同步至云端聚合服务,偏好本地化处理的用户
  • 自动化爱好者:希望通过 cron 定时任务实现"零操作"日报投递的极客用户
  • 远程工作团队:需要每日站会前快速同步个人状态的分布式团队成员

使用风险与注意事项

文件系统安全:虽然所有操作限定于用户主目录,但建议检查 ~/.openclaw/daily-digest/ 目录权限设置,避免配置文件被其他用户读取。

邮件凭证管理:IMAP 功能依赖环境变量传递密码,需确保终端环境安全,避免密码意外记录于 shell 历史或日志中。

RSS 内容安全:虽使用安全的 XML 解析器,但 RSS feed 内容可能包含未经过滤的原始 HTML,在渲染 HTML 报告时存在理论上的 XSS 风险(建议仅用于个人阅读)。

磁盘空间管理:启用存档功能后每日生成新文件,30 天后自动清理旧档,但在极端情况下(双格式输出+大量 RSS 条目)单日文件可能达到数百 KB,长期运行需关注磁盘容量。

网络请求指纹:定期访问固定外部 API 会形成可预测的网络行为模式,在高度敏感的网络环境中可能被用于用户活动推断。

配置维护负担:随着使用时间增长,feed URL 失效、API 密钥过期、日历订阅变更等情况需要定期手动维护配置文件。

技能正文

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.

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

automationpersonal-dashboardrss-readertask-managementcalendarproductivityprivacy-focusedcli-toolmorning-routineinformation-aggregation

同类 Skill