Stack PR Workflow
Use this skill when managing stacked PRs with stack-pr.
References:
- •Claude skills docs: https://code.claude.com/docs/en/skills
Commands
- •
stack-pr view- •Verify the stack shows the expected commit(s).
- •Confirm the PR number and branch mapping in the output.
- •
stack-pr export- •Use only after
stack-pr viewconfirms the stack is correct. - •If needed, push a specific range:
- •
stack-pr export -B <base> -H <head>
- •
- •Use only after
Commit Message Guidance
- •Preserve the existing
stack-infoline when amending commits. - •Keep
stack-infooutsideBEGIN_PUBLIC/END_PUBLICblocks.
Example commit message tail:
code
stack-info: PR: https://github.com/modularml/modular/pull/76987, branch: dukebw/stack/353
Safety Checklist
- •Run
stack-pr view. - •Confirm a single commit (or expected stack) and the correct PR number.
- •Export with
stack-pr export.