kata-stacked-pr-merge
OfficialMerge stacked PR layers in order safely
Software Engineering#github#pull requests#rebase#release workflow#force-push#stacked prs#merge automation
Authorguardiatechnology
Version1.0.0
Installs0
System Documentation
What problem does it solve?
You need to merge a chain of stacked Pull Requests (base → top) without breaking later layers, while ensuring each upper layer is rebased onto the updated main branch and that the umbrella issue closes.
Core Features & Use Cases
- Order-safe stacked PR merging: merges layer 1 first, then processes layers 2..N in sequence to preserve correct bases.
- Explicit base migration before rebasing: updates each upper PR’s GitHub base to
mainbefore performing a local rebase and force-push. - Operational guardrails and validation: checks CI status, approval presence, mergeability, and umbrella issue closure; stops when conflicts arise and delegates resolution to the rebase kata.
- Two execution paths: supports a vanilla
gh+gitworkflow and agit-spicevariant for syncing/rebasing after merges.
Quick Start
Run the stacked merge procedure for a stack of N PR layers using gh pr merge in order, and for each upper layer first change the PR base to main, then rebase onto origin/main, force-push with lease, and merge via CLI.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: kata-stacked-pr-merge Download link: https://github.com/guardiatechnology/design-system/archive/main.zip#kata-stacked-pr-merge Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.