en un clic
split-pr
Split a bloated PR into a stack of small, reviewable PRs
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Menu
Split a bloated PR into a stack of small, reviewable PRs
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Run CodeRabbit CLI code review and interactively fix issues
Write detailed commit messages and create commits
Run formatters and linters, then fix reported issues
Generate PR title and description from branch diff against origin/main
Comprehensive PR review with detailed explanations and constructive feedback
Analyze and resolve git merge conflicts with guided assistance
Basé sur la classification professionnelle SOC
| name | split-pr |
| description | Split a bloated PR into a stack of small, reviewable PRs |
| triggers | ["split pr","split pull request","break up pr","pr stack","stacked prs"] |
Use this skill to break a large, multi-concern PR into a stack of small, self-contained, reviewable PRs.
git diff --stat origin/main..HEAD | tail -5
git diff --name-only origin/main..HEAD | sort
git log --oneline origin/main..HEAD
Read through the diff and categorize every changed file into logical groups. Common strategies:
For each group, identify:
Use AskUserQuestion to confirm the grouping.
Order the PRs so that:
For each PR in the stack:
git checkout -b <branch-name> <base>
# Extract relevant changes
git checkout <original-branch> -- <file1> <file2>
# Verify lint passes
make lint
# Verify tests pass
make test/unit
# Push and create PR
git push -u origin <branch-name>
gh pr create --title "<title>" --body "$(cat <<'EOF'
## Summary
<description>
## PR Stack
This is part of a PR stack:
- PR 1: <title> (base)
- **PR 2: <this PR>** <- you are here
- PR 3: <title>
## Test plan
- [ ] `make lint` passes
- [ ] `make test/unit` passes
EOF
)"
For each created PR, verify:
make lint passesmake test/unit passes## PR Stack Summary
| # | PR | Title | Base | Files | Status |
|---|-----|-------|------|-------|--------|
| 1 | #XX | title | main | N | Ready |
| 2 | #YY | title | PR 1 | N | Ready |
git checkout <branch> -- <file> to extract specific filesmake lint after extracting changes