create-github-pull-request

Creates GitHub pull requests using the gh CLI or MCP tool with a standardized format.

21|1|Updated Feb 17, 2019
One-click install
npx skills add https://github.com/Kiyozz/papyrus-compiler-app --skill create-github-pull-request-kiyozz
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: create-github-pull-request
Source: https://github.com/Kiyozz/papyrus-compiler-app/tree/main/.claude/skills/create-github-pull-request
Command: npx skills add https://github.com/Kiyozz/papyrus-compiler-app --skill create-github-pull-request-kiyozz

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Manually writing pull request titles, descriptions, and linking issues is repetitive and inconsistent across a team. This Skill automates PR creation on GitHub with a consistent structure, automatic issue inference from branch names, and self-assignment. ## Core Features & Use Cases - Automated PR Creation: Creates pull requests via the gh CLI tool or an MCP GitHub tool without manual form filling. - Issue Inference: Detects the issue number from the current git branch name and links it with a Closes # reference. - Standardized Format: Produces PR bodies with Issues, Description, and Notes sections, omitting sections that are not needed. - Use Case: After finishing work on branch fix/1234-login-crash, ask the AI to open a PR; it infers issue #1234, writes the description, assigns it to you, and creates the PR. ## Quick Start Create a pull request for my current branch and link the related issue.

Frequently Asked Questions about create-github-pull-request

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

FAQPage Schema
How do I create a GitHub pull request from the command line?▼

Use the gh CLI with `gh pr create`, providing a title and body. This Skill automates that command, infers the linked issue from your branch name, formats the body, and assigns the PR to you with `--assignee @me`.

How to link a pull request to an issue automatically?▼

Include `Closes #issue_number` in the PR body so GitHub links and auto-closes the issue on merge. This Skill infers the issue number from the branch name and inserts the closing reference into the Issues section.

Can I create a pull request with the GitHub MCP tool instead of gh CLI?▼

Yes, the Skill supports both the gh CLI and an MCP GitHub tool. When using MCP, the equivalent `assignees` field is set instead of passing `--assignee @me` to the CLI.

What branch name format is needed for issue inference?▼

The branch name should contain the issue number, following the repository's git branch format convention. The Skill checks the branch name and extracts the number to build the `Closes #` reference; if none exists, the Issues section is omitted.

Why is my pull request not assigned to me?▼

Assignment requires the gh CLI to be authenticated as your GitHub user. The Skill passes `--assignee @me`, which assigns the PR to the authenticated user of the current session, so verify `gh auth status` first.