create-pr

Push a local Git branch and create a GitHub pull request.

Updated Nov 28, 2025
One-click install
npx skills add https://github.com/chcardoz/chris-portfolio --skill create-pr-chcardoz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-pr
Source: https://github.com/chcardoz/chris-portfolio/tree/main/.claude/skills/create-pr
Command: npx skills add https://github.com/chcardoz/chris-portfolio --skill create-pr-chcardoz

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gh, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the process of sharing your code changes by automating the steps to push your current branch and create a pull request on GitHub.

Core Features & Use Cases

  • Automated Branch Pushing: Pushes your local branch to the remote repository.
  • PR Creation: Generates a pull request targeting the main branch.
  • Code Review Preparation: Provides a clear diff and commit history for review.
  • Use Case: After completing a feature, use this Skill to quickly open a pull request for your team to review your changes.

Quick Start

Use the create-pr skill to push the current branch and create a pull request.

Frequently Asked Questions about create-pr

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

FAQPage Schema
How do I automate pushing a local git branch and creating a pull request on GitHub?

To automate GitHub pull request creation, this Skill pushes your local git branch to the remote repository and generates a PR targeting the main branch. It analyzes the diff to automatically draft the title and body.

Do I need the GitHub CLI installed to create pull requests from the command line?

Yes, you need the GitHub CLI (gh) installed to execute branch pushes and PR generation. The Skill requires Git and GitHub CLI to process diff analysis and submit the pull request.

What is the best way to prepare code changes for a team review workflow?

Preparing code for review involves pushing your current branch and opening a pull request. This Skill facilitates the code review workflow by providing a clear diff and commit history for integration.

Can I automatically generate a pull request title and body from my git diff?

Yes, you can generate a pull request title and body from your git diff. This Skill performs automated diff analysis to draft the PR title and body for the GitHub pull request.

What are the limitations when creating a pull request targeting the main branch?

A limitation when creating a pull request is that the Skill targets the main branch specifically. It relies on local Git branch state and requires the GitHub CLI to execute the push and PR generation.