pr-merge-champion
Fungsinya
Panduan ini membantu Anda menyiapkan perubahan kode (disebut 'pull request') agar lebih cepat disetujui dan ditambahkan ke proyek. Panduan ini memastikan kode Anda rapi, sudah Anda review sendiri, dan memiliki deskripsi yang baik.
Kapan dipakai
- ✓Saat Anda sudah selesai membuat perubahan kode dan siap mengajukannya.
- ✓Saat Anda ingin memastikan kode sudah rapi sebelum direview orang lain.
- ✓Saat Anda ingin perubahan Anda disetujui dan digabungkan ke proyek secepat mungkin.
Link skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/pr-merge-champion/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
“Bagaimana cara memastikan pull request saya cepat disetujui?”
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Panduan ini menyarankan Anda merapikan kode, memeriksa kesalahan dasar, dan menulis deskripsi yang jelas tentang apa yang Anda ubah dan alasannya. Panduan ini juga meminta Anda mereview kode sendiri sebelum mengajukannya.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
PR Merge Champion
Overview
A systematic playbook for preparing, reviewing, and documenting pull requests to ensure they are high-quality, free of common oversights, and optimized for instant maintainer approval and merging.
When to Use This Skill
- Use when preparing to open a new pull request on GitHub or any Git hosting platform.
- Use when self-auditing a feature or bug-fix branch for code cleanliness and consistency.
- Use when trying to minimize review cycles and speed up the integration of your changes.
How It Works
Step 1: Pre-Flight Clean Up & Rebase
Before presenting your code to reviewers, clean up any workspace noise and ensure your branch is up to date:
- Rebase your feature branch on top of the latest target branch (e.g.,
mainormaster) to resolve conflicts early. - Clean up untracked, temp, or swap files from your repository.
- Run local linters, formatters, and compilers to ensure no stylistic or syntax errors exist.
Step 2: Critical Self-Review
Review your own diff line-by-line as if you were the reviewer. Look out for:
- Leftover debugging statements (e.g.,
console.log,print, breakpoints, or custom debug flags). - Unnecessary changes, white-space only diffs, or commented-out code blocks.
- Incomplete
TODOcomments that should be resolved or turned into tracked issues. - Correctness of error handling and edge cases.
Step 3: Local Verification & Test Suite
Verify that all changes work as expected:
- Run the project's automated test suite locally to verify no regressions are introduced.
- Check test coverage for any new code blocks you added.
- Manually test the critical paths and edge cases of your feature or bug fix.
Step 4: Crafting the Pull Request Description
Write a high-signal, structured PR description. A great description tells the story of the changes:
- Summary: A concise explanation of the changes.
- Context / Why: Why this change is necessary and what problem it solves.
- Verification: Explicit details on how you tested it (test commands, screenshots, or step-by-step reproduction).
- Checklist: Conform to the repository's contributing guidelines and checklist requirements.
Examples
Example 1: Creating a Clean PR Description
# Pull Request: Implement Rate Limiting on Authentication Endpoint
## Summary
Introduces an IP-based rate limiter on the `/api/v1/auth/login` endpoint using Redis to prevent brute-force attacks.
## Why
We identified a high volume of login attempts targeting single accounts. This rate limiting window slows down attackers while keeping the system responsive for genuine users.
## Verification
- Ran unit tests: `npm run test tests/auth.test.js` (all green)
- Manually verified using Postman: sending 15 requests in under 60 seconds returns `429 Too Many Requests`.
## Checklist
- [x] Code follows the style guide
- [x] Unit tests added/updated
- [x] Documentation updated
Example 2: Self-Review Clean Up Commands
Before committing, run these commands to inspect the diff for accidental additions:
# Check the names of files changed to ensure no unwanted files are staged
git status --porcelain
# Review the actual diff for any leftover print statements or debuggers
git diff | grep -E "(console\.log|debugger|print\(|var_dump|binding\.pry)"
Best Practices
- ✅ Keep PRs Small and Focused: A PR with fewer than 200 lines of changes gets reviewed and merged significantly faster than a large one.
- ✅ Perform a Self-Review first: Finding your own bugs and formatting issues first builds trust with the maintainers.
- ✅ Respect Repository Guidelines: Check the project's
CONTRIBUTING.mdand pull request templates, and adhere to them strictly. - ❌ Do Not Bundle Unrelated Changes: Avoid sneaking refactoring or unrelated bug fixes into a feature PR. Create separate PRs instead.
- ❌ Do Not Ignore CI Failures: Always fix failing tests, linters, or security scans on your branch before requesting a review.
Limitations
- This skill does not replace project-specific CI/CD validation, automated testing, or domain-expert reviews.
- It assumes a standard Git and GitHub-like environment, though the core principles apply to GitLab, Bitbucket, and other platforms.
Common Pitfalls
- Problem: A PR is left open for a long time due to minor formatting or style comments.
…
Pertanyaan umum
Apa itu 'pull request'?
Itu adalah permintaan untuk menambahkan perubahan kode Anda ke proyek yang lebih besar. Ibaratnya seperti mengajukan kontribusi untuk sebuah buku.
Mengapa merapikan kode itu penting?
Kode yang rapi lebih mudah dipahami dan direview, sehingga membantu mencegah kesalahan dan mempercepat persetujuan.
Apa arti 'self-review'?
Artinya Anda memeriksa kode sendiri untuk mencari kesalahan, komentar yang tidak perlu, atau bagian yang tidak berfungsi, sebelum meminta orang lain mereviewnya.
Detail
Deskripsi asli dari pembuat
Optimize pull requests for quick approval and merging by ensuring clean diffs, comprehensive self-reviews, and structured documentation.
Popularitas
- Bintang GitHub
- 48k
- Peringkat
- #5485
- Lisensi
- MIT
- Diperbarui
- 15/10/2026
Komentar
- …
Skill lain dari repositori ini
00-andruia-consultant
48kMembantu agent Anda memulai atau meningkatkan proyek AI. Agent menganalisis kode, menyarankan tools, dan membuat rencana aksi dalam bahasa Spanyol.
007
48kMemungkinkan agent Anda melakukan audit keamanan dan threat modeling. Berguna untuk melindungi proyek dari serangan dan celah keamanan.
10-andruia-skill-smith
48kMembantu agent Anda membuat atau meningkatkan tools AI. Agent mendefinisikan cara kerja tools, menulis dokumentasi, dan memvalidasi strukturnya.
20-andruia-niche-intelligence
48kMemungkinkan agent Anda membuat ringkasan industri tertentu. Berguna untuk memahami konteks, aturan, pola penggunaan, dan risiko proyek dengan sumber terpercaya.
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.