npx claudepluginhub hongbietcode/synthetic-claude --plugin basic-workflowgit/## Variables
TO_BRANCH: $1 (defaults to `main`)
FROM_BRANCH: $2 (defaults to current branch)
## Workflow
### Step 1: Ensure remote is synced
### Step 2: Analyze REMOTE diff (CRITICAL)
**IMPORTANT:** Always compare REMOTE branches, not local:
**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.
### Step 3: Generate PR content from remote diff
Based on the REMOTE diff analysis:
.../prCreates GitHub pull request from current feature branch using gh CLI. Checks repo state, pushes branch, generates title from git log and summary body from changes.
/prRuns pre-PR quality gates (tests, typecheck, lint, code review) then creates GitHub pull request with structured summary and test plan. Supports --skip-review, --draft, --base flags.
/prPerforms code quality review on GitHub Pull Requests: analyzes diff for test coverage, idiomatic patterns, DRY/SOLID compliance, and build verification. Supports language (go/python/rust/typescript/java) and project profiles.
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.