create-pull-request

Create GitHub pull requests with gh CLI after validating repository state.

Updated Apr 9, 2026
One-click install
npx skills add https://github.com/TungND2k2/Milo-ai --skill create-pull-request-tungnd2k2
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: create-pull-request
Source: https://github.com/TungND2k2/Milo-ai/tree/main/.agents/skills/create-pull-request
Command: npx skills add https://github.com/TungND2k2/Milo-ai --skill create-pull-request-tungnd2k2

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Creating a GitHub pull request efficiently and within project conventions can be error-prone and time-consuming. This guide helps ensure PRs are well-formed, satisfy checks, and follow templates so reviews are faster and merging is smoother.

Core Features & Use Cases

  • Pre-flight checks: verifies gh CLI is installed, authenticated, and the repository is in a clean state before opening a PR.
  • Context gathering: identifies the current feature branch, determines the base branch, and reviews recent commits to scope the PR.
  • PR creation and templates: uses gh pr create to generate a PR that adheres to the repository's templates and guidelines, with optional reviewers and labels.
  • Post-creation guidance: reports the PR URL and next steps for CI status and reviewer assignment.

Quick Start

Tell Milo to create a PR for the current feature branch using gh pr create, specifying the base branch and a PR title.

Frequently Asked Questions about create-pull-request

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

FAQPage Schema
How do I automate GitHub pull request creation using gh CLI?▼

Automate GitHub pull request creation by using the gh CLI to validate repository state, apply pre-flight checks, and execute gh pr create with branch alignment and PR template compliance.

What are the pre-flight checks before opening a pull request?▼

Pre-flight checks before opening a pull request verify that gh CLI is installed, confirm authentication status, and ensure the repository is in a clean state to prevent commit conflicts.

How do I ensure my pull request follows repository PR templates?▼

Ensure pull request template compliance by using gh pr create, which automatically applies the repository's templates and guidelines while gathering context from recent commits.

Can I specify a base branch and reviewers when creating a pull request via command line?▼

Specify a base branch and assign optional reviewers when creating a pull request via command line by passing parameters to gh pr create during the orchestration process.

What should I do after creating a pull request with gh CLI?▼

After creating a pull request with gh CLI, follow the post-creation guidance to track the PR URL, monitor CI status, and verify reviewer assignments for merging.

Why does my pull request creation fail when my working directory is unclean?▼

Pull request creation fails when the working directory is unclean because branch hygiene pre-flight checks detect uncommitted changes, blocking base branch alignment and gh pr create execution.