pr-stacks

pr-stacks is a skill for Claude Code from dryvist/claude-code-plugins. It costs 14 tokens per session (816 once invoked), scanned A, original, Apache-2.0.

A workflow for splitting a large change into a chain of dependent pull requests. A pull request is a proposed code change for review; each request in the chain builds on the one below it.

In plain words
What is it for?
It creates and maintains layered branches, keeps them updated, and helps land the stack through GitHub.
Why use it?
It lets reviewers handle smaller pieces while work continues on later pieces, even when those pieces depend on earlier changes.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the github-workflows plugin — 18 skills shipped together

Good fit It creates and maintains layered branches, keeps them updated, and helps land the stack through GitHub.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dryvist/claude-code-plugins/pr-stacks
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add dryvist/claude-code-plugins --skill pr-stacks
Clone the repo
git clone --depth 1 https://github.com/dryvist/claude-code-plugins

Made for: Claude Code.

Or install github-workflows, the plugin that ships this one along with the rest of its 18 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pr-stacks

README.md
[![agentmods](https://agentmods.dev/badge/skills/dryvist/claude-code-plugins/pr-stacks/github.svg)](https://agentmods.dev/skills/dryvist/claude-code-plugins/pr-stacks)
Your own site
<a href="https://agentmods.dev/skills/dryvist/claude-code-plugins/pr-stacks"><img src="https://agentmods.dev/badge/skills/dryvist/claude-code-plugins/pr-stacks/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pr-stacks

Your own site · 80×15
<a href="https://agentmods.dev/skills/dryvist/claude-code-plugins/pr-stacks"><img src="https://agentmods.dev/badge/skills/dryvist/claude-code-plugins/pr-stacks.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 816 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00014 $0.00816
Opus 5.5 $0.00006 $0.00326
Sonnet 5.5 $0.00003 $0.00163
Haiku 4.5 $0.00001 $0.00082

Measured 25d ago against content hash 9a18cb74f5b1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pr-stacks scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 25d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

github-workflows/skills/pr-stacks/SKILL.md · 74 lines

How it starts

The opening of the file, as written. The whole thing — 74 lines — stays where its author put it; the contents beside it link to each section on GitHub.

PR Stacks

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.

Provisioning — Nix, never gh extension install

gh 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.

Pre-GitHub workflow

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.

Rules that matter

Read the full file on GitHub · 74 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 25d ago Changed 9a18cb74f5b1
  2. 1mo ago Changed · -16 lines · -65 tokens per session cae642cef38a
  3. 1mo ago Changed 483faef7ea51
  4. 2mo ago Changed 1d6833ab0a9a
  5. 2mo ago First seen · 90 lines · 79 tokens per session scan A 6d460f898bcb

Subscribe to this mod's changes

pr-stacks is a skill published in the GitHub repository dryvist/claude-code-plugins (3 stars, last pushed 14d ago), licensed Apache-2.0. It adds 14 tokens to every session and 816 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-13.

Related

pr-stacks compared with skills from other repositories

pr-stacks next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pr-stacksdryvist/claude-code-pluginsSkill314d agoApache-2.0A14Claude Code
nav-pilotqf-studio/navigatorSkill35814d agoMITA62Claude Code
core-workflowtravisjneuman/.claudeSkill115yesterdayMITA52Claude Code
debug-systematictravisjneuman/.claudeSkill115yesterdayMITA33Claude Code
auto-claudetravisjneuman/.claudeSkill115yesterdayMITA30Claude Code
agent-debugging-specialisttravisjneuman/.claudeSkill115yesterdayMITA12Claude Code
github-ops0xDarkMatter/claude-modsSkill866d agoMITA105Claude Code