Command Palette

Search for a command to run...

Назад к скиллам
скилл № 61829

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от 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

  1. Check the extension. Run gh stack --help. If missing, ask before gh extension install github/gh-stack.

  2. Set up the requested stack:

    • New stack: gh stack init --base <trunk> <bottom-branch>, then run gh 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 --short lists layers bottom to top.

Prepare and submit PRs

  1. 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 open project-labelled issue when no local projects/ folder applies, or referenced by #<n> or URL), read and follow GITHUB-ISSUES.md to use GitHub Issues and Issue Artifacts instead of projects/. Show every title and body, then wait for the user's approval.
  2. Submit with gh stack submit --auto --open to push and open PRs ready for review; --auto alone opens drafts. Then write each approved body to a temporary file and run gh pr edit <branch> --title "<title>" --body-file <file>. Complete when GitHub shows each approved title and body.

Maintain and merge

  1. Keep the stack current. Run gh stack sync after trunk or a lower layer changes. Use gh stack rebase to resolve conflicts and gh stack modify to fold, reorder, insert, or rename layers.

  2. 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. Run gh stack merge --yes --<squash|rebase|merge> using the repository's merge style; pass a PR number to merge only through that layer. Then run gh 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.

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

  1. 01Bash(git branch --show-current)
  2. 02Bash(git status:*)
  3. 03Bash(git diff:*)
  4. 04Bash(git log:*)
  5. 05Bash(git merge-base:*)
  6. 06Bash(gh extension list:*)
  7. 07Bash(gh stack --help)
  8. 08Bash(gh stack view:*)
  9. 09Bash(gh pr view:*)
  10. 10Bash(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), без исполняемых скриптов.

Похожие скиллы

Сравнить stacked-prs с