daily-rhythm

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Daily Rhythm

日常节奏系统

A comprehensive daily planning and reflection system that automates morning briefs, evening wind-downs, sleep nudges, and weekly reviews to help users stay focused, track progress, and maintain work-life balance.
一款全面的每日规划与反思系统,可自动化执行晨间简报、晚间睡前准备、睡眠提醒和每周回顾,帮助用户保持专注、跟踪进度并维持工作与生活的平衡。

Quick Start

快速开始

  1. Install the skill and ensure scripts are executable
  2. Configure data sources (Google Tasks, optional Stripe, Calendar)
  3. Set up cron jobs for automation
  4. Customize your focus area and Daily Intention (prayer, affirmation, quote, or centering thought)
  5. Enjoy automated daily briefings and prompts
  1. 安装该技能并确保脚本可执行
  2. 配置数据源(Google Tasks,可选Stripe、日历)
  3. 设置cron任务实现自动化
  4. 自定义你的专注领域和每日意向内容(祷告、肯定语、名言或集中思绪)
  5. 享用自动化的每日简报与提示

Features

功能特性

Daily Automation

每日自动化流程

  • 7:00am: Background data sync (tasks, ARR)
  • 8:30am: Morning Brief with priority, calendar, weather, tasks
  • 10:30pm: Wind-down prompt to plan tomorrow's priority
  • 11:00pm: Sleep nudge with encouraging words
  • 7:00am:后台数据同步(任务、ARR)
  • 8:30am:晨间简报,包含优先级事项、日历、天气、任务列表
  • 10:30pm:睡前准备提示,用于规划次日优先级事项
  • 11:00pm:睡眠提醒,附带鼓励话语

Weekly Automation

每周自动化流程

  • Sunday 8:00pm: Weekly review for reflection and task planning
  • 周日晚8:00:每周回顾,用于反思与任务规划

Rich Morning Briefs Include

丰富的晨间简报包含

  • 🙏 Daily Intention — Prayer, affirmation, quote, or centering thought
  • Calendar events
  • Focus area
  • ARR progress tracking (optional Stripe integration)
  • Today's priority (from wind-down or top task)
  • Actionable suggestions
  • Step-by-step plan
  • Helpful resources
  • Task list from Google Tasks
  • Weather (if configured)
  • Open loops from yesterday
  • 🙏 每日意向 —— 祷告、肯定语、名言或集中思绪
  • 日历事件
  • 专注领域
  • ARR进度跟踪(可选Stripe集成)
  • 今日优先级事项(来自睡前准备或顶级任务)
  • 可操作建议
  • 分步计划
  • 实用资源
  • Google Tasks任务列表
  • 天气信息(若已配置)
  • 昨日未完成事项

Setup Instructions

设置说明

Step 1: Install Dependencies

步骤1:安装依赖

Ensure Python 3 and required packages:
bash
pip install google-auth google-auth-oauthlib google-auth-httplib2 google-api-python-client stripe
确保已安装Python 3及所需包:
bash
pip install google-auth google-auth-oauthlib google-auth-httplib2 google-api-python-client stripe

Step 2: Configure Google Tasks

步骤2:配置Google Tasks

  1. Go to Google Cloud Console
  2. Create project → Enable Tasks API
  3. Create OAuth 2.0 credentials (Desktop app)
  4. Download
    credentials.json
    to
    ~/.openclaw/google-tasks/
  5. Run once to authenticate:
    python3 scripts/sync-google-tasks.py
See CONFIGURATION.md for detailed steps.
  1. 访问Google Cloud Console
  2. 创建项目 → 启用Tasks API
  3. 创建OAuth 2.0凭据(桌面应用)
  4. 下载
    credentials.json
    ~/.openclaw/google-tasks/
    目录
  5. 运行一次以完成身份验证:
    python3 scripts/sync-google-tasks.py
详细步骤请查看CONFIGURATION.md

Step 3: Configure Stripe (Optional)

步骤3:配置Stripe(可选)

For ARR tracking in morning briefs:
  1. Create
    .env.stripe
    in workspace root:
    STRIPE_API_KEY=sk_live_...
  2. Set ARR target in state file
如需在晨间简报中跟踪ARR数据:
  1. 在工作区根目录创建
    .env.stripe
    文件:
    STRIPE_API_KEY=sk_live_...
  2. 在状态文件中设置ARR目标

Step 4: Configure Calendar

步骤4:配置日历

Add ICS URL to
TOOLS.md
:
markdown
undefined
将ICS URL添加至
TOOLS.md
markdown
undefined

Calendar

Calendar

  • ICS URL:
    https://calendar.google.com/calendar/ical/...
undefined
  • ICS URL:
    https://calendar.google.com/calendar/ical/...
