gh-stack

Manage GitHub branch and pull request stacks with gh-stack commands.

Updated Apr 14, 2026
One-click install
npx skills add https://github.com/KOU050223/animeishi --skill gh-stack-kou050223
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gh-stack
Source: https://github.com/KOU050223/animeishi/tree/main/.agents/skills/gh-stack
Command: npx skills add https://github.com/KOU050223/animeishi --skill gh-stack-kou050223

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires github-cli, gh-stack, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps manage complex branch and pull request workflows on GitHub by allowing users to create, maintain, and manipulate stacks of dependent branches and PRs.

Core Features & Use Cases

  • Stacked Branches: Organize related PRs into a stack to facilitate coordinated reviews and development.
  • Automated Commands: Execute commands like create, push, rebase, sync, and view stacks of dependent PRs.
  • Use Case: Ideal for projects with a complex dependency chain of features, where managing interdependent PRs becomes challenging.

Quick Start

Use the gh stack init command to create a new stack with a prefix, e.g., gh stack init -p feat feature-auth.

Frequently Asked Questions about gh-stack

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

FAQPage Schema
How do I manage stacked pull requests on GitHub for dependent branches?

Stacked pull requests on GitHub organize dependent branches into a sequence for coordinated reviews. You can create, push, rebase, and sync these dependent PRs to maintain complex dependency chains during feature development.

What is the best way to handle a complex dependency chain of feature branches?

Handling a complex dependency chain of feature branches is best done by organizing them into a stack. This streamlines coordinated reviews and development by treating interdependent PRs as a single manipulable unit.

Do I need GitHub CLI to create and rebase stacks of dependent PRs?

Yes, you need GitHub CLI and the gh-stack extension to create and rebase stacks of dependent PRs. These dependencies provide the required automated commands to manipulate and synchronize stacked branches.

How do I initialize a new stack of branches for coordinated reviews?

To initialize a new stack for coordinated reviews, use the `gh stack init` command with a prefix. For example, executing `gh stack init -p feat feature-auth` sets up a new stack of dependent branches.

Can I synchronize stacked branches when the base branch updates?

Yes, you can synchronize stacked branches when the base updates. The automated commands allow you to rebase and sync stacks of dependent PRs, ensuring all branches remain aligned and coordinated throughout development.

Why does managing interdependent PRs become challenging without stacked workflows?

Managing interdependent PRs becomes challenging without stacked workflows because individual branches fall out of sync. Stacked workflows solve this by enabling automated creation, manipulation, and synchronization of the entire dependent PR stack.