Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

gh-stack

Skill by remotion-dev

Manages stacked pull requests with the gh stack GitHub CLI extension. Built for developers and AI agents that split multi-part work into reviewable, dependent branches.

  • Score 80
  • 77k stars
  • NOASSERTION
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install gh-stack

Built from the published package, never by AI.

git clone --depth 1 https://github.com/remotion-dev/remotion /tmp/remotion && mkdir -p ~/.claude/skills && cp -r /tmp/remotion/.agents/skills/gh-stack ~/.claude/skills/gh-stack

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install gh-stack in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

gh-stack is an agent skill for gh stack, a GitHub CLI extension for stacked branches and pull requests. A stack is an ordered chain of branches rooted on a trunk, where each branch has one PR based on the branch below it, so a reviewer sees only that layer's diff. The skill covers stack creation, viewing, edits, push, submit, sync, rebase, merge, and checkout.

The skill sets rules for non-interactive use, because several commands open a prompt or a full-screen interface when run in a terminal. It tells the assistant to pass explicit flags, read stack state from view --json, and follow the documented exit code recovery steps. It also gives guidance on placing work in layers and on scoping merges. It suits developers who split large changes into reviewable PRs and want an assistant to manage the stack.

Written from the project's SKILL.md and checked against it.

What it can do

  • Stack creationCreate a stack with init and add, then open draft PRs with submit --auto.
  • Stack viewingRead stack state, including branches, PRs and rebase status, with gh stack view --json.
  • SyncFetch, reconcile with GitHub, rebase, push and refresh PR state with gh stack sync.
  • Rebase and conflict recoveryRebase upstack and continue or abort after a conflict, using documented exit codes.
  • Scoped mergingMerge a PR and every unmerged PR below it, using an explicit merge method.
  • Layer navigationMove between layers with up, down, top, bottom and checkout.
  • Branch placementCheck out the layer that owns a change before editing and committing it.

What you need

  • GitHub CLI (gh)
  • gh stack extension from github/gh-stack
  • Stacked PRs enabled on the repository

Try asking

  • Split this feature into a stack of reviewable PRs with gh stack.
  • Sync my stack with GitHub and push any rebased branches.
  • Show the current stack state and tell me which layer is next.

Good to know

  • Stacks are strictly linear, with one parent and at most one child.
  • No non-interactive reorder or removal; gh stack modify is TUI-only.
  • Merges are all-or-nothing and need an explicit merge method.
  • PR titles and bodies are auto-generated; change them with gh pr edit.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .agents/skills/gh-stack/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to gh-stack

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

gh-stack: common questions

Does gh-stack support parallel branches?

No. Stacks are strictly linear, so separate stacks are used for parallel work.

Why do gh stack commands hang when an agent runs them?

Under a terminal, some commands open a prompt or full-screen interface and block, so the skill requires explicit flags.

Can I merge only part of a stack?

Yes. Passing a PR number merges that PR and every unmerged PR below it, using the method you specify.

How do I install gh-stack?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is gh-stack free?

The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.

Is gh-stack safe to use?

It scores 80 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to gh-stack?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

gh-stack Install

Add to stack

Loading.