← ClaudeAtlas

git-pr-createlisted

Create a GitHub PR from the current branch - analyze changes, check size limits, and generate PR with proper formatting
tatsushige-i/shared-claude-code · ★ 0 · Code & Development · score 63
Install: claude install-skill tatsushige-i/shared-claude-code
# Create PR Skill Automate the workflow for creating a GitHub PR from the current branch. Performs Issue identification, PR size checking, diff analysis, and PR creation in a single flow. ## Steps ### Step 0: Parse Flags and Resolve Base Branch Resolve the base branch first so the rest of the flow works for `main`-only repositories (backward compatible), `main` + `develop` (git-flow lite) repositories, and repositories with `release/*` branches (standard Git Flow). Use the resolved value wherever `<base>` appears below. 1. Parse `$ARGUMENTS` for optional flags (can be combined, order-independent): - `--copilot-review`: request Copilot as a reviewer when the PR is created (used in Step 6) - `--finalize`: automatically continue into the `git-pr-finalize` flow after PR creation (used in Step 7) - If neither flag is present, behavior is unchanged (backward compatible) - State explicitly which flags were detected (e.g. "Flags: --copilot-review=no, --finalize=yes") before continuing, and treat only a flag confirmed present in `$ARGUMENTS` as active in Step 6 / Step 7 — never add `--reviewer @copilot` or chain into `git-pr-finalize` by default 2. Get the current branch with `git branch --show-current` 3. Determine `<base>` (first matching rule wins): - If the current branch starts with `hotfix/` → `<base>` = `main` - Else, detect a `release/*` branch the current branch was cut from: list release branches with `git ls-remote --heads origin 'release/*'`. If any