github-pr-workflow
Fungsinya
Alat ini membantu menyiapkan kode Anda agar siap ditinjau oleh orang lain. Alat ini memastikan perubahan jelas, mudah dipahami, dan berjalan sebagaimana mestinya.
Kapan dipakai
- βSaat Anda sudah selesai mengubah kode dan ingin orang lain meninjaunya.
- βSaat reviewer meminta Anda memperbaiki sesuatu dan Anda perlu mengirimkan perbaikannya.
- βSaat kode sudah lama menunggu tinjauan dan perlu diperbarui atau diberi penjelasan tambahan.
Link skill
https://github.com/paperclipai/paperclip/blob/master/packages/skills-catalog/catalog/bundled/software-development/github-pr-workflow/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
βSiapkan kode saya untuk ditinjau, termasuk ringkasan yang jelas, cara saya mengujinya, dan detail penting lainnya.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Alat ini merapikan kode Anda, memastikan pesan tentang perubahan jelas, dan membantu Anda menunjukkan cara pengujian yang sudah dilakukan. Alat ini juga membantu Anda menanggapi komentar dari reviewer.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
GitHub Pull Request Workflow
Ship a PR a reviewer can land without follow-up clarifying questions. The aim is high signal in the title and body, evidence the change works, and clean replies when feedback comes in.
When to use
- You are about to open a PR for a change that is functionally complete.
- A reviewer left comments and you need to respond and push fixes.
- A PR has been open more than a day and needs to be brought back into shape (stale conflicts, missing description, missing verification).
When not to use
- The change is not yet functionally complete. Finish the work first; draft PRs that bounce on review are noise.
- The repository uses a non-GitHub forge. Adjust to that forge's conventions; do not force GitHub-isms.
Branch hygiene before opening
- Rebase or merge from the target base so the diff is current.
- Squash WIP commits into reviewable units. Prefer one commit per logical change; do not force one-commit-per-PR if the work is genuinely multi-step.
- Confirm tests, typecheck, and lint pass locally. Note any deliberate skips in the PR body.
- Remove debug prints, commented-out code, and
TODOmarkers that are not tracked.
PR title
- Imperative mood, under 70 characters.
- Lead with the user-visible change, not the file touched.
Allow CSV export from reports tablebeatsUpdate reports.tsx. - If the repo uses an issue prefix convention (
PAP-1234:,[security]), follow it. - No trailing period.
PR body
Use this structure:
## Summary
- 1β3 bullets describing what changed and why.
## Implementation notes
- Anything non-obvious in the diff: trade-offs, dropped alternatives, gotchas.
- Migration or config implications.
## Verification
- The exact commands or steps you ran.
- Screenshots or short clips for UI changes (required if pixels moved).
- Edge cases you exercised by hand.
## Risk and rollback
- What breaks if this is reverted, and how to revert cleanly.
Skip the Risk and rollback section only for clearly trivial PRs (typos, docs).
Verification evidence
- Tests passing in CI is necessary, not sufficient. Reviewers also need to know the change behaves correctly end to end.
- For UI work, include screenshots of the golden path and one edge case. Tag dark and light mode if the project supports both.
- For migrations, include a dry-run plan and reversal steps.
- For performance changes, include a before/after measurement, not adjectives.
Replying to review comments
- Reply on every comment, even with just "fixed in <commit-sha>" β silent fixes leave the reviewer guessing.
- Push fixes as new commits while review is active; do not amend during review unless the reviewer agrees.
- If you disagree with feedback, say so with one sentence of rationale and let the reviewer decide. Don't escalate over comments.
- Re-request review explicitly after pushing changes.
Merge checklist
- All required checks green.
- All review comments resolved.
- PR title/body still accurate (update if scope changed mid-review).
- Linked issue moves to
in_reviewordoneper project convention. - Delete the branch after merge unless it is a long-lived integration branch.
Anti-patterns
- PR description that says "see commits". Reviewers should not need to read the log.
- Mixing refactor and behavior change in the same PR with no separation in the body.
- "Address feedback" commits that bundle unrelated edits. One commit per round of feedback is fine; one commit for everything in flight is not.
- Force-pushing during active review without telling the reviewer.
Pertanyaan umum
Mengapa judul dan deskripsi yang jelas itu penting?
Judul dan deskripsi yang jelas membantu reviewer cepat memahami apa yang berubah, mengapa berubah, dan cara mengujinya. Hal ini menghemat waktu dan mencegah kebingungan.
Apa itu 'commit' dan mengapa perlu diatur?
Commit seperti 'simpanan' dari pekerjaan Anda. Mengaturnya berarti mengelompokkan perubahan kecil yang saling terkait menjadi satu 'simpanan', sehingga riwayat kode lebih rapi dan mudah diikuti.
Apakah saya perlu menyertakan tangkapan layar untuk setiap perubahan?
Tangkapan layar sangat penting untuk perubahan yang memengaruhi tampilan visual program. Tangkapan layar menunjukkan dengan jelas bagaimana perubahan itu terlihat dalam praktik.
Detail
Deskripsi asli dari pembuat
Prepare a GitHub pull request from a feature branch β branch hygiene, commit shape, title/body, verification notes, screenshots for UI work, and replies to review comments.
repo: paperclipai/paperclip
Popularitas
- Bintang GitHub
- 103k
- Peringkat
- #805
- Lisensi
- MIT
- Diperbarui
- 15/10/2026
Komentar
- β¦
Skill lain dari repositori ini
delegate-work
103kMembantu agent Anda mendelegasikan pekerjaan ke agent lain. Berguna untuk memecah tugas kompleks dan melacak progres secara terorganisir.
follow-up-results
103kMeminta agent Anda memeriksa hasil pekerjaan sebelumnya. Berguna untuk melacak progres tugas dan menambahkan masukan dari manusia.
review-my-team
103kMembantu agent Anda meninjau tim yang terhubung. Berguna untuk mendapatkan ringkasan tim, tugas, hambatan, dan persetujuan yang masih menunggu.
paperclip-task-bridge
103kMeminta agent Anda membuat dan mengelola tugas di platform lain. Berguna untuk berinteraksi langsung dengan sistem manajemen proyek.
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.