babysit-pr
Babysit a GitHub pull request after creation by continuously polling CI checks/workflow runs, new review comments, and mergeability state until the PR is…
Skill by caglarkc
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/caglarkc-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, productivity, agent-building
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
- Runs as
- Python package
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
- Babysit a GitHub pull request after creation by continuously polling CI checks/workflow runs, new review comments, and mergeability state until the PR is ready to merge (or merged/closed). Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and stop only when user help is required (for example CI infrastructure issues, exhausted flaky retries, or ambiguous/blocking situations). Use when the user asks Codex to monitor a PR, watch CI, handle review comments, or keep an eye on failures and feedback on an open PR.
- License
- MIT
- Instructions
- 182 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (5)
- SKILL.md
- openai.yaml · agents/
- github-api-notes.md · references/
- heuristics.md · references/
- gh_pr_watch.py · scripts/
SKILL.md (first lines)
# PR Babysitter ## Objective Babysit a PR persistently until one of these terminal outcomes occurs: - The PR is merged or closed. - CI is successful, there are no unaddressed review comments surfaced by the watcher, required review approval is not blocking merge, and there are no potential merge conflicts (PR is mergeable / not reporting conflict risk). - A situation requires user help (for example CI infrastructure issues, repeated flaky failures after retry budget is exhausted, permission problems, or ambiguity that cannot be resolved safely). Do not stop merely because a single snapshot returns `idle` while checks are still pending. ## Inputs Accept any of the following: - No PR argument: infer the PR from the current branch (`--pr auto`) - PR number - PR URL ## Core Workflow 1. When the user asks to "monitor"/"watch"/"babysit" a PR, start with the watcher's continuous mode (`--watch`) unless you are intentionally doing a one-shot diagnostic snapshot. 2. Run the watcher script to snapshot PR/CI/review state (or consume each streamed snapshot from `--watch`). 3. Inspect the `actions` list in the JSON response. 4. If `diagnose_ci_failure` is present, inspect failed run logs and classify the failure. 5. If the failure is likely caused by the current branch, patch code locally, commit, and push. 6. If `process_review_comment` is present, inspect surfaced review items and decide whether to address them. 7. If a review item is actionable and correct, patch code locally, commit, and push. 8. If the failure is likely flaky/unrelated and `retry_failed_checks` is present, rerun failed jobs with `--retry-failed-now`. 9. If both actionable review feedback and `retry_failed_checks` are present, prioritize review feedback first; a new commit will retrigger CI, so avoid rerunning flaky checks on the old SHA unless you intentionally defer the review change. 10. On every loop, verify mergeability / merge-conflict status (for example via `gh pr view`) in addition to CI and review state. 11. After any push or rerun action, immediately return to step 1 and continue polling on the updated SHA/state. 12. If you had been using `--watch` before pausing to patch/commit/push, relaunch `--watch` yourself in the same turn immediately after the push (do not wait for the user to re-invoke the skill). 13. Repeat polling until the PR is green + review-clean + mergeable, `stop_pr_closed` appears, or a user-help-required blocker is reached. 14. Maintain terminal/session ownership: while babysitting is active, keep consuming watcher output in the same turn; do not leave a detached `--watch` process running and then end the turn as if monitoring were complete. ## Commands ### One-shot snapshot ```bash python3 .codex/skills/babysit-pr/scripts/gh_pr_watch.py --pr auto --once ``` ### Continuous watch (JSONL) ```bash python3 .codex/skills/babysit-pr/scripts/gh_pr_watch.py --pr auto --watch ``` ### Trigger flaky retry cycle (only when watcher indicates) ```bash python3 .codex/skills/babysit-pr/scripts/gh_pr_watch.py --pr auto --retry-failed-now ``` ### Explicit PR target ```bash python3 .codex/skills/babysit-pr/scripts/gh_pr_watch.py --pr <number-or-url> --once ``` ## CI Failure Classification Use `gh` commands to inspect failed runs before deciding to rerun. - `gh run view <run-id> --json jobs,name,workflowName,conclusion,status,url,headSha` - `gh run view <run-id> --log-failed` Prefer treating failures as branch-related when logs point to changed code (compile/test/lint/typecheck/snapshots/static analysis in touched areas). Prefer treating failures as flaky/unrelated when logs show transient infra/external issues (timeouts, runner provisioning failures, registry/network outages, GitHub Actions infra errors). If classification is ambiguous, perform one manual diagnosis attempt before choosing rerun. Read `.codex/skills/babysit-pr/references/heuristics.md` for a concise checklist. ## Review Comment Handling The watcher surfaces review items from: - PR issue comments - Inline review comments - Review submissions (COMMENT / APPROVED / CHANGES_REQUESTED) It intentionally surfaces Codex reviewer bot feedback (for example comments/reviews from `chatgpt-codex-connector[bot]`) in addition to human reviewer feedback. Most unrelated bot noise should still be ignored. For safety, the watcher only auto-surfaces trusted human review authors (for example repo OWNER/MEMBER/COLLABORATOR, plus the authenticated operator) and approved review bots such as Codex. On a fresh watcher state file, existing pending review feedback may be surfaced immediately (not only comments that arrive after monitoring starts). This is intentional so already-open review comments are not missed. When you agree with a comment and it is actionable: 1. Patch code locally. 2. Commit with `codex: address PR review feedback (#<n>)`. 3. Push to the PR head branch. 4. Resume watching on the new SHA immediately (do not stop after reporting the push). 5. If monitoring was running in `--watch` mode, restart `--watch` immediately after the push in the same turn; do not wait for the user to ask again. If you disagree or the comment is non-actionable/already addressed, record it as handled by continuing the watcher loop (the script de-duplicates surfaced items via state after surfacing them). If a code review comment/thread is already marked as resolved in GitHub, treat it as non-actionable and safely ignore it unless new unresolved follow-up feedback appears. ## Git Safety Rules - Work only on the PR head branch. - Avoid destructive git commands. - Do not switch branches unless necessary to recover context. - Before editing, check for unrelated uncommitted changes. If present, stop and ask the user. - After each successful fix, commit and `git push`, then re-run the watcher. - If you interrupted a live `--watch` session to make the fix, restart `--watch` immediately after the push in the same turn. - Do not run multiple concurrent `--watch` processes for the same PR/state file; keep one watcher session active and reuse it until it stops or you intentionally restart it. - A push is not a terminal outcome; continue the monitoring loop unless a strict stop condition is met. Commit message defaults: - `codex: fix CI failure on PR #<n>` - `codex: address PR review feedback (#<n>)` ## Monitoring Loop Pattern Use this loop in a live Codex session: 1. Run `--once`. 2. Read `actions`. 3. First check whether the PR is now merged or otherwise closed; if so, report that terminal state and stop polling immediately.
From caglarkc/sentinel-coming, MIT.
More from caglarkc/sentinel-coming
- 0.558score
orchestrate-sentinel
caglarkc
Manage and execute Sentinel CLI, observability-gateway, test-platform, installer, chart, and docs work through the repository's central .orchestrator run graph.
SkillBFreshness: B★ 2Claude Code +9 - 0.501score
agentic-cli-accessibility
caglarkc
CLI deneyimini üretim kalitesine taşımak için etkileşim, çıktı, ergonomi ve güvenli varsayılanlar tasarlanırken kullan.
SkillCFreshness: C★ 2Claude Code +9 - 0.501score
agentic-cli-config-validation
caglarkc
CLI deneyimini üretim kalitesine taşımak için etkileşim, çıktı, ergonomi ve güvenli varsayılanlar tasarlanırken kullan.
SkillCFreshness: C★ 2Claude Code +9 - 0.501score
agentic-cli-alias-command
caglarkc
CLI deneyimini üretim kalitesine taşımak için etkileşim, çıktı, ergonomi ve güvenli varsayılanlar tasarlanırken kullan.
SkillCFreshness: C★ 2Claude Code +9 - 0.501score
agentic-cli-autocomplete
caglarkc
CLI deneyimini üretim kalitesine taşımak için etkileşim, çıktı, ergonomi ve güvenli varsayılanlar tasarlanırken kullan.
SkillCFreshness: C★ 2Claude Code +9 - 0.445score
spreadsheets
caglarkc
Build, edit, recalculate, import, and export spreadsheet workbooks with the preloaded @oai/artifact-tool JavaScript surface through the artifacts tool.
SkillDFreshness: D★ 2Claude Code +9 - 0.445score
slides
caglarkc
Build, edit, render, import, and export presentation decks with the preloaded @oai/artifact-tool JavaScript surface through the artifacts tool.
SkillDFreshness: D★ 2Claude Code +9 - 0.440score
sentinel-phase4-executor
caglarkc
Sentinel CLI Faz 4 — Grafana HTTP bağlantı doğrulama: config, doctor, mock testler, dokümantasyon.
SkillDFreshness: D★ 2Claude Code +9 - 0.440score
sentinel-individual-close-executor
caglarkc
Sentinel CLI bireysel kapanış: REPL’e Grafana doctor özetinin secret-safe enjeksiyonu, config bayrağı, testler ve dokümantasyon.
SkillDFreshness: D★ 2Claude Code +9 - 0.436score
agentic-agent-history-compaction
caglarkc
Uzun oturumlarda konuşma özetleme veya kesme politikası ve korunacak mesajları seçerken kullan.
SkillDFreshness: D★ 2Claude Code +9 - 0.436score
agentic-agent-multi-provider-switch
caglarkc
Oturumlar arası profil ve sağlayıcı değişiminde riskleri ve yeni oturum önerisini tanımlarken kullan.
SkillDFreshness: D★ 2Claude Code +9 - 0.436score
agentic-agent-turn-loop
caglarkc
Ajan tur döngüsü, max_turns, durdurma koşulları ve SIGINT ile iptali tanımlarken kullan.
SkillDFreshness: D★ 2Claude Code +9
Signals
- Stars
- 2
- Forks
- 2
- Open issues
- 0
- Last commit (this folder)
- Apr 4, 2026 (6 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/caglarkc/sentinel-coming
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from caglarkc
- 0.558score
orchestrate-sentinel
caglarkc
Manage and execute Sentinel CLI, observability-gateway, test-platform, installer, chart, and docs work through the repository's central .orchestrator run graph.
SkillBFreshness: B★ 2Claude Code +9 - 0.501score
agentic-cli-config-validation
caglarkc
CLI deneyimini üretim kalitesine taşımak için etkileşim, çıktı, ergonomi ve güvenli varsayılanlar tasarlanırken kullan.
SkillCFreshness: C★ 2Claude Code +9 - 0.501score
agentic-cli-accessibility
caglarkc
CLI deneyimini üretim kalitesine taşımak için etkileşim, çıktı, ergonomi ve güvenli varsayılanlar tasarlanırken kullan.
SkillCFreshness: C★ 2Claude Code +9 - 0.501score
agentic-cli-alias-command
caglarkc
CLI deneyimini üretim kalitesine taşımak için etkileşim, çıktı, ergonomi ve güvenli varsayılanlar tasarlanırken kullan.
SkillCFreshness: C★ 2Claude Code +9 - 0.501score
agentic-cli-autocomplete
caglarkc
CLI deneyimini üretim kalitesine taşımak için etkileşim, çıktı, ergonomi ve güvenli varsayılanlar tasarlanırken kullan.
SkillCFreshness: C★ 2Claude Code +9 - 0.461score
coaching-member-boundary
caglarkc
Coach-member akışlarında aktif ilişki doğrulaması, stale snapshot riski, role boundary ve read-only/member-safe ekran davranışlarını koruma skill'i.
SkillDFreshness: D★ 7Claude Code +9
Cite this page
babysit-pr skill. Agent Mart. https://agentmart.dev/skills/caglarkc-babysit-pr (last updated 2026-10-24)