git-stacked-prs

Coordinate interdependent Git PRs with backups, status tracking, and sequential rebases.

Updated Jan 29, 2026
One-click install
npx skills add https://github.com/nilpath/nilpath-marketplace --skill git-stacked-prs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-stacked-prs
Source: https://github.com/nilpath/nilpath-marketplace/tree/main/plugins/claude-code-tools/skills/git-stacked-prs
Command: npx skills add https://github.com/nilpath/nilpath-marketplace --skill git-stacked-prs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires git, gh, jq, bash, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Coordinating multiple interdependent PRs across branches is error-prone and tedious; this skill provides automated backups, stack visibility, and coordinated rebases to keep the workflow safe and auditable.

Core Features & Use Cases

  • Create and back up stacks of dependent PRs, view status, and rebase in sequence.
  • Update PR targets after merges and recover from rebases with safe rollback options.
  • Use cases include large features split into multiple PRs, iterative collaboration, and complex refactors with dependencies.

Quick Start

Plan your stack by creating the necessary branches, then back up with stack-backup.sh and rebase with stack-rebase.sh to apply changes safely.

Frequently Asked Questions about git-stacked-prs

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

FAQPage Schema
How do I automate stacked PR workflows safely in Git?

Automating stacked PR workflows safely involves coordinating multiple interdependent PRs across branches with automated backups, status visualization, and sequential rebases to maintain an auditable process. This skill orchestrates those steps using Git and GitHub CLI.

Do I need GitHub CLI and jq to manage stacked branches?

Yes, managing stacked branches with this workflow requires Git, GitHub CLI (gh), jq, and bash. These dependencies provide the necessary command-line interface access and JSON parsing utilities to coordinate dependency-aware PR management.

How do I update PR targets after merging a stacked dependency?

Updating PR targets after merging a stacked dependency involves executing the update-pr-targets.sh script to sequentially shift base references. This ensures remaining branches in the stack correctly point to the updated target branches.

What is the best way to rebase a stack of dependent Git branches?

The best way to rebase a stack of dependent Git branches is using the stack-rebase.sh script to apply changes in sequence. This dependency-aware rebase workflow maintains branch integrity while safely updating the stack.

Can I recover a stacked PR workflow if a sequential rebase fails?

Yes, you can recover a stacked PR workflow if a sequential rebase fails by using safe rollback options provided by the automated backups. The stack-backup.sh script captures the initial state to restore branches if needed.