特色栏目

ASP源码

PHP源码

.NET源码

JSP源码

游戏频道
专题合集
关闭菜单
首页> AI教程> 每日律动:自动化 AI 规划与反思 - Openclaw Skills

每日律动:自动化 AI 规划与反思 - Openclaw Skills

时间:2026-03-20 20:00:01 作者:互联网

什么是 每日律动 (Daily Rhythm)?

每日律动 (Daily Rhythm) 技能是一个全面的个人管理系统,旨在为您的每一天带来结构感和目的性。通过将其集成到您的 Openclaw Skills 库中,您可以获得一个自动化的智能助手,负责管理从规划到执行的过渡。该技能综合了来自多个来源的数据,包括 Google Tasks、用于财务追踪的 Stripe 以及 ICS 日历,以便在每天早晨提供您全天行程的高级概览。

除了简单的任务管理,每日律动还关注生产力的心理层面。它包含一个可自定义的“定心”板块,用于每日意图、祈祷或肯定语,并配有自动化的晚间收尾提示。这确保了您不仅能以清晰的路线图开始新的一天,还能在结束时捕捉未尽事宜,从而获得更好的休息,并持续朝着您的关注领域迈进。

下载入口:https://github.com/openclaw/skills/tree/main/skills/anthonyfrancis/daily-rhythm

安装与下载

1. ClawHub CLI

从源直接安装技能的最快方式。

npx clawhub@latest install daily-rhythm

2. 手动安装

将技能文件夹复制到以下位置之一

全局模式 ~/.openclaw/skills/ 工作区 /skills/

优先级:工作区 > 本地 > 内置

3. 提示词安装

将此提示词复制到 OpenClaw 即可自动安装。

请帮我使用 Clawhub 安装 daily-rhythm。如果尚未安装 Clawhub,请先安装(npm i -g clawhub)。

每日律动 (Daily Rhythm) 应用场景

每日律动 (Daily Rhythm) 工作原理
  1. 系统在上午 7:00 启动后台同步,从 Google Tasks 和 Stripe 获取最新数据。
  2. 在上午 8:30,晨间简报脚本会将这些数据与您的日历及天气信息结合,生成格式化的简报。
  3. 助手展示简报,强调您的每日意图、关注领域以及当天任务的分步计划。
  4. 在晚上 10:30 的晚间收尾期间,该技能会询问您明天的主要关注点并将其保存到每日记忆文件中。
  5. 在晚上 11:00 发送最终的睡眠提醒,鼓励为下一个周期进行休息和恢复。

每日律动 (Daily Rhythm) 配置指南

首先,安装所需的 Python 依赖项以处理 API 集成:

pip install google-auth google-auth-oauthlib google-auth-httplib2 google-api-python-client stripe

~/.openclaw/google-tasks/ 中配置您的 Google Tasks API 凭据,并在 .env.stripe 文件中设置您的 Stripe API 密钥。最后,通过将脚本添加到系统 crontab 来自动化此循环:

crontab -e
# 同步数据并生成晨间简报
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

每日律动 (Daily Rhythm) 数据架构与分类体系

该技能通过本地文件结构管理持久数据和状态,以确保隐私和速度。以下是 Openclaw Skills 数据的组织方式:

文件路径 功能
memory/YYYY-MM-DD.md 记录每日收尾响应和确定的优先级。
memory/google-tasks.json 存储同步任务的本地缓存,以便离线访问。
memory/stripe-data.json 包含计算出的收入指标和 ARR 进度跟踪。
HEARTBEAT.md 关注领域和每日意图的主要配置文件。
memory/heartbeat-state.json 自动化引擎的内部状态跟踪。
name: daily-rhythm
description: Automated daily planning and reflection system with morning briefs, wind-down prompts, sleep nudges, and weekly reviews. Use when the user wants to set up a structured daily routine, morning briefings, evening reflection prompts, or weekly planning sessions. Triggers include requests for daily schedules, morning briefs, wind-down routines, sleep reminders, weekly reviews, productivity systems, or daily planning automation.

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

Features

Daily Automation

Weekly Automation

Rich Morning Briefs Include

Setup Instructions

Step 1: Install Dependencies

Ensure Python 3 and required packages:

pip install google-auth google-auth-oauthlib google-auth-httplib2 google-api-python-client stripe

Step 2: Configure 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.

Step 3: Configure Stripe (Optional)

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

Step 4: Configure Calendar

Add ICS URL to TOOLS.md:

### Calendar
- **ICS URL:** `https://calendar.google.com/calendar/ical/...`

Step 5: Set Up Cron Jobs

Option A: System Cron (Traditional)

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.

Step 6: Create HEARTBEAT.md

Copy the template from assets/HEARTBEAT_TEMPLATE.md to workspace root and customize:

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

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

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

Customization

Change Daily Intention

The morning brief opens with a centering section you can customize:

Examples:

Edit in HEARTBEAT.md or modify the morning brief generation.

Change Focus Area

Update default focus in HEARTBEAT.md:

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

Adjust Timing

Modify cron expressions:

Add Custom Sections

Modify scripts/morning-brief.sh to include additional data sources.

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

Scripts Reference

sync-google-tasks.py

Syncs Google Tasks to local JSON. Requires credentials.json.

sync-stripe-arr.py

Calculates ARR from active Stripe subscriptions. Requires .env.stripe.

morning-brief.sh

Orchestrates data sync and brief generation.

Troubleshooting

Google Tasks not syncing?

Stripe ARR not showing?

Cron jobs not firing?

See CONFIGURATION.md for detailed troubleshooting.

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

Requirements

相关文章

热门文章

猜你喜欢

返回顶部