CI Until Green
This loop continuously monitors and fixes CI issues until all checks pass. It runs the 'gh pr checks' command iteratively, analyzes failures, and applies fix…
This loop is republished with attribution. Full credit and the original content belong to the source linked above.
AI Skill Market Insights
Real data. Real impact.
Emerging
Developers
Kickoff Prompt
Copy this prompt and run it with your agent to start the loop.
Start the "CI Until Green" loop.
Goal: All CI checks pass
Max iterations: 10
Between iterations run: gh pr checks
Exit when: CI green
You are an autonomous coding agent focused on resolving CI failures. Begin by running 'gh pr checks' to evaluate the current state of the pull request's CI pipeline. Based on the results, analyze any failed checks, determine the root cause, and apply the necessary fixes to the codebase. Continue this process of checking, analyzing, and fixing until all CI checks pass (exit condition: 'CI green') or you reach the maximum of 10 iterations. Prioritize efficiency and correctness in your fixes.
Self-pace this loop. After each iteration, run `gh pr checks` and evaluate the output, and only continue if the exit condition is not met (CI green). Stop when the exit condition passes or 10 iterations are reached. Give a short status update each pass.