agentsclimarketplace

Babysitting pr

Skill Firzus/agent-skills/skills/engineering/babysitting-pr

Monitor an open GitHub pull request until it is merge-ready by checking CI, diagnosing and fixing branch-related failures, addressing actionable review feedback, resolving safe merge conflicts, pushing fixes, and re-checking the result. Use when the user asks to babysit, watch, monitor, or keep an open PR green and ready to merge.From its SKILL.md

Install
npx -y skills add Firzus/agent-skills --skill babysitting-pr

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
  • runs commandsInstructs the agent to run 8 commands, including `gh pr view <pr> --json number,title,url,state,isDraft,headRefName,headRefOid,baseRefName,mergeable,mergeStateStatus,reviewDecision,statusCheckRollup` and 7 more.

SKILL.md

5.9 KB, ~1.2k tokens by cl100k_base, as published. Nobody here has run it

Babysit a pull request

Keep an open pull request merge-ready. Continue monitoring after each push until the PR is merged or closed, all blockers are cleared, or user input is required.

Guardrails

  • Confirm gh auth status succeeds and identify the target PR before changing anything.
  • Preserve unrelated work in the working tree. Do not discard user changes.
  • Never force-push, merge the PR, close it, or mark a draft ready unless the user explicitly authorized that action.
  • Do not weaken tests, lint rules, type checks, security checks, or branch protections merely to make CI pass.
  • Treat credentials, infrastructure changes, destructive migrations, dependency trust decisions, and ambiguous design feedback as user decisions.
  • Retry a likely flaky CI failure at most three times. Do not repeatedly rerun a deterministic failure without changing the branch.

1. Establish the PR context

Accept a PR number or URL when supplied. Otherwise, resolve the PR associated with the current branch.

gh pr view <pr> --json number,title,url,state,isDraft,headRefName,headRefOid,baseRefName,mergeable,mergeStateStatus,reviewDecision,statusCheckRollup
git status --short
git branch --show-current

Stop successfully if the PR is merged or closed. If the local checkout is not the PR head branch, check it out before making fixes:

gh pr checkout <pr>

Record the current head SHA after every push so that check results are not mistaken for results from an older revision.

2. Inspect all blockers

Check CI and collect machine-readable results:

gh pr checks <pr> --json name,state,bucket,workflow,link

Inspect review feedback, including inline comments. Prefer a GitHub integration that exposes review-thread resolution. When only gh is available, fetch reviews and comments, then verify which comments are still actionable in their surrounding code context:

gh pr view <pr> --json reviewDecision,reviews,comments
gh api repos/{owner}/{repo}/pulls/{pr}/comments --paginate

Interpret mergeable and mergeStateStatus together. GitHub can temporarily report an unknown merge state; poll again before diagnosing a conflict.

3. Diagnose before changing code

For each failed GitHub Actions check, identify its workflow run from the check URL or list runs for the PR head SHA, then read only the failed-step logs:

gh run list --commit <head-sha> --json databaseId,name,status,conclusion,url
gh run view <run-id> --log-failed

Reproduce the failure locally with the repository's documented command whenever possible. Read repository instructions before editing. Determine whether the failure is caused by the PR branch, a flaky check, or external infrastructure.

  • Fix branch-related lint, type, test, build, and security failures at their root cause.

  • Retry a check only when evidence indicates a transient failure:

    gh run rerun <run-id> --failed
    
  • Report external or permission-related failures instead of changing unrelated code.

4. Address review feedback

Process each unresolved actionable thread:

  1. Read the comment, diff hunk, and current implementation.
  2. Apply clear correctness, naming, documentation, safety, or maintainability fixes.
  3. Run focused validation for the affected area.
  4. Leave ambiguous product or architecture decisions for the user, with the relevant tradeoff summarized.

Do not claim a thread is resolved unless the requested change is implemented or a maintainer explicitly accepted the response.

5. Resolve branch conflicts safely

Fetch the base branch and use the repository's preferred update strategy. If none is documented, merge the remote base into the PR branch to avoid rewriting shared history:

git fetch origin <base-branch>
git merge origin/<base-branch>

Resolve conflicts only when intent is clear from both sides and surrounding tests. Escalate ambiguous conflicts. Validate the combined behavior after resolution.

6. Commit, push, and re-check

Review the diff, run proportionate local checks, and create a focused Conventional Commit. Stage only intended files.

git diff --check
git status --short
git push
gh pr checks <pr> --watch

After checks settle, refresh PR metadata, review threads, mergeability, and the head SHA. A green CI result alone does not mean the PR is merge-ready.

Repeat the inspect-diagnose-fix-push cycle while the PR remains open and meaningful progress is possible. Pause only while checks are pending; resume when they finish.

Stop conditions

Stop monitoring and report when one of these conditions is true:

ConditionResult
Checks pass, required reviews are satisfied, no actionable threads remain, and no conflict existsReport the PR as merge-ready
PR is merged or closedReport the terminal state
A blocker requires user authority or a design decisionReport the exact decision needed
The same flaky failure persists after three retriesReport the evidence and exhausted retries
A deterministic failure cannot be reproduced or fixed safelyReport diagnostics and the remaining blocker

Final report

Summarize:

  • PR URL and current head SHA
  • CI failures diagnosed, fixes applied, and commands run
  • Review comments addressed or still awaiting a decision
  • Merge conflicts resolved or remaining
  • Current checks, review decision, and mergeability
  • Any action required from the user

Adapted from babysitting-pr.

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Gives 0 of the 12 instructions most pr commit review skills give in ~1.2k tokens

Counted across 1,055 of the 1,911 authors here whose files we hold, read 2026-09-06

  • Use conventional commit message formatin 150 of 1055, across 145 files
  • Announce skill usage at startin 78 of 1055
  • Use imperative mood for commit descriptionsin 54 of 1055, across 51 files
  • Add directory to gitignore if not ignoredin 52 of 1055, across 41 files
  • Use imperative mood for commit subjectin 52 of 1055
  • Run tests to verify clean baselinein 42 of 1055, across 32 files
  • Push branch to originin 40 of 1055, across 38 files
  • Verify worktree directory is ignored before creationin 39 of 1055, across 32 files
  • Delete branches after mergingin 38 of 1055, across 30 files
  • Create worktree with new branchin 37 of 1055, across 32 files
  • Wrap body text at 72 charactersin 36 of 1055, across 34 files
  • Auto-detect and run project setupin 35 of 1055, across 27 files

Said here and by no other author read

  • Confirm authentication status before changing anything
  • Record the head SHA after every push
  • Identify failed workflow runs from logs
  • Reproduce failures locally before editing code
  • Retry flaky CI failures at most three times
  • Address actionable review feedback

Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.