undefined

Step 5: Set Up Cron Jobs

步骤5:设置Cron任务

Option A: System Cron (Traditional)
bash
crontab -e
选项A:系统Cron(传统方式)
bash
crontab -e

Add these lines:

添加以下行:

0 7 * * * cd /path/to/workspace && python3 skills/daily-rhythm/scripts/sync-stripe-arr.py 30 8 * * * cd /path/to/workspace && python3 skills/daily-rhythm/scripts/morning-brief.sh 0 20 * * 0 cd /path/to/workspace && echo "Weekly review time" 30 22 * * * cd /path/to/workspace && echo "Wind-down time" 0 23 * * * cd /path/to/workspace && echo "Sleep nudge"

Option B: OpenClaw Cron (If Available)
Use the `cron` tool to create jobs with `agentTurn` payloads that generate and send briefs.
0 7 * * * cd /path/to/workspace && python3 skills/daily-rhythm/scripts/sync-stripe-arr.py 30 8 * * * cd /path/to/workspace && python3 skills/daily-rhythm/scripts/morning-brief.sh 0 20 * * 0 cd /path/to/workspace && echo "Weekly review time" 30 22 * * * cd /path/to/workspace && echo "Wind-down time" 0 23 * * * cd /path/to/workspace && echo "Sleep nudge"

选项B:OpenClaw Cron(若可用)
使用`cron`工具创建任务,通过`agentTurn`负载生成并发送简报。

Step 6: Create HEARTBEAT.md

步骤6:创建HEARTBEAT.md

Copy the template from
assets/HEARTBEAT_TEMPLATE.md
to workspace root and customize:
  • Daily Intention text (prayer, affirmation, quote, or centering thought)
  • Focus area
  • ARR target (if using Stripe)
assets/HEARTBEAT_TEMPLATE.md
复制模板至工作区根目录并自定义:
  • 每日意向文本(祷告、肯定语、名言或集中思绪)
  • 专注领域
  • ARR目标(若使用Stripe)

Workflow Details

工作流详情

Morning Brief Generation

晨间简报生成流程

The brief is generated by:
  1. Syncing latest data (tasks, ARR)
  2. Reading wind-down priority from
    memory/YYYY-MM-DD.md
  3. Fetching calendar from ICS URL
  4. Fetching weather (if configured)
  5. Compiling all sections into formatted message
简报生成步骤:
  1. 同步最新数据(任务、ARR)
  2. memory/YYYY-MM-DD.md
    读取睡前准备设置的优先级事项
  3. 从ICS URL获取日历信息
  4. 获取天气信息(若已配置)
  5. 将所有部分编译为格式化消息

Wind-Down Response Flow

睡前准备响应流程

When user replies to 10:30pm prompt:
  1. Parse their tomorrow priority
  2. Generate actionable suggestions
  3. Break into steps
  4. Identify resources
  5. Ask confirmation
  6. Save to
    memory/YYYY-MM-DD.md
  7. Include in next morning's brief
当用户回复10:30pm的提示时:
  1. 解析用户设置的次日优先级事项
  2. 生成可操作建议
  3. 拆解为分步计划
  4. 识别所需资源
  5. 请求用户确认
  6. 保存至
    memory/YYYY-MM-DD.md
  7. 纳入次日晨间简报

Weekly Review Flow

每周回顾流程

Sunday 8pm prompt asks reflection questions. When user replies:
  1. Summarize their week
  2. Identify key priorities
  3. Create tasks in Google Tasks
  4. Preview Monday's brief
周日晚8点的提示会询问反思问题。当用户回复后:
  1. 总结用户的一周情况
  2. 识别核心优先级
  3. 在Google Tasks中创建任务
  4. 预览周一的晨间简报

Customization

自定义配置

Change Daily Intention

修改每日意向

The morning brief opens with a centering section you can customize:
Examples:
  • Faith-based: Prayer, scripture verse, devotional thought
  • Secular: Affirmation, intention-setting, gratitude practice
  • Quotes: Inspirational quotes, stoic philosophy, poetry
  • Goals: Daily mission statement, values reminder
Edit in HEARTBEAT.md or modify the morning brief generation.
晨间简报开头的集中内容可自定义:
示例:
  • 信仰类:祷告、经文、灵修感悟
  • 世俗类:肯定语、意向设定、感恩练习
  • 名言类:励志名言、斯多葛哲学、诗歌
  • 目标类:每日使命宣言、价值观提醒
可在HEARTBEAT.md中编辑,或修改晨间简报生成脚本。

Change Focus Area

修改专注领域

Update default focus in HEARTBEAT.md:
markdown
undefined
在HEARTBEAT.md中更新默认专注领域:
markdown
undefined

Focus

Focus

