---
name: "Babysitting-PR SKILL.md: keep an open PR merge-ready"
description: "Use when an open PR must stay merge-ready: CI, review comments, conflicts — never force-push."
---

# Babysitting-PR SKILL.md: keep an open PR merge-ready

## When
Use when a PR is open and the agent should keep it green without merging.

## Stop
Never force-push. Never merge. Stop after 3 cycles or a design decision. Skip design comments and report them.

## Steps
1. Get the PR status:
   `gh pr view --json number,title,state,mergeable,reviewDecision,statusCheckRollup,comments,reviews`
   `gh pr view --json mergeStateStatus`

2. Check CI: `gh pr checks` then `gh run view <run-id> --log-failed`

3. Fix CI failures (lint / tsc --noEmit / tests / build), then:
   `git add -A && git commit -m "fix: resolve CI failures" && git push`

4. Handle review comments:
   `gh api repos/{owner}/{repo}/pulls/{pr}/comments`
   Apply clear fixes; skip design decisions and report them.
   `git add -A && git commit -m "fix: address review feedback" && git push`

5. Resolve merge conflicts:
   `git fetch origin main && git merge origin/main`
   then commit `fix: resolve merge conflicts` and push. Never force-push.

6. Re-check: `gh pr checks --watch`. Max 3 fix-push-check rounds.

7. Report: which checks/comments/conflicts were fixed; remaining blockers.
   `gh pr ready` when green.

Stop when merge-ready, after 3 cycles, or when a design decision is required.
Do not weaken tests to go green.
```

Full file: https://raw.githubusercontent.com/spencerpauly/awesome-cursor-skills/main/resources/babysitting-pr/SKILL.md

## Load
gh. git. babysitting-pr SKILL.md. No merge permission.
