मुख्य सामग्री पर जाएँ
Skillpedia
सामान्य कोडिंग8.2k · #12548

chained-pr

यह क्या करती है

यह स्किल आपके AI को बड़े कोड बदलाव को छोटी pull requests की श्रृंखला में बाँटने में मदद करती है। यह उन डेवलपर्स के लिए है जिनका बदलाव समीक्षक एक बार में नहीं पढ़ सकता।

कब इस्तेमाल करें

  • ✓जब योजना बनाई गई pull request लगभग 400 बदली लाइनों से ज़्यादा होने की संभावना हो।
  • ✓जब आप स्टैक्ड pull requests चाहें ताकि हर समीक्षा केंद्रित रहे।
  • ✓जब किसी फ़ीचर को हिस्सों में merge करना हो और उसके लिए एक ट्रैकिंग pull request चाहिए।

Skill का लिंक

https://github.com/Gentleman-Programming/gentle-ai/blob/main/internal/assets/skills/chained-pr/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/Gentleman-Programming/gentle-ai/blob/main/internal/assets/skills/chained-pr/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मेरा बदलाव 900 लाइनों का है। इसे ऐसी chained pull requests में बाँटिए जिन्हें समीक्षक एक-एक करके संभाल सकें।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

स्किल काम को तार्किक इकाइयों में बाँटती है, टेस्ट और डॉक्स को उस कोड के साथ रखती है जिसे वे जाँचते हैं, और हर pull request को पिछली पर आधारित करती है। वह हर एक में निर्भरताएँ समझाती है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Activation Contract

Load this skill when a planned PR may exceed 400 changed lines, an ODD feature's forecast or running authored changed-line count from work-unit commits exceeds about 400, 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.
  • The budget constrains how work is sliced, never the code itself. Never delete comments, blank lines, docs, or tests, and never compress or restyle code, to fit under the budget.
  • Slicing is bounded: make one honest slicing pass. If no cohesive split brings every slice within budget, stop iterating, keep the best cohesive split, and report the final line count with a size:exception recommendation.
  • 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.
No cohesive split fits the budget after one slicing pass Stop; deliver the best split, report the overage and why it cannot shrink further, and recommend size:exception.
ODD provides delivery_strategy and chain_strategy Follow them before the next work-unit commit or PR creation.

Execution Steps

  1. Estimate changed lines and identify independent work units.
  2. Ask for a chain strategy when none is cached and the budget is exceeded.
  3. Create branches/PRs using the chosen strategy only.
  4. Add Chain Context to each PR without replacing the repo PR template.
  5. Verify each PR independently: CI/tests/docs/manual checks, rollback scope, and clean diff.
  6. 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

अक्सर पूछे जाने वाले सवाल

क्या यह सीमा में फ़िट करने के लिए कोड छोटा करती है?

नहीं। स्किल के अनुसार आकार की सीमा तय करती है कि काम कैसे बाँटा जाए, कोड कैसे लिखा जाए, यह नहीं।

हर pull request का समय लक्ष्य क्या है?

स्किल का लक्ष्य है कि हर समीक्षा लगभग 60 मिनट या उससे कम में हो।

Feature Branch Chain क्या है?

यह एक रणनीति है जिसमें एक ड्राफ़्ट ट्रैकर pull request फ़ीचर ब्रांच रखता है, और child pull requests उस पर आधारित होती हैं।

जानकारी

लेखक का मूल विवरण

Trigger: PRs over 400 lines, stacked PRs, review slices. Split oversized changes into chained PRs that protect review focus.

repo: Gentleman-Programming/gentle-ai

लोकप्रियता

GitHub स्टार
8.2k
रैंकिंग में स्थान
#12548
लाइसेंस
MIT
अपडेट की गई
1/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

branch-pr

8.2k

यह आपके एजेंट को ब्रांच और pull request ऐसे तैयार करने में मदद करती है जो गंतव्य प्रोजेक्ट के अपने योगदान नियमों का पालन करें, किसी सामान्य टेम्पलेट का नहीं।

कोडिंगसामान्य कोडिंग

cognitive-doc-design

8.2k

यह आपके एजेंट को गाइड, README और समीक्षाएँ ऐसे लिखना सिखाती है जिन्हें आसानी से पढ़ा और याद रखा जा सके, पहले जवाब देकर और विवरण समूहित करके।

लेखन और डॉक्यूमेंटलेखन

comment-writer

8.2k

यह आपके एजेंट को pull requests, समीक्षाओं, issue जवाबों और टीम चैट संदेशों के लिए छोटी, गर्मजोशी भरी और सीधी टिप्पणियाँ लिखने में मदद करती है।

प्रोडक्टिविटीईमेल और मैसेज

go-testing

8.2k

यह आपके एजेंट को Go टेस्टिंग पैटर्न सिखाती है, जिनमें table-driven टेस्ट, टेम्पररी फ़ोल्डर, golden फ़ाइलें और टर्मिनल यूज़र इंटरफ़ेस के टेस्ट शामिल हैं।

कोडिंगटेस्टिंग

मिलती-जुलती skills