Create Pull Request

VerifiedCaution

Push branch and create a pull request with concise description and appropriate labels.

Sby Skills Guide Bot
DevelopmentBeginner
8/10/2026
Claude Code
#pull-request#git-workflow#github-cli#changelog#conventional-commits

Recommended for

Automated summary

Pushes the current branch and opens a GitHub pull request with a conventional-commit title, a label derived from the branch prefix, and a body matching the repo template.

Strengths

  • Reads .github/PULL_REQUEST_TEMPLATE.md and reuses its exact headers instead of hardcoding them
  • Updates and commits CHANGELOG.md automatically when it was not touched for the change
  • Derives the type, label and issue-closing line from the branch name and an optional issue number

Limitations

  • Assumes a GitHub repo with an authenticated gh CLI and a main branch named main
  • Does not handle code review, testing, or merge-conflict resolution before the PR is opened
  • Model invocation is disabled, so the user must trigger the command explicitly
When to use it

Use it when a branch is ready to publish and you want a well-formed pull request in a single command.

When not to use it

Avoid it on non-GitHub repositories, repos without a PR template, or when the description needs to be a long, hand-crafted writeup.

Security analysis

Caution
Quality score85/100

The skill uses git and gh commands to commit, push, and create a pull request. These are legitimate operations for the stated purpose but do modify repository state and push to remote, warranting caution.

Findings
  • •Automatically commits changes to CHANGELOG.md and pushes the branch without explicit user confirmation.
  • •Creates a pull request with automatic assignee and label, which modifies repository state on the remote.
How this analysis is made

Examples

PR with issue link
/create-pr 142
PR for a feature branch
/create-pr
Open a PR for the current fix branch
Push my current fix/ branch and open a pull request against main, linking the template sections and the right label.

description: Push branch and create a PR with concise description and labels argument-hint: "[issue-number]" disable-model-invocation: true allowed-tools: "Read, Edit, Bash(git *), Bash(gh *)"

Create Pull Request

Context

!git branch --show-current !git log main..HEAD --oneline !git diff main..HEAD --stat

Instructions

  1. Check CHANGELOG.md — if it wasn't updated for these changes, update it now and commit:

    git add CHANGELOG.md && git commit -m "chore: update changelog"
    
  2. Push branch:

    git push -u origin HEAD
    
  3. Generate PR title:

    • If $ARGUMENTS contains an issue number, fetch the issue title:
      gh issue view <number> --json title -q '.title'
      
    • PR title format: <type>(<scope>): <short description> (conventional commit style, under 70 chars)
    • Derive the type from the branch prefix (feat/ → feat, fix/ → fix, docs/ → docs)
  4. Read .github/PULL_REQUEST_TEMPLATE.md and use its exact section headers (including emojis) for the PR body. Do NOT hardcode headers — always read the template file first.

  5. Create PR using the headers from the template:

    gh pr create --title "<title>" --assignee @me --label "<label>" --body "$(cat <<'EOF'
    <paste exact headers from .github/PULL_REQUEST_TEMPLATE.md>
    
    Closes #<issue-number>
    EOF
    )"
    

    Labels: Pick the single most relevant from:

    • bug — branch starts with fix/
    • enhancement — branch starts with feat/
    • documentation — branch starts with docs/
    • refactoring — code restructuring with no behavior change
    • pure testing — only test changes
    • dependencies — dependency updates

    Body guidelines:

    • Focus on what and why, not implementation details
    • Use Closes #<number> so merging auto-closes the issue
    • Keep the entire body under 15 lines
  6. Report the PR URL to the user.

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/create-pull-request-msmr5g94/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/create-pull-request-msmr5g94' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/create-pull-request-msmr5g94/download' --output '.skill-downloads/create-pull-request-msmr5g94/SKILL.md.part' && mv '.skill-downloads/create-pull-request-msmr5g94/SKILL.md.part' '.skill-downloads/create-pull-request-msmr5g94/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

Tools declared by the author (check availability in your agent): Read, Edit, Bash(git *), Bash(gh *)

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

This file does not provide a usable name/description header for this native procedure. It remains available to download and inspect; use the manual method below.

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/create-pull-request-msmr5g94/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills