Install
openclaw skills install dolores-opsOpenClaw 运维工具 - 负责 AI 助手自身的日常运维工作。 包括:健康检查、Memory 同步、目录清理、日志管理、定时任务管理。
openclaw skills install dolores-ops帮助 AI 助手保持自身运维的规律性,确保系统健康运行,并持续沉淀与用户的交互记忆。
触发:每天 8:00 (via cron) 或 heartbeat
openclaw gateway status 检查 Gateway 状态/tmp/openclaw/openclaw-*.log 有无 ERRORsession_status)异常处理:
openclaw gateway start触发:每天 21:00 (via heartbeat)
sessions_history)memory/YYYY-MM-DD.mdMEMORY.md 的内容写入规范:
触发:每周五下午 或 用户明确要求
*.tmp, *.temp, *.log.old*.tar.gz, *.zip(非项目源码)安全规则:
.git, memory, skills, .openclaw 目录MEMORY.md, USER.md, SOUL.md, AGENTS.md触发:每周五
du -sh /tmp/openclaw/触发:用户要求查看或创建 cron 任务
查看:openclaw cron list
创建:
openclaw cron create --name "task-name" --cron "0 8 * * *" --system-event "healthcheck"
常用 Cron:
0 8 * * *0 21 * * *0 17 * * 5完成任务后,简洁汇报:
✅ 早间健康检查完成
- Gateway: 运行中 (pid 44380)
- 配置警告: 1 个 (clawbnb-hub 已禁用)
- 日志: 无 ERROR
✅ Memory 同步完成
- 今日记录: 3 条
- 待沉淀: 1 条(关于用户偏好)
在 HEARTBEAT.md 中添加:
## 🤖 日常运维任务
### 1. 早间健康检查 (08:00-09:00)
- 检查 Gateway 状态
- 检查配置警告
- 检查日志 ERROR
### 2. 晚间 Memory 同步 (21:00-22:00)
- 回顾当天对话,写入 memory/YYYY-MM-DD.md
- 更新 MEMORY.md 重要事项
### 3. 每周五下午:周度清理
- 清理临时文件
- 检查过期日志
- 检查 cron 任务状态