How to use the Claude Code /loop skill in Claude Code
- Start in the workspace with the log or status endpoint you are already allowed to read.
- Use the example below as a starting point and replace the sample task with your own.
/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.