prp-pr

Create GitHub pull requests from the current branch with preconditions and templates.

1|Updated Mar 4, 2026
One-click install
npx skills add https://github.com/yandy-r/claude-plugins --skill prp-pr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prp-pr
Source: https://github.com/yandy-r/claude-plugins/tree/main/.cursor-plugin/skills/prp-pr
Command: npx skills add https://github.com/yandy-r/claude-plugins --skill prp-pr

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Create GitHub pull requests from the current branch by validating preconditions, discovering PR templates, analyzing commits and diffs, referencing PRP artifacts (prds/plans/reports), and pushing to GitHub to open the PR.

Core Features & Use Cases

  • Validates preconditions (base branch, clean working directory, ahead commits) and prevents PR creation when criteria fail.
  • Discovers and applies PR templates automatically for consistent PR bodies.
  • Analyzes commit messages and file changes to propose a clear PR title and changes summary, and surfaces related PRP artifacts.
  • Pushes changes and creates the PR via gh, with optional draft mode supported.

Quick Start

Create a pull request from the current branch to the main base with the default template and preflight checks.

Frequently Asked Questions about prp-pr

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

FAQPage Schema
How do I automate GitHub pull request creation with preflight checks?

Automating GitHub pull requests with preflight checks validates your base branch, clean working directory, and ahead commits before applying PR templates and pushing to open the PR via gh.

Can I use a PR template automatically when creating a pull request from the command line?

Yes, PR templates are discovered and applied automatically when creating a pull request from the command line, ensuring consistent PR bodies by analyzing commit messages and referencing PRP artifacts.

What's the best way to prevent PR creation when my working directory has uncommitted changes?

To prevent PR creation when your working directory has uncommitted changes, the automated preflight workflow validates a clean state and aborts the process if criteria fail before pushing.

How do I analyze commits and file diffs to generate a clear PR title and summary?

Analyzing commits and file diffs to generate a clear PR title and summary is handled by the workflow, which reviews your changes and proposes a structured body alongside discovered PR templates.

Does this automated PR workflow support opening draft pull requests via gh?

Yes, the automated PR workflow supports opening draft pull requests via gh, allowing you to push changes and create the PR in optional draft mode after passing all preflight validations.

Why does my PR creation fail when my branch is not ahead of the base branch?

Your PR creation fails when not ahead of the base branch because the preflight validation requires commits ahead of base, preventing empty pull requests from being pushed and opened.