Your primary focus (e.g., "Product growth and customer acquisition")
undefined
Your primary focus (e.g., "Product growth and customer acquisition")
undefined

Adjust Timing

调整时间设置

Modify cron expressions:
  • 30 8 * * *
    = 8:30am daily
  • 30 22 * * *
    = 10:30pm daily
  • 0 23 * * *
    = 11:00pm daily
  • 0 20 * * 0
    = 8:00pm Sundays
修改cron表达式:
  • 30 8 * * *
    = 每日早8:30
  • 30 22 * * *
    = 每日晚10:30
  • 0 23 * * *
    = 每日晚11:00
  • 0 20 * * 0
    = 周日晚8:00

Add Custom Sections

添加自定义板块

Modify
scripts/morning-brief.sh
to include additional data sources.
修改
scripts/morning-brief.sh
以纳入更多数据源。

File Structure

文件结构

workspace/
├── memory/
│   ├── YYYY-MM-DD.md          # Wind-down responses
│   ├── google-tasks.json      # Synced tasks
│   ├── stripe-data.json       # ARR data
│   └── heartbeat-state.json   # State tracking
├── skills/daily-rhythm/
│   ├── scripts/
│   │   ├── sync-google-tasks.py
│   │   ├── sync-stripe-arr.py
│   │   └── morning-brief.sh
│   ├── references/
│   │   └── CONFIGURATION.md
│   └── assets/
│       └── HEARTBEAT_TEMPLATE.md
└── HEARTBEAT.md               # Your custom schedule
workspace/
├── memory/
│   ├── YYYY-MM-DD.md          # 睡前准备回复
│   ├── google-tasks.json      # 同步后的任务
│   ├── stripe-data.json       # ARR数据
│   └── heartbeat-state.json   # 状态跟踪
├── skills/daily-rhythm/
│   ├── scripts/
│   │   ├── sync-google-tasks.py
│   │   ├── sync-stripe-arr.py
│   │   └── morning-brief.sh
│   ├── references/
│   │   └── CONFIGURATION.md
│   └── assets/
│       └── HEARTBEAT_TEMPLATE.md
└── HEARTBEAT.md               # 你的自定义日程

Scripts Reference

脚本参考

sync-google-tasks.py

sync-google-tasks.py

Syncs Google Tasks to local JSON. Requires
credentials.json
.
将Google Tasks同步至本地JSON文件。需要
credentials.json

sync-stripe-arr.py

sync-stripe-arr.py

Calculates ARR from active Stripe subscriptions. Requires
.env.stripe
.
从活跃的Stripe订阅计算ARR数据。需要
.env.stripe

morning-brief.sh

morning-brief.sh

Orchestrates data sync and brief generation.
协调数据同步与简报生成。

Troubleshooting

故障排除

Google Tasks not syncing?
  • Verify
    credentials.json
    exists
  • Check Tasks API is enabled
  • Run script manually to see errors
Stripe ARR not showing?
  • Verify
    .env.stripe
    with valid API key
  • Check for active subscriptions
  • Run sync script manually
Cron jobs not firing?
  • Verify cron is installed:
    crontab -l
  • Check script paths are absolute
  • Review system logs
See CONFIGURATION.md for detailed troubleshooting.
Google Tasks无法同步?
  • 确认
    credentials.json
    存在
  • 检查Tasks API是否已启用
  • 手动运行脚本查看错误信息
Stripe ARR未显示?
  • 验证
    .env.stripe
    中的API密钥有效
  • 检查是否有活跃订阅
  • 手动运行同步脚本
Cron任务未触发?
  • 确认已安装cron:
    crontab -l
  • 检查脚本路径是否为绝对路径
  • 查看系统日志
详细故障排除请查看CONFIGURATION.md

Best Practices

最佳实践

  1. Reply to wind-down prompts for best morning brief experience
  2. Keep tasks updated in Google Tasks
  3. Do weekly reviews to stay aligned with goals
  4. Customize focus as priorities change
  5. Adjust timing to match your rhythms
  1. 回复睡前准备提示以获得最佳晨间简报体验
  2. 保持Google Tasks任务更新
  3. 完成每周回顾以与目标保持一致
  4. 根据优先级变化自定义专注领域
  5. 调整时间设置以匹配你的作息规律

Requirements

系统要求

  • Python 3.7+
  • Google Tasks API credentials (for task sync)
  • Stripe API key (optional, for ARR tracking)
  • Calendar ICS URL (optional, for events)
  • Cron or OpenClaw cron system
  • Python 3.7+
  • Google Tasks API凭据(用于任务同步)
  • Stripe API密钥(可选,用于ARR跟踪)
  • 日历ICS URL(可选,用于事件展示)
  • Cron或OpenClaw cron系统