360 Secure SkillHub
360 安全技能中心

Cronexplain

核心功能:支持标准5字段cron表达式(含通配符、范围、步长、列表等语法),可将其转换为易懂的自然语言说明,还能指定次数输出任务的下次运行时间。典型使用场景:需理解crontab条目、确认任务运行计划、转换cron语法与可读日程时使用。输入为cron表达式及可选参数,输出对应解析结果或运行时间列表。

rogue-agent1
rogue-agent1
热度 41.53
最近更新 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