split-graphite-stack
Split monolithic branches into logical PR stacks. Use when user says "split this branch into PRs", "break up my changes", "create a PR stack", "split stack", "make this reviewable", or has a large branch with many changes that needs to be broken into smaller, reviewable pieces.
What this skill does
# Stack Splitter Automatically split a monolithic branch with many changes into a logical, reviewable stack of PRs using semantic analysis and Graphite. > **Note:** This skill requires Graphite CLI (`gt`) as PR stacking is a Graphite-specific concept. For standard Git workflows without stacking, consider creating separate branches and PRs manually or using the standard PR creator. ## When to Activate - User has a large branch with many commits - User wants to break changes into reviewable pieces - User asks to "split" or "stack" their changes - User needs help creating a PR stack - User mentions Graphite stack management ## Prerequisites - **Graphite CLI** installed: `npm install -g @withgraphite/graphite-cli@latest` (required - this is a Graphite-only feature) - **Repository initialized** with Graphite: `gt repo init` - **Clean working directory**: No uncommitted changes - **Feature branch** with 3+ commits to split > **Why Graphite-only?** PR stacking (having multiple dependent PRs that automatically rebase when lower PRs are merged) is a core Graphite feature. Standard Git doesn't support this workflow natively. ## Quick Process 1. **Analyze Changes**: Examine all commits and file changes since branch diverged 2. **Semantic Grouping**: Group related changes by functionality 3. **Dependency Analysis**: Use Nx project graph to understand dependencies 4. **Plan Generation**: Create logical split plan optimized for reviewability 5. **User Approval**: Present plan and wait for approval/modifications 6. **Execute Splits**: Use `gt split` to create the stack ## Semantic Analysis Principles ### Logical Boundaries Group changes that: - Implement the same feature or fix the same bug - Share the same domain/context (auth, payments, UI) - Have natural dependencies (types โ implementation โ tests) ### Dependency Awareness - Use Nx project graph for package dependencies - Foundational changes go at bottom of stack - Integration/glue code goes at top - Each PR reviewable independently ### Reviewability Optimization Each PR should: - Tell a coherent story with clear purpose - Be small enough to review in 15-30 minutes - Include relevant tests - Have descriptive title and description ## Output Format ```markdown ## ๐ Proposed Stack Split Plan **Current Branch:** `feature/big-changes` **Base Branch:** `main` **Total Commits:** 15 ### Stack Structure (bottom to top) #### PR #1: `feat: add authentication types` **Commits:** 3 commits **Files:** 5 files (+123 -12) **Rationale:** Foundational types that other changes depend on **Reviewability Score:** 9/10 #### PR #2: `feat: implement JWT service` **Commits:** 5 commits **Files:** 12 files (+456 -89) **Dependencies:** PR #1 **Reviewability Score:** 7/10 [... continues for each PR ...] ``` ## Examples ``` "Split this branch into PRs" "Break up my changes into a reviewable stack" "Create a PR stack from my feature branch" "Help me split these 15 commits into logical PRs" ``` ## Delegation Invokes the **stack-splitter-agent** with: - Current branch name and base branch - All commits since divergence - File changes with diff - Nx project structure (if available)
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.