Saltar al contenido
Skillpedia
Programación general7,6 mil · #13139

babysit-pr

Qué hace

Esta skill supervisa una solicitud de cambios y corrige sus fallos de CI y los comentarios de revisión, enviando los cambios en lotes. Es para desarrolladores que quieren que una solicitud de cambios llegue a un estado limpio con menos seguimiento manual.

Cuándo usarla

  • ✓Cuando una solicitud de cambios tiene comprobaciones fallidas que quieres arreglar automáticamente.
  • ✓Cuando los revisores han dejado comentarios y quieres atenderlos según llegan.
  • ✓Cuando quieres que una solicitud de cambios se vigile hasta que esté lista para fusionar.

Link de la skill

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

Cópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.

Cómo usar

La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.

Mensaje listo para pegar

Usa esta skill para ayudarme: https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/babysit-pr/SKILL.md Lee el archivo SKILL.md de ese link y sigue sus instrucciones en mi tarea.
¿Quieres que tu IA encuentre skills como esta por sí sola?Instala el MCP gratis de Skillpedia: una línea, y busca entre 15.000+ skills antes de cada tarea.Instalar en 1 minuto →

Ejemplo de qué pedirle a la IA

“¿Puedes vigilar mi solicitud de cambios y arreglar las comprobaciones fallidas o los comentarios de revisión hasta que esté limpia?”

5 skills nuevas por semana. 1 minuto de lectura.

Cómo funciona

El agente revisa la solicitud de cambios en cada ronda, lee todos los comentarios de revisión, corrige lo que puede y envía los cambios en un solo lote. Sin solicitud de fusión, se detiene tras 30 minutos de comprobaciones correctas sin comentarios nuevos.

Contenido técnico (SKILL.md original)

Texto original del autor, en inglés, directo de 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 `

Preguntas frecuentes

¿Fusionará la solicitud de cambios?

No por sí solo. Solo la fusiona si se lo pides.

¿Y si la solicitud de cambios no es mía?

La skill indica que no se suba código, no se comente ni se fusione en una solicitud de cambios ajena, salvo que la hayas nombrado.

¿Lee todos los comentarios?

Sí. Lee todos los comentarios de revisión en cada ronda, ya que los bots de revisión vuelven a publicar después de cada envío.

Detalles

Descripción original del autor

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

Popularidad

Estrellas en GitHub
7,6 mil
Posición en el ranking
#13139
Licencia
MIT
Actualizada
2/11/2026

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Más skills de este repositorio

Skills parecidas