← 返回
未分类 中文

Cron Helper

Explain, generate, and validate cron expressions. Convert plain English schedules to cron syntax and back. Show next run times. Works with standard 5-field a...
解释、生成并校验 cron 表达式;将自然语言计划转为 cron 语法并反向转换;显示下次运行时间;支持标准 5 字段 cron
josephflu
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 390
下载
💾 4
安装
1
版本
#latest

概述

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.
  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.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-31 06:08 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

eBay Agent

josephflu
eBay 研究代理。使用 eBay REST API 搜索优惠、评估价格并获取公平价值估算。无需 eBay 账号,仅需免费开发者账号。
★ 4 📥 686

Stock Quote

josephflu
实时获取股票、ETF 和加密货币价格,比较代码,查看市值与成交量。使用 Yahoo Finance,无需 API 密钥。
★ 0 📥 470

Domain Name Checker

josephflu
检查域名可用性并头脑风暴名称。检查 .com/.net/.org/.io/.ai/.co/.app/.dev 等域名。当域名被占用时提供替代建议。无需 API 密钥。
★ 0 📥 468