Skip to content
Skills Library
Programming · Automation

babysit

/babysit

Watch an open PR — fix failing CI, handle straightforward review comments, and drive it to a mergeable state. Use after opening a PR when the user wants the agent to shepherd it without re-prompting.

Repository
pstack ↗
Licence
MIT
Last repository change
26.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 26.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Watch an open PR — fix failing CI, handle straightforward review comments, and drive it to a mergeable state. Use after opening a PR when the user wants the agent to shepherd it without re-prompting.

Original author description

Watch an open PR — fix failing CI, handle straightforward review comments, and drive it to a mergeable state. Use after opening a PR when the user wants the agent to shepherd it without re-prompting.

How it works

  1. When to use
  2. Steps
  3. Hard rules
  4. Cross-refs
  5. Provenance
Original SKILL.md headings · 63 lines, 761 words
SKILL.md preview
---
name: babysit
description: Watch an open PR — fix failing CI, handle straightforward review comments, and drive it to a mergeable state. Use after opening a PR when the user wants the agent to shepherd it without re-prompting.
---

# Babysit a PR

On Codex, Grok, Antigravity, OMP, or OpenCode, consult the respective host mapping under `skills/poteto-mode/references/` before following this skill.

Portable agent workflow for shepherd-to-green pull requests across agent harnesses. The implementation is a loop over `gh` CLI plus host-native pacing.

Inside poteto-mode, the **Babysit** playbook ([`../poteto-mode/playbooks/babysit.md`](../poteto-mode/playbooks/babysit.md)) supersedes this skill: it owns mode declaration, the merge frontier, stack safety, and the `watch-pr` watcher. This skill stays the standalone `/babysit` entry point for a single PR outside a poteto-mode run.

## When to use

- There's an open PR and the user explicitly wants it kept green, and you are not already inside a poteto-mode run (the playbook owns that case).
- The user invokes `/babysit` directly.
- A subagent that opens a PR does NOT babysit — return to the parent and let the parent decide.

## Steps

1. **Fetch PR state.**

   ```bash
   gh pr view <number> --json number,title,state,mergeable,reviewDecision,statusCheckRollup,mergeStateStatus,comments,reviews
   ```

2. **Triage in priority order.**
   - Merge conflicts (`mergeStateStatus == DIRTY`): run the **fix-merge-conflicts** skill. Force-push only if the branch is yours and not shared.
   - Failing checks (`statusCheckRollup` entries with `conclusion: FAILURE`): run the **fix-ci** skill. Root-cause the failure; fix the underlying code or test; commit; push.
   - Before you trust any failing or passing check, scope the gate to the patch instead of the whole matrix: `python scripts/verify_portable.py select-checks --base <base-ref> [--head <sha>]` names the minimal checks that can fail for the changed paths (docs-only changes do not select the runtime matrix). The PR's forge commands still own the overall check state; `gh` is the default and `origin` the fallback when `command -v origin` resolves. Do not assume a universal forge CLI or package manager.
   - Review comments: run the **get-pr-comments** skill for the summary, then act only on feedback you actually agree with. When a comment has a single mechanical answer — a rename, a guard clause, a formatting nit — make the edit and quote the comment in the commit message. When it hinges on a judgement call, or you can't tell what's being asked, don't guess: leave it and reply with what you would have done.
   - Review-bot comments (Bugbot and similar automation): classify fix/dismiss/ask before acting, per [`bugbot-triage.md`](../poteto-mode/references/bugbot-triage.md). Ask by default on security, data, and high-severity findings.

3. **Loop.** Use the host's native pacing capability (`schedule`, `monitor`, or background loop) to pace re-checks. Pick the interval from what you're watching:
   - Active CI run: poll `gh pr checks --watch` (it blocks until checks finish, so no separate loop interval needed).
   - Awaiting reviewer: 20–30 min heartbeat.
   - Idle but want to catch new comments: hourly.

4. **When to stop.**
   - Build is green, every comment resolved, branch merges cleanly → call it ready.
   - You've run three rounds of fix → push → recheck and it still isn't fully green → stop, summarise what's still broken, and hand control back.
   - The next fix would force a design choice → pause and put it to the user with the host's question or confirmation capability (`human.ask`).

5. **Report.** Summarize fixes applied, comments addressed, comments deferred (with reason), current PR status. Cite each commit by SHA.

## Hard rules

- Don't rewrite history on a branch others may have pulled. If a rebase or force-push looks necessary, clear it with the user first.
- Don't tweak a test's expected values just to get a pass. Only change an assertion when the behaviour genuinely changed and the assertion was pinned to the old behaviour.
- Never quote an old result as current CI. A verdict is bound to the head SHA and the `git patch-id` of the base..head diff; re-check freshness with `select-checks --base <base-ref> --receipt <path>` after any rebase, retarget, or new commit. A changed patch-id invalidates it; a pure rebase with an identical patch-id keeps it.
- Report `FAIL` and `BLOCKED` as they are. A skip is not a pass.
- Never skip hooks (`--no-verify`).
- Never bypass a failing check by marking it as not required.
- `gh pr ready` only when all checks are green and no unresolved review comments remain.

## Cross-refs

- Opening a PR does not start a babysit; inside poteto-mode the Babysit playbook owns the request and starts only when asked.
- Use `interrogate` before opening if the diff is contested; once open, babysit takes over.
- Use `unslop` on any prose you write here (PR comments, commit messages, status reports).

## Provenance

Standalone host-portable entry point for shepherd-to-green pull requests across all 5 harnesses. The workflow is driven via standard `gh` CLI commands and host-native scheduler integrations.

Versions

RepositoryScoreLicence
This page · tommy-ca/pstack100MIT
kirodotdev/kirocrew100Apache-2.0
mintuz/claude-plugins100MIT
lucasnsaraujo/repo-kit100MIT
arjitj2/open-pstack100MIT
chmonitor/chmonitor100GPL-3.0
thedotmack/claude-mem100Apache-2.0
ivy00johns/skill-madness100MIT
michael-denyer/pstack-claude100MIT

Database snapshot: 13.11.2026 · package version a6ea3ae474a1 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 1 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100babysit-pr
    Shepherd an already-open pull request to a mergeable state — poll CI, triage review comments, verify each one against the source, push fixes, and keep the branch current. Use when the user asks to "babysit", "monitor", "watch", "shepherd", or "drive" a PR, asks you to "fix the…
  • 100pr-babysit
    Use when the user asks to monitor, watch, babysit, or keep an eye on a pull request through CI, review, and merge, or to get a PR green or mergeable.
  • 90sf-ship
    Commit, push, open or describe a PR, resolve review feedback, watch a PR until mergeable, write release notes, clean merged branches. Use for 'commit', 'open a PR', 'babysit this PR', 'fix review comments'.
  • 100babysit-pr
    Use when the user wants to babysit a PR, monitor its checks and review comments, address confirmed findings, or track PR readiness.
  • 100pr-shepherd
    Adopt an EXISTING open PR and drive it to mergeable — merge-current, CI green, every reviewer finding addressed. Use when asked to "shepherd PR #N", "shepherd PRs 651, 649", "get PR #N unstuck / over the line", "work the findings on PR #N", "resume the stale PR", or in discovery…
  • 100babysit-pr
    Babysit a pull request through its bot review rounds: verify, fix, reply, resolve. Use for any babysit or watch-the-PR ask.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.