Splits large git branches into Graphite PR stacks via semantic change grouping and Nx dependency analysis. Use for breaking monolithic commits into reviewable, dependent PRs.
How this skill is triggered — by the user, by Claude, or both
Slash command
/development-pr-workflow:split-graphite-stackThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Automatically split a monolithic branch with many changes into a logical, reviewable stack of PRs using semantic analysis and Graphite.
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.
npm install -g @withgraphite/graphite-cli@latest (required - this is a Graphite-only feature)gt repo initWhy 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.
gt split to create the stackGroup changes that:
Each PR should:
## 📋 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 ...]
"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"
Invokes the stack-splitter-agent with:
npx claudepluginhub uniswap/ai-toolkit --plugin development-pr-workflowSplits a multi-feature pull request into smaller focused PRs using squash merges. Useful when a PR contains multiple independent features.
Builds, publishes, synchronizes, validates, merges, and cleans up stacked pull requests without corrupting branch topology.
Splits dirty Git working tree into grouped commits, creates/pushes branch, and opens GitHub PR with quality title, non-technical description, matched labels, and related issue links. Use for multi-file features ready to ship.