Deploy-poll loop

A hands-free ops loop that polls your deploy every two minutes, runs the smoke test the moment it goes live, and stops with a report if any check fails.

prompt
→ Claude
/loop every 2 minutes: check deploy status; when it's live, run the smoke test and summarize; if smoke test fails, report the failing check and stop Guardrails: Stop when the goal is verifiably met, or stop after 15 iterations, whichever comes first. Keep changes minimal and never touch files outside the task’s scope.
claude-code

Implementation note

When to use: you have kicked off a deploy and the next twenty minutes are otherwise dead time — waiting to see it go live, then remembering to run the smoke test against it. How it works: every two minutes the loop checks deploy status. The moment the deploy is live it runs the smoke test and summarizes the results; if the smoke test fails, it reports the failing check and stops rather than continuing to poll or attempting fixes. Safety: the stop-on-failure clause is the notable rail — a failed smoke test halts the loop with a report, leaving the response decision (rollback, hotfix, investigate) to you instead of the loop improvising remediation against production. Everything it does is read-and-report: status checks and test runs, no code or infrastructure changes. It is cheap at a two-minute cadence, but kill it once the deploy is confirmed rather than leaving it polling. Hardened 2026-07-27: explicit stop/cap/verification guardrails appended; regraded D→A.

Source: Claude Directory blog

More devops loops

Docker image slimming

Loop/goallooprepo

Iteratively shrink a Docker image under a size target using multi-stage builds, smaller base images, and layer cleanup, verifying the container still boots each turn.

prompt
→ Claude
/goal `docker images` shows the app image under 300 MB — apply one slimming change per turn (multi-stage build, slimmer base image, prune build deps, consolidate layers), rebuild, and verify the container starts and passes its healthcheck before the next change; stop at the target or after 8 turns
devopslow riskclaude-codecodex

Site-back-up interval watch

Loop/loop

The simplest useful monitor: every 30 minutes, load the homepage of a down site; the moment it returns a normal page, report and stop.

prompt
→ Claude
/loop 30m check whether my live site [URL] is back up by loading the homepage. The moment it returns a normal page, tell me and stop checking. Cap the run at 15 passes.
devopslow riskclaude-code

Next.js 15 app deploys to a Vercel preview…

Loop/goal

Community goal loop for devops, sourced from github. Verified exit condition, evaluator-gated.

prompt
→ Claude
/goal Next.js 15 app deploys to a Vercel preview URL returning 200, with brand tokens (colors + Plus Jakarta Sans/Inter/IBM Plex Mono) configured and Supabase magic-link auth gating /dashboard so logged-out users redirect to /login; you prove this by npm run build passing, the preview URL, and an incognito visit to /dashboard redirecting; do not add features beyond auth shell, do not change the locked stack; or stop after 100 turns
devopshigh riskclaude-code