360 Secure SkillHub
360 安全技能中心

Cronexplain

该 Skill 通过本地 Python 脚本解释标准 5 字段 cron 表达式,支持通配符、范围、步长与列表,输出英文可读描述,并可用 -n 参数列出接下来若干次运行时间;声明零依赖,不需要网络。

rogue-agent1
rogue-agent1
热度 41.62
最近更新 2026-05-11 17:37:27
分类:效率依赖:代码执行应用场景:自动化脚本 / 工作流

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add cronexplain
Metadata
name
cronexplain
description
Explain cron expressions in plain English and calculate next run times. Use when asked to decode a crontab entry, understand a cron schedule, check when a cron job will next run, or translate between cron syntax and human-readable schedules. Supports ranges, steps, lists, and wildcards. Zero dependencies.

cronexplain 📅

Cron expression explainer with next-run calculator.

Commands

# Explain a cron expression
python3 scripts/cronexplain.py "30 9 * * 1-5"
# → at minute 30; at 09:00; on Mon, Tue, Wed, Thu, Fri

# Show next N run times
python3 scripts/cronexplain.py "0 */4 * * *" -n 5

# Monthly schedule
python3 scripts/cronexplain.py "0 0 1,15 * *" -n 3

Supported Syntax

  • Wildcards: *
  • Ranges: 1-5 (Mon-Fri)
  • Steps: */15 (every 15 minutes)
  • Lists: 1,15 (1st and 15th)
  • Combined: 0-30/10 (every 10 min in first half hour)

Fields (standard 5-field cron)

minute hour day_of_month month day_of_week