Open a GitHub PR for the current branch. Generates a title and description from the diff, and respects the repo's PULL_REQUEST_TEMPLATE if one exists.
Installation
Mit Codex oder Claude installieren Kopieren Sie diesen Prompt, fügen Sie ihn in Codex, Claude oder einen anderen Assistant ein und lassen Sie die Skill-Seite prüfen und installieren.
Open a GitHub PR for the current branch. Generates a title and description from the diff, and respects the repo's PULL_REQUEST_TEMPLATE if one exists.
allowed-tools
Bash, Read, Glob
Detect the base branch via git remote show origin | grep 'HEAD branch'. Run in parallel:
git diff <base> --name-only and git diff <base> to understand changes
git log <base>..HEAD --oneline to see commit history
git status to check for uncommitted changes
git log @{u}..HEAD --oneline 2>/dev/null to check if the branch needs pushing
Check for .github/PULL_REQUEST_TEMPLATE.md or .github/PULL_REQUEST_TEMPLATE/ directory
If there are uncommitted changes, ask the user whether to commit them first or proceed without them.
If the branch needs pushing, push it with git push -u origin HEAD. Never force-push. Never push to the main/master branch.
Review all changes (all commits since base) and draft:
A short PR title (under 70 characters)
A brief description (2-4 sentences or 3-5 bullets max) covering what changed and why. Skip restating the title, low-value details, and obvious implementation notes.
Build the PR body:
If a PR template exists: Fill in the description/summary section. Preserve all other sections and placeholders from the template.
If no template: Use a simple body with a ## Summary section. Keep it tight — no filler headings, no "Test plan" unless there's something non-obvious to call out.
Create the PR using gh pr create with a HEREDOC for the body: