Review Until Approved
Automates the process of reviewing a Pull Request and continuously iterating until it receives approval. The agent checks the review status, makes necessary…
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 "Review Until Approved" loop.
Goal: Get PR approval
Max iterations: 10
Between iterations run: review status
Exit when: Approval received
Goal: Achieve PR approval. You are an automated code reviewer. Continuously check the PR review status using the command 'review status' and take appropriate actions based on the result. If changes are requested, implement them and push updates. Repeat this process until the PR is approved or until you've reached 10 iterations. Only exit when the exit condition 'Approval received' is met. Context: You're working in a collaborative development environment where timely and accurate PR reviews are critical for deployment.
Self-pace this loop. After each iteration, run `review status` and evaluate the output, and only continue if the exit condition is not met (Approval received). Stop when the exit condition passes or 10 iterations are reached. Give a short status update each pass.