/pr-review:pr-splitterfrom pr-review
Splits large PRs into a stack of small, reviewable branches. Plans slices by dependency, creates branches, and optionally opens PRs.
Ships in pr-review. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Small PRs get real reviews. Cut one big change into a stack where each PR is one concern and stands on its own.
git diff --stat <base>...HEAD and git log --oneline <base>..HEAD.Order by dependency, bottom of the stack first. Typical order:
Each slice must:
Show the plan as a table, then ask with AskUserQuestion (Build the stack (Recommended) / Change the slices / Don't split) and wait:
| # | Branch | Concern | Files | +/- | Depends on |
|---|
Say in one line if the change is already one concern and should not be split.
Leave the original branch untouched; it is the backup.
For each slice, in order:
git switch -c <branch> <previous slice branch or base>git checkout <original> -- <paths> for whole files, git checkout -p <original> -- <path> or a manual edit for part of a file.Last check: git diff <original> <top slice> must be empty. If not, report what differs.
The stack table with each branch's build and test result, and the empty-diff check. Pushing and opening PRs are public: ask first with AskUserQuestion (Push and open the PRs (Recommended) / Keep the branches local). On yes, open each PR with its base set to the slice below it. Then offer the next step the same way: Write a reviewer brief for each PR (reviewer-brief) (Recommended) / Stop.
Lessons from earlier runs live in two files: ~/.claude/skill-lessons/pr-splitter.md (any repo) and .claude/skill-lessons/pr-splitter.md at the repo root (this repo only).
- <YYYY-MM-DD>: <do or avoid X> because <Y>. (seen: 1). When a line already says the same thing, raise its seen count and date instead of adding one. Facts about this repo go in the repo file, everything else in the user file. Keep each file under 30 lines by merging or dropping stale lessons.seen: 3: if the ashish-claude-skills source repo is open, propose the edit to plugins/pr-review/skills/pr-splitter/SKILL.md as a diff and wait for a yes, then delete the lesson once it lands; otherwise say Lesson ready to promote: <line> in the report.Learned: <the line written | nothing>.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
2 skills in this plugin
Other plugins' skills for the same job
npx claudepluginhub ashishyd/ashish-claude-skills --plugin pr-review