360 Secure SkillHub
360 安全技能中心

全能版助理 - Full Daily Planner

通过定时任务调用脚本,从 Google Drive 导入 Apple Watch 健康数据并写入 Google Sheets 与本地记忆,生成含休闲建议的健康报告和次日计划,写入计划文件并更新系统 crontab,由脚本直接推送 Telegram 提醒。

guhuahuahk
guhuahuahk
热度 20.46
最近更新 2026-04-13 06:56:48
分类:生活依赖:代码执行 / 读写文件 / 第三方 API / 内部调用大模型应用场景:健康 / 日程安排 / 任务管理 / 报告撰写 ...

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add full-daily-planner
Metadata
name
full-daily-planner
description
Full-stack daily life assistant: health report generation + next-day planning + stable reminders. Use when: (1) generating daily health reports from Apple Watch data via Google Drive, (2) generating next-day plans integrating health report leisure recommendations, (3) setting up system crontab reminders (zero LLM), (4) managing the complete daily cycle: health data import → health report → plan generation → reminders. Includes sleep_import.py for Apple Health data pipeline (Google Drive → Sheets → local memory). Two cron jobs: 15:00 health report, 22:00 next-day plan.

Full Daily Planner

Complete daily life management: health data import → health report → next-day plan → system crontab reminders.

Architecture

15:00 agentTurn (isolated) — Health Report
  ├── runs sleep_import.py (Google Drive → parse → Sheets → memory)
  ├── generates health report with leisure/relaxation recommendations
  └── delivers to Telegram

22:00 agentTurn (isolated) — Next-Day Plan
  ├── reads health data + health report leisure recommendations
  ├── generates next-day plan
  ├── delivers plan to Telegram
  ├── writes plan to {PLAN_FILE}
  └── runs update-reminders.sh → updates system crontab

22:05 system crontab → parse-plan-update-reminders.sh (fallback)

Next day: system crontab → tg-remind.sh → curl Telegram Bot API (zero LLM)

Setup

1. Install scripts

Copy scripts/ to a stable path (e.g. ~/.openclaw/scripts/):

  • tg-remind.sh — edit BOT_TOKEN and CHAT_ID
  • update-reminders.sh — edit REMIND path
  • parse-plan-update-reminders.sh — edit PLAN_FILE and UPDATE_SCRIPT paths
  • sleep_import.py — edit ACCOUNT, DRIVE_FOLDER_ID, SHEET_ID constants

2. Prerequisites for sleep_import.py

  • gog CLI installed and authenticated (gog auth login)
  • Google Drive folder with Health Auto Export JSON files
  • Google Sheets for sleep log
  • Local workspace dirs: tmp/sleep-import/, memory/

3. System crontab

# Fallback plan parser (22:05 local, convert to UTC)
5 <UTC_HOUR> * * * /path/to/parse-plan-update-reminders.sh

4. OpenClaw cron jobs

15:00 Health Report:

  • schedule: 0 15 * * * (your timezone)
  • sessionTarget: isolated
  • payload: agentTurn — run sleep_import.py then generate report per references/health-report.md
  • timeoutSeconds: 600
  • delivery: telegram

22:00 Next-Day Plan:

  • schedule: 0 22 * * * (your timezone)
  • sessionTarget: isolated
  • payload: agentTurn — generate plan per references/briefing-prompt.md, write plan file
  • timeoutSeconds: 300
  • delivery: telegram

5. Configure reference files

Edit both files in references/ — replace all {PLACEHOLDER} values with actual paths.

Scripts

Script Purpose
sleep_import.py Import health data: Google Drive → parse → Sheets → memory
tg-remind.sh Send Telegram message via Bot API (no LLM)
update-reminders.sh Update crontab dynamic reminder block
parse-plan-update-reminders.sh Parse plan file → extract times → update crontab

sleep_import.py

Full pipeline: searches Google Drive for HealthAutoExport-YYYY-MM-DD.json (last 3 days), downloads, parses Apple Health metrics (sleep, HR, HRV, SpO2, respiratory rate, wrist temp, breathing disturbances), appends to Google Sheets, and updates local memory file.

python3 scripts/sleep_import.py

Output: human-readable sleep report with metrics, assessment, and advice.

update-reminders.sh

Flags: --recovery, --training, --english, --openclaw1..3 — all HH:MM local time. Only pass that day's events. OpenClaw = start time (auto -10min for warning).

Reference Files

  • references/briefing-prompt.md — Complete 22:00 plan generation rules. See for: life-day rules, schedule constraints, health report integration, self-check checklist.
  • references/health-report.md — Complete 15:00 health report rules. See for: data pipeline, report format, leisure recommendation format.

Design Decisions

  • Two isolated cron jobs: health report (15:00) and plan (22:00) run independently. Plan reads health report output, not the reverse.
  • System crontab for reminders: LLM-based reminders unreliable. curl Telegram is mechanical and always works.
  • Isolated sessions: 3x cheaper than session-bound (~$0.9 vs ~$2.6/run), stable context size.
  • Plan file decoupling: 22:05 fallback parser catches cases where agent didn't update crontab.
  • Health report → plan pipeline: health report includes leisure recommendations that the plan generator must incorporate. This creates a data dependency, not a runtime dependency.