babysit-pr
Was er macht
Dieser Skill überwacht einen Pull Request und behebt CI-Fehler und Review-Feedback. Änderungen werden gebündelt hochgeladen. Er richtet sich an Entwickler, die einen Pull Request mit weniger manueller Nacharbeit in einen sauberen Zustand bringen wollen.
Wann du ihn nutzt
- ✓Wenn ein Pull Request fehlschlagende Prüfungen hat, die automatisch behoben werden sollen.
- ✓Wenn Reviewer Kommentare hinterlassen haben und du sie laufend bearbeiten willst.
- ✓Wenn ein Pull Request beobachtet werden soll, bis er bereit zum Mergen ist.
Link zum Skill
https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/babysit-pr/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Kannst du meinen Pull Request im Blick behalten und fehlschlagende Prüfungen oder Review-Kommentare beheben, bis er sauber ist?”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Agent prüft den Pull Request in jeder Runde, liest alle Review-Kommentare, behebt, was er kann, und lädt die Änderungen in einem Stapel hoch. Ohne Merge-Anfrage hört er nach 30 Minuten grüner Prüfungen ohne neues Feedback auf.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von 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 `
Häufige Fragen
Mergt er den Pull Request?
Nicht von selbst. Er mergt nur, wenn du es verlangst.
Was, wenn der Pull Request nicht meiner ist?
Der Skill sagt, auf dem Pull Request einer anderen Person nicht zu pushen, zu kommentieren oder zu mergen, es sei denn, du hast ihn genannt.
Liest er jeden Kommentar?
Ja. Er liest in jeder Runde alle Review-Kommentare, da Review-Bots nach jedem Push erneut kommentieren.
Details
Originalbeschreibung des Autors
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
Beliebtheit
- GitHub-Sterne
- 7.6k
- Platz im Ranking
- #13139
- Lizenz
- MIT
- Aktualisiert
- 2.11.2026
Kommentare
- …
Weitere Skills aus diesem Repository
design-exploration
7.6kHilft deinem Agenten, mehrere UI-Design-Richtungen nebeneinander zu erkunden, dich eine auswählen zu lassen und das gewählte Design danach zu verfeinern.
visual-edit
7.6kHilft deinem Agenten, eine laufende lokale App in einem visuellen Editor zu öffnen, damit du ihre echten Bildschirme gemeinsam prüfen und bearbeiten kannst.
turn-into-app
7.6kVerwandelt einen Arbeitsablauf, eine Tabelle oder ein Projekt in eine ausgearbeitete visuelle App mit gefüllten Bildschirmen und einem Agenten im Hintergrund.
visual-plan
7.6kVerwandelt einen einfachen Textplan in einen interaktiven visuellen Plan mit Diagrammen, Dateiübersichten, Code-Ausschnitten und offenen Fragen.
Ähnliche Skills
diffs
394kLässt deinen Agenten einen echten, teilbaren Diff seiner Änderungen als Viewer-Link oder Bilddatei erstellen, statt einer handgeschriebenen Zusammenfassung.
coding-agent
394kHilft deinem Agenten, eine größere Programmieraufgabe als Hintergrund-Worker an Codex, Claude Code oder OpenCode zu übergeben und danach den Fortschritt zu prüfen.
gh-issues
394kHilft deinem Agenten, GitHub-Issues zu finden, die zu bearbeitenden auszuwählen und Pull Requests mit Korrekturen zu öffnen, einschließlich der Nacharbeit an Review-Kommentaren.