(q)
| 9241 | **When in doubt, FAIL.** False PASS ships broken code; false FAIL |
| 9242 | costs one more human look. Ambiguous output is FAIL with the raw |
| 9243 | capture attached — don't interpret. |
| 9244 | `;var q85=()=>{};var _85,z85;var Y85=y(()=>{a65();t65();q85();_85=K85,z85={"examples/cli.md":s65,"examples/server.md":e65}});function A85(){return}var $85,zrY,YrY;var O85=y(()=>{rV();WT();Y85();({frontmatter:$85,content:zrY}=kH(_85)),YrY=typeof $85.description==="string"?$85.description:"Verify a code change does what it should by running the app."});var w85={};T8(w85,{registerLoopSkill:()=>OrY});function ArY(q){return`# /loop — schedule a recurring prompt |
| 9245 | |
| 9246 | Parse the input below into \`[interval] <prompt…>\` and schedule it with ${xL}. |
| 9247 | |
| 9248 | ## Parsing (in priority order) |
| 9249 | |
| 9250 | 1. **Leading token**: if the first whitespace-delimited token matches \`^\\d+[smhd]$\` (e.g. \`5m\`, \`2h\`), that's the interval; the rest is the prompt. |
| 9251 | 2. **Trailing "every" clause**: otherwise, if the input ends with \`every <N><unit>\` or \`every <N> <unit-word>\` (e.g. \`every 20m\`, \`every 5 minutes\`, \`every 2 hours\`), extract that as the interval and strip it from the prompt. Only match when what follows "every" is a time expression — \`check every PR\` has no interval. |
| 9252 | 3. **Default**: otherwise, interval is \`${fK8}\` and the entire input is the prompt. |
| 9253 | |
| 9254 | If the resulting prompt is empty, show usage \`/loop [interval] <prompt>\` and stop — do not call ${xL}. |
| 9255 | |
| 9256 | Examples: |
| 9257 | - \`5m /babysit-prs\` → interval \`5m\`, prompt \`/babysit-prs\` (rule 1) |
| 9258 | - \`check the deploy every 20m\` → interval \`20m\`, prompt \`check the deploy\` (rule 2) |
| 9259 | - \`run tests every 5 minutes\` → interval \`5m\`, prompt \`run tests\` (rule 2) |
| 9260 | - \`check the deploy\` → interval \`${fK8}\`, prompt \`check the deploy\` (rule 3) |
| 9261 | - \`check every PR\` → interval \`${fK8}\`, prompt \`check every PR\` (rule 3 — "every" not followed by time) |
| 9262 | - \`5m\` → empty prompt → show usage |
| 9263 | |
| 9264 | ## Interval → cron |
| 9265 | |
| 9266 | Supported suffixes: \`s\` (seconds, rounded up to nearest minute, min 1), \`m\` (minutes), \`h\` (hours), \`d\` (days). Convert: |
| 9267 | |
| 9268 | | Interval pattern | Cron expression | Notes | |
| 9269 | |-----------------------|---------------------|------------------------------------------| |
| 9270 | | \`Nm\` where N ≤ 59 | \`*/N * * * *\` | every N minutes | |
| 9271 | | \`Nm\` where N ≥ 60 | \`0 */H * * *\` | round to hours (H = N/60, must divide 24)| |
| 9272 | | \`Nh\` where N ≤ 23 | \`0 */N * * *\` | every N hours | |
| 9273 | | \`Nd\` | \`0 0 */N * *\` | every N days at midnight local | |
| 9274 | | \`Ns\` | treat as \`ceil(N/60)m\` | cron minimum granularity is 1 minute | |
| 9275 | |
| 9276 | **If the interval doesn't cleanly divide its unit** (e.g. \`7m\` → \`*/7 * * * *\` gives uneven gaps at :56→:00; \`90m\` → 1.5h which cron can't express), pick the nearest clean interval and tell the user what you rounded to before scheduling. |
| 9277 | |
| 9278 | ## Action |
| 9279 | |
| 9280 | 1. Call ${xL} with: |
| 9281 | - \`cron\`: the expression from the table above |
| 9282 | - \`prompt\`: the parsed prompt from above, verbatim (slash commands are passed through unchanged) |
| 9283 | - \`recurring\`: \`true\` |
| 9284 | 2. Briefly confirm: what's scheduled, the cron expression, the human-readable cadence, that recurring tasks auto-expire after ${kq6} days, and that they can cancel sooner with ${Vq6} (include the job ID). |
| 9285 | 3. **Then immediately execute the parsed prompt now** — don't wait for the first cron fire. If it's a slash command, invoke it via the Skill tool; otherwise act on it directly. |
| 9286 | |
| 9287 | ## Input |
| 9288 | |
| 9289 | ${q}`}function OrY(){rO({name:"loop",description:"Run a prompt or slash command on a recurring interval (e.g. /loop 5m /foo, defaults to 10m)",whenToUse:'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.',argumentHint:"[interval] <prompt>",userInvocable:!0,isEnabled:vN,async getPromptForCommand(q){let K=q.trim();if(!K)return[{type:"text",text:$rY}];return[{type:"text",text:ArY(K)}]}})}var fK8="10m",$rY;var j85=y(()=>{gr();WT();$rY=`Usage: /loop [interval] <prompt> |
| 9290 | |
| 9291 | Run a prompt or slash command on a recurring interval. |
no outgoing calls
no test coverage detected