/github-workflows:pr-stacksfrom github-workflows
Use to submit and track dependent stacked pull requests.
Ships in github-workflows. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Stacked pull requests break one large change into an ordered chain of small, dependent PRs that are reviewed and merged independently — so you can keep building instead of waiting for each layer to merge.
feat/frontend → PR #3 (base: feat/api)
feat/api → PR #2 (base: feat/auth)
feat/auth → PR #1 (base: main) ← bottom
main / develop ← trunk
For branch creation, PR targets, and PR-branch sync, follow the
Git Town rule.
For Git-flow promotion, use /promote-release.
[!IMPORTANT] All branches must live in the same repository — cross-fork stacks are not supported. The feature is in public preview, so a repository must opt in.
gh extension installgh and the gh stack extension are provisioned by the Nix configuration
(nix-home provides the source-built extension via programs.gh.extensions;
nix-ai carries the upstream agent skill). Never run
gh extension install github/gh-stack — ad-hoc tool installs are banned (see
nix-tool-policy). If gh stack is missing, the fix is a change in the Nix
repository, not an install command here.
Build bottom-up: foundational changes (types, schema, shared helpers) in the lowest layer; consumers and UI above. One focused, reviewable change per layer. Create and sync branches according to the Git Town rule above. Once the branches exist, manage the stack with:
gh stack push # push the layers
gh stack submit --open # create the PRs ready for review; never leave them as drafts
gh stack view # inspect layers, PR links, and status
Full command/flag reference: gh stack --help and GitHub's Stacked pull
requests CLI commands docs; the upstream gh-stack skill covers it in depth.
/prune-branches already protects --base refs).pr-standards (issue linking,
conventional titles) to every layer; gh stack submit
creates the PRs, so edit their bodies afterward as needed.--base refs, so stack layers are safeWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub jacobpevans-ai/claude-code-plugins --plugin github-workflows18 skills in this plugin
/finalize-prAutomatically finalize pull requests for merge by resolving CodeQL violations, PR feedback, merge conflicts, and CI failures. Handles single PR (current branch or by number), all open PRs in the repo, or all open PRs across the org. Includes bot-authored PRs in all modes./gh-cli-patternsCanonical reference for all gh CLI command shapes used by skills in this plugin. Defines the placeholder convention, default-branch (trunk vs git-flow) detection, allowed --json fields, GraphQL fallback rules, -f/-F/--raw-field flag semantics, the PR-readiness gate, required status contexts, the feedback ledger, code-scanning alert query, review-thread fetch/count/resolve mutations, and heredoc bodies. Prevents Unknown JSON field errors and divergent query shapes./