Cron Gen

Generate cron expressions from natural language

dvcrn Updated 32 repo stars

File contents

Cron Generator

"Every weekday at 9am" to "0 9 * * 1-5". Stop googling cron syntax.

Quick Start

npx ai-cron-gen "every monday at 3pm"

What It Does

  • Converts plain English to cron expressions
  • Explains what the cron does
  • Validates existing cron syntax
  • Shows next execution times

Usage Examples

# Generate from description
npx ai-cron-gen "first day of every month at midnight"

# Explain existing cron
npx ai-cron-gen --explain "0 */4 * * *"

# Get next 5 run times
npx ai-cron-gen "every 30 minutes" --next 5

Output

Expression: 0 9 * * 1-5
Meaning: At 09:00 on every day-of-week from Monday through Friday
Next runs:
  - Mon Jan 29 09:00:00 2024
  - Tue Jan 30 09:00:00 2024

Requirements

Node.js 18+. OPENAI_API_KEY required.

License

MIT. Free forever.


Built by LXGIC Studios

dvcrn/openclaw-skills-marketplace/tree/main/plugins/lxgicstudios--ai-cron-gen/skills/cron-gen commit 5c64ece4dc

Frequently asked questions

npx skillmds@latest add dvcrn/cron-gen