create-pr

Create a GitHub pull request from the current branch using gh.

4|7|Updated Apr 9, 2026
One-click install
npx skills add https://github.com/arbisoft/ai-skillforge --skill create-pr-arbisoft
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-pr
Source: https://github.com/arbisoft/ai-skillforge/tree/main/Claude/skills/create-pr
Command: npx skills add https://github.com/arbisoft/ai-skillforge --skill create-pr-arbisoft

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates creating a GitHub pull request from the current working branch using the gh CLI, reducing manual steps and ensuring consistent PR metadata.

Core Features & Use Cases

  • PR creation from current branch: generate a PR against the appropriate base with a drafted title and body.
  • Base branch management: automatically or manually select the base, with safeguards when on main branches.
  • Drafting and submission workflow: automatically draft the PR title and body from the branch name and recent commits, and push or fork as needed.

Quick Start

Create a PR from the current branch using gh, then review and adjust the title and base as needed.

Frequently Asked Questions about create-pr

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

FAQPage Schema
How do I create a GitHub pull request from my current branch?

This workflow creates a pull request by using gh CLI to push your current branch, draft a title and body from recent commits, and submit it against the appropriate base branch.

Do I need gh CLI installed to automate pull request creation?

Yes, gh CLI must be installed and authenticated to automate pull request creation. A valid remote and a repository you can push to are also required for the workflow to function.

How does the gh CLI handle base branch selection when creating a PR?

The workflow detects the current state and automatically or manually selects the base branch, applying safeguards to prevent accidental PRs from main branches.

Can I fork a repository automatically when creating a pull request?

Yes, when creating a pull request, the workflow can push or fork as needed, allowing you to contribute to repositories where you only have read access.

What is the best way to draft a pull request title and body from git commits?

The best way to draft a pull request title and body is to use this workflow, which automatically generates them from the branch name and recent commits before submission.