stacked-prs
Create, submit, sync, and merge stacked pull requests with the gh stack extension. Use when the user or a coordinating skill asks for stacked PRs.
от Integralist★ 31 звезда на GitHub
Установить stacked-prs в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Manage dependent PRs with gh stack. The caller supplies branches in order;
ask if the user names none. Run only requested steps (for example, step 2
alone to prepare a layer). Before switching, adding, syncing, rebasing, or
submitting layers, commit pending work by reading and following
commit so it cannot land in the wrong layer.
Set up the stack
Check the extension. Run
gh stack --help. If missing, ask beforegh extension install github/gh-stack.Set up the requested stack:
- New stack:
gh stack init --base <trunk> <bottom-branch>, then rungh stack add <branch>for each higher layer as work reaches it. - Existing branches:
gh stack init --base <trunk> <bottom> … <top>. - Existing stack:
gh stack checkout <stack-number-or-branch>.
Setup is complete when
gh stack view --shortlists layers bottom to top.- New stack:
Prepare and submit PRs
- Write each layer's PR description. Before drafting, read
voice-product,
CONCISE-PROSE.md, and
PR-DESCRIPTION.md. Target the layer's base:
trunk for the bottom layer and the layer below for each higher layer. When
this stack delivers a GitHub-tracked project (active in this session,
named in
Execution-Plan: #<n>commit trailers, matching an openproject-labelled issue when no localprojects/folder applies, or referenced by#<n>or URL), read and follow GITHUB-ISSUES.md to use GitHub Issues and Issue Artifacts instead ofprojects/. Show every title and body, then wait for the user's approval. - Submit with
gh stack submit --auto --opento push and open PRs ready for review;--autoalone opens drafts. Then write each approved body to a temporary file and rungh pr edit <branch> --title "<title>" --body-file <file>. Complete when GitHub shows each approved title and body.
Maintain and merge
Keep the stack current. Run
gh stack syncafter trunk or a lower layer changes. Usegh stack rebaseto resolve conflicts andgh stack modifyto fold, reorder, insert, or rename layers.Merge bottom to top only. Merge only when every layer being merged has passing
gh pr checks <PR>and approved reviews. If a check fails, fix it on that layer and resubmit. Rungh stack merge --yes --<squash|rebase|merge>using the repository's merge style; pass a PR number to merge only through that layer. Then rungh stack sync --prune.If branch protection blocks the merge, merge each PR manually from the bottom up, then run
gh stack sync --prune. Merging is complete when the merged layers are in trunk.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Bash(git branch --show-current) - 02
Bash(git status:*) - 03
Bash(git diff:*) - 04
Bash(git log:*) - 05
Bash(git merge-base:*) - 06
Bash(gh extension list:*) - 07
Bash(gh stack --help) - 08
Bash(gh stack view:*) - 09
Bash(gh pr view:*) - 10
Bash(gh pr checks:*)
FAQ
Что делает скилл stacked-prs?
Create, submit, sync, and merge stacked pull requests with the gh stack extension. Use when the user or a coordinating skill asks for stacked PRs.
Как установить скилл stacked-prs?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл stacked-prs запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…