shipping-a-pr
Fungsinya
Skill ini memandu AI mengirim perubahan kode yang sudah selesai untuk ditinjau sebagai pull request. Skill ini juga mencakup pembaruan permintaan, pengecekan statusnya, dan menjawab komentar peninjau. Skill ini ditujukan untuk pengembang dan tim yang memakai GitHub.
Kapan dipakai
- βSaat perubahan kode Anda sudah selesai dan perlu dikirim sebagai pull request.
- βKetika Anda ingin AI memeriksa apakah pemeriksaan pada pull request sudah lolos.
- βKetika peninjau memberi komentar pada pull request dan Anda ingin komentar itu ditindaklanjuti.
Link skill
https://github.com/JetBrains/thinkrail/blob/main/packages/pi-thinkrail-workflow/skills/shipping-a-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
βFitur saya sudah selesai, jadi buka pull request di GitHub dan beri tahu saya apakah pemeriksaannya lolos.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
AI memeriksa kondisi kode dan remote saat ini, lalu membuat atau memperbarui pull request, dan melaporkan hasil pemeriksaan pada saat itu.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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.
Pertanyaan umum
Apakah AI akan menunggu pemeriksaan selesai?
Hanya jika Anda memintanya untuk memantau atau menunggu. Jika tidak, AI hanya mengambil satu gambaran dan melaporkannya.
Apa yang dianggap siap?
Semua pemeriksaan yang dikonfigurasi berwarna hijau, cabang sudah terbaru dengan basisnya, dan GitHub memastikan bisa digabungkan. Proyek tanpa pemeriksaan akan dilaporkan sebagai tidak punya pemeriksaan.
Apakah AI bisa meninjau pull request milik orang lain?
Tidak. Skill ini untuk mengirim pekerjaan Anda sendiri yang sudah selesai, bukan untuk meninjau pull request yang tidak Anda buat.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 7.1k
- Peringkat
- #13493
- Lisensi
- Apache-2.0
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
asking-user-questions
7.1kMengajari agent Anda cara mengajukan pertanyaan yang jelas secara bertahap, dengan pilihan jawaban yang baik, sampai poin-poin yang masih terbuka selesai.
brainstorming
7.1kMembantu agent Anda membahas fitur, perubahan perilaku, atau perbaikan bug bersama Anda sebelum dibangun, lalu mencatat desain yang disepakati.
choosing-a-workflow
7.1kMembantu agent Anda memilih alur kerja ThinkRail yang tepat untuk proyek baru, pull request, atau perubahan pada fitur produk.
importing-a-codebase
7.1kMengajari agent Anda membaca kode proyek yang sudah ada dan menyusun draf spesifikasi awalnya, hanya bertanya jika kodenya tidak jelas.
Skill serupa
openclaw-update
394kMembantu agent Anda memperbarui OpenClaw Gateway yang sudah ada, dengan memilih metode pembaruan yang sesuai cara pemasangannya dan menjaga sesi Anda tetap berjalan.
diagnose-gateway
394kMembantu agent Anda mencari tahu mengapa OpenClaw Gateway gagal dengan memeriksa pengaturan, channel, dan port tanpa mengubah apa pun.
crabbox-apps
394kMembantu agent Anda membuka dan menjalankan aplikasi di mesin cloud sementara, lalu menampilkan tampilannya di panel samping chat Anda.