create-pr

Create a pull request for the current branch using gh pr create.

9|Updated Dec 21, 2025
One-click install
npx skills add https://github.com/gewoonseba/dotfiles --skill create-pr-gewoonseba
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-pr
Source: https://github.com/gewoonseba/dotfiles/tree/main/claude/.claude/skills/create-pr
Command: npx skills add https://github.com/gewoonseba/dotfiles --skill create-pr-gewoonseba

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Creating pull requests for the current branch can be error-prone and tedious when multiple steps are involved (checking status, ensuring the branch is up to date, and composing a proper PR body). This skill streamlines that workflow by handling the essential actions.

Core Features & Use Cases

  • Create a pull request for the current branch using the GitHub CLI (gh pr create).
  • Validate local branch status, push to the remote when needed, and generate a PR with a concise title and descriptive body.
  • Return the PR URL to simplify sharing and code-review coordination.

Quick Start

Create a pull request for the current branch using gh pr create with a concise title and a descriptive body.

Frequently Asked Questions about create-pr

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a pull request for the current branch in one command?

Creating a pull request for the current branch is streamlined by validating local status, pushing to the remote if needed, and executing gh pr create with a concise title and body. You receive the PR URL to coordinate code review.

What's the best way to automate GitHub pull request creation from a feature branch?

Automating GitHub pull request creation is handled by validating the local branch, pushing changes to the remote, and generating a PR with a short title and summary body including optional linked issues. The final PR URL is returned immediately.

Does the pull request workflow push my local branch to the remote automatically?

The pull request workflow validates your local status and pushes the branch to the remote automatically when needed. It ensures your latest changes are on GitHub before generating the pull request and returning the URL.

Can I include a linked issue in the pull request body when using gh pr create?

You can include a linked issue in the pull request body. The workflow generates a PR using gh pr create with a concise title and a descriptive body that contains a summary and an optional linked issue for tracking.

Do I need the GitHub CLI installed to open a PR for my current branch?

You need the GitHub CLI installed because the skill uses the gh pr create command to generate the pull request. It relies on this tool to validate local status, push to the remote, and format the PR title and body.

Why does my automated pull request workflow validate local status before creating a PR?

Validating local status before creating a pull request ensures your working directory is clean and ready. The workflow checks local status, pushes to the remote when necessary, and then creates the PR to avoid errors during generation.