stacked-pr-build

Merge multiple dependency PR heads into a single implementation branch.

3|2|Updated May 12, 2026
One-click install
npx skills add https://github.com/kriscendobot/garden --skill stacked-pr-build
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stacked-pr-build
Source: https://github.com/kriscendobot/garden/tree/main/skills/stacked-pr-build
Command: npx skills add https://github.com/kriscendobot/garden --skill stacked-pr-build

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill solves the challenge of developing and reviewing code that depends on multiple in-flight pull requests, ensuring the implementation is tested against the actual code of its dependencies rather than a clean base.

Core Features & Use Cases

  • Dependency Stacking: Automatically merges multiple PR heads into a single working branch to create a unified review surface.
  • Audit Trail Maintenance: Records dependency SHAs in the registry to ensure build reproducibility and clear history.
  • Use Case: When building a new feature that relies on two separate, unmerged utility PRs, this skill creates a single PR that includes all three sets of changes, allowing reviewers to see the full context and impact of the entire stack.

Quick Start

Invoke the stacked-pr-build skill to construct a new implementation branch by merging the specified dependency PRs onto the current base branch.

Frequently Asked Questions about stacked-pr-build

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

FAQPage Schema
How do I build and test a feature that depends on multiple unmerged pull requests?

Stacking pull requests solves this by merging multiple dependency PR heads into a single implementation branch. This creates a unified review surface where your code is tested against actual upstream changes rather than a clean base, ensuring accurate integration validation.

What is stacked pull request management for complex dependency chains?

Stacked pull request management automates merging multiple dependency PR heads into a single working branch. It facilitates complex code review workflows where features rely on unmerged upstream changes, allowing reviewers to see the full context and impact of the entire stack.

Do I need the GitHub CLI and git to automate stacked pull requests?

Yes, automating stacked pull requests requires git for local branch management and GitHub CLI for remote PR orchestration. These tools facilitate merging dependency PR heads onto your base branch while maintaining strict dependency registry records for build reproducibility.

How do I create a stacked PR branch from multiple dependency pull requests?

You construct a new implementation branch by merging specified dependency PRs onto your current base branch. This automatically combines all upstream changes into one working branch, creating a unified review surface for code that relies on unmerged upstream dependencies.

How are dependency SHAs tracked when stacking pull requests?

Dependency SHAs are recorded in a strict registry to ensure build reproducibility and maintain a clear history. This audit trail maintenance guarantees that your stacked implementation branch can be accurately reconstructed and reviewed against specific upstream changes.

When should I use dependency stacking instead of waiting for upstream PRs to merge?

Use dependency stacking when building a new feature that relies on separate, unmerged utility PRs. It creates a single PR including all sets of changes, allowing reviewers to see the full context and impact of the entire stack without waiting for upstream merges to complete.