Creates GitHub pull requests with auto-generated summaries. Use this skill whenever the user wants to create a PR, open a pull request, submit changes for review, or push their branch for review - even if they don't explicitly say "PR".
94
95%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Passed
No known issues
Create a GitHub pull request for the current branch with an auto-generated title and summary.
Verify gh is installed and authenticated by running gh auth status. If it fails, tell the user to run gh auth login.
Run these in parallel:
git status - check for uncommitted changesgit log --oneline -20 - recent commit historygit rev-parse --abbrev-ref HEAD - current branch namegit remote show origin | grep 'HEAD branch' - detect the default base branch (usually main or master)If there are staged or unstaged changes, ask the user whether they'd like to commit them before creating the PR. Do not commit or push without explicit approval.
Check if the current branch has a remote tracking branch and is up to date:
git rev-parse --abbrev-ref --symbolic-full-name @{u} 2>/dev/nullIf the branch isn't pushed or is ahead of the remote, ask the user before pushing. Push with -u to set up tracking.
Get the full picture of what the PR will contain - look at ALL commits on the branch, not just the latest one:
git log --oneline <base-branch>..HEAD
git diff <base-branch>...HEADIf the diff is very large, also read the individual commit messages for context since they often explain intent better than raw diffs.
Generate a concise title (<70 chars) and a short summary body. The title should describe the change at a high level. The body should have a few bullet points explaining what changed and why.
Use this format:
gh pr create --title "the title" --body "$(cat <<'EOF'
## Summary
- First change
- Second change
EOF
)"If the base branch is not the default, pass --base <branch>.
Print the PR URL so the user can click through to it.
defdc4d
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.