pr

Create or update GitHub pull requests via gh CLI with auto-generated titles.

7|1|Updated Mar 2, 2022
One-click install
npx skills add https://github.com/Purushot14/user-agent-parser --skill pr-purushot14
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pr
Source: https://github.com/Purushot14/user-agent-parser/tree/main/.claude/skills/pr
Command: npx skills add https://github.com/Purushot14/user-agent-parser --skill pr-purushot14

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Create or update GitHub pull requests from your current working branch, with auto-generated titles and descriptions to streamline code review.

Core Features & Use Cases

  • Auto-generate PR titles and descriptions based on your commits.
  • Create new PRs against a default base (origin/main) or a specified base branch.
  • Update existing PRs on the fly when you push new commits, or push to the same branch to refresh the PR.
  • Enforce a clear PR workflow by prompting to commit changes before PR creation when needed.
  • Integrate with gh CLI for seamless PR management from the command line.

Quick Start

Run /pr to create a PR from the current branch to origin/main, or specify a base branch like '/pr develop'.

Frequently Asked Questions about pr

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

FAQPage Schema
How do I auto-create a pull request from my current git branch?

Auto-create a pull request by running the command to generate PR titles and descriptions from your commits, pushing your current branch to origin main via gh CLI. It handles remote detection and base-branch resolution automatically.

Can I update an existing GitHub pull request with new commits?

Yes, you can update an existing GitHub pull request on the fly when you push new commits to the same branch, refreshing the PR content and auto-generated descriptions without creating a duplicate request.

Do I need to commit uncommitted changes before creating a PR?

Yes, you need to commit uncommitted changes before creating a PR. The workflow enforces a deterministic process by prompting you to commit local changes to your feature branch before initiating the pull request creation.

How do I specify a custom base branch instead of origin main for a pull request?

Specify a custom base branch by providing the branch name as an argument, such as develop. The PR workflow defaults to origin main but resolves any specified base branch for the pull request target.

Does this PR automation tool require the gh CLI to function?

Yes, this PR automation tool requires the gh CLI to function. It integrates directly with the GitHub command line interface to manage remote detection, branch resolution, and pull request creation seamlessly.

What is the best way to automate pull request titles and descriptions from git commits?

Automate pull request titles and descriptions by running the PR command, which analyzes your local branch commits to auto-generate clear PR content, streamlining the code review process against the base branch.