← 返回 Skills 市场
mpbshhx

Cron Watchdog

作者 mpbshhx · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
216
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install cron-watchdog
功能描述
Monitor all OpenClaw cron jobs for failures and auto-fix common errors (model-not-allowed, timeouts). Posts to Slack only when issues are found. Runs every 6...
使用说明 (SKILL.md)

Watchdog — Cron Health Monitor

Monitors all cron jobs for failures and auto-fixes them. Posts to Slack only when issues are found or unfixable errors exist.

CRITICAL: Slack Routing

When sending messages to Slack, you MUST specify channel: "slack" in every message tool call:

message(action: "send", channel: "slack", target: "C0AHYTV5WP7", message: "...")

Without channel: "slack", messages will fail silently.

Schedule

Every 6 hours: 5, 11, 17, 23 CT

Steps

  1. cron(action: "list") — get all jobs and their current status
  2. For each job, check: lastStatus error? consecutiveErrors > 0? What was lastError?
  3. For model not allowed errors: use cron(action: "update", jobId: "...", patch: { payload: { model: "anthropic/claude-sonnet-4-6" } }), then force-run, log change
  4. For timeout errors: use cron(action: "update", jobId: "...", patch: { payload: { timeoutSeconds: \x3Ccurrent + 60> } }) — NEVER edit cron JSON files directly
  5. For other errors: analyze, attempt fix if possible, or flag as unresolved
  6. Post to Slack C0AHYTV5WP7 (#morning-briefs) ONLY if issues were found/fixed or unfixable errors exist
  7. If everything is healthy: no Slack message (silent pass)

CRITICAL: Never Edit cron/jobs.json Directly

Always use the cron tool with action="update" to modify job settings. Direct file edits break the cron system.

Slack Alert Format

🐺 Watchdog Report — \x3Ctimestamp>

✅ Fixed: \x3Cjob-name> — \x3Cwhat was fixed>
❌ Unfixable: \x3Cjob-name> — \x3Cerror summary>
⚠️ Flagged: \x3Cjob-name> — \x3Cissue description>

Only send if at least one issue exists.

安全使用建议
This skill appears coherent for automated cron health monitoring, but note it will (when invoked) automatically update job payloads and force-run jobs. Before installing, verify: the hard-coded Slack target/channel are correct for your workspace; the chosen fallback model (anthropic/claude-sonnet-4-6) and timeout increments match your policies; and you have backups or a staging environment to test the auto-fixes. If you want tighter control, ask for a confirmation step before applying updates or restrict the skill to a test project first.
功能分析
Type: OpenClaw Skill Name: cron-watchdog Version: 1.0.0 The skill is a maintenance utility designed to monitor cron job health and automatically resolve common configuration issues like timeouts or model mismatches. It uses standard tool calls (cron, message) to perform its tasks and reports status to a specific Slack channel (C0AHYTV5WP7), showing no signs of malicious intent, data exfiltration, or unauthorized access in SKILL.md or _meta.json.
能力评估
Purpose & Capability
Name/description match the instructions: it enumerates cron jobs, updates job payloads (model, timeout), and posts to Slack only for issues. Declared tool usage (cron and message) aligns with the stated purpose.
Instruction Scope
Instructions include modifying cron jobs (via cron(action: "update")) and force-running them, which is within scope for an auto-healing watchdog. Note: the skill will perform write actions (model/timeouts) — users should be aware of automatic changes and verify the target model/timeout policy is acceptable.
Install Mechanism
Instruction-only skill with no install spec or code files — nothing is written to disk and no external downloads occur.
Credentials
No environment variables, credentials, or config paths are requested. The only external interaction is Slack via the message tool (channel and target ID are hard-coded in instructions), which is proportional to the described alerting behavior.
Persistence & Privilege
always is false (not force-included). The skill will be capable of autonomous invocation by default (platform normal), and it performs modifications only through the cron tool; it does not claim to change other skills or global agent configs.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install cron-watchdog
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /cron-watchdog 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Monitors OpenClaw cron jobs for failures and auto-fixes common errors (model-not-allowed, timeouts). Posts alerts only when issues are found.
元数据
Slug cron-watchdog
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Cron Watchdog 是什么?

Monitor all OpenClaw cron jobs for failures and auto-fix common errors (model-not-allowed, timeouts). Posts to Slack only when issues are found. Runs every 6... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 216 次。

如何安装 Cron Watchdog?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install cron-watchdog」即可一键安装,无需额外配置。

Cron Watchdog 是免费的吗?

是的,Cron Watchdog 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Cron Watchdog 支持哪些平台?

Cron Watchdog 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Cron Watchdog?

由 mpbshhx(@mpbshhx)开发并维护,当前版本 v1.0.0。

💬 留言讨论