← 返回 Skills 市场
hohobohan

Cron Hardening

作者 Hobohan · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
44
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install hobohan-cron-hardening
功能描述
Guidelines for reliable OpenClaw cron jobs: model pinning, absolute paths, timeouts, delivery config, and error recovery.
使用说明 (SKILL.md)

Cron Hardening

Reliable cron config learned through repeated failures. Follow these rules for every new cron.

1. PIN the model

Every cron that delivers to the user must explicitly set a fast model. The global default can get stuck on model resolution (MiniMax cold-start especially).

"model": "deepseek/deepseek-v4-flash"

Time-sensitive crons that need pinning:

  • Expense check-ins (10am, 1:30pm, 10pm)
  • Expense sync (9:30am)
  • News briefings (7:30am, 3pm, 10pm)
  • Investment check-in (Sat 10am) and sync (Sat 11am)
  • Transport check-in (9am)

Non-time-sensitive crons (dashboard, backup, security audit) can use default model — delay is harmless.

2. Absolute paths only

Cron agentTurn payloads run in an isolated context. They cannot cd to the workspace first. Every command MUST use absolute paths.

WRONG:

cd /workspace && python3 scripts/sync.py

RIGHT:

/usr/bin/python3 /home/hobopi/.openclaw/workspace/scripts/sync-ledger-to-sheet.py

Preflight checks reject cd && python3 chains.

3. Timeouts

Cron type Timeout Reason
Expense check-in 300s (600s for 10pm) May wait for Hobo reply
News briefing 600s Web search + curation takes time
Expense sync 60s Quick script, just needs to run
Investment sync 600s Reads all ledger files
Dashboard gen 180s Runs 3 scripts in sequence
Token tracker 300s Heavy usage data parsing
Transport check-in 600s Previous-day ask, may wait
Backup 300s tar + gzip
Security audit 600s Full healthcheck

4. Delivery config

For crons that deliver to Telegram, use explicit delivery:

"delivery": {
  "mode": "announce",
  "channel": "telegram",
  "to": "telegram:37134287"
}

mode: "none" for crons that don't need to notify the user (dashboard updates, token tracking).

5. Failure recovery

  • Check lastRunStatus and consecutiveErrors on cron status
  • lastDiagnostics shows the error phase: model-call-started = model resolution timeout
  • Common fixes: pin model, bump timeout, check absolute paths
  • After fixing, next scheduled run uses new config (no manual trigger needed)

6. maxConcurrentRuns

Set cron.maxConcurrentRuns in openclaw.json when multiple crons fire simultaneously:

"cron": { "maxConcurrentRuns": 2 }

Prevents Sunday 5am clash (security audit + hourly dashboard + expense check-in).

7. Failure alerts

"failureAlert": {
  "after": 2,
  "mode": "announce",
  "channel": "telegram",
  "to": "telegram:37134287"
}

Notifies Hobo after 2 consecutive failures. Default enabled.

安全使用建议
Review carefully before installing. This appears to be a personal cron-hardening note, not a generalized public skill: replace the hardcoded Telegram recipient and personal filesystem paths with your own values before allowing an agent to create or update crons from it.
能力评估
Purpose & Capability
The declared purpose is cron hardening, and the requested cron tool is generally aligned with creating or updating scheduled jobs.
Instruction Scope
The instructions say crons delivering to the user should use a fixed Telegram destination, `telegram:37134287`, rather than telling the agent to use the installing user's own configured recipient.
Install Mechanism
The package contains only markdown files with no executable scripts, dependencies, or install-time commands.
Credentials
The guidance includes personal environment assumptions such as `/home/hobopi/.openclaw/...`, named personal workflows, and a fixed Telegram ID; these are not well generalized for a public skill.
Persistence & Privilege
Cron configuration is persistent automation, and the skill gives broad rules for every new cron plus failure alerts, which could create ongoing notifications to the hardcoded recipient if followed literally.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install hobohan-cron-hardening
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /hobohan-cron-hardening 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release. Model pinning, absolute paths, timeout table, delivery config, failure recovery.
元数据
Slug hobohan-cron-hardening
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Cron Hardening 是什么?

Guidelines for reliable OpenClaw cron jobs: model pinning, absolute paths, timeouts, delivery config, and error recovery. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 44 次。

如何安装 Cron Hardening?

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

Cron Hardening 是免费的吗?

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

Cron Hardening 支持哪些平台?

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

谁开发了 Cron Hardening?

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

💬 留言讨论