pr-create

Creates GitHub pull requests from committed branches using gh CLI with Copilot review automation.

1|Updated Mar 12, 2025
One-click install
npx skills add https://github.com/void2610/dotfiles --skill pr-create-void2610
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: pr-create
Source: https://github.com/void2610/dotfiles/tree/main/.claude/skills/pr-create
Command: npx skills add https://github.com/void2610/dotfiles --skill pr-create-void2610

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Manually creating GitHub pull requests involves repetitive steps: pushing branches, writing titles and descriptions, detecting PR templates, and requesting reviewers. This Skill automates the entire flow from committed branch to monitored PR, including Copilot review requests and CI status tracking. ## Core Features & Use Cases - End-to-end PR creation: Verifies commits exist, pushes the branch, generates a Japanese conventional-commit title and body, and runs gh pr create without manual confirmation. - Template detection: Automatically discovers repository PR templates (.github/pull_request_template.md and variants) and fills them, falling back to a default template only when none exists. - Copilot review integration: Requests GitHub Copilot as a reviewer via GraphQL requestReviews mutation, then polls in the background for review arrival and CI check completion, auto-chaining to the pr-review-fix skill when unresolved threads appear. - Use Case: After committing feature work on a branch, ask the assistant to create a PR; it pushes, writes the title/body from commit logs, opens the PR, requests Copilot review, and monitors CI and review arrival in the background. ## Quick Start Create a pull request from my current branch and request a Copilot review on it.

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

Use `gh pr create --title "..." --body "..."` after pushing your branch with git. This Skill automates the full sequence: verifying commits exist, pushing, generating the title and body from commit logs, and creating the PR.

How to request GitHub Copilot as a PR reviewer?▼

Call the GitHub GraphQL `requestReviews` mutation with `botIds` containing the Copilot reviewer bot node ID (BOT_kgDOCnlnWA). The included request-copilot-review.sh script handles this via `gh api graphql`.

Does gh pr create use the repository pull request template?▼

Not automatically when passing --body. This Skill explicitly searches standard template paths like .github/pull_request_template.md, reads the template, and fills each section from commit logs before creating the PR.

What happens if a PR already exists for my branch?▼

The Skill detects an existing PR via `gh pr view` and skips creation. Instead it updates the existing PR's title and description to reflect the current codebase using `gh pr edit`.

Why does the Copilot review request fail after PR creation?▼

Failures occur when Copilot PR review is not enabled on the repository, the reviewer was already requested, or the authenticated user lacks permission. The PR itself still succeeds; the failure is reported as a warning only.

Can this Skill create commits before opening the PR?▼

No. It requires at least one existing commit on the current branch and exits if none are found. Commit creation must be done beforehand with a separate commit skill or manually.