Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Create high-quality pull requests via gh pr create. Use when the user wants to create a PR, submit a PR, open a pull request, submit for review, or push changes for review. Triggers on: create a pr, create-pr, submit a pr, open a pull request, submit for review, make a pr, gh pr create.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-07 | ✗→✓ | ▲ Improved | 62% | 0% |
| case-06 | ✓→✗ | ▼ Worse | 42% | 0% |
| case-08 | ✓→✗ | ▼ Worse | 73% | 0% |
| case-09 | ✓→✗ | ▼ Worse | 28% | 0% |
| case-13 | ✓→✗ | ▼ Worse | 25% | 0% |
Create well-structured, reviewer-friendly pull requests following best practices.
CRITICAL: This skill MUST always result in a PR being created. Do NOT stop early, do NOT ask the user to run another command first. Handle all prerequisites (committing, branching, pushing) inline and proceed to gh pr create.
Run these checks before anything else:
gh api user --jq '.login' to confirm the CLI is authenticated. If this fails, tell the user to run gh auth login first and stop.main. If the user specifies a different base, use that. Capture as $BASE_BRANCH.Run git status to check for uncommitted changes. If there are uncommitted changes, commit them directly — do NOT delegate to another skill or tell the user to commit first.
git add <files> for relevant modified/untracked files. Do not stage .env or gitignored files.bash ruff check --fix <files> && ruff format <files> Re-stage any modified files.
bash git commit -m "<type>: <description>" If precommit hooks modify files, re-stage with git add -u and retry (up to 3 times).
git branch --show-current.$BASE_BRANCH, create a feature branch:feat/add-auth, fix/login-bug)git checkout -b <branch-name>$BASE_BRANCH:git log $BASE_BRANCH..HEAD --onelinegit fetch origin $BASE_BRANCHgit log HEAD..origin/$BASE_BRANCH --onelinea. Run git rebase origin/$BASE_BRANCH b. If conflicts arise, surface them to the user — show both sides and ask which to keep. Do not silently resolve. c. After resolving, git add <file> and git rebase --continue
Push the branch to remote:
bashgit push -u origin HEAD
If the push is rejected (e.g., diverged history after rebase), use git push --force-with-lease -u origin HEAD.
git log $BASE_BRANCH..HEAD --oneline — all commitsgit diff $BASE_BRANCH...HEAD --stat — files changed summarygit diff $BASE_BRANCH...HEAD — full difffeat:, fix:, refactor:, docs:, chore:).## Summary
<1-5 bullet points explaining what changed and WHY>
## Changes
<Categorized list of what was modified — group by area/concern>
## Diagrams
<OPTIONAL — include Mermaid diagrams when visual aids clarify workflow or architecture changes>
## Test Plan
<How the changes were verified — manual testing steps, automated tests run, curl commands, etc.>Guidelines:
--draft flag instead of [WIP] prefixCo-Authored-By linesWrite body to a temp file and create the PR:
bashcat > /tmp/pr_body.md <<'EOF' ## Summary ... ## Changes ... ## Test Plan ... EOF gh pr create --title "the pr title" --base $BASE_BRANCH --body-file /tmp/pr_body.md
Optional flags:
--draft--reviewer <handle>--assignee <handle>Do NOT add:
--author flag (gh uses the authenticated user automatically)Co-Authored-By trailergh pr create fails, diagnose the error and retry with fixesCommit History: If the commit history is messy, suggest rebasing to clean it up before creating the PR.
Feedback Requests: If the user mentions wanting specific feedback, add a "Feedback Requested" section to the body.
Screenshots: For frontend changes, remind the user to add screenshots or recordings to the PR after creation.
Other measured skills in the registry, with their headline benchmark lift.