shipping-a-pr
Qué hace
Esta skill guía a la IA para enviar cambios de código terminados a revisión como pull request. También cubre actualizar la solicitud, revisar su estado y responder a los comentarios de revisión. Es para desarrolladores y equipos que usan GitHub.
Cuándo usarla
- ✓Cuando tus cambios de código están terminados y deben salir como una pull request.
- ✓Cuando quieres que la IA compruebe si las verificaciones de una pull request están pasando.
- ✓Cuando los revisores dejan comentarios en una pull request y quieres que se atiendan.
Link de la skill
https://github.com/JetBrains/thinkrail/blob/main/packages/pi-thinkrail-workflow/skills/shipping-a-pr/SKILL.mdCó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
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Mi función está terminada, así que abre una pull request en GitHub y dime si las verificaciones pasan.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La IA comprueba el estado actual del código y del repositorio remoto, crea o actualiza la pull request y da cuenta de las verificaciones tal como están en ese momento.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Shipping a PR
The PR lifecycle: ship the workspace's finished work, maintain PR metadata, and keep the PR healthy when requested. One workflow, six phases as sibling docs — enter at the phase the ask names.
Completion modes
- Snapshot mode is the default for creating, syncing, or updating a PR and for one-time status requests. Take one fresh checks and merge-state snapshot, report pending/failing/indeterminate state as observed, and stop without polling or fixing unrelated state. A push never upgrades the mode by itself.
- Wait mode requires an explicit remote-completion ask: monitor or watch checks, investigate CI, wait until green, or make the PR merge-ready. Done means every configured check is green, the head is current with its base, and GitHub reports an affirmative merge state; a requested draft is reported as draft, never merge-ready. A repo with no CI is reported as exactly that, never silently green.
Observed, never assumed (applies to every phase)
Git and GitHub state is concurrent and mutable: the base moves, CI lags, mergeability is computed lazily, and this workflow's own steps dirty the tree they just checked. Four rules hold at every step of every phase:
- Verify at the point of action. An irreversible step — push,
gh pr create,gh pr edit, replying to a thread, declaring done — re-checks the exact state it consumes immediately before running. A gate passed earlier does not survive the mutations made since it passed. - Keep verification tied to the final tree. Reuse exact prior results while the inputs they cover remain unchanged. Before every code-affecting push, run project-required checks that are missing or invalidated by later code, configuration, dependency, base, or conflict-resolution changes. If a check, cleanup, or self-review causes another relevant edit, reassess and repeat before pushing.
- Fetch, don't remember. Remote state is read fresh and completely at the moment it's needed:
the current body before editing it,
--paginateon every listing,git fetchbefore reasoning about the base. - Indeterminate is not affirmative. In wait mode, a pending or still-computing answer (an
UNKNOWNmerge state, queued checks) is polled until it resolves; done is declared only from observed affirmative state. In snapshot mode, report it as indeterminate without turning the phase into a watch.
Classify the ask
| The ask | Phase doc | Default mode |
|---|---|---|
| Create a PR — the work is finished | creating.md |
snapshot |
| Bring the PR up to date / resolve conflicts with its base | syncing.md |
snapshot |
| Update the PR title or body | body.md |
snapshot |
| Add or refresh screenshots on a PR | screenshots.md |
snapshot |
| Report the current checks / merge state once | checks.md |
snapshot |
| Monitor CI / investigate or fix failing checks | checks.md |
wait |
| Address review comments | review-comments.md |
snapshot |
Read and follow the selected phase doc — the gates and mechanics live only there; never run a phase from this spine's summary. Carry the completion mode selected above into that doc; a later push does not change it. A compound ask ("rebase, verify, and create a PR") is one flow: start at the earliest phase named; the docs chain forward on their own. If the work itself isn't finished — the ask bundles new design or implementation before the ship — that part is not this workflow's; route it per choosing-a-workflow first and come back here when it lands.
Working files
Ephemeral files this workflow uses, all under the workspace's gitignored .thinkrail/context/:
pr-body.md— the PR body draft; always passed via--body-file, never inline.pr-shots/— staged before/after screenshots awaiting attachment.
Both are deleted when the phase that made them completes (screenshots stay while the user is
uploading by hand — see screenshots.md).
Ending
Every phase ends through checks.md in the completion mode selected above.
Preguntas frecuentes
¿Esperará a que terminen las verificaciones?
Solo cuando le pidas que las vigile o espere. Si no, toma una sola instantánea y la informa.
¿Qué significa estar listo?
Que todas las verificaciones configuradas están en verde, que la rama está al día con su base y que GitHub confirma que se puede fusionar. Un proyecto sin verificaciones se informa como sin verificaciones.
¿Puede revisar la pull request de otra persona?
No. Sirve para enviar tu propio trabajo terminado, no para revisar pull requests que no creaste tú.
Detalles
Descripción original del autor
Use when finished work needs to ship as a pull request, or when creating, syncing, updating metadata, checking status, monitoring CI, or addressing review comments on a PR. Not for reviewing a PR you are not shipping.
repo: JetBrains/thinkrail
Popularidad
- Estrellas en GitHub
- 7,1 mil
- Posición en el ranking
- #13493
- Licencia
- Apache-2.0
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
asking-user-questions
7,1 milEnseña a tu agente a hacerte preguntas claras por rondas, con buenas opciones de respuesta, hasta que los puntos abiertos queden resueltos.
brainstorming
7,1 milAyuda a tu agente a hablar contigo sobre una función, un cambio de comportamiento o una corrección de error antes de construirlo, y a registrar el diseño acordado.
choosing-a-workflow
7,1 milAyuda a tu agente a elegir el flujo de trabajo de ThinkRail adecuado para un proyecto nuevo, una pull request o cualquier cambio en lo que hace el producto.
importing-a-codebase
7,1 milEnseña a tu agente a leer una base de código existente y redactar sus primeras especificaciones del proyecto, preguntándote solo donde el código no es claro.
Skills parecidas
openclaw-update
394 milAyuda a tu agente a actualizar una Gateway de OpenClaw que ya existe, eligiendo el método de actualización que encaja con cómo se instaló y manteniendo tu sesión activa.
diagnose-gateway
394 milAyuda a tu agente a averiguar por qué falla tu Gateway de OpenClaw, revisando ajustes, canales y puertos sin cambiar nada.
crabbox-apps
394 milAyuda a tu agente a abrir y ejecutar una app en una máquina temporal en la nube y mostrar su vista en el panel lateral de tu chat.