create-pr

Create a Git branch, commit changes, and open a GitHub pull request.

Updated Mar 9, 2026
One-click install
npx skills add https://github.com/poitch/skills --skill create-pr-poitch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-pr
Source: https://github.com/poitch/skills/tree/main/create-pr
Command: npx skills add https://github.com/poitch/skills --skill create-pr-poitch

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the process of creating a new Git branch, committing all current changes, and opening a pull request on GitHub, streamlining the code contribution workflow.

Core Features & Use Cases

  • Branch Creation: Automatically creates a new branch, either from a user-provided name or a generated one based on changes.
  • Automated Committing: Stages all changes and generates a commit message based on the diff.
  • Pull Request Generation: Pushes the branch and creates a GitHub pull request with a structured body.
  • Use Case: After making several related code changes, you can invoke this skill to quickly get them into a pull request without manually running multiple Git and GitHub CLI commands.

Quick Start

Use the create-pr skill to create a new branch and open a pull request for your current changes.

Frequently Asked Questions about create-pr

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

FAQPage Schema
How do I automate creating a GitHub pull request from local changes?

Automating a GitHub pull request requires staging all local changes, creating a new branch, and using GitHub CLI to open the request. This skill handles branch naming, commit message generation from diffs, and PR body construction automatically.

Do I need GitHub CLI installed to automate branch creation and pull requests?

Yes, you need both Git and GitHub CLI installed in your environment to execute this skill. These dependencies are required to push branches remotely and interface with GitHub to open the pull request.

Can I generate a commit message automatically from my git diff?

Generating a commit message from your git diff is handled automatically by this skill. It analyzes the staged changes and constructs a relevant commit message, alongside generating a structured body for the pull request.

What is the best way to create a new git branch and open a pull request in one step?

The best way to create a branch and open a pull request in one step is using an automated workflow that stages changes, pushes the branch, and executes GitHub CLI commands. This eliminates manual git operations and streamlines code contribution.

How does automated branch naming work when opening a pull request?

Automated branch naming works by either utilizing a user-provided branch name or generating one dynamically based on the analyzed code changes. This ensures the branch context aligns with the diff before pushing and opening the pull request.