ワンクリックで
loop
Run a prompt or skill in this session on a recurring or variable interval (e.g. /loop 5m /foo).
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Run a prompt or skill in this session on a recurring or variable interval (e.g. /loop 5m /foo).
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Use this skill to create Cursor Automations.
A Cursor Canvas is a live React app that the user can open beside the chat. You MUST use a canvas when the agent produces a standalone analytical artifact — quantitative analyses, billing investigations, security audits, architecture reviews, data-heavy content, timelines, charts, tables, interactive explorations, repeatable tools, or any response that benefits from visual layout. Especially prefer a canvas when presenting results from MCP tools (Datadog, Databricks, Linear, Sentry, Slack, etc.) where the data is the deliverable — render it in a rich canvas rather than dumping it into a markdown table or code block. If you catch yourself about to write a markdown table, stop and use a canvas instead. You MUST also read this skill whenever you create, edit, or debug any .canvas.tsx file.
| name | loop |
| description | Run a prompt or skill in this session on a recurring or variable interval (e.g. /loop 5m /foo). |
| disabled-environments | ["cloud"] |
Use monitored shell output when the goal is to wake the agent for recurring local work.
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.
while 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.sleep <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.