stacked-pull-requests

stacked-pull-requests is a skill for Claude Code from LandonSchropp/agent-toolkit. It costs 53 tokens per session (1,169 once invoked), scanned A, original, MIT.

A workflow guide for managing a stack of GitHub pull requests, where each branch depends on the one below it. It covers Git Town setup, pull-request targets, rebasing, and merging in order.

In plain words
What is it for?
Use it to create branches, update a pull-request stack, rebase dependent work, and land the stack in the correct order.
Why use it?
It helps keep dependent branches and pull requests aligned as earlier changes are updated or merged.

Skill for Claude Code

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

Part of the ls-git plugin — 10 skills shipped together

Good fit Use it to create branches, update a pull-request stack, rebase dependent work, and land the stack in the correct order.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/landonschropp/agent-toolkit/stacked-pull-requests
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 LandonSchropp/agent-toolkit --skill stacked-pull-requests
Clone the repo
git clone --depth 1 https://github.com/LandonSchropp/agent-toolkit

Made for: Claude Code.

Or install ls-git, the plugin that ships this one along with the rest of its 10 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 stacked-pull-requests

README.md
[![agentmods](https://agentmods.dev/badge/skills/landonschropp/agent-toolkit/stacked-pull-requests/github.svg)](https://agentmods.dev/skills/landonschropp/agent-toolkit/stacked-pull-requests)
Your own site
<a href="https://agentmods.dev/skills/landonschropp/agent-toolkit/stacked-pull-requests"><img src="https://agentmods.dev/badge/skills/landonschropp/agent-toolkit/stacked-pull-requests/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 stacked-pull-requests

Your own site · 80×15
<a href="https://agentmods.dev/skills/landonschropp/agent-toolkit/stacked-pull-requests"><img src="https://agentmods.dev/badge/skills/landonschropp/agent-toolkit/stacked-pull-requests.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,169 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.00053 $0.01169
Opus 5.5 $0.00021 $0.00468
Sonnet 5.5 $0.00011 $0.00234
Haiku 4.5 $0.00005 $0.00117

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

Security

Grade A, and why

stacked-pull-requests 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 11d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/list-pull-request-tree.rb, scripts/retarget-pull-request-to-default-branch.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

plugins/ls-git/skills/stacked-pull-requests/SKILL.md · 62 lines

How it starts

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

Stacked Pull Requests

Uses Git Town to manage parent/child branch relationships. Run git town help for the full command list, or git town <command> --help for documentation on a specific command.

Creating a Stack

  1. Create the first branch off main: git town hack <branch-name>.
  2. From that branch, create each subsequent child: git town append <next-branch-name>. (append always creates off the current branch; hack always creates off main.)
  3. Create a PR for each branch targeting its parent branch (not main). GitHub shows only that branch's changes to reviewers.
  4. Link the PRs into a native GitHub stack: gh stack link <pr-number> <pr-number> ..., bottom to top. Pass PR numbers, never branch names; gh stack link pushes a branch argument, and opens a PR for it if it has none. If the command fails because the repository doesn't support stacks, note in each PR description that it's part of a stack and link to the related PRs instead.
  5. Verify the stack is wired correctly: run scripts/list-pull-request-tree.rb --branch <any-branch> and confirm all PRs appear in the expected order.

Keeping the Stack in Sync

When upstream changes or a parent branch is updated, run git town sync --stack to sync every branch in the stack. If conflicts arise:

  1. Resolve them in the conflicted branch.
  2. Stage the resolved files.
  3. Run git town continue.
  4. Push when done.

Merging

Merge oldest ancestor first. Confirm the full merge order with the user before merging anything.

  1. Discover the tree: Run scripts/list-pull-request-tree.rb --branch <name>. Pass any branch in the tree — the script walks up to the oldest ancestor and down through all descendants. A native stack is one linear chain, so merge a tree that forks one chain at a time.

  2. Link the stack: Run gh stack link <pr-number> <pr-number> ... with the chain's PR numbers, bottom to top. This is safe on PRs that are already stacked; it adds any that are missing. If the repository doesn't support stacks, skip to Merging Without a Native Stack.

Read the full file on GitHub · 62 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 11d ago Changed 08d9e3502c80
  2. 1mo ago Changed · +10 lines · +4 tokens per session b1eed22fa5f3
  3. 3mo ago First seen · 52 lines · 49 tokens per session scan A 0602aa7e1873

Subscribe to this mod's changes

stacked-pull-requests is a skill published in the GitHub repository LandonSchropp/agent-toolkit (3 stars, last pushed today), licensed MIT. It adds 53 tokens to every session and 1,169 once invoked, about $0.0002 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-08-31.

Related

stacked-pull-requests compared with skills from other repositories

stacked-pull-requests next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
stacked-pull-requestsLandonSchropp/agent-toolkitSkill3todayMITA53Claude Code
artifactscloudflare/skillsSkill3.5k5d agoApache-2.0A66Claude Code
skill-upstream-prluongnv89/asmSkill976yesterdayMITA56Claude Code
skill-changelogluongnv89/asmSkill976yesterdayMITA53Claude Code
meanest-editorelvisun/newsjackSkill1.7k5d agoMITA33Claude Code
headline-generatorelvisun/newsjackSkill1.7k5d agoMITA88Claude Code
ai-visibility-writingelvisun/newsjackSkill1.7k5d agoMITA137Claude Code