360 Secure SkillHub
360 安全技能中心

Cron Helper

核心功能:解释cron含义、从自然语言生成cron、验证cron有效性、查询下次运行时间,支持5位及带秒的6位cron。典型场景:生成定时任务表达式、解析陌生cron、验证cron合规性、确认任务执行时间。输入为cron表达式或自然语言描述,通过命令行调用,输出对应解析结果、生成内容、验证状态或运行时间列表。

josephflu
josephflu
热度 44.40
最近更新 2026-05-11 17:35:11
分类:效率依赖:代码执行 / 内部调用大模型应用场景:自动化脚本 / DevOps / 日程安排

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add eagerbots-cron-helper
Metadata
name
eagerbots-cron-helper
description
Explain, generate, and validate cron expressions. Convert plain English schedules to cron syntax and back. Show next run times. Works with standard 5-field and 6-field (with seconds) cron.
version
1.0.0
metadata
{"openclaw":{"emoji":"⏰"},"requires":{"bins":["python3"]},"homepage":"https://github.com/josephflu/clawhub-skills"}

cron-helper ⏰

Explain, generate, validate, and preview cron expressions — all from plain English or raw cron syntax.

Trigger phrases

  • "What does this cron mean: * * * * *"
  • "Explain this cron expression"
  • "Generate a cron for every weekday at 9am"
  • "When does 0 9 * * 1-5 run next?"
  • "Is this cron valid?"
  • "Convert to cron: every 15 minutes"
  • "Show me the next runs for this cron"

Usage

Run the script with uv run (handles dependencies automatically):

# Explain a cron expression
uv run scripts/cron.py explain "0 9 * * 1-5"

# Generate cron from plain English
uv run scripts/cron.py generate "every weekday at 9am"
uv run scripts/cron.py generate "every 15 minutes"
uv run scripts/cron.py generate "first day of month at midnight"

# Show next N run times (default 5)
uv run scripts/cron.py next "0 9 * * 1-5"
uv run scripts/cron.py next "*/15 * * * *" --count 10

# Validate a cron expression
uv run scripts/cron.py validate "0 9 * * 1-5"
uv run scripts/cron.py validate "60 9 * * *"

Instructions for the agent

  1. Parse the user's request to determine the command: explain, generate, next, or validate.
  2. Run the appropriate uv run scripts/cron.py <command> "<expression or description>" command.
  3. Present the output to the user, adding any clarifying context.
  4. If the user provides a cron expression, always offer to explain it AND show next runs.

Reference

See references/cron-syntax.md for field ranges, special characters, and common examples.