This handles the mechanics of creating dependent pull requests where each PR builds on the previous one, not main. It's overkill for most work, but when you're shipping a complex feature that needs logical separation and parallel review, the numbered branch convention (feature/001-base, feature/002-next) keeps things clear. The real value is in the rebase chain management and PR description templates that explain dependencies. The skill defaults to regular main-based PRs unless you explicitly ask for stacking, which is the right call since stacked PRs require comfort with rebasing and force-pushing. If your team doesn't already do this workflow, the learning curve probably isn't worth it for a one-off feature.

skills.sh installs
371
GitHub stars
79
last updated
Aug 21, 2026

Install

$ npx -y skills add bobmatnyc/claude-mpm-skills --skill stacked-prs --agent claude-code

Installs into .claude/skills of the current project.

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)

Sponsors

Details

Repository
github.com/bobmatnyc/claude-mpm-skills
First seen
Jun 3, 2026

More from bobmatnyc/claude-mpm-skills

All 158

Recommended

1juliusbrussee avatarcavemanjuliusbrussee/cavemanUltra-compressed communication mode. Cuts output tokens 65% (measured) by speaking like caveman while keeping full technical accuracy. Supports intensity levels618.3Kskills.sh installs
2mattpocock avatargrill-memattpocock/skillsA relentless interview to sharpen a plan or design.1.5Mskills.sh installs
3shadcn avatarimproveshadcn/improveSurvey any codebase as a senior advisor and produce prioritized, self-contained implementation plans for OTHER models/agents to execute. Strictly read-only on s40Kskills.sh installs
4obra avatarsystematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes326.7Kskills.sh installs
5forrestchang avatarkarpathy-guidelinesforrestchang/andrej-karpathy-skillsBehavioral guidelines to reduce common LLM coding mistakes through explicit assumptions, simplicity, and verifiable success criteria.17.9Kskills.sh installs
6vercel-labs avatarfind-skillsvercel-labs/skillsHelps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express int4.3Mskills.sh installs