gh-pr-create

Installation
SKILL.md

Generate and submit a GitHub pull request from the current feature branch.

Iron laws: (1) No PR without user preview. (2) No raw commit dumps — always synthesize.

The Process

Step 1: Validate & Push

Gather state and fail fast:

BASE=$(gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name')
HEAD=$(git branch --show-current)
COMMITS=$(git log "$BASE".."$HEAD" --oneline)

Stop if: $HEAD equals $BASE, or $COMMITS is empty, or gh pr view --json url 2>&1 shows an existing PR.

Dirty working tree: If git status --porcelain is non-empty, warn: "You have uncommitted changes that won't be included in this PR."

Installs
11
First Seen
Feb 23, 2026
gh-pr-create — sadiksaifi/agents