Other v1.0.0

operational-heartbeat

Automated daily health check for OpenClaw instances. Verifies memory file presence, detects stale/overdue cron jobs, and...

guillaumemaka 更新于 2026-05-21 1 浏览
下载 SKILL

技能说明

Automated daily health check for OpenClaw instances. Verifies memory file presence, detects stale/overdue cron jobs, and surfaces system status. Intended for scheduled execution via cron.

使用场景

1. Ensure memory file exists for today: - Path: memory/YYYY-MM-DD.md - If missing, create with minimal template

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/operational-heartbeat
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

4 个文件 · 15 kB
SKILL.md text/markdown
---
name: operational-heartbeat
description: Automated daily health check for OpenClaw instances. Verifies memory file presence, detects stale/overdue cron jobs, and surfaces system status. Intended for scheduled execution via cron.
---

1. Ensure memory file exists for today:
   - Path: memory/YYYY-MM-DD.md
   - If missing, create with minimal template

2. Check cron job health:
   - Use `cron list` to fetch all jobs
   - For each job, verify state.nextRunAtMs is in the future
   - Flag jobs with consecutiveErrors > 0 or lastRunStatus != 'ok'
   - Count stale/overdue jobs

3. Optional: promote learnings from recent memory files (if configured)

4. Report summary:
   - Memory file: created/exists
   - Cron jobs: total, healthy, stale count
   - Any errors or warnings

Implementation notes:
- Use a small Node.js script to parse cron JSON and filter stale jobs
- Comparison: new Date().getTime() vs nextRunAtMs
- Consider timezone-aware scheduling
- Exit 0 if healthy; non-zero if issues found

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。