All pull requests must use the official gh stack extension, including changes with one layer. Do not create standalone PRs through the website, gh pr create or another tool. Use GitHub stacked pull requests for related changes. Each layer must contain one working, verified change. Target the branch directly below it so reviewers see that layer's diff.
By opening a pull request, you license your contribution under the project license and allow Mohammed Efaz, Kishor Morol and Elite Research Lab LLC, who own metldr, to license it under other terms as well.
Start from a clean worktree. Keep unrelated edits in their own worktree.
git fetch origin
gh stack init --base main stack/example-coreAdopt existing branches with gh stack init --base main existing/bottom existing/top. Link existing PRs in dependency order with gh stack link <bottom-pr> <top-pr>, then manage their branches with gh stack. Keep unrelated changes in separate stacks.
Stage exact files with git add -- path/to/file, then commit the completed change. Add the next layer after its parent works.
gh stack add stack/example-uiPublish verified layers as drafts, or mark the stack ready when every published layer is ready for review.
gh stack submit --auto
gh stack submit --auto --openPut the parent PR and actual verification results in each description. Keep plans, credentials, local agent instructions and unfinished work private.
After changing a lower layer, update its dependents from a clean checkout.
gh stack rebase
gh stack push
gh stack viewReview and merge from the bottom with gh stack merge. main requires a PR and rejects force pushes and deletion. Never bypass its protection. GitHub applies the base branch's review and check rules across a native stack.