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

breakup-pr

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

यह स्किल बड़े कोड बदलाव को वर्टिकल फ़ीचर स्लाइस में बाँटती है, और हर स्लाइस एक स्टैक्ड pull request के रूप में जाता है। यह उन डेवलपरों के लिए है जिनका बदलाव रिव्यू के लिए बहुत बड़ा है और जो उसे सुरक्षित चरणों में भेजना चाहते हैं।

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

  • ✓जब कोई pull request रिव्यूअर के लिए आराम से पढ़ने के लिए बहुत बड़ा है।
  • ✓जब आप किसी फ़ीचर को छोटे pull request में बाँटना चाहते हैं जो एक-दूसरे पर बने हों।
  • ✓जब आप चाहते हैं कि फ़ीचर के सारे हिस्से एक ही फ़ीचर फ़्लैग के पीछे एक साथ जारी हों।

Skill का लिंक

https://github.com/lightdash/lightdash/blob/main/.claude/skills/breakup-pr/SKILL.md

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

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

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

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

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

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

“मेरे pull request में डेटाबेस, API और फ़्रंटएंड बदले हैं। इसे स्टैक्ड स्लाइस में बाँटिए ताकि मैं उन्हें एक-एक करके रिव्यू कर सकूँ।”

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

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

स्किल वर्टिकल स्लाइस की योजना बनाती है, जिनमें से हर एक छोटा बदलाव है जिसे अलग से मर्ज और जाँचा जा सकता है। वह स्टैकिंग टूल से स्टैक्ड pull request बनाती है, और सारी स्लाइस एक साझा फ़ीचर फ़्लैग के पीछे रहती हैं।

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

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

Break Up PR into Vertical Feature Slices

You are splitting a large PR into vertical feature slices — each slice is an independently mergeable, CI-green stacked PR delivered via gh stack (see the /gh-stack skill for commands).

All slices are gated behind a single shared feature flag so the feature ships atomically when the flag is enabled.

Why Vertical Slices?

Large PRs are hard to review, hard to reason about, and risky to merge. Vertical slicing solves this by breaking work into small, focused changes that are easier to understand and safer to ship.

Easier code review:

  • Reviewers can focus on one concern at a time (e.g., "just the migration" or "just the API")
  • Each PR tells a clear story — what changed and why is obvious from the diff
  • Smaller diffs mean faster reviews and higher-quality feedback
  • Comments and discussions stay focused instead of sprawling across unrelated changes

Iterative improvement:

  • Each slice can be reviewed, refined, and merged independently
  • Feedback on early slices (e.g., schema design) can inform later slices before they're written
  • If a later slice needs rework, earlier slices are already safely merged
  • The stack shows a natural progression — reviewers understand the "journey" of the feature

Safer delivery:

  • Smaller changes = smaller blast radius if something goes wrong
  • Issues are easier to bisect — you know exactly which slice introduced a problem
  • Rollback is surgical: revert one slice, not the whole feature
  • CI catches issues earlier in the stack, before dependent code is written

Better collaboration:

  • Multiple people can review different slices in parallel
  • Stack structure makes dependencies explicit — no guessing what to review first
  • Merge conflicts are localized to individual slices
  • Progress is visible: "3 of 5 PRs merged" is clearer than "PR still in review"

The feature flag unifies it all: Even though slices merge incrementally, the feature flag keeps everything hidden until you're ready to ship. Merge with confidence, ship when ready.

Process

Step 1: Analyze the PR

If given a PR URL, fetch and analyze the diff:

gh pr diff <PR_NUMBER>

If on a branch, analyze the diff against main:

git diff main...HEAD

Understand:

  • What files are changed and why
  • The dependency graph between changes (schema → backend → frontend)
  • What constitutes a "vertical" — an independently testable slice of functionality

Step 2: Identify the Feature Flag

Determine the feature flag name for this feature:

  • Check if the PR already uses a feature flag — if so, reuse it
  • If not, create one following the naming convention: kebab-case (e.g., my-new-feature)

