Create Pull Request

Creates Git objects and copies them to the Windows clipboard as text.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/mshuffett/dotfiles --skill create-pull-request-mshuffett
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Create Pull Request
Source: https://github.com/mshuffett/dotfiles/tree/main/agents/knowledge/atoms/claude-skill-archive/create-pr
Command: npx skills add https://github.com/mshuffett/dotfiles --skill create-pull-request-mshuffett

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies and standardizes the process of creating pull requests, ensuring all necessary checks are performed and best practices are followed, thereby reducing merge conflicts and improving code review efficiency.

Core Features & Use Cases

  • Automated PR Creation: Leverages the gh CLI for creating pull requests with various options (interactive, title/body, fill from template, specific base branch).
  • Conflict Resolution Guidance: Provides steps to fetch and merge the latest base branch locally, resolve conflicts, and push the resolution before creating the PR.
  • Best Practices Enforcement: Guides users on using --fill, referencing issues, using --web for complex PRs, and avoiding --squash in favor of merging with gh pr merge.
  • Use Case: A developer finishes a feature branch and wants to create a pull request for review. They can use this Skill to ensure their branch is up-to-date with the main branch, resolve any conflicts, and then create a well-formatted PR.

Quick Start

Use the gh CLI to create a pull request with an interactive prompt.

Frequently Asked Questions about Create Pull Request

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

FAQPage Schema
How do I create a GitHub pull request using the gh CLI?

To create a GitHub pull request, use the `gh` CLI to automate the process with interactive prompts, custom titles, or templates. This ensures proper formatting and adherence to best practices.

What's the best way to handle merge conflicts before creating a pull request?

Before creating a pull request, fetch and merge the latest base branch locally, resolve any merge conflicts, and push the resolution. This ensures your branch is up-to-date and reduces review friction.

How does the gh CLI fill pull request titles and bodies?

The `gh` CLI uses the `--fill` option to automatically populate pull request titles and bodies from commit messages, ensuring well-formatted descriptions without manual input.

Should I use squash merge when merging a GitHub pull request?

Avoid using `--squash` when finalizing a pull request. Instead, use `gh pr merge` to merge your code, which provides better merge strategies and preserves commit history.

Can I create a pull request from a specific base branch with the gh CLI?

Yes, you can create a pull request targeting a specific base branch using the `gh` CLI. This allows you to direct your feature branch to the correct integration branch for review.

When should I use the web interface instead of the gh CLI for a pull request?

Use the `--web` option with the `gh` CLI to open the pull request creation interface in your browser when dealing with complex PRs that require manual formatting or additional review.