split-branch
Installation
SKILL.md
Splitting Branches Into Stacked PRs/MRs
Overview
Split a large branch into a stack of smaller PRs/MRs where each (except the bottom) targets the previous one — true stacked PRs, not "expanding-snapshot" PRs that all target main.
Core principle: 200-400 line PRs correlate with the highest defect-detection rates and best architectural feedback; beyond ~400 lines feedback degrades to surface-level. Use as a heuristic, not a law — split aggressively, target ~300 lines, adjust per language.
Announce: "I'm using the split-branch skill to plan/execute the split."
Targets and Weighting
| Change | Target |
|---|---|
| Bug fix / config | <100 / <50 |
| New feature | 200-400 |
| Refactor | 300-500 |
| Default | ~300 source lines |
| Hard cap | 600 source lines |