PR Self-Review
Review your own diff like a senior reviewer, fix issues, and repeat for three passes before opening the PR.
// parameters
// run_this_loop
Copy the kickoff into your agent first. The blueprint below explains how the loop evaluates progress and when it should stop.
Use loop copies the kickoff prompt. Share copies the loop link. Open in Cursor / Claude only pre-fill that prompt — they do not install hook files. Download loop saves the loop as pr-self-review.md.
Start the "PR Self-Review" loop.
Goal: three clean self-review passes on the current diff
Max iterations: 3
Between iterations run: git diff main...HEAD
Exit when: three passes complete with no critical findings
Step 1: Review the diff like a senior reviewer. Fix findings, then re-review.
Self-pace this loop. After each iteration, run the check command, read the output, and only continue if the exit condition is not met. Stop when the exit condition passes or max iterations is reached. Give a short status update each pass.// blueprint
The loop contract: target outcome, execution sequence, checks, stopping condition, and safety constraints.
three clean self-review passes on the current diff
// loop_sequence
Trigger
Manual start
Actions block
Feedback gate
Evaluate: state progress
Run the check, read the output, then decide whether the loop is complete.
Check failed
Repeat actions with the latest feedback.
Success
Three review passes completed with no critical findings
// steps
- 1Review diff
Review the current branch diff. List bugs, edge cases, naming issues, and missing tests.
- 2Address findings
Fix the highest-severity findings from the review with minimal scope.
- 3Re-review
Review the updated diff and confirm prior findings are resolved.
Guardrails
- •Do not modify the check command or exit criteria to force success
- •Do not skip, disable, or bypass checks to pass the exit condition
- •If stuck after several iterations, stop and report blockers instead of gaming metrics