decompose-branch
Installation
SKILL.md
Decompose Branch
Turn a messy local branch into a sequence of atomic commits ready for review.
When to Use
- Branch has messy/WIP commits before PR
- Reviewer feedback says "hard to follow"
- Splitting a large change into reviewable chunks
Note: Commands below use master as base branch. Replace with your actual base if different.
Phase 1: Analyze
Gather context and identify the distinct logical changes.
# See what commits exist on this branch vs base
git log --oneline master..HEAD