TO_BRANCH: $1 (defaults to `main`)
Creates a GitHub pull request with AI-generated title and body from remote branch diff.
/plugin marketplace add hongbietcode/synthetic-claude/plugin install basic-workflow@synthetic-claudegit/TO_BRANCH: $1 (defaults to main)
FROM_BRANCH: $2 (defaults to current branch)
git fetch origin
git push -u origin HEAD # Push current branch if not pushed
IMPORTANT: Always compare REMOTE branches, not local:
# Get commits between remote branches (what PR will actually contain)
git log origin/{TO_BRANCH}...origin/{FROM_BRANCH} --oneline
# Get file diff between remote branches
git diff origin/{TO_BRANCH}...origin/{FROM_BRANCH} --stat
git diff origin/{TO_BRANCH}...origin/{FROM_BRANCH}
DO NOT use:
git diff {TO_BRANCH}...HEAD (includes unpushed local changes)git diff --cached (staged local changes)git status (local working tree state)IMPORTANT: Merge $1 branch (or default branch) into $2 branch and resolve any conflicts.
Based on the REMOTE diff analysis:
gh pr create --base {TO_BRANCH} --head {FROM_BRANCH} --title "..." --body "..."
gh command is not available, instruct the user to install and authorize GitHub CLI first.