create-pr

Create GitHub pull requests from a local branch using the GitHub CLI.

Updated Jul 27, 2025
One-click install
npx skills add https://github.com/TheCactusBlue/nixfiles --skill create-pr-thecactusblue
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-pr
Source: https://github.com/TheCactusBlue/nixfiles/tree/main/.claude/skills/create-pr
Command: npx skills add https://github.com/TheCactusBlue/nixfiles --skill create-pr-thecactusblue

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill eliminates the repetitive, error-prone process of creating pull requests from a feature branch by automating PR creation via the GitHub CLI.

Core Features & Use Cases

  • Automated PR Creation: Open a pull request from the current branch to the dev base using gh pr create.
  • Consistent Title & Description: Propose a concise PR title and body outlining changes.
  • Usage Scenario: When finishing a feature branch, use this Skill to push changes if needed, create the PR against dev, and obtain the PR URL for sharing.

Quick Start

Create a PR for the current branch against dev with a short, descriptive title and body.

Frequently Asked Questions about create-pr

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

FAQPage Schema
How do I create a pull request from a local branch using the GitHub CLI?

To create a pull request from a local branch using the GitHub CLI, you can automate the process by running the gh pr create command against a base branch like dev, generating a concise title and body, and returning the PR URL.

How does automating GitHub pull request creation work from a feature branch?

Automating GitHub pull request creation works by pushing local feature branch changes if needed, opening a PR targeting the dev branch via gh pr create, and providing the resulting PR URL for sharing.

Do I need the GitHub CLI installed and authenticated to automate PR creation?

Yes, you need the GitHub CLI installed and authenticated to automate PR creation, as the Skill relies on the gh CLI to execute the gh pr create command and return the pull request URL successfully.

What is the best way to open a PR against the dev branch with a descriptive title?

The best way to open a PR against the dev branch is to use an automated GitHub CLI workflow that proposes a concise PR title and description body outlining your changes, ensuring consistent documentation.

Can I push local changes and obtain the PR URL in one step when finishing a feature branch?

Yes, you can push local changes and obtain the PR URL in one step by using the GitHub CLI to push the feature branch, create the pull request against dev, and return the URL immediately upon success.

What limitations exist when using GitHub CLI automation for pull request creation?

Limitations include strict dependence on having the gh CLI installed and authenticated, and applicability primarily to standard software development workflows targeting a dev base branch rather than complex custom branching strategies.