stack-pull-requests
БесплатноБез исполняемых скриптовНе проверенDecide whether planned vertical implementation work should ship as independent pull requests or as a stack of small ordered pull requests, then plan, build…
от citypaul★ 764 звезды на GitHubОб этом скилле
Stack Pull Requests
Use stacked pull requests as an optional branch, review, and integration topology, not as a substitute for vertical story splitting.
Default each vertical implementation slice to one PR against trunk. Stack only when ordered branches materially improve review quality or let work continue on the same evolving baseline before lower reviews merge, without weakening testing, deployability, or comprehension.
GitHub's native stacked-PR support and official gh-stack extension are limited-preview features and may not be enabled for the repository. Load references/source-notes.md when exact GitHub behavior, command provenance, or the rationale behind these rules matters. Verify current official docs, repository access, and gh stack --help before relying on preview-specific commands.
Keep The Three Units Separate
| Unit | Question | Owner | Rule |
|---|---|---|---|
| Backlog story | What bounded capability delivers value or learning? | story-splitting |
Keep it vertical and fix its acceptance scope before delivery planning |
| Implementation slice | What smallest vertical increment advances that story and leaves a known-good state? | planning |
Merge and release it safely once declared prerequisites land; use one PR by default |
| PR boundary | How should planned implementation work be packaged for review? | This skill | Usually owns one whole slice; may instead be a dependent layer within one slice |
A sequence describes work order; a stack describes branch dependency. A lower PR in a stack may be independently mergeable, while every upper PR targets the branch below it. Several vertical slices are therefore not automatically independent PRs and not automatically a stack.
Use independent PRs when each slice can target trunk and merge in any safe order without blocking or duplicating work, or when the next branch starts only after its predecessor merges. Use a cross-slice stack for either hard lineage (an upper slice requires a lower slice) or flow lineage (slices remain separately complete, but upper work starts before lower review and merge on the same evolving baseline, and fixed lower-first landing is acceptable). Use an intra-slice stack when one fixed slice is too large for one effective review.
Backtracking is a real stack benefit: a lower-branch correction stays with its owning PR and stack tooling propagates it upward. It is not free insurance. Every changed upper branch must be rebased, pushed, rechecked, and may conflict or lose stale approvals. Treat likely lower-boundary iteration while dependent upper work is already in flight as a benefit; do not manufacture a branch dependency solely because an earlier decision might someday change.
An intra-slice PR layer is not a child story or implementation slice and must not add acceptance scope. A cross-slice stack member may own a complete planned slice and its acceptance criteria; it must not invent scope outside the approved slices.
Use this order:
- Load
story-splittingif the request still contains multiple customer outcomes, paths, roles, or quality levels. - Select one vertical child story.
- Load
planningto define its vertical implementation slices, dependencies, classes, evidence, and terminal obligations. - Use this skill when one slice needs review layers or when a contiguous run of hard- or flow-lineage slices should be in flight together.
- Keep slices as independent trunk-based PRs when no review, lead-time, or correction-routing benefit earns fixed order and cascade cost.
- Use
find-gapsif acceptance criteria, release constraints, or intermediate safety remain unclear.
Do not turn database → API → UI → tests into backlog stories. If those boundaries help review one selected implementation slice, describe them as dependent PR layers and keep their release state explicit.
Decide: Independent PRs Or A Stack
Choose a stack only when all of these hold:
- Its scope is one fixed slice or a contiguous deliberately ordered sequence of already planned vertical slices or reduction transitions.
- At least one benefit is concrete: the combined change needs focused diffs, or later ordered work should proceed before lower review and merge complete.
- The branches have deliberate one-way lineage: a hard dependency, or deliberate flow lineage where upper work actually begins before lower merge on the same evolving baseline and fixed lower-first landing is acceptable.
- Each PR owns one whole slice where practical, or one coherent intra-slice layer that can be understood from its own diff plus the layers below.
- Each PR boundary can leave its cumulative branch known-good: buildable, verified, and safe to deploy or explicitly dormant.
- Every lower slice remains useful and safe to merge if all upper work is abandoned.
- The expected cascade/rebase cost is lower than the focused-review, lead-time, and correction-ownership benefit.
- The repository and team can support dependent branches
Установить stack-pull-requests в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл stack-pull-requests?
Decide whether planned vertical implementation work should ship as independent pull requests or as a stack of small ordered pull requests, then plan, build, review, update, and merge the stack safely. Use when one slice is too large for effective review, when later slices should proceed on the same evolving baseline before earlier pull requests merge, when AI-generated code volume needs deliberate review boundaries, when a plan already defines dependent pull request boundaries or non-trunk bases, or when the user mentions stacked PRs, PR stacks, dependent PRs, gh-stack, bottom-up review, or splitting an implementation across branches. Do not use this skill to split epics or invent horizontal backlog stories; use story-splitting first.
Как установить скилл stack-pull-requests?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл stack-pull-requests запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic