open-pr

Generates a PR description from git diff and opens PR creation in the browser.

2|Updated Oct 16, 2021
One-click install
npx skills add https://github.com/pattobrien/dotfiles --skill open-pr-pattobrien
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: open-pr
Source: https://github.com/pattobrien/dotfiles/tree/main/claude/skills/open-pr
Command: npx skills add https://github.com/pattobrien/dotfiles --skill open-pr-pattobrien

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Writing clear pull request descriptions is repetitive and often skipped, leaving reviewers without context. This Skill automates gathering the diff, commit history, and changed files to draft a structured PR description and open the PR creation page in your browser. ## Core Features & Use Cases - Context Gathering: Automatically collects the base branch, git diff, commit messages, and changed files to understand the full scope of changes. - Structured PR Template: Produces a description with Summary, Changes, and Testing sections following team-friendly guidelines. - Browser-Based PR Creation: Pushes the branch and opens the GitHub PR creation page via gh pr create --web rather than creating the PR directly, keeping you in control. - Use Case: After finishing a feature branch with several commits, invoke the Skill to get a drafted title and description, then review and submit the PR in your browser. ## Quick Start Ask the assistant to open a PR for the current branch using the open-pr skill.

Frequently Asked Questions about open-pr

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

FAQPage Schema
How do I create a GitHub PR from the command line?▼

Use the GitHub CLI with gh pr create to open a pull request from your current branch. This Skill runs gh pr create --web with a generated title and body, opening the PR creation page in your browser for final review.

How to write a good pull request description automatically?▼

Gather the git diff against the base branch, commit messages, and changed files, then summarize them into Summary, Changes, and Testing sections. This Skill automates that process using conversation context and repository history.

Does this Skill create the PR directly without review?▼

No, it uses gh pr create --web which opens the PR creation form in your browser pre-filled with the title and body. You review and submit the PR manually, keeping full control over what gets published.

What happens if I have uncommitted changes when opening a PR?▼

The Skill runs git status first to detect uncommitted changes. If any exist, it commits them before proceeding, ensuring the PR reflects the complete state of your work.

What tools are required to use this PR workflow?▼

You need git for diff, log, status, and push operations, plus the GitHub CLI (gh) authenticated to your repository for opening the PR creation page in the browser.