본문으로 건너뛰기
Skillpedia
일반 코딩7.6k · #13139

babysit-pr

하는 일

이 스킬은 풀 리퀘스트를 모니터링하고 CI 실패와 리뷰 피드백을 고쳐, 변경을 묶음으로 푸시합니다. 수동 후속 작업을 줄이고 풀 리퀘스트를 깔끔한 상태로 만들려는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓실패한 검사가 있는 풀 리퀘스트를 자동으로 고치고 싶을 때.
  • ✓리뷰어가 댓글을 남겼고 들어오는 대로 처리하고 싶을 때.
  • ✓병합할 준비가 될 때까지 풀 리퀘스트를 지켜보고 싶을 때.

스킬 링크

https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/babysit-pr/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/babysit-pr/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“내 풀 리퀘스트를 지켜보면서 실패한 검사나 리뷰 댓글이 깔끔해질 때까지 고쳐 주실 수 있나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 매 라운드마다 풀 리퀘스트를 확인하고 모든 리뷰 댓글을 읽은 뒤, 고칠 수 있는 것을 고치고 변경을 한 묶음으로 푸시합니다. 병합 요청이 없으면, 검사가 모두 통과하고 새 피드백이 없는 상태로 30분이 지나면 멈춥니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Babysit PR

Monitor PR $ARGUMENTS: fix CI failures and review feedback, one batched push at a time, until the PR is clean. With no number, find it from the branch:

gh pr list --head "$(git branch --show-current)" --state open --json number --limit 1

Ownership, who may push or comment, the merge gate, cadence, and the Codex goal and heartbeat all live in ship. Under /ship this is a step inside it: keep going through the merge. Standalone, stop after 30 minutes of green GitHub Actions and no new feedback, and merge only if the user asks.

Each tick

  1. Refresh and read the live PR:

    git fetch origin --quiet
    gh api user --jq .login
    gh pr view $ARGUMENTS --json state,mergedAt,author,headRepository,headRefName,headRefOid,baseRefName,mergeable,mergeCommit
    

    If author.login isn't your login, don't push, comment, or merge unless the user named this PR and that action. Closed without a merge ends the work; report it as unsuccessful. Merged under /ship continues with its post-merge step. If the query fails, retry on the next tick instead of acting on old data.

  2. Read all review comments, every tick, until the moment you merge. Review bots re-review on every push and post a new round each time. Never filter by a "since <timestamp>" window: it hides rounds posted before your last reply, and "0 new" reads as "all addressed" (this left two rounds unanswered on PR #1097). Use reply state instead. Run both queries below with set -o pipefail. If either fails, the PR is not clean: retry next tick, and never read empty output from a failed call as "no feedback". This lists every top-level comment with no reply:

    gh api --paginate repos/{owner}/{repo}/pulls/$ARGUMENTS/comments --jq '.[]' \
      | jq -s '
        ([ .[] | .in_reply_to_id // empty ]) as $replied
        | .[]
        | select((.in_reply_to_id // null) == null)
        | select(.id as $id | ($replied | index($id)) | not)
        | {id, user: .user.login, path, line: (.line // .original_line), snippet: (.body[0:200])}'
    

    Bind .id as $id first. index(.id) would read .id from the $replied array and fail. Review bodies carry findings too:

    gh api --paginate repos/{owner}/{repo}/pulls/$ARGUMENTS/reviews \
      --jq '.[] | select(.body != null and .body != "") | {user: .user.login, state, submitted_at, body: .body[0:1000]}'
    
  3. Check CI with gh pr checks $ARGUMENTS and read the logs of failing jobs. Fix repo-owned causes. Provider outages, cancelled runs, and missing secrets are not code bugs. Failures from external checks only (Cloudflare, Netlify) while GitHub Actions is green don't block, and they don't reset any timer.

  4. Fix, validate, push once. Collect everything actionable from steps 2 and 3 first, run the focused checks for what you changed, then push a single update. Each push restarts CI, so don't push piecemeal.

  5. Reply on your own PR. Answer every thread you fixed or declined with the fix or your reasoning, and post one short top-level recap for feedback that only appeared in a review body. On anyone else's PR, comment only if the user named that PR and the comment. Feedback that needs a reply you aren't allowed to post stays unresolved and blocks the merge.

Judging feedback

  • Follow a human reviewer over a bot. Treat a bot comment as a hypothesis and verify it before acting.
  • Fix real bugs, security issues, data-loss risks, and repo-rule violations, even when this PR didn't introduce them.
  • Skip, with a reply saying why: pre-existing issues the PR doesn't touch, false positives, nitpicks, and anything the linter or typechecker already covers.
  • Never leave a comment without a disposition.
  • A high or critical finding closes only with a commit that fixes it, or a reply that points at the code showing it can't happen. Replying "addressed" without either doesn't close it, and it blocks the merge.
  • When a third round of findings lands on code this PR added, stop patching its edges: each patch is new code for the next round. Replace it with something simpler, often by fixing the boundary that made it necessary, or, in a sweep, revert that report's commit and leave it for a person. #8288 patched one resolver about 25 times in a day and never merged.

Pushing to an existing PR

pnpm ship:push -m "<specific subject>" stages every publishable dirty path, so check `

자주 묻는 질문

풀 리퀘스트를 병합하나요?

스스로는 병합하지 않습니다. 요청하셔야만 병합합니다.

내 풀 리퀘스트가 아니면 어떻게 하나요?

이름을 지정하지 않은 한, 다른 사람의 풀 리퀘스트에 푸시, 댓글, 병합을 하지 않는다고 이 스킬은 말합니다.

모든 댓글을 읽나요?

네. 리뷰 봇은 푸시할 때마다 다시 댓글을 남기므로, 매 라운드 모든 리뷰 댓글을 읽습니다.

상세 정보

작성자의 원본 설명

Watch an open PR and fix its CI failures and review feedback until it's clean. Use standalone for a PR you want monitored, or as the babysit step of /ship, which continues through the merge.

repo: BuilderIO/agent-native

인기도

GitHub 스타
7.6k
순위
#13139
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