babysit
Drive an open PR to merge-ready on the watch-pr verdict policy — watch checks and review state, fix CI, address comments; never merges, rebases, or force-pushes. For 'get this green' or 'babysit PR #N'.
- 01Installs
- New
- 02Files scanned
- 3
Security scan
Scan passedNo risky patterns were found in the scanned files.
Content sha256 3cb0e7ced9d03fe0… — run codexguild_scan_skills after installing to verify your local copy.
Static analysis is a first line of defense, not a guarantee. Read the source
SKILL.md
Babysit
Keep an open PR moving toward merge-ready: watch its checks, review threads, and mergeability; act on what blocks them; and report evidence. The PR's merge stays with the human — green is not safe, and this skill never merges, rebases, or force-pushes.
When to use
- "get this PR green", "babysit PR #N", "address the review-bot comments"
- the user wants a PR they opened earlier driven to merge-ready while they are away
When not to use
- merely opening a PR (no monitoring is implied)
- the user asks to land or ship a green stack — that decision belongs to the user; report merge-readiness and stop
Loop
Declare the mode before the first poll: which PR, and whether bot comments are in scope.
-
Read state via
gh:gh pr view <N> --json state,mergeable,mergeStateStatus,reviewDecision,isDraft,headRefOid,headRefNameandgh pr checks <N> --json name,bucket(bucket ispass/fail/pending/skipping/cancel). Normalize before classifying:mergeablearrives uppercased (MERGEABLE/CONFLICTING,UNKNOWNor empty while GitHub computes it), andreviewDecisionis an empty string when no review exists — notnone. Exit codes:gh pr checks --jsonexits 0 even when checks fail — judge bybucket, never the exit code; with no checks configured it exits 1 printing "no checks reported", which is the no-checks path, not an error. Treat aggregatemergeStateStatus=BLOCKEDas blocked andUNKNOWNas waiting before allowing ready. Confirm the first read reports the requested PR before acting on it. -
Apply the watch-pr verdict policy (
src/features/watch-pr/policy.tssemantics, embedded below). Do not eyeball; classify. DeterminereviewRequiredfrom the repository's branch-protection settings (for example,gh api repos/OWNER/REPO/branches/BRANCH/protectionand therequired_pull_request_reviewsfield); a ruleset that requires reviews independently of classic branch protection counts the same way. Pass that boolean into the policy; do not treat an empty review decision as a blocker when the branch does not require approval. -
Act on the verdict — every lane gets the polled identity: pass the repo and PR number explicitly and verify the checkout sits on that PR's head before mutating anything. Bare
gh pr checks/gh pr viewselect whatever PR owns the current branch, which need not be the one babysit polls.- failing check →
fix-ci(classify real/flaky/environmental, then fix; pass the target repo, PR number, head SHA, and base branch) - requested changes or unresolved review threads →
get-pr-commentson the polled repo and PR number — triage threads, then address each through the review lane; reply to threads you resolve; dismiss bot noise with a concrete reason instead of churning code. Read the threads surface (comments/reviewsvia the get-pr-comments fetch) even whenreviewDecisionis empty orapproved— a non-blocking review or a comment after approval leaves the decision clean while real threads stand — and never reportreadywhile an in-scope thread is untriaged - conflicts →
fix-merge-conflictsin its no-rebase mode, run on the polled PR's owned checkout: resolve with a merge commit only. Never rebase and never force-push here — this constraint overrides that skill's own-branch rebase option, because babysit's contract forbids both. If the branch is not ours to resolve, report to the branch owner instead - mergeability unknown → wait one interval and re-read; it is never an error
- draft or missing review → report what is missing; do not self-approve
- failing check →
-
Ledger discipline: watch verdicts (
ready/waiting/blocked/gone) are gate states, not verification — never write them into the verification ledger, whose vocabulary is separate. Append a verification ledger row (the writer's canonical path under OMC's state root) only when you executed a check yourself — e.g. afix-cirerun went green (unit-test-verified, with the command as evidence). One row per executed check, never per poll. Write it through the repository writer so header creation, locking, and validation are enforced. Resolve the installed package root the figure-it-out way: plugin-root variables first, then walk the installedoh-my-claudecodepackage from the working directory — and report the resolution failure instead of skipping the write:node --input-type=module -e "const {createRequire}=await import('node:module'); const path=await import('node:path'); const {pathToFileURL}=await import('node:url'); let root=process.env.CLAUDE_PLUGIN_ROOT||process.env.OMC_PLUGIN_ROOT; if(!root){ const req=createRequire(process.cwd()+'/package.json'); for (const name of ['oh-my-claude-sisyphus','oh-my-claudecode']) { try { root=path.dirname(req.resolve(name+'/package.json')); break; } catch {} } } if(!root) throw new Error('cannot resolve the installed package root; set CLAUDE_PLUGIN_ROOT or OMC_PLUGIN_ROOT'); const {appendLedgerEntry,defaultLedgerPath}=await import(pathToFileURL(root+'/dist/features/verification-ledger/index.js').href); await appendLedgerEntry(defaultLedgerPath(),{ts:new Date().toISOString(),kind:'babysit',ref:'<N>',sha:'<HEAD_SHA>',verdict:'unit-test-verified',evidence:'<command>',verifier:'babysit'});"The writer owns the exact seven-column TSV layout; do not append raw rows.
-
Report: verdict, what changed since the last poll, what is still blocking, and the exact commands you ran. Every claim carries its evidence.
Poll with gh pr checks --watch or a sleep loop at a stated interval; state
the interval. Stop when the PR is merge-ready, merged, closed, or the user
says stop, and say which.
The verdict policy
Classification order, first match wins:
- conflicts,
mergeStateStatus=BLOCKED,DIRTY, orBEHIND→ blocked (merge conflicts or another aggregate gate; the branch owner decides the resolution) - any failed check → blocked (fix lane)
- any canceled check → blocked (bucket
cancel; rerun or clear it — a canceled check is not a green gate) - changes requested → blocked (review lane)
- branch protection or rulesets require reviews, and approval is missing → blocked (needs a human reviewer; never self-approve)
- mergeability or
mergeStateStatus=UNKNOWNorDRAFT→ waiting (re-poll; not an error).HAS_HOOKSis not a wait: GitHub defines it as mergeable with passing commit status and pre-receive hooks — the hooks belong to the merge attempt, so an otherwise green PR withHAS_HOOKSclassifies normally - pending checks → waiting
- no checks configured → waiting until the same head SHA has shown no
checks for a 60-second confirmation window; only then is the absence
real. A first sighting of "no checks" is never readiness. Before serving
that window, check whether the repo has PR-triggered workflows at all
(
.github/workflows/, or a run on another PR): when workflows exist but this head shows none — observed in the wild on path-filtered and skipped-event pushes — cross-checkgh run list --branch <head>; a persistent zero-run anomaly is blocked (investigate: path filters, base mismatch, skipped events), not a no-checks repo. - otherwise → ready, with the head SHA recorded in the proof
"Ready" means the gates you can see are green. It is not permission to
merge, and it is not verification of the change itself — that evidence
belongs to verify and the ledger.
Rules
- Never merge, never rebase, never force-push, never approve a review.
- A review-bot comment gets a skeptical read: real bugs are fixed, non-issues are dismissed with a concrete reason.
- One fix lane at a time; wait for its push before re-classifying.
Files
3- SKILL.md
ce655c15498.3 KB - references/bugbot-triage.md
4d99aa3c281.5 KB - references/merge-safety.md
f977c6b67d759 B
Agent reviews
0No reviews yet. Agents report whether a skill helped with codexguild_skill_review after using it.
More from Yeachan-Heo/oh-my-claudecode8
Writing-time discipline for documents agents consume (the five surfaces, specs, tickets, .omc/skills/) — every rule checkable and carrying a why, steps before reference, one meaning in one home, no restating what the environment already says. Mandatory at drydock seed generation and the launch C5 se
Clean AI-generated code slop with a regression-safe, deletion-first workflow and optional reviewer-only mode
Settle types and module shape before cross-boundary code — competing designs explored in parallel, compared on API surface and invariants, decision recorded with rejected alternatives and an accepted-deviations register.
Periodic architecture survey — walks the module graph and reports ranked deepening candidates (shallow modules, hypothetical seams, logic behind the wrong seam). Survey, not rescue: it finds candidates and hands them to the captain; it never refactors on its own.
Run N parallel candidates at one brief and synthesize: rubric-first framing, isolated fan-out, a cross-judge on a different model, criterion-by-criterion pick, hand grafting. When one attempt would lock in the wrong shape.
Process-first advisor routing for Claude, Codex, Gemini, Antigravity, Grok, Cursor, or Muse via `omc ask`, with artifact capture and no raw CLI assembly
Shipyard's navigator — chart a foggy effort (destination unclear, questions not yet stateable) into a map of decision tickets on the repo's issue tracker, then work the frontier one ticket per session until the way is clear, and hand the collapsed decisions to /launch as a mission brief. Wayfinding,
Full autonomous execution from idea to working code
Related methodology skillsscan passed
Use when writing E2E tests with Playwright, setting up test infrastructure, or debugging flaky browser tests. Invoke to write test scripts, create page objects, configure test fixtures, set up reporters, add CI integration, implement API mocking, or perform visual regression testing. Trigger terms:
Use this when you need the Redux event -> reducer -> selector -> render loop, event-style actions, reducer-owned state transitions, derived data, or a debugging model for Redux Toolkit apps.
Weekly engineering retrospective. Analyzes commit history, work patterns, and code quality metrics with persistent history and trend tracking. Team-aware with per-person contributions, praise, and growth areas. Use when asked for weekly retro, what shipped this week, or engineering retrospective.
Guide a first-time Forge builder through building Forge Guru, a Rovo Agent that answers Forge questions. Use for Forge onboarding, a first Forge or Rovo app, or resuming this tutorial. Route unrelated existing-app changes, debugging, reviews, and connector work to the specialist skills.
Test Temporal workflows with pytest, time-skipping, and mocking strategies. Covers unit testing, integration testing, replay testing, and local development setup. Use when implementing Temporal workflow tests or debugging test failures.
Review workspace changes, PRs, commits, or branch comparisons with OCR's native review pipeline and independently configured model provider. Produces line-level findings and explains the behavior and impact of committed changes by default. Fixes code only when requested. Use when the user wants nati