gentle-ai-chained-pr
यह क्या करती है
यह स्किल आपके AI को बहुत बड़े बदलाव को जुड़े हुए pull requests के क्रम में बाँटने में मदद करती है। यह उन डेवलपर्स के लिए है जिनका बदलाव समीक्षक आराम से नहीं संभाल सकता।
कब इस्तेमाल करें
- ✓जब योजना बनाई गई pull request लगभग 400 बदली लाइनों से ज़्यादा हो सकती हो।
- ✓जब आप स्टैक्ड pull requests चाहें ताकि हर हिस्सा अपने आप समीक्षा हो सके।
- ✓जब किसी फ़ीचर को मुख्य ब्रांच तक पहुँचने से पहले एकीकृत करना हो और उसके लिए एक ट्रैकिंग pull request चाहिए।
Skill का लिंक
https://github.com/Gentleman-Programming/gentle-ai/blob/main/skills/chained-pr/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“हमारा फ़ीचर diff समीक्षा के लिए बहुत बड़ा है। इसे साफ़ निर्भरताओं वाले स्टैक्ड pull requests में बाँटिए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
स्किल एक निर्णय तालिका से चुनती है कि स्टैक्ड pull requests लेने हैं या फ़ीचर ब्रांच चेन। वह हर हिस्से को एक कार्य इकाई तक सीमित रखती है और हर pull request में निर्भरताएँ लिखती है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Activation Contract
Load this skill when a planned PR may exceed 400 changed lines, SDD forecasts 400-line budget risk: High or Chained PRs recommended: Yes, or the user asks for chained/stacked PRs, review slices, or reviewer-load control.
Hard Rules
- Split PRs over 400 changed lines unless a maintainer explicitly accepts
size:exception. - Keep each PR reviewable in about ≤60 minutes.
- Use one deliverable work unit per PR; keep tests/docs with the unit they verify.
- State start, end, prior dependencies, follow-up work, and out-of-scope items in every chained PR.
- Every child PR must include a dependency diagram marking the current PR with
📍. - In Feature Branch Chain, create a draft/no-merge tracker PR; child PR #1 targets the tracker branch, later children target the immediate parent branch.
- Treat polluted diffs as base bugs: retarget or rebase until only the current work unit appears.
- Do not mix chain strategies after the user chooses one.
Decision Gates
| Condition | Action |
|---|---|
| PR ≤400 changed lines and focused | Keep single PR. |
| PR >400, each slice can land independently | Use Stacked PRs to main. |
| PR >400, feature must integrate before main | Use Feature Branch Chain with tracker. |
| Generated/vendor/migration diff cannot split cleanly | Ask maintainer for size:exception. |
SDD provides delivery_strategy |
Follow it before apply/PR creation. |
Execution Steps
- Estimate changed lines and identify independent work units.
- Ask for a chain strategy when none is cached and the budget is exceeded.
- Create branches/PRs using the chosen strategy only.
- Add Chain Context to each PR without replacing the repo PR template.
- Verify each PR independently: CI/tests/docs/manual checks, rollback scope, and clean diff.
- Keep tracker PR draft/no-merge until all child PRs are reviewed and integrated.
Output Contract
Return the chosen strategy, PR order, current PR boundary, dependency diagram, review budget (additions + deletions), verification plan, and any size:exception rationale.
References
- references/chaining-details.md — strategy diagrams, PR body section, branch commands, and reviewer guidance.
अक्सर पूछे जाने वाले सवाल
फ़ीचर ब्रांच चेन कब इस्तेमाल करें?
जब फ़ीचर को मुख्य ब्रांच तक पहुँचने से पहले एक ट्रैकिंग ब्रांच में एकीकृत करना हो।
क्या child pull request में असंबंधित बदलाव हो सकते हैं?
नहीं। स्किल गंदे diff को आधार की समस्या मानती है और चाहती है कि हर diff केवल मौजूदा इकाई दिखाए।
अगर कोई साफ़ विभाजन न मिले तो?
स्किल कहती है कि गंदा विभाजन ज़बरदस्ती करने की जगह किसी मेंटेनर से अपवाद माँगें।
जानकारी
लेखक का मूल विवरण
Trigger: PRs over 400 lines, stacked PRs, review slices. Split oversized changes into chained PRs that protect review focus.
लोकप्रियता
- GitHub स्टार
- 8.2k
- रैंकिंग में स्थान
- #12559
- लाइसेंस
- MIT
- अपडेट की गई
- 1/11/2026
कमेंट
- …
इस repository की और skills
branch-pr
8.2kयह आपके एजेंट को ब्रांच और pull request ऐसे तैयार करने में मदद करती है जो गंतव्य प्रोजेक्ट के अपने योगदान नियमों का पालन करें, किसी सामान्य टेम्पलेट का नहीं।
chained-pr
8.2kयह आपके एजेंट को 400 लाइनों से बड़े बदलाव को छोटी, समीक्षा योग्य pull requests की श्रृंखला में बाँटने में मदद करती है, जिनमें से हर एक अपने आप में ठीक हो।
cognitive-doc-design
8.2kयह आपके एजेंट को गाइड, README और समीक्षाएँ ऐसे लिखना सिखाती है जिन्हें आसानी से पढ़ा और याद रखा जा सके, पहले जवाब देकर और विवरण समूहित करके।
comment-writer
8.2kयह आपके एजेंट को pull requests, समीक्षाओं, issue जवाबों और टीम चैट संदेशों के लिए छोटी, गर्मजोशी भरी और सीधी टिप्पणियाँ लिखने में मदद करती है।
मिलती-जुलती skills
diffs
394kयह आपके एजेंट को बदलावों का असली diff बनाने देती है, जिसे व्यूअर लिंक या इमेज फ़ाइल के रूप में साझा किया जा सकता है, हाथ से लिखे सारांश के बजाय।
coding-agent
394kयह आपके एजेंट को बड़े कोडिंग काम Codex, Claude Code या OpenCode को बैकग्राउंड वर्कर के रूप में सौंपने, फिर उसकी प्रगति जांचने में मदद करती है।
gh-issues
394kयह आपके एजेंट को GitHub issues खोजने, उनमें से काम करने लायक चुनने, और सुधार के साथ pull requests खोलने में मदद करती है, जिसमें समीक्षा टिप्पणियों का फ़ॉलो-अप भी शामिल है।