pr-merge-champion
यह क्या करती है
यह गाइड आपको अपने कोड बदलावों (जिन्हें 'pull request' कहते हैं) को इस तरह तैयार करने में मदद करती है कि वे जल्दी approve होकर प्रोजेक्ट में जुड़ जाएँ। यह सुनिश्चित करती है कि आपका कोड साफ-सुथरा हो, आपने खुद उसकी अच्छी तरह समीक्षा कर ली हो, और उसका विवरण अच्छा लिखा गया हो।
कब इस्तेमाल करें
- ✓जब आपने कोड में बदलाव करना पूरा कर लिया हो और उन्हें भेजने के लिए तैयार हों।
- ✓जब आप चाहते हों कि कोई दूसरा उसे review करने से पहले आपका कोड साफ-सुथरा हो।
- ✓जब आप चाहते हों कि आपके बदलाव जल्द से जल्द approve होकर प्रोजेक्ट में merge हो जाएँ।
Skill का लिंक
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/pr-merge-champion/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरा pull request जल्दी approve हो, इसके लिए मैं क्या कर सकता हूँ?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
गाइड सुझाती है कि आप अपना कोड साफ करें, बुनियादी गलतियों की जाँच करें, और एक साफ विवरण लिखें जिसमें बताएँ कि आपने क्या बदला और क्यों बदला। यह भी कहती है कि भेजने से पहले आप अपने कोड की खुद समीक्षा करें।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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.
…
अक्सर पूछे जाने वाले सवाल
'pull request' क्या होता है?
यह एक अनुरोध है कि आपके कोड बदलाव किसी बड़े प्रोजेक्ट में जोड़े जाएँ। जैसे किसी किताब में कोई लेख जोड़ने का प्रस्ताव देना।
कोड साफ करना क्यों ज़रूरी है?
साफ कोड को समझना और review करना आसान होता है, जिससे गलतियाँ कम होती हैं और approval जल्दी मिलता है।
'self-review' का क्या मतलब है?
इसका मतलब है कि किसी और से review करवाने से पहले आप अपना कोड खुद जाँचें, ताकि उसमें गलतियाँ, बेकार की comments या ऐसे हिस्से पकड़ में आ जाएँ जो काम नहीं करते।
जानकारी
लेखक का मूल विवरण
Optimize pull requests for quick approval and merging by ensuring clean diffs, comprehensive self-reviews, and structured documentation.
लोकप्रियता
- GitHub स्टार
- 48k
- रैंकिंग में स्थान
- #5485
- लाइसेंस
- MIT
- अपडेट की गई
- 15/10/2026
कमेंट
- …
इस repository की और skills
00-andruia-consultant
48kआपके एजेंट को AI प्रोजेक्ट शुरू करने या उन्हें बेहतर बनाने में मदद करता है। यह code का विश्लेषण करता है, tools सुझाता है और स्पेनिश भाषा में action plan बनाता है।
007
48kआपका एजेंट security audit और threat modeling करता है। यह प्रोजेक्ट को हमलों और कमजोरियों से बचाने में काम आता है।
10-andruia-skill-smith
48kआपके एजेंट को AI tools बनाने या उन्हें बेहतर करने में मदद करता है। यह तय करता है कि tools कैसे काम करेंगे, documentation लिखता है और structure की जांच करता है।
20-andruia-niche-intelligence
48kआपका एजेंट किसी खास industry का summary बनाता है। भरोसेमंद स्रोतों की मदद से यह प्रोजेक्ट का संदर्भ, नियम, इस्तेमाल के तरीके और जोखिम समझने में मदद करता है।
मिलती-जुलती skills
openclaw-update
394kयह आपके एजेंट को चल रहे OpenClaw Gateway को अपडेट करने में मदद करती है, इंस्टॉल के तरीके के अनुसार सही विधि चुनकर और सेशन बनाए रखकर।
diagnose-gateway
394kयह आपके एजेंट को सेटिंग्स, चैनल और पोर्ट जांचकर पता लगाने देती है कि OpenClaw Gateway क्यों फ़ेल हो रहा है, बिना कुछ बदले।
crabbox-apps
394kयह आपके एजेंट को किसी अस्थायी क्लाउड मशीन पर ऐप खोलने और चलाने देती है, फिर उसका व्यू आपके चैट के साइड पैनल में दिखाती है।