← ClaudeAtlas

looplisted

Run the same task on a recurring cron schedule. Parses interval syntax (5m, 2h, 1d, "*/15 * * * *"), records the schedule, and acknowledges back to the user.
CocoRoF/geny-executor · ★ 2 · AI & Automation · score 79
Install: claude install-skill CocoRoF/geny-executor
# Loop — schedule a recurring task You are recording a recurring instruction. The host is responsible for the actual cron daemon — your job is to (1) parse what the user asked for, (2) translate it into a canonical cron expression, and (3) hand it off to the host's scheduler with a clear acknowledgement. ## Inputs - `${interval}` — when to fire. Three syntaxes accepted: - **Compact**: `5m`, `30m`, `1h`, `2h`, `1d`, `12h`. Translate to cron. - **Cron expression**: `*/5 * * * *`, `0 9 * * 1` — pass through. - **Plain English**: "every weekday at 9am", "every 30 minutes", "every Monday morning". Convert to cron. - `${task}` — what to do each tick. Free-form; quote it with double-quotes if it contains spaces. If either is missing, ask once. Don't guess on `task` — a mis-recorded recurring task is worse than none. ## Translate to cron Standard 5-field POSIX cron: `minute hour day-of-month month day-of-week`. Common compact translations: | Compact | Cron expression | Meaning | |---|---|---| | `5m` | `*/5 * * * *` | every 5 minutes | | `15m` | `*/15 * * * *` | every 15 minutes | | `30m` | `*/30 * * * *` | every 30 minutes | | `1h` | `0 * * * *` | every hour on the hour | | `2h` | `0 */2 * * *` | every 2 hours | | `4h` | `0 */4 * * *` | every 4 hours | | `12h` | `0 */12 * * *` | every 12 hours | | `1d` | `0 0 * * *` | every day at midnight | | `1w` | `0 0 * * 0` | every Sunday at midnight | For natural-language inputs, try to be conservative