MCPInstall

babysit

Use when asked to babysit a GitHub PR or wait for its CI or review checks.

Installs
666
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/jssblck/agents --skill babysit
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads babysit automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Babysit a PR

Check mergeability first, then run one gh watcher and wait for its process to finish. Success means the intended checks completed for the current PR head, with any failures or missing checks accounted for. Babysitting does not authorize merging, bypassing gates, or posting review comments.

Check for conflicts before waiting

Use an explicit PR number and repository throughout:

gh pr view <n> -R <owner/repo> --json state,url,headRefOid,baseRefName,baseRefOid,mergeable,mergeStateStatus,isDraft,reviewDecision

Record the head SHA, base branch, and base SHA. Stop watching if the PR is closed or merged. Handle mergeable before starting a watcher:

  • CONFLICTING: for monitoring-only requests, report the conflict. When repair is authorized, use resolve-pr-conflicts against this PR's current base, then repeat this inspection after pushing.
  • UNKNOWN: GitHub has not established mergeability. Recheck after a short delay; if still unknown, inspect a fetched head/base locally or report the unresolved state. Do not assume it is conflict-free or loop indefinitely.
  • MERGEABLE: proceed. Other merge gates can still block the PR; mergeStateStatus: BLOCKED alone does not establish a textual conflict.

GitHub does not run workflows triggered by pull_request while merge conflicts exist. Resolving conflicts first prevents waiting for checks that cannot start. See GitHub's workflow troubleshooting.

Let gh watch the checks

gh pr checks <n> -R <owner/repo> --watch --interval 10

The PR checks command refreshes every ten seconds by default and waits until the reported checks finish. Use --fail-fast when a failure should return control immediately for repair. Add --required only when the task concerns required checks alone; it can exclude a review bot's optional check.

Run the command once as a long-running process. Use the execution tool's completion notification or wait on the same session with long practical waits. Do not alternate fresh gh pr checks calls with model-driven sleeps, restart the watcher on each tool yield, or narrate unchanged refreshes.

This is CLI-managed polling, not a server event subscription. The implementation refreshes while checks are pending and exits when none remain. It does not stay subscribed for checks created later or for future review comments.

Inspect the final output and exit status. Failed checks return nonzero; ordinary non-watch output uses exit code 8 for pending checks. Authentication, API, and missing-check errors also need diagnosis. Use a separate snapshot when structured details help:

gh pr checks <n> -R <owner/repo> --json name,bucket,state,workflow,link

Do not combine --json with --watch. JSON is a snapshot, and its successful export does not prove checks passed. Inspect bucket values; cancelled or skipped checks are not evidence that the intended tests ran.

Handle checks that cannot finish

If no checks are reported, the watcher exits with an error rather than waiting for their creation. If an expected check is missing, or a pending check has no progress beyond its normal runtime, inspect the workflow and run details. Check for conflicts again, trigger/path filters, skip annotations, workflow approval, and unavailable runners as the evidence warrants. Do not repeatedly restart a watcher for a workflow that cannot run. Resume once the blocker is resolved; otherwise report the blocker.

For a known GitHub Actions run, use its specific ID:

gh run watch <run-id> -R <owner/repo> --exit-status --compact --interval 10
gh run view <run-id> -R <owner/repo> --log-failed

The run watcher covers one Actions run, not every PR check. --exit-status makes run failure return nonzero. It does not support fine-grained PAT authentication. Inspect failure logs when needed; repair and push within the authorized task, then start with the conflict check again. Do not rerun failures repeatedly without a diagnosis.

A review service that publishes a check can be watched through gh pr checks. A service that only posts comments or reviews is outside these watchers. Use that service's completion mechanism if available; otherwise report that limitation rather than treating green CI as a completed review.

Verify the result

Re-read the PR state, head SHA, base branch and SHA, and mergeability after the watcher exits. Take a final checks snapshot and confirm the expected checks appeared. If the head changed, repeat the preflight and watch checks for the new head. If only the base changed, reassess mergeability and the repository's freshness requirements; do not restart completed checks solely for that change. A watcher exit alone does not prove merge readiness or review approval.

Report the PR, verified head SHA, check results, and any review or workflow blocker. Continue to merging only when the user's task authorizes it.

FAQ

What does the babysit skill do?

Use when asked to babysit a GitHub PR or wait for its CI or review checks.

How do I install babysit?

Run npx skills add https://github.com/jssblck/agents --skill babysit in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/babysit/ (personal) or .claude/skills/babysit/ (project).

Which AI agents can use babysit?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is babysit safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains babysit?

It is published by jssblck in jssblck/agents. It has 666 recorded installs.

More from jssblck/agents

View all →

using-sops

jssblck/agents

Use for secrets or key setup in a repo with .sops.yaml, encrypted environment files, or a pnpm secrets script.

Security1.7K installs

code-craft

jssblck/agents

Apply Jess's engineering conventions to invariants, boundary typing, state, effects, proofs, error handling, and abstraction decisions.

1.7K installs

ship-it

jssblck/agents

Use when asked to ship a completed change, commit and open a PR, or push changes and watch CI. Use babysit for monitoring an existing PR.

merge-open-prs

jssblck/agents

Use when asked to merge all open PRs or land a specified set of PRs together.

1.7K installs

tag-release

jssblck/agents

Use when asked to tag or cut a patch, minor, or major release.

1.7K installs

gh-stack

jssblck/agents

Use when working in a checked-out PR stack, handling dependent PRs or branch layers, or planning to split work into stacked PRs.

Popular code quality & workflow skills

View category →

grill-me

mattpocock/skills

A relentless interview to sharpen a plan or design.

Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.

handoff

mattpocock/skills

Compact the current conversation into a handoff document for another agent to pick up.

domain-modeling

mattpocock/skills

Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a GLOSSARY.md, or recording or editing an ADR.

codebase-design

mattpocock/skills

Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.

diagnosing-bugs

mattpocock/skills

Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.