Get the build green
Run the build, fix the first error, and repeat until npm run build exits 0, with a 10-turn cap.
/goal `npm run build` exits 0 — run the build, fix the first error, repeat until it succeeds; stop after 10 turns
claude-code · codex · cursor
Implementation note
Fix-the-first-error keeps each turn small and verifiable. Works for any build command; substitute your own.
More ci loops
Ship a PR through CI and reviews
Draft a PR, run CI, collect reviews, merge, and release—repeat every 30 minutes until land criteria are met.
/loop 30m /flow-next:land # ship loop: draft PR → CI green → reviews converged → merged → released
cihigh risk
Watch PR checks pass
Poll GitHub PR checks every 5 minutes until all status checks pass.
/loop 5m gh pr checks 1234
cilow risk
Wait for CI so you don't have to
Poll gh pr checks every 10 minutes and get told when the PR is ready to merge, or a summary of which checks failed and why.
/loop 10m run `gh pr checks 1234`; if all pass, tell me it's ready to merge; if any fail, summarize which and why
cilow risk