# Babysit Pull Requests

Watches a GitHub pull request's reviews and CI until it merges, fixing likely failures.

- Repository: https://github.com/openinterpreter/openinterpreter (68772 stars)
- Category: Git and review
- License: Apache-2.0
- Last updated: 2026-11-01
- Runs scripts: yes, review before use

## Install

Claude Code: `npx skills add openinterpreter/openinterpreter --skill babysit-pr -g -a claude-code -y`
Codex: `npx skills add openinterpreter/openinterpreter --skill babysit-pr -g -a codex -y`
Cursor: `npx skills add openinterpreter/openinterpreter --skill babysit-pr -g -a cursor -y`
Gemini CLI: `npx skills add openinterpreter/openinterpreter --skill babysit-pr -g -a gemini-cli -y`

## Description

Babysit a GitHub pull request after creation by continuously polling review comments, CI checks/workflow runs, and mergeability state until the PR is merged/closed or user help is required. Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and keep watching open PRs so fresh review feedback is surfaced promptly. Use when the user asks Codex to monitor a PR, watch CI, handle review comments, or keep an eye on failures and feedback on an open PR.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# PR Babysitter

## Objective
Babysit a PR persistently until one of these terminal outcomes occurs:

- The PR is merged or closed.
- A situation requires user help (for example CI infrastructure issues, repeated flaky failures after retry budget is exhausted, permission problems, or ambiguity that cannot be resolved safely).
- Optional handoff milestone: the PR is currently green + mergeable + review-clean. Treat this as a progress state, not a watcher stop, so late-arriving review comments are still surfaced promptly while the PR remains open.

Do not stop merely because a single snapshot returns `idle` while checks are still pending.

## Inputs
Accept any of the following:

- No PR argument: infer the PR from the current branch (`--pr auto`)
- PR number
- PR URL

## Core Workflow

The rest: https://github.com/openinterpreter/openinterpreter/blob/HEAD/.codex/skills/babysit-pr/SKILL.md
