Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By derekspelledcorrectlyv0.3.0MITIn 1 marketplace
Drive GitHub's native stacked pull requests (the github/gh-stack extension) as a non-interactive agent. Covers the JSON state model, worktree behavior, the never-run list, and recovery from rebase conflicts.
You run one by typing its /name in Claude Code.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Drive GitHub's native stacked pull requests (the github/gh-stack gh extension) from a
non-interactive agent session.
| Command | Purpose |
|---|---|
/gh-stack:status [operation] | Show the stack, PR state, and anything blocking the next operation |
/gh-stack:doctor | Diagnose the environment: extension version, worktree state, remotes, rerere, skill drift |
/gh-stack:submit [flags] | Preflight, resolve the PR plan, and hand you the exact submit command to run |
gh-stack-expert covers the operational core plus the things GitHub's own skill cannot
know: worktree behavior, the permission wall around pushing, the sandbox rule, the
never-run list, and version drift.
scripts/gh_stack_status.py emits the stack as JSON, and with --strict --for <op> becomes
a gate. Read-only; it never writes to the stack state, the lock, or the index.
python3 scripts/gh_stack_status.py # JSON
python3 scripts/gh_stack_status.py --text # human-readable
python3 scripts/gh_stack_status.py --no-prs # offline, topology only
python3 scripts/gh_stack_status.py --strict --for rebase # exit 2 if blocked
It exists because gh stack view --json cannot answer several questions an agent must
answer before acting:
base is a commit SHA, not a branch name. The parent is recoverable only
from array order, which is the reverse of the order --short prints.head key is omitempty. It is absent after init and add until a
rebase records it. The script resolves heads with git rev-parse instead of trusting
the key.isCurrent.
Off-stack and detached HEAD both exit 2 with different messages.gh stack view --json exits 6 and names
neither. The script reads the state file in the common git dir and names the
candidate stacks in its error.gh stack rebase refuses a dirty tree only when it runs, and navigation
does not check at all. A rebase stopped in another worktree is invisible to
view --json. The script reports both as blockers before you act. It checks
dirtiness in the current worktree only; gh still refuses a dirty one elsewhere.GitHub publishes an official skill for this tool:
gh skill install github/gh-stack --agent claude-code --scope user
It is good and it owns the mechanics. This plugin does not vendor it, because a frozen copy
inherits upstream's bugs permanently: a fork taken shortly before extension v0.1.0 would
still be insisting gh stack merge does not exist. This plugin's skill stands alone but
stays deliberately smaller, and documents where upstream is currently wrong.
gh with the github/gh-stack extension. Verified against v0.3.0. Worktree support
needs v0.2.0 or later and Git 2.36 or later.gh extension upgrade stack is a user action; agents cannot install extensions here.gh stack view --json. Bare gh stack view is a TUI and hangs under a TTY.2>&1. Data goes to stdout, status to stderr.submit, push, sync, link, unstack, and merge all push code to GitHub or change
state there. Agents never run them. The plugin prepares the command and hands it to the
user. Note the git push deny rule does not cover them, because they are gh, not git,
so they need their own deny entries.gh stack merge with no argument merges the entire stack, has no dry-run of any kind, and
uses your last-used merge method. --yes is not a safety catch: non-interactive callers
skip the confirmation wizard regardless.modify and switch need a TTY; hand those to a human.npx claudepluginhub derekspelledcorrectly/claude-plugins --plugin gh-stackBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground