Skip to content

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
View on GitHub

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-lease rebase 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 -y

Installs 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

Similar to Stacked Prs

More Git & Releases