create-pull-request

Create GitHub pull requests with validated prerequisites and gh CLI.

Updated Mar 17, 2026
One-click install
npx skills add https://github.com/jaypatrick/skills --skill create-pull-request-jaypatrick
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-pull-request
Source: https://github.com/jaypatrick/skills/tree/main/create-pull-request
Command: npx skills add https://github.com/jaypatrick/skills --skill create-pull-request-jaypatrick

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates GitHub pull request creation by validating prerequisites, formatting consistent PR metadata, and guiding branch-based workflows to speed up code reviews.

Core Features & Use Cases

  • Prerequisites validation: checks for the GitHub CLI (gh) and authentication status before proceeding.
  • PR drafting and creation: generates a descriptive title and body from commits and branch context and creates or drafts the PR via gh pr create.
  • PR hygiene and templates: ensures there is no existing PR for the current branch and enforces template guidelines for consistency.
  • Use Case: finish a feature on a feature branch and open a well-structured PR ready for review.

Quick Start

Switch to your feature branch and ask me to create a PR; I will validate prerequisites, generate a descriptive PR title and body, and open it with gh pr create.

Frequently Asked Questions about create-pull-request

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

FAQPage Schema
How do I automate GitHub pull request creation from the command line?

To automate GitHub pull request creation, you can use this Skill to validate prerequisites and generate a descriptive PR title and body from branch context, then execute gh pr create to open the pull request.

Do I need the GitHub CLI installed and authenticated to create pull requests automatically?

Yes, you need the GitHub CLI installed and authenticated. The Skill validates your gh authentication status and checks for the CLI before proceeding to automate the pull request creation workflow.

Can I open a draft pull request instead of a ready review PR?

Yes, you can open a draft pull request. The Skill supports both PR drafting and creation, allowing you to generate metadata and use gh pr create to open the PR as a draft for review preparation.

How does PR hygiene automation prevent duplicate pull requests on the same branch?

PR hygiene automation checks for existing pull requests on your current branch before creating a new one. This prevents duplicate PRs and enforces template guidelines for consistent code review processes.

What is the best way to ensure my PR descriptions follow repository templates?

The best way to ensure PR descriptions follow templates is by leveraging this Skill, which enforces template adherence and generates consistent PR metadata from your commits and branch context automatically.

Why does my automated pull request workflow fail prerequisite checks?

Your automated pull request workflow fails prerequisite checks if the GitHub CLI is not installed or not authenticated. The Skill validates these dependencies before attempting to generate PR metadata and execute gh pr create.