Pr split

From Takazudo/claude-resources · View interactive version

Pr split is an AI agent skill from the GitHub repository Takazudo/claude-resources. Split a multi-feature pull request into smaller, focused PRs. Use when: (1) User says 'split pr' or 'break up pr', (2) A PR contains multiple independent features that should be reviewed separately, (3) User wants to decompose a large PR.

How to use this skill

Skill file

PR Split Command

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.

Process

1. Analyze Current PR

2. Determine if Split is Needed

3. Plan the Split

4. Execute Split

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

CRITICAL - NO COMMIT ALTERATION:

c. Push and create PR

5. Handle Original PR

Important Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.