/loopdevopshigh riskintermediatesafety D · 45 · open-endedForward Futurepre-dates current gate · under review

Batch a release without the stale work

Exclude unfinished or stale branches, combine the valid changes, and ship a complete artifact from the latest integrated main.

prompt
→ Claude
Review pending changes and pull requests, exclude stale or unfinished work, combine the valid changes, and release them together.
claude-code · codex

Use this when

Use this when several branches or pull requests may be ready at once and the release must avoid stale worktrees, partial overlays, and incomplete changes.

How it runs

  1. Fetch current repository and pull-request state, then inspect every candidate change for freshness, completeness, ownership, checks, and dependencies.
  2. Exclude stale, superseded, conflicting, or unfinished work and record why each candidate was omitted.
  3. Integrate the valid changes, rerun the combined checks, and select the newest main revision that contains the full batch.
  4. Release complete artifacts from a clean checkout, serialize the deployment, and verify production before closing the batch.

Done when

Only current, complete changes ship in the combined release. The released revision is the latest integrated main that contains every selected change.

Why it works

Evaluating all candidates before integration prevents stale code from entering a release through convenience or worktree confusion. Releasing from integrated main proves the deployed artifact matches the reviewed batch.

Implementation note

The candidate diff selects what belongs in the batch, but deployment must use complete artifacts from the latest integrated main. Never deploy from a task worktree or partial file overlay.

Source: Forward Future

More devops loops

Check whether the deploy finished and summarize what changed

/loopnew

A 5-minute watch loop that polls whether a deploy has finished and, once it lands, summarizes what changed. It is a read-only status watcher rather than an agent driving toward a finish condition.

prompt
→ Claude
/loop 5m check whether the deploy finished and summarize what changed
devopshigh risk

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
devopsmedium risk

Docker image slimming

/goalloopreponew

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 risk