Skip to content
Skills Library
Programming · Tool integration

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.

Licence
Apache-2.0
Last repository change
26.10.2026

Assessment and security

95/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content30 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 26.10.2026, without references to retired models or APIs.

Licence

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

  1. Confirm the Branch Is on Upstream Main
  2. Title
  3. Create the PR
Original SKILL.md headings · 37 lines, 204 words
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

RepositoryScoreLicence
This page · motlin/claude-code-plugins95Apache-2.0
1438998005/era-harness100Apache-2.0
cline/cline100Apache-2.0
microsoft/vscode-pull-request-github100MIT
makeplane/plane100AGPL-3.0
erikaax08/erikas-skills100Apache-2.0
agustinusnathaniel/maestria100MIT
agustinusnathaniel/maestria100MIT
OutlineDriven/outline-driven-development100Apache-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".

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.