gh-stack SKILL.md skillA

gh-stack from molefrog/moi is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add molefrog/moi/gh-stack@v0.2.0

Pins v0.2.0 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
molefrog/moi
Path
.agents/skills/gh-stack/SKILL.md
Versions recorded
1
Latest version
v0.2.0, committed Oct 9, 2026
Size
9,212 bytes
Repository stars
186
License
a license file GitHub does not identify

Manages stacked PRs and splits multi-part work into reviewable branches with gh-stack. Use for stack creation, viewing, edits, push, submit, sync, rebase, merge, or checkout; when asked to split or isolate work for review; whenever a user mentions a stack, branch layers, dependent PRs, or gh stack; or when a stack is checked out.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# gh-stack

`gh stack` is a [GitHub CLI](https://cli.github.com/) 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.

`gh stack` prints a stack trunk-first, left to right:

```
(main) <- auth <- api <- frontend
```

Left is the **bottom**, right is the **top**. `auth` is based on `main` and merges first;
`frontend` merges last. `up` moves toward the top, away from trunk; `down` moves toward it.
Foundational work belongs at the bottom, code that depends on it above. For how to choose the
layers, read `references/stack-design.md`.

## Setup

Requires Git 2.36+ and an authenticated GitHub CLI.

```bash
gh extension install github/gh-stack
git config rerere.enabled true         # remember conflict resolutions
git config remote.pushDefault origin   # required if the repo has more than one remote
```

## Non-interactive use

`gh stack` branches on whether **stdout is a TTY**. Piped, most commands error cleanly or print
static text; under a PTY the same commands open a prompt or a full-screen TUI and block forever.
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add molefrog/moi/gh-stack@sha256:909ca0dc20d644f8

The line at the top of this page pins the label v0.2.0, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_3cqu7lo3wyv66wqp.svg)](https://markdownregistry.com/a/art_3cqu7lo3wyv66wqp)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 1 version of this file, committed on Oct 9, 2026.

versioncommittedcommitsizeaudit
v0.2.0 latest2026-10-09 7d25425 9,212 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (9212 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

molefrog/moi · 186 stars · license a license file GitHub does not identify · pushed 2026-10-20 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_3cqu7lo3wyv66wqp
GET https://markdownregistry.com/api/v1/resolve?ref=molefrog/moi/gh-stack
GET https://markdownregistry.com/api/v1/blob/909ca0dc20d644f8ce2d1a5e0c266d71aa93d2ecac366e505d14d1e8e45795dd

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from molefrog/moi

agent-browser SKILL.md skill
molefrog/moi · .agents/skills/agent-browser/SKILL.md · Core agent-browser usage guide. Read this before running any agent-browser commands. Covers the snapshot-and-ref…
git:20261019.2345208 · audit A · 186 stars
publish-release SKILL.md skill
molefrog/moi · .agents/skills/publish-release/SKILL.md · Release moi-computer to npm — verify locally, hand off to the gated GitHub Actions workflow, then verify the published…
git:20261020.be4a16c · audit A · 186 stars
shadcn SKILL.md skill
molefrog/moi · .agents/skills/shadcn/SKILL.md · Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI. Provides…
git:20260907.83d54dd · audit A · 186 stars
AGENTS.md AGENTS.md file
molefrog/moi · AGENTS.md
git:20261019.23eb3a0 · audit A · 186 stars
DESIGN.md DESIGN.md file
molefrog/moi · DESIGN.md
git:20261019.2345208 · audit A · 186 stars
AGENTS.md@client AGENTS.md file
molefrog/moi · client/AGENTS.md
git:20261019.23eb3a0 · audit A · 186 stars
AGENTS.md@server AGENTS.md file
molefrog/moi · server/AGENTS.md
git:20261019.7622d3a · audit A · 186 stars
moi-workspace SKILL.md skill
molefrog/moi · workspace/.claude/skills/moi-workspace/SKILL.md · The Moi workspace — the web UI the user chats from, extended with agent-authored applets (widgets, views) plus theme &…
git:20261019.2345208 · audit B · 186 stars
DESIGN.md@workspace/.claude/skills/moi-workspace/references DESIGN.md file
molefrog/moi · workspace/.claude/skills/moi-workspace/references/DESIGN.md
git:20261019.2345208 · audit A · 186 stars

Every file in molefrog/moi

Other files named gh-stack

gh-stack SKILL.md skill
cherryhq/cherry-studio · .agents/skills/gh-stack/SKILL.md · Manage Cherry Studio stacked branches and pull requests with the GitHub gh-stack extension. Use for planning, creating…
git:20261017.46ef0b8 · audit A · 52,815 stars
gh-stack SKILL.md skill
bastani-inc/atomic · .agents/skills/gh-stack/SKILL.md · Manage stacked branches and pull requests with the gh-stack GitHub CLI extension. Use when the user wants to create…
v0.0.9 · audit A · 869 stars
gh-stack SKILL.md skill
sd0xdev/sd0x-harness · skills/gh-stack/SKILL.md · Native stacked pull requests through the github/gh-stack extension. Detects the extension, installs it only after the…
git:20260926.525302d · audit A · 194 stars
gh-stack SKILL.md skill
tomzx/agents · skills/gh-stack/SKILL.md · Manages stacked PRs and splits multi-part work into reviewable branches with gh-stack. Use for stack creation, viewing…
v0.1.1 · audit A · 12 stars
gh-stack SKILL.md skill
jimyag/dotfiles · skills/gh-stack/SKILL.md · 使用 gh-stack GitHub CLI 扩展管理堆叠分支和拉取请求。适用于创建、推送、变基、同步、切换、查看、重组或合并相互依赖的 PR 链及堆叠差异。
v0.0.9 · audit A · 11 stars
gh-stack SKILL.md skill
athal7/dotfiles · dot_agents/skills/gh-stack/SKILL.md · Load when deciding whether to use gh stack or working on dependent, stacked GitHub pull requests
git:20261014.e6467ee · audit A · 8 stars

Browse by kind, by grade A, or by owner.