Run a prompt or slash command on a recurring interval (e.g. /loop 5m /foo). Omit the interval to let the model self-pace. - When the user wants to set up a recurring task, poll for status, or run something repeatedly on an interval (e.g. "check the deploy every 5 minutes", "keep running /babysit-prs"). Do NOT invoke for one-off tasks.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Loop?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/tomorrow-dev-loop)
---
name: loop
description: 'Run a prompt or slash command on a recurring interval (e.g. /loop 5m /foo). Omit the interval to let the model self-pace. - When the user wants to set up a recurring task, poll for status, or run something repeatedly on an interval (e.g. "check the deploy every 5 minutes", "keep running /babysit-prs"). Do NOT invoke for one-off tasks.'
menu-description: 'Run a prompt on a recurring interval or self-paced'
argument-hint: '[interval] [prompt]'
---
# /loop - schedule a recurring or self-paced prompt
Parse the input below into `[interval] <prompt...>` and schedule it.
Input: $ARGUMENTS
## Parsing (in priority order)
1. **Leading interval**: if the first token matches `^\d+[smhd]$` (e.g. `5m`, `2h`), that is the interval and the rest is the prompt.
2. **Trailing "every" clause**: if the input ends with `every <N><unit>` or `every <N> <unit-word>` (minutes, hours, days), take that as the interval and strip it from the prompt. "check the deploy every 20m" gives interval 20m and prompt "check the deploy".
3. **No interval**: the whole input is the prompt and the loop is self-paced.
4. **No prompt**: use `<<loop.md>>` as the prompt (or `<<loop.md-dynamic>>` when self-paced).
## Fixed interval
Convert the interval to a cron expression and call CronCreate with `recurring: true`, `durable: false` and the prompt:
- `Nm` with N <= 59: `*/N * * * *`; larger values in minutes: round to hours.
- `Nh` with N <= 23: `0 */N * * *` (pick a minute other than 0 when the interval is approximate).
- `Nd`: `0 0 */N * *`.
- `Ns`: round up to one minute.
If the interval does not divide evenly (7m, 90m), choose the nearest clean interval and tell the user which one you used.
When the prompt is empty, pass `<<autonomous-loop>>` for an interval with no task text and `<<loop.md>>` when a loop.md file is wanted. Then run the prompt once now, without waiting for the first fire.
## Self-paced (no interval)
Run the prompt now. At the end of the turn, call ScheduleWakeup with `delaySeconds` chosen from what you saw (60 to 3600; under 300 keeps the prompt cache warm, idle waits belong at 1200 to 1800), a one-sentence `reason`, and the same loop prompt in `prompt` (`<<autonomous-loop-dynamic>>` when there was no prompt, `<<loop.md-dynamic>>` for loop.md). Omit the call to end the loop.
## Confirm
Tell the user, briefly: what runs and how often in plain words, that recurring tasks auto-expire after 30 days (they fire one last time), and that they can cancel with CronDelete and the job ID.