create-pull-request
/create-pull-request
Create a GitHub pull request the user's preferred way. Use whenever opening, creating, or raising a PR with gh.
- Author
- motlin ↗
- Repository
- claude-code-plugins ↗
- Licence
- Apache-2.0
- Last repository change
- 26.10.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 26.10.2026, without references to retired models or APIs.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
What it does and when to use it
Create a GitHub pull request the user's preferred way. Use whenever opening, creating, or raising a PR with gh.
Original author description
Create a GitHub pull request the user's preferred way. Use whenever opening, creating, or raising a PR with gh.
How it works
- Confirm the Branch Is on Upstream Main
- Title
- Create the PR
SKILL.md preview
---
name: create-pull-request
description: Create a GitHub pull request the user's preferred way. Use whenever opening, creating, or raising a PR with gh.
---
# Create Pull Request
Use the `code:cli`, `git:git-workflow`, and `git:commit` skills when available. Only create a PR when the user has explicitly asked for one.
## Confirm the Branch Is on Upstream Main
```bash
git fetch "${UPSTREAM_REMOTE:-upstream}"
git merge-base --is-ancestor "${UPSTREAM_REMOTE:-upstream}/${UPSTREAM_BRANCH:-main}" HEAD
```
A non-zero exit means the branch is behind. Offer to rebase with the `git:git-rebase` skill rather than opening a stale PR.
## Title
Count the commits the branch adds with `git rev-list --count "${UPSTREAM_REMOTE:-upstream}/${UPSTREAM_BRANCH:-main}..HEAD"`.
- One commit: the title is that commit's message. Never type it from memory; read it from git in a subshell, `"$(git log -1 --pretty=%s)"`, so it matches exactly.
- More than one: write a one-line summary in commit message style.
## Create the PR
Always pass an explicit empty body so `gh` doesn't prompt or auto-fill. When a browser is available, use `--web` to open the prefilled page for final review. On a headless system, drop `--web`.
For a single-commit branch, read the title from git:
```bash
gh pr create --web --title "$(git log -1 --pretty=%s)" --body ""
```
For a multi-commit branch, pass the summary title you wrote:
```bash
gh pr create --web --title "Summary of the branch in commit message style" --body ""
```
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · motlin/claude-code-plugins | 95 | Apache-2.0 |
| 1438998005/era-harness | 100 | Apache-2.0 |
| cline/cline | 100 | Apache-2.0 |
| microsoft/vscode-pull-request-github | 100 | MIT |
| makeplane/plane | 100 | AGPL-3.0 |
| erikaax08/erikas-skills | 100 | Apache-2.0 |
| agustinusnathaniel/maestria | 100 | MIT |
| agustinusnathaniel/maestria | 100 | MIT |
| OutlineDriven/outline-driven-development | 100 | Apache-2.0 |
Database snapshot: 13.11.2026 · package version 6b7f734120fd (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100pull-request
Use when the user asks to open, create, or draft a pull request, or runs /pull-request in any GitHub repository - abrir PR, criar pull request, gh pr create. - 100create-pr
Open or update a GitHub pull request for the current branch — use when asked to create a PR, open a pull request, push and PR, or submit a PR. - 96pr
Use when the user asks to file, open, or create a pull request (PR). - 100create-github-pr
Create GitHub pull requests using the gh CLI. Use when the user wants to create a new PR, submit code for review, or open a pull request. Trigger keywords - create PR, pull request, new PR, submit for review, code review. - 90create-pr
Use when opening a PR, submitting for review, pushing a branch, or creating a pull request. Pushes and creates GitHub PRs with auto-assignment and description. - 100create-pr
This skill should be used when user asks to "create a PR", "make a pull request", "open PR for this branch", "submit changes as PR", "push and create PR", or explicitly invokes "create-pr".