[01] LOOP
Reviewinterval
Babysit PR
Keep a PR merge-ready by triaging review comments, fixing CI, and updating the description until reviewers approve.
by Trooper
Kickoff prompt
/loop 10m Start the "Babysit PR" loop. Goal: PR has approvals and all checks green Max iterations: 15 Between iterations run: gh pr view --json reviewDecision,statusCheckRollup Exit when: reviewDecision is APPROVED and all checks success Step 1: Check PR status. Address review comments and CI failures until merge-ready. ## Before you start Connect plugins: - GitHub (required) — Read branches, PRs, reviews, checks, workflow runs, and source diffs. Attach skills: - Loop runner (required) — Self-pace iterations, run the check between passes, and stop only on the exit condition. - Code change + local verification (optional) — Edit code safely, run commands, and keep changes scoped. - CI debugging (optional) — Read failing checks, logs, and the smallest actionable root cause. - PR review (optional) — Inspect diffs for correctness, edge cases, tests, naming, and risk. - Approval workflows (optional) — Keep outbound actions in draft or approval states when risk is non-trivial. 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.
Paste the kickoff prompt into Cursor, Claude Code, or Codex. Deeplinks do not install hook files.
Steps
1. Check PR status
Read review decision and check rollup.
2. Address comments
Reply to or fix outstanding review threads.
3. Fix CI / update PR
Push fixes and refresh the PR summary if scope changed.
Flow diagram
Guardrails
Rules the agent must follow so it cannot cheat the exit condition.
- Do not dismiss valid review feedback without addressing it
- Do not force-merge or bypass required checks
More Review loops
Ship PR Until Green
Implement on a branch, run tests, push, open a PR, wait for CI, and loop until checks pass and the PR is ready to merge.
CI · manualView loop →
PR Self-Review
Review your own diff like a senior reviewer, fix issues, and repeat for three passes before opening the PR.
Review · manualView loop →
