Stacked Prs
Step-by-step workflow for building dependent PR stacks, with rules that prefer main-based PRs by default.
- CCM score
- 58 of 100
- skills.sh installs
- 391
- GitHub stars
- 79
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers creating a stack of dependent pull requests, rebasing the chain when a base PR changes, and choosing a merge order
- Includes sequential branch naming (
feature/001-base-auth), PR title and description templates, and--force-with-leaserebase commands - Enforces main-based PRs as the default, using stacking only when a user explicitly requests dependent PRs
- Designed for complex features split into logical phases that a developer comfortable with rebase workflows can review in parallel
Install
$ npx -y skills add bobmatnyc/claude-mpm-skills --skill stacked-prs -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Stacked Pull Requests
Overview
Stacked PRs are dependent pull requests where each PR builds on the previous one. Use this pattern for complex features that need logical separation and parallel review.
When to Use
✅ Use Stacked PRs When:
- User explicitly requests "stacked PRs" or "dependent PRs"
- Large feature needs to be split into logical phases
- Each phase has clear dependencies on previous phases
- User is comfortable with rebase workflows
❌ Use Main-Based PRs When (Default):
- Features are independent
- Simple bug fixes or enhancements
- Multiple agents working in parallel
- User doesn't specify preference
DEFAULT: Always prefer main-based PRs unless user explicitly requests stacking.
Branch Naming Convention
Use sequential numbering to show dependencies:
feature/001-base-authentication # PR-001 (base)
feature/002-user-profile # PR-002 (depends on 001)
feature/003-admin-panel # PR-003 (depends on 002)
Alternative patterns:
auth/01-foundation
auth/02-user-flow
auth/03-admin-features
Creating Stacked PRs
Step 1: Create Base PR (PR-001)
Details
- Repository
- github.com/bobmatnyc/claude-mpm-skills
- Category
- Git & Releases
- First seen
- Jun 3, 2026
Questions
What does the stacked-prs skill do?
The stacked-prs skill creates and manages stacked, or dependent, pull requests for complex features. Each PR builds on the previous one, so a large feature can be split into logical phases that are reviewed in parallel. The skill also covers rebasing the chain when a base PR changes.
When should I use stacked PRs instead of main-based PRs?
Use stacked PRs when you explicitly ask for stacked or dependent PRs, or when a large feature splits into phases that each depend on the previous one. The skill defaults to main-based PRs for independent features, simple fixes and parallel agent work. It also assumes you are comfortable with rebase workflows.
How do I install the stacked-prs skill?
Run npx -y skills add bobmatnyc/claude-mpm-skills --skill stacked-prs -y in your project. The command installs the skill so your agent can create branches, base each PR on the previous feature branch and write stack descriptions. It sits in the Git & Releases category.
More from bobmatnyc/claude-mpm-skills
All 154- Svelte5 Runes Static390
- Better Auth Core386
- Homebrew Formula Maintenance383
- Better Auth Integrations381
- Reporting Pipelines381
- Better Auth Plugins380
- Git Worktrees379
- Vb Winforms377
- Nextjs Core375
- Headlessui374
- Fastapi Local Dev373
- Sec Edgar Pipeline372
- Vb Core371
- Vercel Networking Domains371
- Svelte370
- Env Manager368
- Mongodb368
- Digitalocean Containers Images365
- Hono Jsx365
- Phoenix Api Channels365
- Langgraph364
- Pr Quality Checklist364
- Vercel Observability364
- Media Transcoding363
Similar to Stacked Prs
More Git & Releasesgit-chainPlugindashed/claude-marketplace27 starsManage and rebase chains of dependent Git branches (stacked branches). Use when working with multiple dependent PRs, feature branches that build on each other,
gh-stackSkillgithub/gh-stack23.6K installsManages stacked PRs and splits multi-part work into dependent, reviewable branch layers with gh-stack.
prSkilllobehub/lobehub2.3K installsCreate, submit, or split pull requests for the current branch, with stacked PRs ordered by layer.
graphiteSkillwithgraphite/agent-skills10K installsStacked-PR workflow skill for Graphite (gt) covering creation, navigation, restacking, and submission.
githubSkillcallstackincubator/agent-skills9.8K installsGuide to GitHub workflows with the gh CLI for pull requests, branching, and repository automation.
create-prSkilltartinerlabs/skills447 installsPush a branch and open a GitHub or GitLab PR, with stacked-base selection and migration drift checks.