daily-rhythm
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseDaily 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
快速开始
- Install the skill and ensure scripts are executable
- Configure data sources (Google Tasks, optional Stripe, Calendar)
- Set up cron jobs for automation
- Customize your focus area and Daily Intention (prayer, affirmation, quote, or centering thought)
- Enjoy automated daily briefings and prompts
- 安装该技能并确保脚本可执行
- 配置数据源(Google Tasks,可选Stripe、日历)
- 设置cron任务实现自动化
- 自定义你的专注领域和每日意向内容(祷告、肯定语、名言或集中思绪)
- 享用自动化的每日简报与提示
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 stripeStep 2: Configure Google Tasks
步骤2:配置Google Tasks
- Go to Google Cloud Console
- Create project → Enable Tasks API
- Create OAuth 2.0 credentials (Desktop app)
- Download to
credentials.json~/.openclaw/google-tasks/ - Run once to authenticate:
python3 scripts/sync-google-tasks.py
See CONFIGURATION.md for detailed steps.
- 访问Google Cloud Console
- 创建项目 → 启用Tasks API
- 创建OAuth 2.0凭据(桌面应用)
- 下载至
credentials.json目录~/.openclaw/google-tasks/ - 运行一次以完成身份验证:
python3 scripts/sync-google-tasks.py
详细步骤请查看CONFIGURATION.md。
Step 3: Configure Stripe (Optional)
步骤3:配置Stripe(可选)
For ARR tracking in morning briefs:
- Create in workspace root:
.env.stripeSTRIPE_API_KEY=sk_live_... - Set ARR target in state file
如需在晨间简报中跟踪ARR数据:
- 在工作区根目录创建文件:
.env.stripeSTRIPE_API_KEY=sk_live_... - 在状态文件中设置ARR目标
Step 4: Configure Calendar
步骤4:配置日历
Add ICS URL to :
TOOLS.mdmarkdown
undefined将ICS URL添加至:
TOOLS.mdmarkdown
undefinedCalendar
Calendar
- ICS URL:
https://calendar.google.com/calendar/ical/...
undefined- ICS URL:
https://calendar.google.com/calendar/ical/...
undefinedStep 5: Set Up Cron Jobs
步骤5:设置Cron任务
Option A: System Cron (Traditional)
bash
crontab -e选项A:系统Cron(传统方式)
bash
crontab -eAdd 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 to workspace root and customize:
assets/HEARTBEAT_TEMPLATE.md- 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:
- Syncing latest data (tasks, ARR)
- Reading wind-down priority from
memory/YYYY-MM-DD.md - Fetching calendar from ICS URL
- Fetching weather (if configured)
- Compiling all sections into formatted message
简报生成步骤:
- 同步最新数据(任务、ARR)
- 从读取睡前准备设置的优先级事项
memory/YYYY-MM-DD.md - 从ICS URL获取日历信息
- 获取天气信息(若已配置)
- 将所有部分编译为格式化消息
Wind-Down Response Flow
睡前准备响应流程
When user replies to 10:30pm prompt:
- Parse their tomorrow priority
- Generate actionable suggestions
- Break into steps
- Identify resources
- Ask confirmation
- Save to
memory/YYYY-MM-DD.md - Include in next morning's brief
当用户回复10:30pm的提示时:
- 解析用户设置的次日优先级事项
- 生成可操作建议
- 拆解为分步计划
- 识别所需资源
- 请求用户确认
- 保存至
memory/YYYY-MM-DD.md - 纳入次日晨间简报
Weekly Review Flow
每周回顾流程
Sunday 8pm prompt asks reflection questions. When user replies:
- Summarize their week
- Identify key priorities
- Create tasks in Google Tasks
- Preview Monday's brief
周日晚8点的提示会询问反思问题。当用户回复后:
- 总结用户的一周情况
- 识别核心优先级
- 在Google Tasks中创建任务
- 预览周一的晨间简报
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
undefinedFocus
Focus
Your primary focus (e.g., "Product growth and customer acquisition")
undefinedYour primary focus (e.g., "Product growth and customer acquisition")
undefinedAdjust Timing
调整时间设置
Modify cron expressions:
- = 8:30am daily
30 8 * * * - = 10:30pm daily
30 22 * * * - = 11:00pm daily
0 23 * * * - = 8:00pm Sundays
0 20 * * 0
修改cron表达式:
- = 每日早8:30
30 8 * * * - = 每日晚10:30
30 22 * * * - = 每日晚11:00
0 23 * * * - = 周日晚8:00
0 20 * * 0
Add Custom Sections
添加自定义板块
Modify to include additional data sources.
scripts/morning-brief.sh修改以纳入更多数据源。
scripts/morning-brief.shFile 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 scheduleworkspace/
├── 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.jsonsync-stripe-arr.py
sync-stripe-arr.py
Calculates ARR from active Stripe subscriptions. Requires .
.env.stripe从活跃的Stripe订阅计算ARR数据。需要。
.env.stripemorning-brief.sh
morning-brief.sh
Orchestrates data sync and brief generation.
协调数据同步与简报生成。
Troubleshooting
故障排除
Google Tasks not syncing?
- Verify exists
credentials.json - Check Tasks API is enabled
- Run script manually to see errors
Stripe ARR not showing?
- Verify with valid API key
.env.stripe - 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未显示?
- 验证中的API密钥有效
.env.stripe - 检查是否有活跃订阅
- 手动运行同步脚本
Cron任务未触发?
- 确认已安装cron:
crontab -l - 检查脚本路径是否为绝对路径
- 查看系统日志
详细故障排除请查看CONFIGURATION.md。
Best Practices
最佳实践
- Reply to wind-down prompts for best morning brief experience
- Keep tasks updated in Google Tasks
- Do weekly reviews to stay aligned with goals
- Customize focus as priorities change
- Adjust timing to match your rhythms
- 回复睡前准备提示以获得最佳晨间简报体验
- 保持Google Tasks任务更新
- 完成每周回顾以与目标保持一致
- 根据优先级变化自定义专注领域
- 调整时间设置以匹配你的作息规律
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系统