create-pr

Create and update GitHub pull requests from local branches using GitHub CLI and Git.

144|16|Updated May 3, 2026
One-click install
npx skills add https://github.com/Terry-Mao/AICodingFlow --skill create-pr-terry-mao
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-pr
Source: https://github.com/Terry-Mao/AICodingFlow/tree/main/.agents/skills/create-pr
Command: npx skills add https://github.com/Terry-Mao/AICodingFlow --skill create-pr-terry-mao

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gh, and includes scripts (resource) components.

What problem does it solve?

This Skill automates the process of creating and updating GitHub pull requests, streamlining the code review and merge workflow.

Core Features & Use Cases

  • Automated PR Creation: Generates PRs from local code commits, ensuring consistency and reducing manual effort.
  • PR Update: Modifies existing PRs based on local branch changes, keeping the PR up-to-date with the latest code.
  • Use Case: When you have a local branch with changes ready for review, this Skill can automatically create a PR, sync the base branch, and update the PR with any subsequent changes.

Quick Start

Create a pull request for the current branch with the latest changes.

Frequently Asked Questions about create-pr

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

FAQPage Schema
How do I automate GitHub pull request creation from a local branch?

Automating GitHub pull request creation from a local branch requires using a script that leverages GitHub CLI to generate PRs directly from your local code commits, reducing manual effort and ensuring consistency.

What is the best way to update an existing pull request with local branch changes?

Updating an existing pull request with local branch changes involves modifying the PR based on local commits to keep it up-to-date with the latest code, maintaining a consistent review process without manual intervention.

Do I need GitHub CLI installed to automate PR creation?

Yes, you need GitHub CLI installed to automate PR creation, as the process requires GitHub CLI for executing PR operations and Git for managing local branches.

Can I sync the base branch when creating a pull request?

Syncing the base branch when creating a pull request is supported; the automation syncs the base branch and updates the PR with any subsequent changes to ensure the review is based on the latest code.

How does pull request automation work with Git for branch management?

Pull request automation works with Git for branch management by using Git to handle local branch operations and GitHub CLI to create and update PRs, streamlining the code review and merge workflow.

What are the limitations of using scripts for GitHub PR automation?

Limitations of using scripts for GitHub PR automation include requiring both GitHub CLI and Git to be properly configured in your environment, and the automation is constrained to creating and updating PRs rather than complex review logic.