The feature flag goes in packages/common/src/types/featureFlags.ts:

export enum FeatureFlags {
    // ... existing flags
    MyNewFeature = 'my-new-feature',
}

CRITICAL: The same feature flag is used for ALL vertical slices. This ensures the entire feature is gated atomically.

Step 3: Plan the Vertical Slices

Break the PR into vertical slices ordered by dependency (bottom of stack = first to merge):

What is a vertical slice? A vertical slice is a thin, end-to-end piece of user-facing functionality that cuts through all architectural layers (migration + types + backend + API + frontend). Each slice delivers something a user could test or demo, even if it's narrow.

How to identify slices: Think about the feature from the user's perspective. Ask: "What are the distinct things a user can do with this feature?" Each answer is a candidate slice.

For example, a "content verification" feature might slice as:

  1. Admin can verify/unverify a chart (migration + model + service + API + UI — but only for charts)
  2. Admin can verify/unverify a dashboard (extend to dashboards)
  3. Verified badge appears in search and content browser
  4. Editing content auto-removes verification
  5. Admin settings panel to view all verified content

Each slice touches every layer it needs — that's what makes it vertical.

Anti-pattern: horizontal/layer slicing Do NOT slice by architectural layer (e.g., "PR 1: migration", "PR 2: backend types", "PR 3: API", "PR 4: frontend"). This produces PRs that aren't independently testable and forces reviewers to hold the whole feature in their head across multiple PRs.

Slicing guidelines:

  • Start with the narrowest end-to-end path — the simplest user action that exe
अक्सर पूछे जाने वाले सवाल

वर्टिकल स्लाइस क्या है?

यह फ़ीचर का एक छोटा, पूरा हिस्सा है जिसे अलग से रिव्यू और मर्ज किया जा सकता है।

क्या फ़ीचर हिस्सों में जारी होता है?

नहीं, सारी स्लाइस एक साझा फ़ीचर फ़्लैग के पीछे हैं, इसलिए फ़ीचर एक साथ चालू होता है।

स्टैक कौन सा टूल बनाता है?

स्किल gh-stack स्किल के gh stack कमांड इस्तेमाल करती है।

जानकारी

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

Break up a large PR into vertical feature slices delivered incrementally as stacked PRs via `gh stack`. All verticals share a single feature flag so the entire feature ships atomically. Use when: splitting a large PR, breaking up a diff, vertical slicing, incremental delivery, phased rollout, or when a PR is too large to review.

repo: lightdash/lightdash

लोकप्रियता

GitHub स्टार
6.2k
रैंकिंग में स्थान
#14394
लाइसेंस
—
अपडेट की गई
2/11/2026

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

0

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

कमेंट

  • …

इस repository की और skills

lightdash-agent-slack-messaging

6.2k

आपके एजेंट को Lightdash एडमिनिस्ट्रेटरों के लिए साफ़ और मित्रवत रखरखाव तथा गतिविधि रिपोर्ट लिखने में मदद करती है, केवल उपलब्ध सबूतों के आधार पर।

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

developing-in-lightdash

6.2k

आपके एजेंट को Lightdash डैशबोर्ड और चार्ट को JSON के रूप में पढ़ने, बनाने और संपादित करने में मदद करती है, हर चार्ट प्रकार की सेटिंग के साथ।

डेटाएनालिसिस और स्प्रेडशीट

filter-expressions

6.2k

आपके एजेंट को Lightdash मीट्रिक क्वेरी के लिए सही फ़िल्टर एक्सप्रेशन लिखने में मदद करती है, जिनमें कस्टम मीट्रिक पर फ़िल्टर भी शामिल हैं।

डेटाएनालिसिस और स्प्रेडशीट

mcp-artifact-integration

6.2k

आपके एजेंट को HTML या React artifact के अंदर Lightdash क्वेरी परिणाम दिखाने में मदद करती है, जिसमें लोडिंग, त्रुटि और खाली स्थितियाँ संभाली जाती हैं।

कोडिंगवेबसाइट और UI (frontend)

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