open-pr

Generate a PR description from git diff and open PR creation in the browser.

4|Updated Sep 30, 2024
One-click install
npx skills add https://github.com/okm321/dotfiles --skill open-pr-okm321
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: open-pr
Source: https://github.com/okm321/dotfiles/tree/main/claude/skills/open-pr
Command: npx skills add https://github.com/okm321/dotfiles --skill open-pr-okm321

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 branch context, drafting a structured PR description, and opening the PR creation page in your browser. ## Core Features & Use Cases - Context Gathering: Collects the base branch, git diff, commit messages, and changed files to understand the full scope of changes. - Structured PR Description: Generates a description following a Summary, Changes, and Testing template grounded in conversation context. - Browser-Based PR Creation: Pushes the branch and opens the GitHub PR creation page via gh pr create --web instead of creating the PR directly. - Use Case: After finishing a feature branch, invoke the Skill to commit pending changes, draft a reviewer-ready description, and land on the pre-filled GitHub PR page for final review. ## Quick Start Ask the assistant to open a PR for the current branch against main using the changes made in this session.

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 pull request 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 pre-filled PR creation page in your browser for final review.

How to write a good PR 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 your conversation context and repository state.

Does this Skill create the PR directly without review?▼

No, it uses gh pr create --web which opens the PR creation page in your browser with the title and body pre-filled. You review and confirm the PR manually before it is submitted.

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

The Skill runs git status to detect uncommitted changes and commits them before proceeding. This ensures the PR includes all intended work and the pushed branch matches your local state.

Which tools are required to open a PR with this workflow?▼

You need git for diff, log, status, and push operations, plus the GitHub CLI (gh) authenticated to your repository. The Skill is restricted to Read, Bash, Glob, and Grep tool access.