What problem does it solve?
Manually rebasing a chain of dependent (stacked) pull requests is time-consuming and error-prone, especially when conflicts arise across multiple branches in the chain. This skill automates the entire process to keep all stacked PRs up-to-date and mergeable.
Core Features & Use Cases
- Automated Chain Detection: Automatically identifies the dependency order of open PRs via the GitHub CLI, or uses user-provided PR numbers to sort the rebase sequence topologically.
- Intelligent Conflict Handling: Resolves mechanical and semantic merge conflicts automatically during rebase, and escalates ambiguous conflicts to the user for input to avoid incorrect changes.
- End-to-End Verification: Verifies each PR is mergeable after rebasing and provides a clear summary of the status of every PR in the chain.
- Use Case: For teams using stacked PR workflows, this skill eliminates the manual effort of updating multiple dependent branches when the base branch changes, reducing merge friction and human error.
Quick Start
Use the rebase-pr-chain skill to rebase the open stacked PR chain starting from PR #42 and resolve any conflicts that come up.