Skip to content
Back to skills

Manage Native Github Stacked Pull Requests With Gh Stack

ASecurity

Teach coding agents to split large changes into native GitHub stacked pull requests, keep branch layers rebased, and submit focused reviewable PR chains with the gh stack CLI.

  • 36 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 8, 2026
ai-agentsgogitsecuritydocumentation

Works with

  • cli

Security analysis

A100/100

Scanned June 8, 2026

npx -y skills add agentskillexchange/skills --skill manage-native-github-stacked-pull-requests-with-gh-stack --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Manage Native Github Stacked Pull Requests With Gh Stack?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Manage Native Github Stacked Pull Requests With Gh Stack
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/agentskillexchange-manage-native-github-stacked-pull-requests-with-gh/badge)](https://www.skillsdirectory.com/skills/agentskillexchange-manage-native-github-stacked-pull-requests-with-gh)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: "Manage native GitHub stacked pull requests with gh-stack"
slug: "manage-native-github-stacked-pull-requests-with-gh-stack"
description: "Teach coding agents to split large changes into native GitHub stacked pull requests, keep branch layers rebased, and submit focused reviewable PR chains with the gh stack CLI."
github_stars: 401
verification: "security_reviewed"
source: "https://github.com/github/gh-stack"
author: "GitHub"
publisher_type: "first_party_open_source"
category: "Templates & Workflows"
framework: "Multi-Framework"
tool_ecosystem:
  github_repo: "github/gh-stack"
  github_stars: 401
---

# Manage native GitHub stacked pull requests with gh-stack

Teach coding agents to split large changes into native GitHub stacked pull requests, keep branch layers rebased, and submit focused reviewable PR chains with the gh stack CLI.

## Prerequisites

GitHub CLI 2.0+, gh-stack extension, a GitHub repository with Stacked PRs enabled, and an AI coding agent that can use repository Git commands

## Installation

Requirements and caveats from upstream:
- Requires the [GitHub CLI](https://cli.github.com/) (gh) v2.0+.
- | -n, --numbered | Use auto-incrementing numbered branch names (requires --prefix) |
- Creates a new branch at the current HEAD, adds it to the top of the stack, and checks it out. Must be run while on the topmost branch of a stack. If no branch name is given, prompts for one.

Basic usage or getting-started notes:
- sh
- gh extension install github/gh-stack
- ## AI agent integration

- Source: https://github.com/github/gh-stack
- Extracted from upstream docs: https://raw.githubusercontent.com/github/gh-stack/HEAD/README.md

## Documentation

- https://gh.io/stacks

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/manage-native-github-stacked-pull-requests-with-gh-stack/)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.