Repository navigation
Add a PR stack skill - #1202
Merged
Merged
Add a PR stack skill#1202
Conversation
A pr-stack skill for opening and maintaining pull requests, especially stacks of dependent PRs: per-branch checks before anything is pushed, changelog placement across a stack, description conventions, opening a stack bottom-up, editing PRs through the API (gh pr edit fails here), and restacking after a lower branch changes or merges into squash-only main. Every PR in a stack gets a Stack section: the whole stack as a nested list, each PR indented under its parent and "[This PR]" marking the one being viewed. scripts/stack_section.py builds the tree from the open PRs' base and head branches and keeps the section between hidden markers, so it can be rerun whenever the stack changes.
Generated by 🚫 Danger Kotlin against 3d90b49 |
r0adkll
enabled auto-merge (squash)
October 5, 2026 02:28
Collaborator
Code Coverage
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a
pr-stackagent skill for opening and maintaining pull requests, especially stacks of dependent PRs, and a script that gives every PR in a stack a Stack section.What changed
.claude/skills/pr-stack/SKILL.mdcollects what worked while building the Break-up the CampfireSettings monolith into appScope/userScope layers #607 stack:jvmTest test); run the device tester against the testbed for behavior changes, including the upgrade path for storage changes.Closes #Ngoes only in the top PR, because GitHub closes issues only on merge intomain.gh api, becausegh pr editfails here.rebase --ontofrom each branch's old tip.mainis squash-only and deletes branches on merge, so after a parent merges, GitHub retargets its children tomainbut their branches still carry the parent's original commits.scripts/stack_section.pywrites the Stack section.It builds the stack tree from the open PRs' base and head branches, starting from any PR in it.
It renders the same nested list on every PR, indented by position, with
[This PR]marking the one being viewed:The section sits at the top of the description between hidden
<!-- pr-stack:start -->/<!-- pr-stack:end -->markers, so reruns replace it in place.Merged and closed PRs drop out of the list, and the section is removed once a PR is alone.
It prints what it would change unless given
--apply.There's no app change, so no changelog entry.
Verification
\r\nline endings;[This PR]marker moving between PRs;🤖 Generated with Claude Code