Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Run a prompt or skill in this session on a recurring or variable interval (e.g. /loop 5m /foo). Use when the user wants to poll, repeat, or watch something on a schedule.
.claude/skills/kunanonj-cursor-loop/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-08 | ✗→✓ | ▲ Improved | -41% | 0% |
| case-12 | ✗→✓ | ▲ Improved | -18% | 0% |
| case-14 | ✗→✓ | ▲ Improved | 7% | 0% |
| case-17 | ✗→✓ | ▲ Improved | 2% | 0% |
| case-18 | ✗→✓ | ▲ Improved | -16% | 0% |
Accept /loop [interval] <prompt>.
5m /foo, 30s check status, 2h run report.check deploy every 5m, run tests every 10 minutes.Usage: /loop [interval] <prompt>.Use intervals like 30s, 5m, 2h, 1d. Convert unit words to short units.
Use monitored shell output to wake the agent for recurring local work.
bashwhile true; do sleep <seconds> echo 'AGENT_LOOP_TICK_<purpose> {"prompt":"<prompt>"}' done
notify_on_output.^AGENT_LOOP_TICK_<purpose>.The user wants the agent to self-pace. Decide what makes the next iteration worth running — a passage of time, or an observable event.
notify_on_output on ^AGENT_LOOP_WAKE_<purpose>. Arm once; skip on later ticks if it's still running.bashsleep <seconds> echo 'AGENT_LOOP_WAKE_<purpose> {"prompt":"<prompt>"}'
With a watcher armed, this is the fallback heartbeat — lean long so idle ticks aren't pure overhead. Without a watcher, this is the cadence — pick a delay based on when the result is worth checking again.
prompt, then re-arm the next heartbeat (and re-arm the watcher only if it exited). If both an output wake and a completion notification arrive, act on the output and ignore the completion.Wake notifications include an output file path, not a submitted prompt. Put the prompt beside the sentinel, preferably as JSON. On wake, read the latest matching line and act on its prompt. The prompt may vary by tick.
Loop <schedule>: <prompt> (e.g. Loop every 5m: check deploy status).while ($true) { ... Start-Sleep } on Windows). The examples above use bash.| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→fail | 11,850 | 6,281 | -47% | 1 | 1 | 0% | 2,047 | 1,339 | -35% | 0 | 0 | — |
case-02 | fail→fail | 14,960 | 5,881 | -61% | 1 | 1 | 0% | 3,478 | 1,273 | -63% | 0 | 0 | — |
case-03 | fail→fail | 5,745 | 5,496 | -4% | 1 | 1 | 0% | 1,128 | 1,384 | +23% | 0 | 0 | — |
case-04 | fail→fail | 6,807 | 7,074 | +4% | 1 | 1 | 0% | 1,299 | 1,546 | +19% | 0 | 0 | — |
case-05 | pass→pass | 2,081 | 829 | -60% | 1 | 1 | 0% | 290 | 988 | +241% | 0 | 0 | — |
case-06 | fail→fail | 5,324 | 4,657 | -13% | 1 | 1 | 0% | 1,036 | 1,123 | +8% | 0 | 0 | — |
case-07 | fail→fail | 10,060 | 15,843 | +57% | 1 | 1 | 0% | 931 | 2,947 | +217% | 0 | 0 | — |
case-08 | fail→pass | 11,538 | 2,960 | -74% | 1 | 1 | 0% | 2,445 | 1,443 | -41% | 0 | 0 | — |
case-09 | fail→fail | 4,889 | 6,542 | +34% | 1 | 1 | 0% | 888 | 1,613 | +82% | 0 | 0 | — |
case-10 | fail→fail | 10,219 | 11,382 | +11% | 1 | 1 | 0% | 2,134 | 1,610 | -25% | 0 | 0 | — |
case-11 | pass→pass | 13,029 | 1,950 | -85% | 1 | 1 | 0% | 2,334 | 1,298 | -44% | 0 | 0 | — |
case-12 | fail→pass | 9,020 | 2,572 | -71% | 1 | 1 | 0% | 1,717 | 1,400 | -18% | 0 | 0 | — |
case-13 | pass→pass | 9,373 | 7,427 | -21% | 1 | 1 | 0% | 1,740 | 2,401 | +38% | 0 | 0 | — |
case-14 | fail→pass | 24,482 | 8,762 | -64% | 1 | 1 | 0% | 2,368 | 2,524 | +7% | 0 | 0 | — |
case-15 | pass→fail | 5,807 | 8,252 | +42% | 1 | 1 | 0% | 1,361 | 1,519 | +12% | 0 | 0 | — |
case-16 | pass→fail | 5,125 | 7,935 | +55% | 1 | 1 | 0% | 925 | 1,295 | +40% | 0 | 0 | — |
case-17 | fail→pass | 18,225 | 2,907 | -84% | 1 | 1 | 0% | 1,482 | 1,518 | +2% | 0 | 0 | — |
case-18 | fail→pass | 9,520 | 2,850 | -70% | 1 | 1 | 0% | 1,737 | 1,452 | -16% | 0 | 0 | — |
case-19 | pass→fail | 7,673 | 2,215 | -71% | 1 | 1 | 0% | 1,329 | 1,307 | -2% | 0 | 0 | — |
case-20 | pass→pass | 5,779 | 3,331 | -42% | 1 | 1 | 0% | 1,273 | 1,609 | +26% | 0 | 0 | — |
case-21 | pass→pass | 6,500 | 4,245 | -35% | 1 | 1 | 0% | 1,351 | 1,847 | +37% | 0 | 0 | — |
case-22 | pass→pass | 5,559 | 5,644 | +2% | 1 | 1 | 0% | 1,123 | 2,088 | +86% | 0 | 0 | — |
case-23 | fail→fail | 6,930 | 9,446 | +36% | 1 | 1 | 0% | 1,274 | 1,789 | +40% | 0 | 0 | — |
case-24 | pass→pass | 12,132 | 3,541 | -71% | 1 | 1 | 0% | 2,491 | 1,617 | -35% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 24 cases were attempted, and 14 counted toward the lift figure. The other 10 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +8 percentage points is the difference between those two pass rates over the 14 comparable cases. 5 cases got worse with the skill loaded, and they are included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.