DevOps loops

Deploy and infra loops with hard rails: human approval gates on anything irreversible.

4 graded loops in this category.

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

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.
devopsmedium riskclaude-code

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