/pull-request:babysit [pr-url] [--merge] [--reviews]from pull-request
Monitors a PR's CI, fixes trivial failures, and self-cancels when green. Supports --merge to drive to merged and --reviews to hand off to AI-review triage.
Ships in pull-request. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Drive a PR to green CI, or to merged with --merge, by reacting to a provider watcher's events with fix-and-push. Babysit is done when it calls TaskStop after reporting one terminal: green (no flags), merged (--merge), or a block it cannot fix unattended.
git branch --show-currentgit remote get-url origingit rev-parse HEAD${CLAUDE_SESSION_ID}Start the watcher with github:actions-monitor for a github.com remote, or gitlab:ci-monitor for a gitlab.com remote. It runs under Monitor and emits JSON events, already deduped by (sha, state). Read event fields from that JSON directly, without piping CLI output to an inline interpreter.
Arguments ($ARGUMENTS), both flags off by default:
$0 (pr-url): the PR as a URL or number. Pass it through to follow-up and the merge commands. Default: the PR for the current branch.--reviews: after the first green, hand off per reviews.md.--merge: after green, drive to merged per merge-mode.md.On GitHub, a PR with auto-merge already enabled (gh pr view <pr> --json autoMergeRequest is non-null) runs as --merge, since whoever enabled it approved the merge.
Every wait runs through a watcher, including the post-submit merge wait. The watcher enforces the poll interval and wall clock (--max-minutes, default 60). Pass through a user-supplied --max-minutes. After max-time-reached, report and stop without starting a new watcher. When babysit runs in /loop, the loop handles repetition.
The watcher ends with the session. Resume by invoking babysit from a new session.
Wait for the next event.
CI may run on a synthetic merge commit, so each event reports the source branch SHA. When git rev-parse HEAD is newer than the event's sha, a fix is already pushed: wait for the new run.
The monitor skill has already run the provider's logs agent (github:logs or gitlab:logs), which gives a summary and a log-file path. Use the summary to judge triviality.
gh pr checks or glab ci status, then TaskStop.TaskStop.TaskStop.When a conflicts or unresolved mergeable-unknown event arrived for the current SHA, handle it per references/events.md first, since green on a conflicting PR is stale.
Summarize the commits pushed this session with git log <start-sha>..HEAD --oneline. Then continue to --reviews or --merge when set. With neither, report the summary and TaskStop.
For conflicts, mergeable-unknown, queued-timeout, api-error, rate-limited, pr-closed, merged, and max-time-reached, load references/events.md.
What SKILL.md sets; muted values are Claude Code's defaults
low4 skills in this plugin
/createpull-request:createCreate a pull request, merge request, or change request (PR, MR, CR).
Use when the user asks to open one, including right after committing changes.
/follow-uppull-request:follow-upFollow up as the author on review feedback on your PR/MR: triage and draft replies, catch silent resolves, and drive bot reviewers to a passing score. Triggers: "address reviewer feedback", "make the bot reviewer pass", "greptile/coderabbit review", "bot review before pushing".
/updatepull-request:updateUpdate a pull request or merge request body to reflect the current state of changes.
Use when a PR/MR has evolved through additional commits and the body needs to reflect what will be merged.
npx claudepluginhub bendrucker/claude --plugin pull-requestOther plugins' skills for the same job