Claude Code /loop skill

Repeat a bounded prompt in an open Claude Code session to watch a local process or review progress at a regular interval.

How to use the Claude Code /loop skill in Claude Code

  1. Start in the workspace with the log or status endpoint you are already allowed to read.
  2. Use the example below as a starting point and replace the sample task with your own.
Claude Code prompt · Try this example
/loop 5m Check the local build log for success or failure, then report once it has finished.

Watch a local build for a final status

Use a log that contains a clear success or failure marker. Ask for the matching line and relevant error summary so a quiet interval does not get mistaken for a passed build.

Limit the task and know when to stop

Keep the session open and stop the loop once the build reaches its terminal state. An interval is useful for changing conditions such as build progress. A single status check is enough for a completed run.

Browse Skills