github-pr-create

Create and update GitHub pull requests using the gh CLI.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill streamlines GitHub PR creation and updates by translating natural language prompts into concrete pull requests using the gh CLI, reducing manual steps and errors.

Core Features & Use Cases

  • Create new PRs from a working branch with an auto-generated PR body when none is provided.
  • Update or replace PR bodies using templates, ensuring consistent formatting and messaging.
  • Validate authentication and branch readiness before PR creation, covering common workflows like feature branches, hotfixes, and merges.

Quick Start

Ask the AI to create a PR with a suitable title and either attach a body file or provide body content inline, then trigger PR creation.

Frequently Asked Questions about github-pr-create

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

FAQPage Schema
How do I create a GitHub pull request from a natural language prompt?

You can create a GitHub pull request by providing a natural language prompt that the skill translates into a gh CLI command, auto-generating the PR body if none is provided inline or via file.

Can I update an existing PR body using a template?

Yes, you can update or replace existing PR bodies using templates to ensure consistent formatting. The skill handles PR body updates by applying template-based content across typical workflows like feature branches and hotfixes.

What do I need to set up before automating PR creation with the gh CLI?

Before automating PR creation, you need valid GitHub authentication and a non-protected working branch. The skill performs pre-checks to validate authentication and branch readiness before attempting to create or update pull requests.

Does this skill work with hotfix and mainline merge workflows?

Yes, this skill covers typical workflows including feature branches, hotfixes, and mainline merges. It validates branch readiness and applies template-based content generation to ensure consistent PR formatting across these different merge scenarios.

Why does my PR creation fail on a protected branch?

PR creation fails on protected branches because the skill requires a non-protected working branch to safely orchestrate pull request creation. Pre-checks enforce this constraint to prevent unauthorized or unsafe merges to protected mainline branches.

What is the best way to generate a PR body when creating a pull request?

The best way to generate a PR body is to either attach a body file or provide body content inline when triggering PR creation. If neither is provided, the skill auto-generates a suitable PR body from your natural language prompt.