[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C2AG5PXZ5SXRGYJVK3TSV8":3,"skill-same:01M6C2AG5PXZ5SXRGYJVK3TSV8":64},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":46,"repositoryHtmlUrl":47,"repositoryHomepageUrl":6,"ownerHtmlUrl":48,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":49,"install":50,"resources":63},"01M6C2AG5PXZ5SXRGYJVK3TSV8","pr-babysit",null,"Drive all open PRs toward \u002Fgreen (CI green + no merge conflicts) by fixing CI failures, and toward draft-phase quality readiness by resolving comments and running the smoke gate. CodeRabbit\u002FBugbot are optional advisory reviewers — surfaced for information, never a gate or a wait. Use when the user wants to nurse PRs to merge-readiness.","jleechanorg\u002Fjleechan-skills","jleechanorg","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F221404966?v=4","01M6C1VJ99XG950X1DWPEBCBGX","01M6C1VJDK5YVDNT3362RT5WSB",6,"MIT","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpr-babysit\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"pr babysit","babysit","pr","comments","merge conflicts","prs","for","smoke","running","wait","conflicts","phase","when","information","green","merge","use","open","ci","never","2026-11-10 10:12:30",false,"---\nname: pr-babysit\ndescription: Drive all open PRs toward \u002Fgreen (CI green + no merge conflicts) by fixing CI failures, and toward draft-phase quality readiness by resolving comments and running the smoke gate. CodeRabbit\u002FBugbot are optional advisory reviewers — surfaced for information, never a gate or a wait. Use when the user wants to nurse PRs to merge-readiness.\n---\n\n# \u002Fbabysit — PR Green-Gate Babysitter\n\n## Retained review integrations\n\nThe shared catalog preserves host-installed `\u002Fadvice` and `\u002Fweb-advice` integrations instead of installing them. Before invoking either, resolve its `..\u002Fadvice\u002FSKILL.md` or `..\u002Fweb-advice\u002FSKILL.md` relative to this package and read the existing skill. For a remote invocation, check the corresponding skill on the target host. If absent, report that integration as `UNAVAILABLE` and identify the missing package; do not invent a replacement runner, claim an approval, or treat a required gate as passed. Continue independent authorized work, but leave any dependent readiness or plan-approval gate unmet. Existing review quorum, external-disclosure authorization, and optional-review rules still apply.\n\n\n## Purpose\n\nSystematically drive all open PRs toward `\u002Fgreen` (CI green + no merge conflicts,\nsee `..\u002Fpr-green-definition\u002FSKILL.md`) plus draft-phase quality readiness\n(`\u002Fes`, `\u002Fer`, `\u002Fadvice`, evidence, comment resolution). For each PR:\n1. Audit `\u002Fgreen` (gates 1-2 below) and the draft-phase quality checks (gates 5-6 below)\n2. Fix any blocking failures\n3. Optionally surface CodeRabbit\u002FBugbot feedback (gates 3-4) for information — never wait on or require them\n4. Once all applicable blocking checks pass, run `\u002Fsmoke` and report readiness; resolve merge authority through the shared size-tiered rule and the target repository's current contract\n\nThe retired Skeptic automation is not a current readiness gate. `\u002Fbabysit`\nreports readiness but never merges. Merge authorization follows the shared\nsize-tiered rule and the target repository's current contract.\n\n**Note (2026-07-28):** `\u002Fgreen` itself is now ONLY gates 1-2 below (CI green + no\nmerge conflicts). Gates 5-6 (comment resolution, evidence) are draft-phase\nquality gates that gate leaving DRAFT status, not `\u002Fgreen` — see\n`..\u002Fpr-green-definition\u002FSKILL.md`. Gates 3-4 (CodeRabbit, Bugbot) are\n**optional advisory reviewers** — babysit may surface their feedback for\ninformation, but never waits on or requires them to consider a PR ready.\n\n## Draft-Phase + `\u002Fgreen` Criteria\n\n| # | Gate | Check | Counts toward `\u002Fgreen`? |\n|---|------|-------|--------------------------|\n| 1 | CI green | All GitHub Actions checks pass (no FAILURE conclusions) | Yes |\n| 2 | No conflicts | `mergeable == \"MERGEABLE\"` | Yes |\n| 3 | CR feedback | CodeRabbit latest review state | No — optional advisory, informational only |\n| 4 | Bugbot feedback | cursor[bot] error-severity comments | No — optional advisory, informational only |\n| 5 | Comments resolved | Zero unresolved non-nit inline review comments | No — draft-phase |\n| 6 | Evidence pass | Evidence bundle exists or N\u002FA justified | No — draft-phase |\n\n## Execution Protocol\n\n### Phase 1: Discover All Open PRs\n\n```bash\ngh pr list --state open --json number,title,headRefName,headRefOid,mergeable \\\n  --jq '.[] | \"\\(.number)|\\(.title)|\\(.headRefName)|\\(.headRefOid[:12])|\\(.mergeable)\"'\n```\n\n### Phase 2: Audit Each PR (`\u002Fgreen` + Draft-Phase Check)\n\nFor each open PR, check all 6 gates:\n\n```bash\n# Gate 1: CI status\ngh pr view \u003CNUM> --json statusCheckRollup \\\n  --jq '[.statusCheckRollup[] | select(.conclusion == \"FAILURE\")] | length'\n\n# Gate 2: Mergeable\ngh pr view \u003CNUM> --json mergeable --jq '.mergeable'\n\n# Gate 3: CodeRabbit review\ngh api repos\u002F$GITHUB_REPOSITORY\u002Fpulls\u002F\u003CNUM>\u002Freviews \\\n  --jq '[.[] | select(.user.login==\"coderabbitai[bot]\")] | last | .state'\n\n# Gate 4: Bugbot errors\ngh api repos\u002F$GITHUB_REPOSITORY\u002Fpulls\u002F\u003CNUM>\u002Fcomments \\\n  --jq '[.[] | select(.user.login==\"cursor[bot]\" and (.body | test(\"error\";\"i\")))] | length'\n\n# Gate 5: Unresolved comments\nrepo_with_owner=$(gh repo view --json nameWithOwner --jq '.nameWithOwner')\nrepo_owner=${repo_with_owner%%\u002F*}\nrepo_name=${repo_with_owner#*\u002F}\ngh api graphql -f query='\n  query($owner:String!, $name:String!, $pr:Int!) {\n    repository(owner:$owner, name:$name) {\n      pullRequest(number:$pr) {\n        reviewThreads(first:100) {\n          nodes { isResolved }\n        }\n      }\n    }\n  }\n' -f owner=\"$repo_owner\" -f name=\"$repo_name\" -F pr=\u003CNUM> \\\n  --jq '[.data.repository.pullRequest.reviewThreads.nodes[] | select(.isResolved==false)] | length'\n\n# Gate 6: Evidence in PR body\ngh pr view \u003CNUM> --json body --jq '.body' | grep -i -E \"evidence|gist|video|mp4|N\u002FA\"\n```\n\n### Phase 3: Categorize PRs\n\nGroup PRs by the four blocking gates (1, 2, 5, 6) — gates 3-4 (CodeRabbit,\nBugbot) are informational only and never affect a PR's category:\n- **RED** (2+ blocking gates failing): needs code fixes\n- **YELLOW** (1 blocking gate failing): needs comment resolution or evidence\n- **GREEN** (all 4 blocking checks passing — `\u002Fgreen` gates 1-2 plus draft-phase\n  quality gates 5-6): run `\u002Fsmoke`, then report readiness under the current\n  merge-authorization rule\n\n### Phase 4: Fix RED PRs\n\nFor each RED PR, use subagents (Agent tool, subagent_type: copilot-fixpr) to:\n1. Read the Green Gate workflow log to identify the exact failing gate\n2. Fix the root cause:\n   - **CI test failures**: read test output, fix code, push\n   - **Design Doc Gate**: add design doc reference to PR body\n   - **Lint\u002Ftype errors**: fix code, push\n3. Dispatch agents in parallel — one per PR or group of related PRs\n\nCommon fixes:\n- Test assertion mismatch after rebase → rebase onto `origin\u002Fmain`\n- Missing evidence → create evidence bundle or add N\u002FA justification\n- Stale review threads → resolve via GitHub API\n\nCodeRabbit\u002FBugbot feedback (gates 3-4) can be read for useful signal, but\ntriggering or waiting on a re-review is never required to unblock a RED PR.\n\n### Phase 5: Fix YELLOW PRs\n\nFor each YELLOW PR:\n1. **Gate 5 (unresolved comments)**: Resolve review threads\n2. **Gate 6 (no evidence)**: Add evidence or N\u002FA to PR body\n3. Optionally comment `@coderabbitai all good?` to refresh CR feedback — informational only, not required\n\n### Phase 6: Run Smoke on GREEN PRs\n\nFor PRs at all 4 blocking checks (`\u002Fgreen` gates 1-2 plus draft-phase quality gates 5-6):\n\n```bash\n# Trigger Green Gate workflow if no recent run\ngh workflow run green-gate.yml --ref \u003Cbranch> -f pr_number=\u003CNUM>\n\n# Trigger smoke tests via PR comment\ngh pr comment \u003CNUM> --body \"\u002Fsmoke\"\n```\n\nOnce smoke passes, report the PR as `\u002Fgreen` plus draft-phase-quality-complete.\nBabysit itself never merges. The session that owns any merge must follow the\nshared size-tiered merge rule and the target repository's current contract.\n\n### Phase 7: Report Final Status\n\nPrint a summary table:\n\n```\nPR #\u003CN> — age: \u003CXh Ym> — status: \u003Cred|yellow|green|\u002Fgreen>\n  Blocking gates: 1=✓ 2=✓ 5=✓ 6=✓ | Advisory (informational only): CR=✓ Bugbot=✓\n  Action: \u002Fgreen; apply the shared merge-authorization rule\n```\n\n## PR Green Loop Protocol (MANDATORY)\n\n- **Batch all fixes** into one commit, not one per finding\n- **Push once** per batch of fixes\n- **CodeRabbit\u002FBugbot: optional advisory reviewers** — read their feedback, take what's useful; never a gate, never a wait. Dismissing or ignoring their CHANGES_REQUESTED reviews is allowed; they never block a merge.\n\n## Subagent Dispatch Strategy\n\n- **Independent PRs**: Dispatch one agent per PR in parallel\n- **Related PRs** (same feature area): Group under one agent\n- **GREEN PRs**: One agent to trigger smoke on all, then report readiness\n\nAgent type: `copilot-fixpr` for fixing, `general-purpose` for auditing\u002Ftriggering\n\n### Phase 8: Hold Loop — Stay Alive Until All PRs Merge or Are Reported Ready\n\nAfter Phase 7, if any PRs are still open, **do not exit**. Schedule a wakeup to re-check:\n\n```python\n# In \u002Floop mode (Claude Code interactive) — fires only when REPL is idle, never interrupts work\nScheduleWakeup(\n    delaySeconds=180,   # 3 min — within 5-min cache window, catches Design Doc bot commits\n    prompt=\"\u003C\u003Cautonomous-loop-dynamic>>\",\n    reason=\"babysit hold: re-checking gate status after Design Doc bot commits\"\n)\n```\n\nOn each wakeup iteration, run a **lightweight status sweep** (not a full audit):\n\n```bash\n# Re-check gate status for each open PR (no skeptic dispatch — nothing to re-dispatch,\n# skeptic-cron.yml was removed repo-wide; see rev-p0cc4).\nfor pr in $(gh pr list --repo $GITHUB_REPOSITORY --state open --json number --jq '.[].number'); do\n  fail=$(gh pr view $pr --repo $GITHUB_REPOSITORY --json statusCheckRollup \\\n    --jq '[.statusCheckRollup[] | select((.__typename==\"StatusContext\" and (.state==\"FAILURE\" or .state==\"ERROR\")) or (.__typename==\"CheckRun\" and (.conclusion\u002F\u002F\"\" | ascii_upcase | (.==\"FAILURE\" or .==\"ERROR\" or .==\"TIMED_OUT\"))))] | length')\n  pending=$(gh pr view $pr --repo $GITHUB_REPOSITORY --json statusCheckRollup \\\n    --jq '[.statusCheckRollup[] | select(.__typename==\"CheckRun\" and (.conclusion==null or .conclusion==\"\"))] | length')\n  mergeable=$(gh pr view $pr --repo $GITHUB_REPOSITORY --json mergeable --jq '.mergeable')\n  if [[ \"$fail\" == \"0\" && \"$pending\" == \"0\" && \"$mergeable\" == \"MERGEABLE\" ]]; then\n    echo \"PR #$pr is \u002Fgreen and ready — report readiness; babysit never merges. Apply the shared merge-authorization rule.\"\n  else\n    echo \"PR #$pr not ready yet (failures=$fail pending=$pending mergeable=$mergeable)\"\n  fi\ndone\n```\n\n**Exit condition**: Stop scheduling wakeups when `gh pr list --repo $GITHUB_REPOSITORY --state open --json number --jq 'length'` returns `0`, or when all remaining PRs are fully reported and ready under the current merge-authorization rule. Do not keep polling PRs that have already been reported ready.\n\n**CronCreate alternative** (non-interactive \u002F cron-based sessions):\n```python\n# Guard: create at most ONE cron job per babysit session. Check CronList first.\njobs = CronList()\nbabysit_jobs = [j for j in jobs if \"babysit\" in j.get(\"prompt\", \"\").lower()]\nif not babysit_jobs:\n    job_id = CronCreate(\n        cron=\"*\u002F5 * * * *\",  # every 5 minutes\n        # Sweep-only prompt — do NOT use \"\u002Fbabysit\" here (that runs full 6-phase audit).\n        # This fires the Phase 8 status sweep: report which open PRs are \u002Fgreen and\n        # Report readiness under the shared merge-authorization rule. No skeptic re-dispatch.\n        prompt=\"Run \u002Fbabysit Phase 8 status sweep only: for each open PR in $GITHUB_REPOSITORY, check \u002Fgreen (CI + no-conflicts) and draft-phase quality status, then report PRs ready under the shared merge-authorization rule. Babysit never merges. Skip full Phase 1-7 audit.\",\n        recurring=True\n    )\n```\nUse CronCreate only when NOT in an interactive `\u002Floop` session. Delete the job with CronDelete once all PRs merge. The guard above prevents duplicate cron jobs from accumulating across repeated babysit invocations.\n\n**Key rule: never sleep-poll inline.** The wakeup fires while the REPL is idle — it cannot interrupt a user conversation or an in-progress tool call. This is safe to leave running.\n\n## Evidence Monitoring Protocol\n\nWhen babysitting active testing or evidence generation:\n\n1. **Poll evidence traces**: Verify that the testing framework writes traces under the task's unique `\u002Ftmp\u002F\u003Crepo>\u002Fevidence\u002F...` directory, as specified by `~\u002F.codex\u002FAGENTS.md` § Workspace and method fidelity. Confirm `.jsonl` files are non-empty.\n2. **Publish durable evidence**: When the workflow requires evidence to outlive the task, use the authorized gist or GCS publication process in `~\u002F.claude\u002Fskills\u002Fevidence-standards\u002FSKILL.md`. Never copy capture bundles into the source repository.\n3. **Testing Gap Close Integration**: If evidence bundles fail to generate (empty `.jsonl` files, missing checksums, server timeout errors, or `EvidenceSignatureGuard` rejections), immediately invoke the `\u002Ftesting-gap-close` skill to harden the server lifecycle and resolve the failure.\n4. **Stop task-owned processes**: If a task-owned process hangs, verify its PID still belongs to the expected task and worktree, then follow that service's cleanup owner. For local development servers, use the stop procedure from the product plugin's `local-dev-server` skill or the repository's own server docs, if one is installed. Never kill processes by port or name, signal an unverified process group, or use broad `pkill` fallbacks.\n\n## Anti-Patterns (BANNED)\n\n- Polling CI status in a sleep loop — check once\n- Waiting for or requiring CodeRabbit\u002FBugbot before pushing or reporting a PR ready — they are optional advisory reviewers only\n- Resolving review threads to trigger auto-approve\n- Declaring `\u002Fgreen` without Green Gate log verification for gates 1-2\n- Reporting a PR as \"looking good\" after checking only mergeable — always run statusCheckRollup check first\n- Running `gh pr merge` from babysit — it reports readiness only; any merge follows the shared size-tiered rule and the target repository's current contract\n- Calling `sleep` inline to wait for bots — use `ScheduleWakeup` instead\n- Exiting babysit after Phase 7 while PRs are still failing\u002Fpending gates — keep working them; PRs that have reached `\u002Fgreen` plus draft-phase-quality-complete and been reported ready are a hold-and-surface case (Phase 8), not a \"keep polling forever\" case — babysit does not perform merges, and its monitoring ends when readiness has been reported\n","# \u002Fbabysit — PR Green-Gate Babysitter\n\n## Retained review integrations\n\nThe shared catalog preserves host-installed `\u002Fadvice` and `\u002Fweb-advice` integrations instead of installing them. Before invoking either, resolve its `..\u002Fadvice\u002FSKILL.md` or `..\u002Fweb-advice\u002FSKILL.md` relative to this package and read the existing skill. For a remote invocation, check the corresponding skill on the target host. If absent, report that integration as `UNAVAILABLE` and identify the missing package; do not invent a replacement runner, claim an approval, or treat a required gate as passed. Continue independent authorized work, but leave any dependent readiness or plan-approval gate unmet. Existing review quorum, external-disclosure authorization, and optional-review rules still apply.\n\n\n## Purpose\n\nSystematically drive all open PRs toward `\u002Fgreen` (CI green + no merge conflicts,\nsee `..\u002Fpr-green-definition\u002FSKILL.md`) plus draft-phase quality readiness\n(`\u002Fes`, `\u002Fer`, `\u002Fadvice`, evidence, comment resolution). For each PR:\n1. Audit `\u002Fgreen` (gates 1-2 below) and the draft-phase quality checks (gates 5-6 below)\n2. Fix any blocking failures\n3. Optionally surface CodeRabbit\u002FBugbot feedback (gates 3-4) for information — never wait on or require them\n4. Once all applicable blocking checks pass, run `\u002Fsmoke` and report readiness; resolve merge authority through the shared size-tiered rule and the target repository's current contract\n\nThe retired Skeptic automation is not a current readiness gate. `\u002Fbabysit`\nreports readiness but never merges. Merge authorization follows the shared\nsize-tiered rule and the target repository's current contract.\n\n**Note (2026-07-28):** `\u002Fgreen` itself is now ONLY gates 1-2 below (CI green + no\nmerge conflicts). Gates 5-6 (comment resolution, evidence) are draft-phase\nquality gates that gate leaving DRAFT status, not `\u002Fgreen` — see\n`..\u002Fpr-green-definition\u002FSKILL.md`. Gates 3-4 (CodeRabbit, Bugbot) are\n**optional advisory reviewers** — babysit may surface their feedback for\ninformation, but never waits on or requires them to consider a PR ready.\n\n## Draft-Phase + `\u002Fgreen` Criteria\n\n| # | Gate | Check | Counts toward `\u002Fgreen`? |\n|---|------|-------|--------------------------|\n| 1 | CI green | All GitHub Actions checks pass (no FAILURE conclusions) | Yes |\n| 2 | No conflicts | `mergeable == \"MERGEABLE\"` | Yes |\n| 3 | CR feedback | CodeRabbit latest review state | No — optional advisory, informational only |\n| 4 | Bugbot feedback | cursor[bot] error-severity comments | No — optional advisory, informational only |\n| 5 | Comments resolved | Zero unresolved non-nit inline review comments | No — draft-phase |\n| 6 | Evidence pass | Evidence bundle exists or N\u002FA justified | No — draft-phase |\n\n## Execution Protocol\n\n### Phase 1: Discover All Open PRs\n\n```bash\ngh pr list --state open --json number,title,headRefName,headRefOid,mergeable \\\n  --jq '.[] | \"\\(.number)|\\(.title)|\\(.headRefName)|\\(.headRefOid[:12])|\\(.mergeable)\"'\n```\n\n### Phase 2: Audit Each PR (`\u002Fgreen` + Draft-Phase Check)\n\nFor each open PR, check all 6 gates:\n\n```bash\n# Gate 1: CI status\ngh pr view \u003CNUM> --json statusCheckRollup \\\n  --jq '[.statusCheckRollup[] | select(.conclusion == \"FAILURE\")] | length'\n\n# Gate 2: Mergeable\ngh pr view \u003CNUM> --json mergeable --jq '.mergeable'\n\n# Gate 3: CodeRabbit review\ngh api repos\u002F$GITHUB_REPOSITORY\u002Fpulls\u002F\u003CNUM>\u002Freviews \\\n  --jq '[.[] | select(.user.login==\"coderabbitai[bot]\")] | last | .state'\n\n# Gate 4: Bugbot errors\ngh api repos\u002F$GITHUB_REPOSITORY\u002Fpulls\u002F\u003CNUM>\u002Fcomments \\\n  --jq '[.[] | select(.user.login==\"cursor[bot]\" and (.body | test(\"error\";\"i\")))] | length'\n\n# Gate 5: Unresolved comments\nrepo_with_owner=$(gh repo view --json nameWithOwner --jq '.nameWithOwner')\nrepo_owner=${repo_with_owner%%\u002F*}\nrepo_name=${repo_with_owner#*\u002F}\ngh api graphql -f query='\n  query($owner:String!, $name:String!, $pr:Int!) {\n    repository(owner:$owner, name:$name) {\n      pullRequest(number:$pr) {\n        reviewThreads(first:100) {\n          nodes { isResolved }\n        }\n      }\n    }\n  }\n' -f owner=\"$repo_owner\" -f name=\"$repo_name\" -F pr=\u003CNUM> \\\n  --jq '[.data.repository.pullRequest.reviewThreads.nodes[] | select(.isResolved==false)] | length'\n\n# Gate 6: Evidence in PR body\ngh pr view \u003CNUM> --json body --jq '.body' | grep -i -E \"evidence|gist|video|mp4|N\u002FA\"\n```\n\n### Phase 3: Categorize PRs\n\nGroup PRs by the four blocking gates (1, 2, 5, 6) — gates 3-4 (CodeRabbit,\nBugbot) are informational only and never affect a PR's category:\n- **RED** (2+ blocking gates failing): needs code fixes\n- **YELLOW** (1 blocking gate failing): needs comment resolution or evidence\n- **GREEN** (all 4 blocking checks passing — `\u002Fgreen` gates 1-2 plus draft-phase\n  quality gates 5-6): run `\u002Fsmoke`, then report readiness under the current\n  merge-authorization rule\n\n### Phase 4: Fix RED PRs\n\nFor each RED PR, use subagents (Agent tool, subagent_type: copilot-fixpr) to:\n1. Read the Green Gate workflow log to identify the exact failing gate\n2. Fix the root cause:\n   - **CI test failures**: read test output, fix code, push\n   - **Design Doc Gate**: add design doc reference to PR body\n   - **Lint\u002Ftype errors**: fix code, push\n3. Dispatch agents in parallel — one per PR or group of related PRs\n\nCommon fixes:\n- Test assertion mismatch after rebase → rebase onto `origin\u002Fmain`\n- Missing evidence → create evidence bundle or add N\u002FA justification\n- Stale review threads → resolve via GitHub API\n\nCodeRabbit\u002FBugbot feedback (gates 3-4) can be read for useful signal, but\ntriggering or waiting on a re-review is never required to unblock a RED PR.\n\n### Phase 5: Fix YELLOW PRs\n\nFor each YELLOW PR:\n1. **Gate 5 (unresolved comments)**: Resolve review threads\n2. **Gate 6 (no evidence)**: Add evidence or N\u002FA to PR body\n3. Optionally comment `@coderabbitai all good?` to refresh CR feedback — informational only, not required\n\n### Phase 6: Run Smoke on GREEN PRs\n\nFor PRs at all 4 blocking checks (`\u002Fgreen` gates 1-2 plus draft-phase quality gates 5-6):\n\n```bash\n# Trigger Green Gate workflow if no recent run\ngh workflow run green-gate.yml --ref \u003Cbranch> -f pr_number=\u003CNUM>\n\n# Trigger smoke tests via PR comment\ngh pr comment \u003CNUM> --body \"\u002Fsmoke\"\n```\n\nOnce smoke passes, report the PR as `\u002Fgreen` plus draft-phase-quality-complete.\nBabysit itself never merges. The session that owns any merge must follow the\nshared size-tiered merge rule and the target repository's current contract.\n\n### Phase 7: Report Final Status\n\nPrint a summary table:\n\n```\nPR #\u003CN> — age: \u003CXh Ym> — status: \u003Cred|yellow|green|\u002Fgreen>\n  Blocking gates: 1=✓ 2=✓ 5=✓ 6=✓ | Advisory (informational only): CR=✓ Bugbot=✓\n  Action: \u002Fgreen; apply the shared merge-authorization rule\n```\n\n## PR Green Loop Protocol (MANDATORY)\n\n- **Batch all fixes** into one commit, not one per finding\n- **Push once** per batch of fixes\n- **CodeRabbit\u002FBugbot: optional advisory reviewers** — read their feedback, take what's useful; never a gate, never a wait. Dismissing or ignoring their CHANGES_REQUESTED reviews is allowed; they never block a merge.\n\n## Subagent Dispatch Strategy\n\n- **Independent PRs**: Dispatch one agent per PR in parallel\n- **Related PRs** (same feature area): Group under one agent\n- **GREEN PRs**: One agent to trigger smoke on all, then report readiness\n\nAgent type: `copilot-fixpr` for fixing, `general-purpose` for auditing\u002Ftriggering\n\n### Phase 8: Hold Loop — Stay Alive Until All PRs Merge or Are Reported Ready\n\nAfter Phase 7, if any PRs are still open, **do not exit**. Schedule a wakeup to re-check:\n\n```python\n# In \u002Floop mode (Claude Code interactive) — fires only when REPL is idle, never interrupts work\nScheduleWakeup(\n    delaySeconds=180,   # 3 min — within 5-min cache window, catches Design Doc bot commits\n    prompt=\"\u003C\u003Cautonomous-loop-dynamic>>\",\n    reason=\"babysit hold: re-checking gate status after Design Doc bot commits\"\n)\n```\n\nOn each wakeup iteration, run a **lightweight status sweep** (not a full audit):\n\n```bash\n# Re-check gate status for each open PR (no skeptic dispatch — nothing to re-dispatch,\n# skeptic-cron.yml was removed repo-wide; see rev-p0cc4).\nfor pr in $(gh pr list --repo $GITHUB_REPOSITORY --state open --json number --jq '.[].number'); do\n  fail=$(gh pr view $pr --repo $GITHUB_REPOSITORY --json statusCheckRollup \\\n    --jq '[.statusCheckRollup[] | select((.__typename==\"StatusContext\" and (.state==\"FAILURE\" or .state==\"ERROR\")) or (.__typename==\"CheckRun\" and (.conclusion\u002F\u002F\"\" | ascii_upcase | (.==\"FAILURE\" or .==\"ERROR\" or .==\"TIMED_OUT\"))))] | length')\n  pending=$(gh pr view $pr --repo $GITHUB_REPOSITORY --json statusCheckRollup \\\n    --jq '[.statusCheckRollup[] | select(.__typename==\"CheckRun\" and (.conclusion==null or .conclusion==\"\"))] | length')\n  mergeable=$(gh pr view $pr --repo $GITHUB_REPOSITORY --json mergeable --jq '.mergeable')\n  if [[ \"$fail\" == \"0\" && \"$pending\" == \"0\" && \"$mergeable\" == \"MERGEABLE\" ]]; then\n    echo \"PR #$pr is \u002Fgreen and ready — report readiness; babysit never merges. Apply the shared merge-authorization rule.\"\n  else\n    echo \"PR #$pr not ready yet (failures=$fail pending=$pending mergeable=$mergeable)\"\n  fi\ndone\n```\n\n**Exit condition**: Stop scheduling wakeups when `gh pr list --repo $GITHUB_REPOSITORY --state open --json number --jq 'length'` returns `0`, or when all remaining PRs are fully reported and ready under the current merge-authorization rule. Do not keep polling PRs that have already been reported ready.\n\n**CronCreate alternative** (non-interactive \u002F cron-based sessions):\n```python\n# Guard: create at most ONE cron job per babysit session. Check CronList first.\njobs = CronList()\nbabysit_jobs = [j for j in jobs if \"babysit\" in j.get(\"prompt\", \"\").lower()]\nif not babysit_jobs:\n    job_id = CronCreate(\n        cron=\"*\u002F5 * * * *\",  # every 5 minutes\n        # Sweep-only prompt — do NOT use \"\u002Fbabysit\" here (that runs full 6-phase audit).\n        # This fires the Phase 8 status sweep: report which open PRs are \u002Fgreen and\n        # Report readiness under the shared merge-authorization rule. No skeptic re-dispatch.\n        prompt=\"Run \u002Fbabysit Phase 8 status sweep only: for each open PR in $GITHUB_REPOSITORY, check \u002Fgreen (CI + no-conflicts) and draft-phase quality status, then report PRs ready under the shared merge-authorization rule. Babysit never merges. Skip full Phase 1-7 audit.\",\n        recurring=True\n    )\n```\nUse CronCreate only when NOT in an interactive `\u002Floop` session. Delete the job with CronDelete once all PRs merge. The guard above prevents duplicate cron jobs from accumulating across repeated babysit invocations.\n\n**Key rule: never sleep-poll inline.** The wakeup fires while the REPL is idle — it cannot interrupt a user conversation or an in-progress tool call. This is safe to leave running.\n\n## Evidence Monitoring Protocol\n\nWhen babysitting active testing or evidence generation:\n\n1. **Poll evidence traces**: Verify that the testing framework writes traces under the task's unique `\u002Ftmp\u002F\u003Crepo>\u002Fevidence\u002F...` directory, as specified by `~\u002F.codex\u002FAGENTS.md` § Workspace and method fidelity. Confirm `.jsonl` files are non-empty.\n2. **Publish durable evidence**: When the workflow requires evidence to outlive the task, use the authorized gist or GCS publication process in `~\u002F.claude\u002Fskills\u002Fevidence-standards\u002FSKILL.md`. Never copy capture bundles into the source repository.\n3. **Testing Gap Close Integration**: If evidence bundles fail to generate (empty `.jsonl` files, missing checksums, server timeout errors, or `EvidenceSignatureGuard` rejections), immediately invoke the `\u002Ftesting-gap-close` skill to harden the server lifecycle and resolve the failure.\n4. **Stop task-owned processes**: If a task-owned process hangs, verify its PID still belongs to the expected task and worktree, then follow that service's cleanup owner. For local development servers, use the stop procedure from the product plugin's `local-dev-server` skill or the repository's own server docs, if one is installed. Never kill processes by port or name, signal an unverified process group, or use broad `pkill` fallbacks.\n\n## Anti-Patterns (BANNED)\n\n- Polling CI status in a sleep loop — check once\n- Waiting for or requiring CodeRabbit\u002FBugbot before pushing or reporting a PR ready — they are optional advisory reviewers only\n- Resolving review threads to trigger auto-approve\n- Declaring `\u002Fgreen` without Green Gate log verification for gates 1-2\n- Reporting a PR as \"looking good\" after checking only mergeable — always run statusCheckRollup check first\n- Running `gh pr merge` from babysit — it reports readiness only; any merge follows the shared size-tiered rule and the target repository's current contract\n- Calling `sleep` inline to wait for bots — use `ScheduleWakeup` instead\n- Exiting babysit after Phase 7 while PRs are still failing\u002Fpending gates — keep working them; PRs that have reached `\u002Fgreen` plus draft-phase-quality-complete and been reported ready are a hold-and-surface case (Phase 8), not a \"keep polling forever\" case — babysit does not perform merges, and its monitoring ends when readiness has been reported\n",{"name":5,"description":7},"main","8144f00ebafc4306264c63239e4b9fa42e48a90e",".claude\u002Fskills\u002Fpr-babysit",0,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills","https:\u002F\u002Fgithub.com\u002Fjleechanorg","2026-11-14 14:55:35",{"source":8,"skillName":5,"commands":51,"prompt":61,"zipAvailable":62},[52,55,58],{"tool":53,"command":54},"npx","npx skills add jleechanorg\u002Fjleechan-skills --skill pr-babysit",{"tool":56,"command":57},"bunx","bunx skills add jleechanorg\u002Fjleechan-skills --skill pr-babysit",{"tool":59,"command":60},"pnpm","pnpm dlx skills add jleechanorg\u002Fjleechan-skills --skill pr-babysit","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpr-babysit\u002FSKILL.md",true,[],[65,73,80,87,95,104],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":72},"01M7DRVZXXMGY4G81K5GVF4V20","disk-reclaim-playbook","Use Disk Magician to diagnose disk growth or qualify cleanup on macOS or Linux.","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdisk-reclaim-playbook\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":72},"01M7B63PNTT2TY78RFKHD8SP3X","claudea-bench","Compare `claudea` and normal `claude` on a fair split of comparable work by default; use `--strict` for duplicate runs of the exact same task.","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fclaudea-bench\u002FSKILL.md",[],[],{"skillNo":81,"name":20,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":86},"01M7622KQJ32AV4K5BXEMVSSEB","Alias for the canonical pr-lifecycle PR workflow skill (\u002Fpr-workflow, \u002Fprw).","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpr\u002FSKILL.md",[],[],"2026-11-12 13:55:43",{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":94},"01M7432W92AKC4D1TKJ00VCMMT","whisper","OpenAI's general-purpose speech recognition model. Supports 99 languages, transcription, translation to English, and language identification. Six model sizes from tiny (39M params) to large (1550M params). Use for speech-to-text, podcast transcription, or multilingual audio processing. Best for robust, multilingual ASR.","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills_archive\u002F2026-11-09-no-usage-evidence\u002Fwhisper\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":99,"licenseFileUrl":100,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":94},"01M7432T6BN1A9SHB8RBQR5EMP","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills_archive\u002F2026-11-09-no-usage-evidence\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills_archive\u002F2026-11-09-no-usage-evidence\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":94},"01M7432NDC7S6C6MX7M6RW8CTT","pr-report","This skill should be used when the user asks for a PR report, PR audit, PR delta analysis, \u002Fpr-report, or wants per-PR summary with delta files\u002Flines. Generates a structured report for one or more open PRs covering purpose, files changed, +\u002F− line counts, \u002Fcode-standards + \u002Fthermo review findings, \u002Fponytail simplification opportunities, file-overlap combination candidates, and \u002Fgreen status per pr-green-definition. Output: machine-readable JSONL + human-readable markdown. Read-only by default; can apply simplifications if user opts in.","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills_archive\u002F2026-11-09-no-usage-evidence\u002Fpr-report\u002FSKILL.md",[],[]]