/loopcihigh riskadvancedsafety C · 55pre-dates current gate · under review

Triage, review, and merge PRs

Run CI checks and merge pull requests after triage and review until the queue clears.

prompt
→ Claude
/loop /leader-tick ) that triages, reviews, runs CI checks, and merges PRs. See docs/team-orchestration.md for the full lifecycle and docs/leader-runbook.md for operator notes
claude-code

Implementation note

When to use: repos with an established PR queue where triage/review/merge is currently a manual bottleneck and CI coverage is solid enough to trust as a merge gate. Safety: this loop merges PRs autonomously — require branch protection and a passing-CI requirement on the target branch before enabling, and start it against a non-default branch or a low-traffic repo until you trust its judgment on what counts as reviewed.

Source: Jhin97

More ci loops

Babysit many PRs at once

/loopnew

Keep every PR labeled codex-watch healthy: fix CI failures, rebase behind-main branches, and nudge pending reviewers on a 15-minute cadence.

prompt
→ Claude
/loop 15m check every open PR labeled `codex-watch` and keep each healthy: fix CI failures, rebase when behind main, and nudge if a review is pending
cihigh risk

Wait for CI so you don't have to

/loopnew

Poll gh pr checks every 10 minutes and get told when the PR is ready to merge, or a summary of which checks failed and why.

prompt
→ Claude
/loop 10m run `gh pr checks 1234`; if all pass, tell me it's ready to merge; if any fail, summarize which and why
cilow risk

Ship specs through code review

/loopnew

Run spec-driven workflow loop every 10 minutes: plan work, collect reviews, execute tasks, open pull requests.

prompt
→ Claude
/loop 10m /flow-next:pilot # build loop: ready spec → plan → reviews → work → draft PR
cimedium risk