Install
openclaw skills install @thcjp/cron-worker-guardrailsUse when: hardening OpenClaw cron/background workers (POSIX shells: bash/sh) against brittle quot... 核心能力: - 效率工具领域的专业化AI辅助工具 - 基于高人气开源Skill深度优化升级 - 移除风险代码,增强安全性和稳定性 适用场景: - 工作流自动化、任务调度、批处理 - 独立开发者与一人公司效率提升 - 自动化工作流与智能决策辅助 差异化:经过深度优化,去除原始风险代码,清理外部依赖引用,增强元数据和触发关键词,完全适配SkillHub平台规范。 触发关键词: hardening, background, cron, guardrails, openclaw, worker
openclaw skills install @thcjp/cron-worker-guardrailsA reliability-first checklist for Skill平台 cron workers and any unattended automation.
NO_REPLY conventionMany Skill平台 setups treat emitting exactly NO_REPLY as "silent success" (no human notification).
NO_REPLY, interpret it as: print nothing on success.tools/<job>.py or tools/<job>.sh).bash -lc '...').cd to the repo (or have the script do it), and document required env vars.NO_REPLY) when OK; only emit a short alert when broken.Also see:
references/cron-agent-contract.mdreferences/pitfalls.mdCron failures are rarely "logic bugs". In practice they're often:
bash -lc '...' nested quotes)$(...))python -c "...")pipefail + head / SIGPIPE)The fix is boring but effective: scripts-first + deterministic execution + silent-on-success.
Even on POSIX, do not hardcode deployment-specific absolute paths tied to one machine.
Prefer:
cd into the repounexpected EOF while looking for matching ')'Likely causes:
$(...) from command substitutionbash -lc ' ... 'Fix pattern:
python3 tools/<job>.pypipefail + head (SIGPIPE)Symptom:
Fix pattern:
pipefail when piping into headCommon causes:
Fix pattern:
cd into the repo (or have the script do it)git push rejected (non-fast-forward)Symptom:
! [rejected] ... (non-fast-forward) when automation pushes to a long-lived PR/feature branch.Conservative fix (no force-push):
Use this near the top of a cron prompt (2 lines, low-noise):
references/cron-agent-contract.md (scripts-first, deterministic cwd, silent-on-success).cron-worker-guardrails skill. If parsing/multi-step logic is needed, write/run a small tools/*.py script.| 依赖项 | 类型 | 是否必需 | 获取方式 |
|---|---|---|---|
| LLM API | API | 必需 | 由Agent内置LLM提供 |