From claude-resources
Splits a multi-feature pull request into smaller focused PRs using squash merges. Useful when a PR contains multiple independent features.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-resources:pr-splitThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Split a multi-feature pull request into smaller, focused PRs.
Split a multi-feature pull request into smaller, focused PRs.
IMPORTANT: This command ALWAYS uses squash merge to discard try-and-error history and create clean, meaningful commits. Never use cherry-pick.
gh pr view for PR detailsgh pr view --json baseRefNamegit log origin/<BASE>..HEAD (not main!)For each split feature:
a. Create new branch from base
git fetch origin
git checkout -b feature/split-name origin/<base-branch>
b. Apply changes using squash merge
git merge --squash original-branch
Review staged changes
Unstage files not related to this feature
Create clean, logical commits
CRITICAL - NO COMMIT ALTERATION:
NEVER use git commit --amend
NEVER use git rebase
c. Push and create PR
gh pr create --base <base-branch>[outdated] prefix to titlenpx claudepluginhub takazudo/claude-resources --plugin claude-resourcesRecreates a GitHub PR with clean commit history when messy try-and-error commits have accumulated, using squash merge and creating multiple meaningful commits.
Splits large git branches into Graphite PR stacks via semantic change grouping and Nx dependency analysis. Use for breaking monolithic commits into reviewable, dependent PRs.