split-and-ship
Installation
SKILL.md
Split and Ship
Ship an approved split plan as separate branches, commits, and PRs.
Context
A split plan must exist in the conversation. The plan specifies an ordered list of groups, each with a name, file list, and branch topology (stacked or independent).
Step 1: Prepare Working Tree
- Detect the default branch:
gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name' - Check the current branch and whether a PR already exists for it using
gh pr view - Save all staged changes, then unstage everything (
git reset) - Stash all changes including untracked files (
git stash --include-untracked) so files can be selectively restored per group
Verify git stash list shows the saved changes before proceeding.