shipping-a-pr
O que ela faz
Esta skill guia a IA no envio de mudanças de código concluídas para revisão, como pull request. Ela também cobre a atualização do pedido, a verificação do status e a resposta a comentários de revisão. Serve para desenvolvedores e equipes que usam o GitHub.
Quando usar
- ✓Quando suas mudanças de código estão prontas e precisam ser enviadas como pull request.
- ✓Quando você quer que a IA verifique se as checagens de um pull request estão passando.
- ✓Quando revisores deixam comentários em um pull request e você quer que eles sejam tratados.
Link da skill
https://github.com/JetBrains/thinkrail/blob/main/packages/pi-thinkrail-workflow/skills/shipping-a-pr/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Meu recurso está pronto, então abra um pull request no GitHub e me diga se as verificações passam.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
A IA verifica o estado atual do código e do repositório remoto, depois cria ou atualiza o pull request e informa as verificações como estão naquele momento.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do 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.
Perguntas frequentes
Ele espera as verificações terminarem?
Só quando você pede para monitorar ou esperar. Caso contrário, ele faz uma única verificação e informa o resultado.
O que conta como pronto?
Todas as verificações configuradas estão em verde, a branch está atualizada em relação à base e o GitHub confirma que é possível fazer o merge. Um projeto sem verificações é informado como sem verificações.
Ele pode revisar o pull request de outra pessoa?
Não. Ele serve para enviar o seu trabalho concluído, e não para revisar pull requests que você não criou.
Detalhes
Descrição original do 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
Popularidade
- Estrelas no GitHub
- 7,1 mil
- Posição no ranking
- #13493
- Licença
- Apache-2.0
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
asking-user-questions
7,1 milEnsina seu agente a fazer perguntas claras em rodadas, com boas opções de resposta, até que os pontos em aberto estejam resolvidos.
brainstorming
7,1 milAjuda seu agente a discutir com você um recurso, uma mudança de comportamento ou uma correção de bug antes de construir, e registrar o desenho acordado.
choosing-a-workflow
7,1 milAjuda seu agente a escolher o fluxo de trabalho certo do ThinkRail para um projeto novo, um pull request ou qualquer mudança no que o produto faz.
importing-a-codebase
7,1 milEnsina seu agente a ler um código existente e rascunhar o primeiro conjunto de especificações do projeto, perguntando apenas onde o código não está claro.
Skills parecidas
openclaw-update
394 milAjuda seu agente a atualizar um OpenClaw Gateway existente, escolhendo o método que combina com a instalação e mantendo sua sessão funcionando.
diagnose-gateway
394 milAjuda seu agente a descobrir por que seu OpenClaw Gateway está falhando, verificando configurações, canais e portas sem alterar nada.
crabbox-apps
394 milAjuda seu agente a abrir e executar um app em uma máquina temporária na nuvem e depois mostrar a visualização dele no painel lateral do seu chat.