Create a pull request for the current branch

VerifiedCaution

Creates a pull request for the current branch by analyzing git history, generating a conventional commit title, and using the repo's PR template.

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

Recommended for

Automated summary

Generates and opens a GitHub pull request for the current branch of the budgie-desktop repository, based on the commit history and diff against main.

Strengths

  • Reviews every commit since divergence from main, not just the latest one
  • Reuses the project's .github/PULL_REQUEST_TEMPLATE.md and conventional commit conventions
  • Detects uncommitted changes and hands off to the /commit skill before proceeding
  • Produces a normalized title (type: description, under 70 characters) and pushes the branch automatically

Limitations

  • Tightly coupled to budgie-desktop: hardcoded CONTRIBUTING.md and template paths, main as target, Meson/Ninja build checks
  • Assumes gh is installed and authenticated and that the branch can be pushed to origin
  • Does not handle code review or editing an existing pull request
When to use it

When your commits on a budgie-desktop branch are ready and you want a complete, template-compliant PR in a single command.

When not to use it

On a different repository, or when you need to edit, re-run CI for, or discuss an already open PR.

Security analysis

Caution
Quality score90/100

The skill is narrowly focused on preparing and opening a pull request. It does not contain destructive commands, credential handling, obfuscation, or instructions to bypass safety. The only risk is legitimate but powerful git/gh network operations (pushing a branch and creating a PR), so it warrants caution rather than safe.

Findings
  • •Runs `git push -u origin HEAD` and `gh pr create`, which create remote side effects and require repository write access.
  • •`Bash(git *)` is broad, though the documented commands are ordinary read/status/diff/push operations.
How this analysis is made

Examples

Open a PR for current branch
Create a pull request for my current branch against main.
PR after finishing a fix
I'm done with my fixes on this branch — check the commits since main and open the PR with the right conventional-commit title.
Handle uncommitted work first
Open a PR for this branch, and if there are uncommitted changes, commit them first before creating it.

name: pr description: Create a pull request for the current branch disable-model-invocation: false allowed-tools: Bash(git *), Bash(gh pr create *), Skill(commit)

Create a Pull Request

You are creating a pull request for the current branch on budgie-desktop (C / Vala desktop environment built with Meson + Ninja).

Step 1: Gather Context

Run these commands to understand the current state:

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

If there are uncommitted changes, run the /commit skill first before proceeding.

Step 2: Determine PR Type

Based on the changes, choose the appropriate conventional commit type and scope. See CONTRIBUTING.md for the full list of types and scopes.

Step 3: Generate PR Content

Title format: <type>: <short description> (under 70 characters)

Read .github/PULL_REQUEST_TEMPLATE.md and use its structure as the body format for the PR. Fill in the sections based on the changes being submitted.

Step 4: Create the PR

Push the branch and create the PR:

git push -u origin HEAD
gh pr create --title "<title>" --body "$(cat <<'EOF'
<body content>
EOF
)"

Target branch: main (default)

Notes

  • Review all commits since divergence from main, not just the latest one
  • Ensure the title accurately reflects the overall change
  • Test plan should include build verification with ninja -C build
  • See CONTRIBUTING.md for full contribution guidelines and AI attribution policy

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-a-pull-request-for-the-current-branch-msfn18fm/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-a-pull-request-for-the-current-branch-msfn18fm' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/create-a-pull-request-for-the-current-branch-msfn18fm/download' --output '.skill-downloads/create-a-pull-request-for-the-current-branch-msfn18fm/SKILL.md.part' && mv '.skill-downloads/create-a-pull-request-for-the-current-branch-msfn18fm/SKILL.md.part' '.skill-downloads/create-a-pull-request-for-the-current-branch-msfn18fm/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): Bash(git *), Bash(gh pr create *), Skill(commit)

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

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/create-a-pull-request-for-the-current-branch-msfn18fm/SKILL.md' && test -s '.skill-downloads/create-a-pull-request-for-the-current-branch-msfn18fm/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/pr' && cp -R '.skill-downloads/create-a-pull-request-for-the-current-branch-msfn18fm' '.claude/skills/pr'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/create-a-pull-request-for-the-current-branch-msfn18fm'

openskills read 'create-a-pull-request-for-the-current-branch-msfn18fm'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

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-a-pull-request-for-the-current-branch-msfn18fm/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