babysit-pr
0-arg restart-safe PR check, diagnose, fix, and hand-off loop.
Skill by sh-ai-x
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/sh-ai-x-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
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
Tools it pre-approves 4
From allowed-tools in SKILL.md: the agent may use these without asking you each time.
ReadWriteBashAgent
What's inside
- Skill name
babysit-pr- Description
- 0-arg restart-safe PR check, diagnose, fix, and hand-off loop.
- License
- MIT
- Allowed tools
- Read, Write, Bash, Agent
- Instructions
- 81 lines in SKILL.md · view on GitHub
Before installing
- Pre-approves any shell command
Files (2)
- SKILL.md
- canonical-wiring.md · recipes/
SKILL.md (first lines)
> [← Skills index](../../README.md) # `/dev-kit:babysit-pr` Before acting, read [`skills/babysit-pr/SKILL.md`](.) (this file) end-to-end. The durable-loop algorithm, state schema, and operator bypass contract live here and in `lib/babysit_pr_cli` / `lib/babysit_pr_reliability` (this section keeps the invocation and non-negotiable safety gates visible to the orchestrator). ## Target resolution: evidence only Default target is the open PR for the current branch. `--pr N` is explicit. `CONVERSATION_PR` is established only by a literal PR number in the user message or the immediately preceding assistant tool result that created/listed that PR. The phrase `"babysit the latest PR"` is not evidence; never infer a target from recency or PR number. ### Validate a conversation handoff From main, validate a handoff with `gh pr view "$CONVERSATION_PR"` before any candidate enumeration. If `CONVERSATION_STATE" != "OPEN"`, exit 1 rather than reporting success. A validated handoff goes directly to worktree resolution. Otherwise list candidate PRs off main. Exactly one candidate, or a validated conversation handoff, goes directly to worktree resolution; The rule is: Exactly one candidate, or a validated conversation handoff goes directly to worktree resolution. **Multiple candidates without a conversation handoff** are printed and stop. **Never auto-pick.** Zero candidates exits 0 with “nothing to babysit”. Run inside the PR-owning worktree. Main may resolve or create that worktree only after explicit target validation; outside a repository exits 0. Source `hooks/lib/worktree-detect.sh` rather than reimplementing checkout detection. ## Durable loop The complete loop is: snapshot PR/review/checks → load and persist phase → terminate only on approved + green → classify blockers → wait on pending → fetch changed failure logs → diagnose one root cause → apply one logical fix → verify locally and quote `local: <command> → <result> (exit <code>)` → persist outcome → commit specific paths → push → log → wait → save check-state → increment with a bounded cap. Unchanged failing checks are not re-fetched; this saves polling, not CI execution. Persist `WAIT_FOR_CHECKS`, `WAIT_FOR_APPROVAL`, and `RECOVERY_REQUIRED` so a restart cannot become a false success. Three consecutive no-information outcomes enter recovery. A live `.dev-kit/babysit.lock` refuses a second run; stale locks use `lib/babysit_pr_reliability.py:is_stale_lock()`. Keep the PR-owning worktree, branch, logs, and `.dev-kit/babysit-retention.json` after terminal PR state for post-PR analysis; only the operator cleans them up. ## Safety gates - No auto-merge, `gh pr merge`, force-push to main/master, `reset --hard`, `clean -fd`, branch deletion, or secret auto-removal. - Never skip a failing test, weaken a required check, disable review/security, mask a root cause with `|| true`, or push before local verification passes. - Secret detection aborts with file:line. Review approval is human-only; only approved + green is successful completion. - `MAX_ITERS` limits the worker, not approval time. Never silently retry past the cap and never claim “fixed” without the evidence line and exit code. ## Single-operator bypass `--operator-is-only-human` requires `--rationale`, checks CODEOWNERS and the GitHub collaborators API, and posts an audit comment only when no alternate owner is confirmed. API uncertainty is fail-closed to the human gate. It never merges. See the docs for helper exit codes and named I/O shims. ## Usage and hand-off ```bash /dev-kit:babysit-pr [--pr N] [--operator-is-only-human] [--rationale "<text>"] ``` Every iteration reports branch, check, verdict, log, fix, local verification, push, review, and remaining blockers. The loop uses `stop-verify`, `secret-scan`, `slop-detector`, `bash-guard`, and `git-guard`; `tdd-guard` is off because this skill repairs an existing PR rather than authoring a feature. After approved + green, hand off to `/dev-kit:ship`; this skill never merges.
From sh-ai-x/dev-harness-kit, MIT.
More from sh-ai-x/dev-harness-kit
- 0.587score
harness-effectiveness
sh-ai-x
0-arg harness-effectiveness report.
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
gate-select
sh-ai-x
Unified 3-dimension picker for project / session / AI-judge gates.
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
babysit-pr-local
sh-ai-x
0-arg local-mode PR babysitter.
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
harness-mode
sh-ai-x
Session-scoped local-hook mode picker — fast (all optional local hooks off), full (default, all on), or custom (interactive per-local-hook picker via…
SkillAFreshness: A★ 1Claude Code +9 - 0.581score
guard-mode
sh-ai-x
Session-scoped on/off toggle for the tdd-guard, worktree-guard, and git-guard hard-block hooks.
SkillAFreshness: A★ 1Claude Code +9 - 0.581score
bootstrap
sh-ai-x
0-arg setup for CLAUDE.md, AGENTS.md, hooks, and optional CI.
SkillAFreshness: A★ 1Claude Code +9 - 0.580score
build
sh-ai-x
0-arg.
SkillAFreshness: A★ 1Claude Code - 0.552score
codex-cache-update
sh-ai-x
Refresh the dev-kit Codex marketplace checkout and synchronize the versioned plugin cache.
SkillBFreshness: B★ 1Claude Code +9 - 0.547score
bump
sh-ai-x
Explicit version bump of `.claude-plugin/plugin.json` + push of `chore/bump-vX.Y.Z`.
SkillBFreshness: B★ 1Claude Code +9 - 0.544score
evaluate
sh-ai-x
0-arg eval extension.
SkillBFreshness: B★ 1Claude Code +9 - 0.544score
evidence-plan
sh-ai-x
Idea → cited research → HTML proposal (human confirms) → /dev-kit:plan hand-off.
SkillBFreshness: B★ 1Claude Code - 0.544score
ci-triage
sh-ai-x
Triage failing GitHub Actions runs across recent commits, dedupe against a persisted case store, judge new failures against a model/context/harness taxonomy…
SkillBFreshness: B★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 2
- Open issues
- 8
- Last commit (this folder)
- Oct 1, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/sh-ai-x/dev-harness-kit
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from sh-ai-x
- 0.587score
harness-effectiveness
sh-ai-x
0-arg harness-effectiveness report.
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
harness-mode
sh-ai-x
Session-scoped local-hook mode picker — fast (all optional local hooks off), full (default, all on), or custom (interactive per-local-hook picker via…
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
babysit-pr-local
sh-ai-x
0-arg local-mode PR babysitter.
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
gate-select
sh-ai-x
Unified 3-dimension picker for project / session / AI-judge gates.
SkillAFreshness: A★ 1Claude Code +9 - 0.581score
guard-mode
sh-ai-x
Session-scoped on/off toggle for the tdd-guard, worktree-guard, and git-guard hard-block hooks.
SkillAFreshness: A★ 1Claude Code +9 - 0.581score
bootstrap
sh-ai-x
0-arg setup for CLAUDE.md, AGENTS.md, hooks, and optional CI.
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/sh-ai-x-babysit-pr (last updated 2026-10-24)