# github/gh-stack

GitHub Stacked PRs

Repository: https://github.com/github/gh-stack
Canonical: https://ross.abutalabs.com/products/gh-stack
Homepage: https://gh.io/stacks
Language: Go
License: MIT
License Family: permissive
Topics: cli, gh-extension, github, stacked-prs
Last push: 2026-08-26T18:10:36+00:00

## Health v2 (maintenance only)
Score: 81/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 95, longevity 14
- inputs: {"age_days": 208, "days_push": 7, "days_rel": 35, "gap_med": 14.0, "n_releases_24m": 9}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1378, forks 59 (observed 2026-08-28T04:04:33.095579+00:00)

## What it is
A GitHub CLI extension for managing stacked branches and pull requests, written in Go. It automates creating branch chains, rebasing them, setting correct PR base branches, and navigating between stack layers.

## Use cases
- manage stacked pull requests on github
- break a large change into a chain of small reviewable PRs
- keep stacked branches rebased automatically
- open multiple linked PRs with correct base branches
- navigate up and down a stack of branches
- install a skill so AI coding agents can work with stacked PRs

## When to choose
- you use the GitHub CLI and want stacked-PR workflow support
- your team reviews large features as layered PR chains
- you want automated rebasing and base-branch management for stacks

## When to avoid
- you don't use GitHub or the gh CLI
- you prefer single large PRs over stacked reviews
- you need a GUI or web-based stacked PR tool

## Facets
- artifact type: cli-tool
- maturity: active
- function: cli, version-control, developer-tools, code-review
- domain: developer-tools, version-control
- platform: cli, cross-platform
- tags: github-cli-extension, stacked-prs, gh-extension, pull-requests, git, command-line

## Member repositories
- github/gh-stack (main) score 81

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:33.095579+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:40:22.669893+00:00, confidence not recorded.
  - readme: https://github.com/github/gh-stack (fetched 2026-08-28T04:04:33.095579+00:00, sha 4de1a98c07ba)
- Data as of 2026-08-30T08:39:29.467469+00:00.
