github-create-pr

Draft and open GitHub pull requests from a local branch.

6|Updated Jul 9, 2019
One-click install
npx skills add https://github.com/sluongng/dotfiles --skill github-create-pr-sluongng
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-create-pr
Source: https://github.com/sluongng/dotfiles/tree/main/config/claude/skills/github-create-pr
Command: npx skills add https://github.com/sluongng/dotfiles --skill github-create-pr-sluongng

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Draft and open GitHub pull requests from a local branch with review-ready titles and bodies, ensuring the PR text follows established messaging rules and that the user reviews content before creation.

Core Features & Use Cases

  • Draft PR title and body following consistent subject/body rules to improve reviewer clarity.
  • Inspect the current commit range and working tree to determine scope before PR creation.
  • Open the PR as a draft or ready PR, and push the branch to the correct remote.

Quick Start

Push the current branch and allow Claude to draft a review-ready PR title and description, then open a draft or ready PR.

Frequently Asked Questions about github-create-pr

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

FAQPage Schema
How do I create a GitHub pull request from local commits?

You can draft and open a GitHub pull request directly from a local branch by inspecting the current commit range, generating review-ready titles and bodies, pushing the branch to the remote, and opening the PR via the gh CLI or API.

Can I open a draft pull request from a local git branch?

Yes, you can open a draft PR or a ready PR from a local branch. The Skill drafts the PR title and body, pushes the branch to the correct remote, and validates against draft-commit-message conventions before opening the PR.

How do I generate a review-ready PR title and description from my git history?

The Skill generates a review-ready PR title and description by inspecting your local commit range and working tree to determine scope, then applying consistent subject and body messaging rules to improve reviewer clarity.

Do I need the GitHub CLI installed to open a pull request from my local repository?

You need GitHub access via the gh CLI or the GitHub API to create pull requests from a local repository. The Skill also requires a checked-out local branch and user approval before finalizing the PR creation.

What is the best way to ensure my pull request description follows commit messaging conventions?

The best way to ensure your PR description follows commit messaging conventions is to validate your local commits against draft-commit-message conventions before creation. The Skill performs this validation automatically during the PR drafting process.

Why does my pull request creation fail when my local working tree has uncommitted changes?

Pull request creation relies on a clean local git state and the current commit range to accurately determine the PR scope. If your working tree has uncommitted changes, the Skill cannot accurately determine the scope for the PR title and body.