openclaw cron add \
--name "Nephesh Studio Daily Check" \
--schedule "0 9 * * *" \
--tz "Asia/Shanghai" \
--session-target "main" \
--wake "now" \
--text "nephesh-studio-daily-check: Execute daily checklist following daily-checklist.md. Check all projects modified in the last 24 hours, verify compliance with work standards. Write the check result to daily-check-log.md. Report any issues found directly in this session."
注意: 将路径中的 nephesh-studio 替换为你的实际 Nephesh Studio 技能目录的完整绝对路径。
关键配置说明:
配置项
值
说明
schedule
0 9 * * *
每天北京时间早上 9:00 执行
tz
Asia/Shanghai
使用中国时区,确保按时执行
sessionTarget
main
在主会话运行,共享完整上下文,结果直接输出到主会话
wakeMode
now
立即唤醒执行(不排队)
payload.kind
systemEvent
由 openclaw cron add 自动设置,无需手动指定
为什么这么配置:
✅ sessionTarget: main 让任务在主会话运行,完整共享上下文,能直接访问所有项目文件
{
"id": "c805fcca-ccb0-4769-acbe-04a9501bcd06",
"name": "Nephesh Studio Daily Check",
"enabled": true,
"schedule": {
"kind": "cron",
"expr": "0 9 * * *",
"tz": "Asia/Shanghai"
},
"sessionTarget": "main",
"wakeMode": "now",
"payload": {
"kind": "systemEvent",
"text": "Nephesh Studio Daily Check: Execute daily checklist following daily-checklist.md. Check all projects modified in the last 24 hours, verify compliance with work standards. Write the check result to daily-check-log.md. Report any issues found directly in this session."
},
"state": {
"nextRunAtMs": 1775091600000
}
}