create-pr

Creates a draft pull request on GitHub from the current branch using gh CLI.

2|Updated Sep 25, 2011
One-click install
npx skills add https://github.com/pokutuna/dotfiles --skill create-pr-pokutuna
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: create-pr
Source: https://github.com/pokutuna/dotfiles/tree/main/claude/skills/create-pr
Command: npx skills add https://github.com/pokutuna/dotfiles --skill create-pr-pokutuna

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Manually creating pull requests involves repetitive steps: pushing the branch, writing a description from the diff, finding the PR template, assigning reviewers, and opening the result in a browser. This Skill automates that entire flow with a single instruction. ## Core Features & Use Cases - Automated PR Creation: Pushes the current branch if needed, generates a description from the diff against the base branch, and creates a draft pull request via the GitHub CLI. - Template Detection: Searches the repository's .github/ directory for pull request templates and applies the appropriate one. - Copilot Review Request: Automatically requests a Copilot review for repositories owned by hatena, unless explicitly told to skip it. - Use Case: After finishing a feature branch, ask the AI to create a PR. It diffs against origin/main, writes a summary of changes, creates a draft PR assigned to you, and opens it in the browser. ## Quick Start Create a draft pull request for the current branch targeting the default base branch.

Frequently Asked Questions about 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 the command line?▼

Use the gh CLI with gh pr create after pushing your branch to the remote. This Skill automates the full flow: pushing the branch, generating a description from the diff against the base branch, and creating a draft PR.

How to create a draft pull request with gh CLI?▼

Run gh pr create --draft with a title and body. This Skill creates draft PRs by default and only creates a ready-for-review PR when words like "ready" appear in the extra context instructions.

Does gh pr create use pull request templates automatically?▼

The gh CLI does not always apply templates automatically. This Skill explicitly searches the repository's .github/ directory for pull request templates and selects the appropriate one based on the current changes.

Why does gh pr view not show Copilot as a requested reviewer?▼

Copilot is a Bot, not a User, so it does not appear in gh pr view --json reviewRequests via GraphQL. To verify, use the REST API: gh api repos/{owner}/{repo}/pulls/{pr_number}/requested_reviewers.

Can I specify a different base branch for the pull request?▼

Yes. Include the target branch in the extra context when invoking the Skill, and it will create the pull request against that branch instead of the repository's default base branch.