babysit-pr
Fungsinya
Skill ini memantau permintaan tarik dan memperbaiki kegagalan CI serta umpan balik ulasan, lalu mendorong perubahan dalam kelompok. Skill ini untuk pengembang yang ingin permintaan tarik mencapai kondisi bersih dengan tindak lanjut manual yang lebih sedikit.
Kapan dipakai
- ✓Saat permintaan tarik memiliki pemeriksaan yang gagal dan Anda ingin itu diperbaiki secara otomatis.
- ✓Ketika reviewer meninggalkan komentar dan Anda ingin komentar itu ditangani saat masuk.
- ✓Saat Anda ingin permintaan tarik diawasi sampai siap digabungkan.
Link skill
https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/babysit-pr/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
“Bisakah Anda mengawasi permintaan tarik saya dan memperbaiki pemeriksaan yang gagal atau komentar ulasan sampai bersih?”
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent memeriksa permintaan tarik di setiap putaran, membaca semua komentar ulasan, memperbaiki apa yang bisa diperbaiki, lalu mendorong perubahan dalam satu kelompok. Tanpa permintaan penggabungan, agent berhenti setelah 30 menit pemeriksaan hijau tanpa umpan balik baru.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
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,mergeCommitIf
author.loginisn'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/shipcontinues with its post-merge step. If the query fails, retry on the next tick instead of acting on old data.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 $idfirst.index(.id)would read.idfrom the$repliedarray 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]}'Check CI with
gh pr checks $ARGUMENTSand 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.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.
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 `
Pertanyaan umum
Apakah agent akan menggabungkan permintaan tarik?
Tidak dengan sendirinya. Agent hanya menggabungkan jika Anda memintanya.
Bagaimana jika permintaan tarik itu bukan milik saya?
Skill ini menyatakan agar tidak mendorong, mengomentari, atau menggabungkan permintaan tarik milik orang lain kecuali Anda menyebutkannya.
Apakah agent membaca setiap komentar?
Ya. Agent membaca semua komentar ulasan di setiap putaran, karena bot ulasan memposting ulang setelah setiap dorongan perubahan.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 7.6k
- Peringkat
- #13139
- Lisensi
- MIT
- Diperbarui
- 2/11/2026
Komentar
- …
Skill lain dari repositori ini
design-exploration
7.6kMembantu agent Anda mengeksplorasi beberapa arah desain UI secara berdampingan, membiarkan Anda memilih satu, lalu menyempurnakan desain yang dipilih.
visual-edit
7.6kMembantu agent Anda membuka aplikasi lokal yang sedang berjalan di editor visual agar Anda dapat meninjau dan mengedit layar aslinya bersama-sama.
turn-into-app
7.6kMengubah alur kerja, spreadsheet, atau proyek menjadi aplikasi visual yang rapi, dengan layar yang terisi dan agent yang bekerja di balik kontrol.
visual-plan
7.6kMengubah rencana teks biasa menjadi rencana visual interaktif dengan diagram, peta file, cuplikan kode, dan pertanyaan terbuka.
Skill serupa
diffs
394kMemungkinkan agent Anda menghasilkan diff perubahan yang nyata dan dapat dibagikan sebagai tautan viewer atau file gambar, bukan ringkasan yang ditulis manual.
coding-agent
394kMembantu agent Anda menyerahkan pekerjaan pemrograman besar ke Codex, Claude Code, atau OpenCode di latar belakang, lalu memeriksa kemajuannya.
gh-issues
394kMembantu agent Anda menemukan issue GitHub, memilih yang dikerjakan, dan membuka pull request perbaikan, termasuk tindak lanjut komentar tinjauan.