Babysit a Pull Request Until Green

Runs on a cron loop to monitor a pull request, auto-fix CI, deploy, test, and reviewer-comment failures, then alert or auto-merge when green.

Engineeringp4
by AgentVoltv1.0.0Published 1y ago
Free to sign up · every skill included with AgentVolt Pro

Before & after

Same prompt, same agent — the only difference is the skill.

PromptWatch PR #482 and get it merged while I’m heads-down this afternoon.
Beforegeneric AI agent
I can help you with that! Here's what I'd suggest for monitoring PR #482:

You'll want to keep an eye on a few things:
- Whether CI passes
- Any review comments that come in
- Deploy preview status
- Merge conflicts with main

Unfortunately I can't continuously monitor the PR on my own — I'd need you to check back and let me know the status. If you paste any CI failures here, I'm happy to help you debug them.

Want me to look at the current state of the PR?
Afterwith Babysit a Pull Request Until Green
WATCHING PR #482 — 60s interval, mode: auto-merge, kill-switch at 5 failed loops

14:02:11  tick 1  CI: running · deploy: building · threads: 0
14:03:11  tick 2  CI: FAILED (lint) · 3 errors in src/checkout.ts
                  → fix agent: applied 3 style fixes, pushed a1f4c9e
14:04:11  tick 3  CI: running · deploy: ready
14:05:11  tick 4  CI: FAILED (test) · checkout.spec.ts:41 expected 200, got 401
                  → fix agent: test seeded no session. Added fixture, pushed 7b2e103
14:06:11  tick 5  CI: running · threads: 1 NEW
                  → reviewer (allowlisted): "extract this into a helper?"
                  → fix agent: extracted resolveSession(), replied, pushed 3c9d551
14:09:11  tick 8  CI: PASS · deploy: ready · threads: 0 open
                  → branch protection honored, 1 approval present
                  → MERGED into main, branch deleted

SUMMARY  8 ticks / 7 min · 3 auto-fixes (1 lint, 1 test, 1 review) · 0 force-pushes · main never touched directly

About this skill


name: babysit-pr-until-green description: Runs on a cron loop to monitor a pull request, auto-fix CI, deploy, test, and reviewer-comment failures, then alert or auto-merge when green. Use when working on babysit a pull request until green.

Babysit a Pull Request Until Green

Kicks off with a PR URL and a cadence (for example every 60 seconds). On each tick, checks mergeability status, deploy previews, test suites, lint, and inbound code-review comments. When any failure or comment appears, spins up a fix agent, applies the change, pushes, and re-runs. Once everything is green with no open threads, either notifies you or auto-merges based on configured mode. Use during long focus blocks so a PR is not blocked while you are heads-down or asleep.

What you get

  • Cron-driven PR watcher
  • Auto-fix agent for CI failures and reviewer comments
  • Green-state notification or auto-merge
  • Per-tick activity log
  • Safety guardrails (no force-push, no touching main)
  • End-of-run summary

Customize your output

  • Cron interval: 60s, 5m, 15m
  • Mode: notify only, auto-merge
  • Fix scope: tests only, code plus tests, docs
  • Reviewer allowlist: none, my team, everyone
  • Kill-switch on N failed loops: 3, 5, 10
  • Branch protection: honor, override with approval

Example output

'PR 482 tick 04:31: CI failed on lint. Fixed 3 style errors, pushed. Tick 04:32: green. Auto-merged into main.'

Best for

Solo builders and small dev teams using Claude Code or Codex, CTOs enabling less-technical teammates to ship, agencies running multiple client repos.


Note: Video covers grill-me, phased-plan, phased-implementation, vibe-code alongside this skill. High confidence.

SKILL.md preview

SKILL.md
---
name: babysit-pr-until-green
description: Use when a pull request needs continuous monitoring on a cron loop to auto-fix CI, deploy, or reviewer-comment failures until it is fully green.
version: 1.0.0
category: Engineering
author: AgentVolt
license: proprietary
tags:
  - engineering
  - p4
---

# Babysit a Pull Request Until Green

Runs on a recurring cadence against a PR, auto-fixing CI, deploy, and review-comment failures until it is fully green, then notifies or auto-merges.

## When to use

… (sign up to view the full skill)
Sign up to view, copy, and install the full skill