This skill rebases the current branch on the latest upstream changes, resolves conflicts, and pushes, saving time and ensuring a clean PR history.
npx playbooks add skill dyad-sh/dyad --skill pr-rebase
Rebase the current branch on the latest upstream changes, resolve conflicts, and push.
git remote -v
git branch -vv
In GitHub Actions for cross-repo PRs:
origin points to the head repo (fork) - this is where you pushupstream points to the base repo - this is what you rebase ontoFor same-repo PRs, origin points to the main repo and there may be no upstream.
git fetch --all
Use upstream/main if the upstream remote exists (cross-repo PR), otherwise use origin/main:
# Check if upstream remote exists
git remote get-url upstream 2>/dev/null && git rebase upstream/main || git rebase origin/main
git add <resolved-file>
git rebase --continue
Run the /dyad:pr-push skill to run lint checks, fix any issues, and push the rebased branch.
Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.