babysit-pr
Autonomously drive an open PR to merge-ready state by triaging Greptile and CodeRabbit review comments, fixing CI failures, handling CodeRabbit rate limits…
Skill by lgtm-hq
Chalk Labs
Need help deploying babysit-pr?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/lgtm-hq-babysit-pr
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: devops
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/babysit-pr
What's inside
- Skill name
babysit-pr- Description
- Autonomously drive an open PR to merge-ready state by triaging Greptile and CodeRabbit review comments, fixing CI failures, handling CodeRabbit rate limits, and looping until checks are green with no unresolved actionable threads. With the --merge flag, also merge the PR(s) once binding merge-queue conditions are met. Use when asked to babysit a PR, shepherd a PR, or keep a PR merge-ready until review/CI cycles complete.
- License
- MIT
- Instructions
- 432 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Babysit PR Drive an open pull request to a merge-ready state. This may run for hours — work autonomously in a loop until done or blocked. ## Invocation Examples: - `/babysit-pr on #1034` - `Babysit PR #1034 until merge-ready` - `Babysit this PR` (resolve from current branch) - `/babysit-pr --merge #124 #125 #126` (shepherd **and** merge, in queue order) One babysitter for many PRs beats one babysitter per PR — they share a single CodeRabbit rate limit, so a single session drains the queue without multiplying review-limit stalls. ## Hard rules 1. **Never approve** the PR. **Never merge unless invoked with `--merge`** — the flag is the explicit authorization to merge; without it, only the human owner merges. 2. **Lint before every commit** — read and follow the `lint` skill (`uv run lintro fmt` then `uv run lintro chk`, zero issues). Do not use `--tools` filtering. 3. **Never push while CI is pending or running** on the PR head. 4. **Minimal diffs** — fix only what the PR scope and valid review/CI feedback require. 5. **Never weaken CI/workflows** just to make checks pass; report instead if that seems necessary. 6. **Never force-push**, amend pushed commits, or rewrite history unless the user explicitly requested it. ## Composed skills - **`lint`** — pre-commit formatting and checks (required gate). - **`commit`** — conventional commits, signed commits, semantic prefixes. - **`gh-fix-ci`** (if available) — inspect failing GitHub Actions checks and logs. Do not duplicate their full workflows here — read and follow them at commit time. ## Phase 0 — Resolve target PR 1. **PR number**: Extract from the user message (`#123`, URL) or resolve from the current branch: ```bash gh pr view --json number,url,title,headRefName,baseRefName,state,mergeable,mergeStateStatus ``` 2. **Repository**: Use `gh repo view --json nameWithOwner` from the worktree, or parse from a PR URL. 3. **Worktree**: Prefer a path from conversation context. Otherwise scan worktrees: ```bash git worktree list ``` Match `headRefName` to a worktree path. If none exists, use the current git root only when it matches the resolved PR branch. Otherwise stop and ask for the correct worktree before continuing. 4. **Load repo context** (after the target worktree is known): From that worktree root only, read `AGENTS.md` and/or `CLAUDE.md` if present. **Do not** read context from the parent checkout or any other repo. **Precedence:** `AGENTS.md` is authoritative when both exist — do not also apply conflicting `CLAUDE.md` instructions; if only one exists, use that file; if both conflict in a blocking way, stop and ask. Treat house standards, operating agreement (including merge policy / merge-queue notes), and standing constraints as **binding** for this babysit run. See the `stand-general` skill's **Per-repo agent context** section for the expected file shape. Missing the file is fine — fall back to chat instructions and this skill's defaults. 5. **Snapshot** before looping: PR URL, branch, worktree path, latest commit SHA, check summary, open review threads. ## Phase 1 — Launch background sub-agent (if supported) Babysitting is long-running. After Phase 0, if the agent supports background sub-agents (e.g. Claude Code's general-purpose agent run in the background), launch one and pass it the resolved PR metadata, worktree path, hard rules, and this skill's main loop (Phase 2 onward). In that mode, the parent agent returns immediately with the sub-agent link and handoff snapshot. The sub-agent runs until exit conditions are met or a human blocker is found. **Portability note:** on agents without background sub-agents, skip the handoff, tell the user the babysitting loop will occupy the current session, and run the main loop (Phase 2 onward) inline instead. ## Phase 2 — Main loop Repeat until exit conditions (Phase 5) or a blocker. Track loop iterations and elapsed time; **stop and report** if more than 20 iterations or 6 hours pass without reaching exit conditions (avoids unbounded token/API cost on flaky CI or re-triggering bots). ### Step A — Wait for CI ```bash gh pr checks <number> --repo <owner/repo> ``` If any check is `pending` or `in_progress`, wait and re-poll. **Re-poll every 60 seconds; after five consecutive pending polls, double the interval up to 5 minutes.** **Do not push** during this window. ### Step B — Merge conflicts If `mergeable` is `CONFLICTING`, resolve intelligently in the worktree preserving branch intent. If intents conflict, stop and report — do not guess. If the branch is behind base and failures look unrelated, merge onto latest base per repo convention. Only rebase/cherry-pick if the user explicitly approves rewriting history. ### Step C — Fix CI failures For each failing GitHub Actions check: 1. Get check status via `gh pr checks --json`; fetch logs separately with `gh run view <run_id> --log`.
From lgtm-hq/ai-skills, MIT.
More from lgtm-hq/ai-skills
- 0.587score
analyze-project
lgtm-hq
High-level project analysis.
SkillAFreshness: A★ 1Claude Code +9 - 0.587score
analyze-tests
lgtm-hq
Test suite analysis.
SkillAFreshness: A★ 1Claude Code +9 - 0.587score
audit-merges
lgtm-hq
Deep retrospective audit of everything merged to main over a window - code quality against the stand-* skills, introduced bugs, unsafe changes, merges over…
SkillAFreshness: A★ 1Claude Code +9 - 0.587score
implement-issues
lgtm-hq
Implement a set of GitHub issues in parallel - triage or take an explicit issue list, group by file-conflict, create a worktree per lane, delegate to…
SkillAFreshness: A★ 1Claude Code +9 - 0.587score
lintro-review
lgtm-hq
AI branch review using lintro's own `lintro review` — a standard local pre-push pass alongside the coderabbit and greptile CLIs, and the review of record when…
SkillAFreshness: A★ 1Claude Code +9 - 0.587score
commit
lgtm-hq
Pre-commit workflow and commit guidelines.
SkillAFreshness: A★ 1Claude Code +9 - 0.587score
greptile
lgtm-hq
Run Greptile CLI for pre-push AI branch review.
SkillAFreshness: A★ 1Claude Code +9 - 0.587score
issue
lgtm-hq
Create GitHub issues with proper formatting, labels, and AI implementation prompts.
SkillAFreshness: A★ 1Claude Code +9 - 0.587score
pr
lgtm-hq
Create pull requests with proper templates and metadata.
SkillAFreshness: A★ 1Claude Code +9 - 0.587score
pr-raycast
lgtm-hq
Prepare and open a pull request to raycast/extensions.
SkillAFreshness: A★ 1Claude Code +9 - 0.587score
analyze-code
lgtm-hq
Code-level quality analysis.
SkillAFreshness: A★ 1Claude Code +9 - 0.587score
backlog
lgtm-hq
Interactive dispatcher for backlog work.
SkillAFreshness: A★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 15
- Last commit (this folder)
- Oct 3, 2026 (27 days ago)
- Last release
- Oct 22, 2026 (9 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/lgtm-hq/ai-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from lgtm-hq
- 0.587score
analyze-tests
lgtm-hq
Test suite analysis.
SkillAFreshness: A★ 1Claude Code +9 - 0.587score
analyze-project
lgtm-hq
High-level project analysis.
SkillAFreshness: A★ 1Claude Code +9 - 0.587score
implement-issues
lgtm-hq
Implement a set of GitHub issues in parallel - triage or take an explicit issue list, group by file-conflict, create a worktree per lane, delegate to…
SkillAFreshness: A★ 1Claude Code +9 - 0.587score
lintro-review
lgtm-hq
AI branch review using lintro's own `lintro review` — a standard local pre-push pass alongside the coderabbit and greptile CLIs, and the review of record when…
SkillAFreshness: A★ 1Claude Code +9 - 0.587score
audit-merges
lgtm-hq
Deep retrospective audit of everything merged to main over a window - code quality against the stand-* skills, introduced bugs, unsafe changes, merges over…
SkillAFreshness: A★ 1Claude Code +9 - 0.587score
analyze-code
lgtm-hq
Code-level quality analysis.
SkillAFreshness: A★ 1Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get babysit-pr running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
babysit-pr skill. Agent Mart. https://agentmart.dev/skills/lgtm-hq-babysit-pr (last updated 2026-10-24)