Get the build green
Run the build, fix the first error, and repeat until npm run build exits 0, with a 10-turn cap.
Prompt
/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.
Source: loops! ↗graded B · 70/100 — how grades work (Safety Score v2) →
Similar loops
All ci loops →C
/goalCImedium risk
CI pipeline speedup
Profile the CI pipeline and cut wall-clock time under a target by improving caching, splitting slow jobs, and removing redundant steps, verifying every run stays green.
/goal the CI pipeline completes in under 10 minutes on a typical PR — analyze the slowest recent runs with `gh run view`, apply one speedup per turn (better dependency caching, job parallelization, removing duplicated steps, trimming artifacts), push to a test branch, and confirm the workflow still passes; stop at the target or after 10 turns
B
/goalCImedium risk
Get lint and E2E tests passing
Execute work from PLAN.md until npm run lint and npm run test:e2e pass, scoping changes per AGENTS.md.
/goal Implement the work described in PLAN.md. Stop only when npm run lint and npm run test:e2e pass. Follow AGENTS.md, keep changes scoped, and report verification evidence Stop after 25 turns even if the goal is not reached.