{"id":"babysit","name":"babysit","summary":"プルリクエストやレビューサイクルを、マージの準備ができるまで見守ってください。ベビーシッターやモニタリング、PRコメント、レビュー、CIの確認を依頼された際に、すべての対応可能な問題が解決されるまで活用してください。","body":"# Babysit PR\n\nStay with the PR until it is actually clean. Do not stop after one check pass if comments or review threads are still unresolved.\n\n## Workflow\n\n1. Identify the PR number, branch, and base branch.\n2. Confirm the PR is not draft and inspect mergeability, checks, review decision, comments, and review threads.\n3. Watch pending checks until they finish. Poll at a practical interval, usually 30-60 seconds unless the user asks for a different cadence.\n4. Read new comments and unresolved review threads. Treat bot summaries as useful, but verify actionable findings against the code.\n5. Fix real issues in focused commits, run relevant tests/builds, push, and return to step 2.\n6. Resolve stale review threads only after verifying the code or generated artifact now addresses the comment.\n7. Stop only when checks are passing or intentionally skipped, review decision is acceptable, no actionable comments remain, and no unresolved review threads remain.\n\n## GitHub CLI Checks\n\nUse `gh pr view` for the coarse status:\n\n```bash\ngh pr view <number> --json \\\n  number,state,isDraft,mergeable,mergeStateStatus,reviewDecision,headRefOid,statusCheckRollup,url\n```\n\nResolve the repository owner/name before using GraphQL:\n\n```bash\nrepo_json=$(gh repo view --json owner,name)\nowner=$(jq -r '.owner.login // .owner.name' <<<\"$repo_json\")\nrepo=$(jq -r '.name' <<<\"$repo_json\")\n```\n\nUse GraphQL for unresolved review threads. Include `pageInfo`; omit `cursor` on the first page, then pass the previous `endCursor` with `-f cursor=\"$cursor\"` while `hasNextPage` is `true`.\n\n```bash\ngh api graphql \\\n  -f query='query($owner:String!,$repo:String!,$number:Int!,$cursor:String){repository(owner:$owner,name:$repo){pullRequest(number:$number){reviewThreads(first:100,after:$cursor){pageInfo{hasNextPage endCursor}nodes{id,isResolved,isOutdated,path,line,comments(last:1){nodes{author{login},body,createdAt,url}}}}}}}' \\\n  -f owner=\"$owner\" -f repo=\"$repo\" -F number=<number>\n```\n\nUse this loop when a PR may have many review threads:\n\n```bash\nthread_query='query($owner:String!,$repo:String!,$number:Int!,$cursor:String){repository(owner:$owner,name:$repo){pullRequest(number:$number){reviewThreads(first:100,after:$cursor){pageInfo{hasNextPage endCursor}nodes{id,isResolved,isOutdated,path,line,comments(last:1){nodes{author{login},body,createdAt,url}}}}}}}'\ncursor_args=()\n\nwhile :; do\n  page=$(gh api graphql -f query=\"$thread_query\" -f owner=\"$owner\" -f repo=\"$repo\" -F number=<number> \"${cursor_args[@]}\")\n  printf '%s\\n' \"$page\" | jq -r '.data.repository.pullRequest.reviewThreads.nodes[]\n    | select(.isResolved==false)\n    | [.id,.path,(.line//\"\"),(.isOutdated|tostring),(.comments.nodes[-1].author.login//\"\"),(.comments.nodes[-1].body|gsub(\"\\n\";\" \")|.[0:240])]\n    | @tsv'\n\n  jq -e '.data.repository.pullRequest.reviewThreads.pageInfo.hasNextPage' >/dev/null <<<\"$page\" || break\n  cursor=$(jq -r '.data.repository.pullRequest.reviewThreads.pageInfo.endCursor' <<<\"$page\")\n  cursor_args=(-f cursor=\"$cursor\")\ndone\n```\n\nFilter unresolved threads with `jq`:\n\n```bash\njq -r '.data.repository.pullRequest.reviewThreads.nodes[]\n  | select(.isResolved==false)\n  | [.id,.path,(.line//\"\"),(.isOutdated|tostring),(.comments.nodes[-1].author.login//\"\"),(.comments.nodes[-1].body|gsub(\"\\n\";\" \")|.[0:240])]\n  | @tsv'\n```\n\nResolve a stale thread only when the fix is verified:\n\n```bash\ngh api graphql \\\n  -f query='mutation($threadId:ID!){resolveReviewThread(input:{threadId:$threadId}){thread{id,isResolved}}}' \\\n  -f threadId=<thread-id>\n```\n\n## Operating Rules\n\n- Keep the watcher running while long checks are pending.\n- If a generated file is part of the distribution, verify the source and generated artifact agree before resolving comments.\n- If a bot reports an issue against stale code, confirm whether the thread is outdated or addressed in the latest head.\n- Before final reporting, do one fresh sweep of PR status, unresolved threads, recent comments, and local `git status`.\n- Report concrete evidence: latest commit SHA, check names and results, unresolved thread count, tests run, and any dirty local files left untouched.","author":"@thedotmack","ownerProfile":null,"authorContacts":null,"sourceUrl":"https://github.com/thedotmack/claude-mem/tree/main/plugin/skills/babysit","license":"Apache-2.0","category":"review","lang":"en","tokens":1035,"stars":0,"calls30d":1,"claimed":false,"visibility":"public","origin":"crawler","version":"0.1.0","createdAt":"2026-08-22","updatedAt":"2026-08-22","files":[],"requires":{"mcp":[],"tools":[]},"safety":{"flags":[],"scannedAt":"2026-08-22","hasScripts":false,"networkEndpoints":[]}}