create-pull-request

Create GitHub pull requests using the gh CLI and project templates.

Updated Feb 12, 2026
One-click install
npx skills add https://github.com/yharuto0917/meChat --skill create-pull-request-yharuto0917
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-pull-request
Source: https://github.com/yharuto0917/meChat/tree/main/.agents/skills/create-pull-request
Command: npx skills add https://github.com/yharuto0917/meChat --skill create-pull-request-yharuto0917

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the process of creating well-formatted GitHub pull requests, ensuring adherence to project conventions and best practices, thereby reducing manual effort and potential errors.

Core Features & Use Cases

  • Automated Context Gathering: Analyzes commits, branches, and diffs to gather necessary information for PR creation.
  • Prerequisite Checks: Verifies gh CLI installation, GitHub authentication, and a clean working directory.
  • Guidance on Best Practices: Advises on commit hygiene, branch management (rebasing, squashing), and pushing changes.
  • Template Adherence: Strictly follows the .github/pull_request_template.md for PR body formatting.
  • Error Handling: Addresses common issues like no commits, unpushed branches, existing PRs, and merge conflicts.
  • Use Case: When you've finished a feature on a new branch and want to submit it for review, this skill will guide you through checking your work, gathering details, and creating a clean, well-described pull request using the gh CLI.

Quick Start

Use the create-pull-request skill to open a pull request for your current branch.

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 from my commits?

You can automate GitHub pull request creation by using a tool that analyzes your commits, gathers context, and formats the PR body to match repository templates. This ensures adherence to conventions and reduces manual effort.

What's the best way to ensure my pull request follows the project template?

To ensure your pull request follows the project template, use an automated PR creation process that strictly reads and populates the `.github/pull_request_template.md` file. This enforces project conventions and best practices automatically.

Do I need the gh CLI installed to create a pull request automatically?

Yes, you need the `gh` CLI installed and properly authenticated to create a pull request automatically. The automation performs prerequisite checks to verify your GitHub authentication and ensures the working directory is clean.

How does automated PR creation handle unpushed branches and merge conflicts?

Automated PR creation handles unpushed branches and merge conflicts by executing error handling checks. It identifies prerequisite issues like unpushed branches, existing PRs, and merge conflicts before attempting to submit the pull request.

Can I get guidance on git best practices like squashing commits before submitting a PR?

Yes, you can get guidance on git best practices like squashing commits and rebasing branches before submitting a PR. The automation advises on commit hygiene and branch management to ensure a clean, well-described pull request.

Why does my automated pull request submission fail on a dirty working directory?

Automated pull request submission fails on a dirty working directory because the prerequisite checks require a clean state. The tool verifies the working directory is clean before gathering context and submitting the pull request.