Neat trick to make big PRs readable: reslicing them into small commits A developer published a reusable AI skill called "restack-pr-commits" that reorganizes a large pull request into roughly 20 individually reviewable commits while keeping the fully stacked result character-for-character identical to the original PR. The author, who first saw the commit-slicing technique about seven years ago as a Tech Lead at Vena Solutions, used AI to reslice a +4k/-1k changeset touching 72 files, a size he now encounters regularly. The skill checks out the PR branch, creates a backup branch, and requires each commit to be reviewable rather than independently compilable or test-passing. It’s pretty hard to review a PR with a +4k/-1k changeset that touches 72 files. PRs like that used to be rare, maybe if there was a large refactor or an upgrade that had to go in all at once. But now I run into them regularly. Last week, when AI wrote two of those for me and I had to review them, I decided to try a new trick. Well, the trick is actually old; I first saw it about seven years ago when I started working as a Tech Lead at Vena Solutions. Back then, our VP of Architecture really liked refactoring and cleanup, which often produced large PRs. To make those PRs palatable to us, he organized them into neat, very focused individual commits with one specific change in each commit, something like this: f8ee9aa Rename class BadlyNamedClass to BetterNamedClass 18c240f Simplify logic in BetterNamedClass.SomeMethod 1a4acf0 Update tests for BetterNamedClass.SomeMethod 8b10bc0 Clean up unused imports ... etc ... Some commits had a lot of lines changed, but it was the same change on each line e.g. rename SomeThing to OtherThing . Other commits had a specific narrow focus, like a tweak to a complex algorithm. Each individual commit didn’t have to be compilable or pass tests by itself; it just had to tell the next chapter in the overall story of what the PR was doing. You can get AI to reslice an existing PR That’s the new trick I tried: getting the AI to do that to a pre-existing PR. I would have never done this by hand myself. But AI has infinite patience well, as long as the tokens last , and it had no problem tearing apart all 4k lines of code and carefully piecing them together into 20-ish commits. It wasn’t perfect, but it was good enough that reviewing was a lot easier. So then I turned it into a skill below ; after using it on several more PRs, I think from now on I’ll be doing it every time just so that I can read the PRs myself. --- name: restack-pr-commits description: 'Reorganizes the PR as a series of easily reviewable commits.' argument-hint: 'for pull request