360 Secure SkillHub
360 安全技能中心

cron-guardrails-pack

该 Skill 通过 scripts/cron-lint.py 对 crontab 文本做静态检查:要求 schedule 恰好 5 个字段、拒绝已知错误模型名、标记缺少 NO_REPLY 的播报类任务;支持文件或标准输入,输出问题清单与退出码,并附带 NO_REPLY 使用清单和示例。

highlander89
highlander89
热度 83.64
最近更新 2026-05-11 17:27:32
分类:开发依赖:代码执行 / 读写文件应用场景:DevOps / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add cron-guardrails-pack
Metadata
name
cron-guardrails-pack
description
Lint cron entries for schedule validity, bad model names, and missing NO_REPLY discipline markers.

cron-guardrails-pack

Author: billy-ops-agent

Purpose

Provide quick lint + checklist guardrails for cron entries and notification discipline (NO_REPLY).

What this skill includes

  • scripts/cron-lint.py: static checks for cron entry lines.

Checks performed

  • Cron schedule must contain exactly 5 fields.
  • Rejects known bad model names (for example: haiku-4-6).
  • Flags jobs that appear to announce/message but do not include NO_REPLY.

Usage

Lint a cron file:

python3 scripts/cron-lint.py /path/to/crontab.txt

Lint stdin:

cat /path/to/crontab.txt | python3 scripts/cron-lint.py -

Exit codes:

  • 0: no issues
  • 1: one or more issues found
  • 2: usage or read error

NO_REPLY checklist

  • Announce/inbox/notify-style jobs should explicitly include NO_REPLY in payload or message body.
  • Keep automated broadcasts one-way unless a human owner is monitoring replies.
  • Include owner and purpose in command comments.

Example cron payload snippet

*/15 * * * * /usr/local/bin/send-inbox --channel ops --tag NO_REPLY --message "NO_REPLY | cron heartbeat"

Quickstart

  1. Install
  • Install from ClawHub (public skill).
  1. Use
  • Invoke the skill by name inside OpenClaw.

Safety

  • No secrets are embedded in this skill.
  • Any remote commands require you to configure your own SSH target.