Stacked Pull Requests

Guide creation and management of stacked pull requests for dependent branches.

Updated Jan 30, 2026
One-click install
npx skills add https://github.com/MacPhobos/research-mind --skill stacked-pull-requests
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Stacked Pull Requests
Source: https://github.com/MacPhobos/research-mind/tree/main/.claude/skills/universal-collaboration-stacked-prs
Command: npx skills add https://github.com/MacPhobos/research-mind --skill stacked-pull-requests

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a structured approach to managing complex features by breaking them down into smaller, dependent pull requests, simplifying review and integration.

Core Features & Use Cases

  • Phased Development: Split large features into logical, sequential phases.
  • Dependency Management: Clearly defines and manages dependencies between PRs.
  • Simplified Review: Allows reviewers to focus on incremental changes.
  • Use Case: When developing a new authentication system, you can create a base authentication PR, followed by a user profile PR that depends on it, and finally an admin panel PR that depends on the user profile.

Quick Start

Use the stacked PRs skill to create a sequence of three dependent branches for a new feature, starting with 'feature/001-base-auth' based on main, then 'feature/002-user-profile' based on the first, and 'feature/003-admin-panel' based on the second.

Frequently Asked Questions about Stacked Pull Requests

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage complex features with stacked pull requests in git?

Stacked pull requests break complex features into smaller, dependent branches, simplifying review and integration. You create a sequence of dependent branches, starting with a base feature branch and stacking subsequent branches on top of the previous ones.

What is the best way to structure branch naming conventions for stacked PRs?

Branch naming conventions for stacked PRs typically use a sequential numbering scheme to indicate dependency order. For example, you name branches sequentially like 'feature/001-base', 'feature/002-dependency', and 'feature/003-next' to clearly define the stack hierarchy.

How do you rebase and merge dependent branches without breaking the pull request stack?

Rebasing and merging dependent branches requires updating the base of each child branch sequentially after the parent merges. This Skill provides specific strategies for rebasing dependent branches to ensure your pull request stack remains intact throughout the integration process.

What are common pitfalls when creating stacked PRs on GitHub or GitLab?

Common pitfalls include branch misalignment and improper dependency tracking during rebases. This Skill addresses these by providing PR description templates to explicitly declare dependencies and agent instructions for automating the workflow to prevent integration errors.

When should I use stacked pull requests for code review instead of a single large PR?

Use stacked pull requests when developing complex features that require phased development, such as building an authentication system followed by dependent user profile and admin panels. This allows reviewers to focus on incremental changes rather than a massive codebase.

Can I automate stacked PR workflows for sequential feature development?

Yes, this Skill provides agent instructions for automating the stacked PR workflow. It guides the process of creating sequential dependent branches, applying naming conventions, and generating PR description templates to streamline automated feature integration.