Skip to content
Development
Command

/create-cron

Configure a cron job with proper scheduling and error handling.

From plugin
rohitg00-claude-code-toolkit
2.8k199 skills138 agents199 commands
$ npx -y skills add rohitg00/awesome-claude-code-toolkit --agent claude-code

Command definition

create-cron.md

/create-cron - Create Cron Job

Configure a cron job with proper scheduling and error handling.

Steps

1. Ask the user for the task description and desired schedule 2. Translate the schedule description to cron syntax (minute hour day month weekday) 3. Show the next 5 execution times to verify the schedule is correct 4. Create the cron job script with proper error handling and logging 5. Add a lock mechanism to prevent overlapping executions 6. Configure output redirection: stdout to log file, stderr to error log 7. Add environment variable setup at the top of the cron script 8. Set up email or webhook notification for job failures 9. Add a health check: alert if the job has not run within expected interval 10. Install the cron job using crontab or systemd timer 11. Verify the job is listed in the cron table 12. Document the job: purpose, schedule, log location, notification settings

Rules

  • Always use absolute paths in cron scripts (PATH is minimal in cron)
  • Set a timeout to kill hung jobs (use timeout command)
  • Use file locking (flock) to prevent overlapping executions
  • Redirect output to log files; do not rely on cron mail
  • Include the full environment setup in the script (PATH, HOME, etc.)
  • Add a comment line above each cron entry describing its purpose
  • Test the cron script manually before installing it
@rohitg00
Ships withrohitg00-claude-code-toolkit

The most comprehensive toolkit for Claude Code -- 135 agents, 35 curated skills (+400,000 via SkillKit), 42 commands, 176+ plugins, 20 hooks, 15 rules, 7 templates, 15 MCP configs, 26 companion apps, 53 ecosystem entries, and more.

2.8k40 skills138 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
2.8k
Star history of rohitg00/awesome-claude-code-toolkit on GitHub, a chart by star-history.com

Other commands on rohitg00-claude-code-toolkit.

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command