Scheduler cron json

From XSpoonAi/spoon-awesome-skill · View interactive version

Scheduler cron json is an AI agent skill from the GitHub repository XSpoonAi/spoon-awesome-skill. Emit cronjob JSON configurations for hosted schedulers. Generates cron configurations for task automation platforms.

How to use this skill

Skill file

Description

Emit cronjob JSON configurations for hosted schedulers. Generates cron configurations for task automation platforms.

Inputs

{
  "schedule": "0 0 * * *|cron expression",
  "task": "Task name",
  "webhook": "Webhook URL"
}

Outputs

{
  "ok": true,
  "data": {
    "config": "Cron configuration",
    "next_run": "ISO timestamp"
  }
}

Usage

Demo Mode

python scripts/main.py --demo

Generate Cron Config

echo '{"schedule":"0 0 * * *","task":"daily_backup"}' | python3 scripts/main.py

Examples

Example 1: Create Daily Schedule

$ echo '{"schedule":"0 0 * * *","task":"daily_backup","webhook":"https://corns-testingbysambit.vercel.app/test"}' | python3 scripts/main.py
{
  "ok": true,
  "data": {
    "config": "0 0 * * * curl https://corns-testingbysambit.vercel.app/test",
    "next_run": "2026-02-07T00:00:00Z"
  }
}

Error Handling

When an error occurs, the skill returns:

{
  "ok": false,
  "error": "Error description",
  "details": {
    "schedule": "Invalid cron expression"
  }
}
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.