← ClaudeAtlas

loop-editlisted

Change the interval, prompt, or both of an active /loop without going through pause+resume and without spawning a duplicate via /loop. Use this when the user says "change the interval of my loop to 5m", "update the prompt of my loop", or "edit my loop". Falls back to /loop-pause-edit-resume internally — the user gets a single-command UX.
thepictishbeast/claude-tools · ★ 0 · AI & Automation · score 70
Install: claude install-skill thepictishbeast/claude-tools
# /loop-edit — change interval/prompt of a running loop in place ## Why this exists `/loop` creates a new cron entry every time. Re-running `/loop 5m <same prompt>` doesn't *change* the existing loop — it **duplicates** it. `CronDelete` + `CronCreate` from scratch loses the prompt unless you re-type it. `/loop-pause` + edit JSON + `/loop-resume` works but is three steps. `/loop-edit` collapses that to one command: - `/loop-edit 5m` — change interval to 5m, keep prompt + recurring - `/loop-edit prompt: "new text"` — change prompt, keep interval - `/loop-edit 5m prompt: "new text"` — change both - `/loop-edit prompt-append: "additional text"` — append to existing prompt (useful for adding instructions without retyping) ## Parse the argument The user may pass any combination of: - An interval token (`5m`, `1h`, `30s`, `2d` — same syntax as /loop) - `prompt: "..."` — replace the prompt entirely - `prompt-append: "..."` — append to the existing prompt (with one leading space) If multiple interval tokens are passed, use the first. If both `prompt:` and `prompt-append:` are passed, fail with a clear error ("pick one"). If NO arguments are passed, show the active loop(s) + ask the user what to change. Don't guess. ## Interval-to-cron conversion Same table as /loop and /loop-resume: | Pattern | Cron | Notes | |---------------------|--------------------|--------------------------------| | `Nm` where N ≤ 59 | `*/N * * * *`