create-pull-request

Create GitHub pull requests with linked issues and template-based bodies.

7|3|Updated Oct 23, 2025
One-click install
npx skills add https://github.com/BerryKuipers/claude-code-toolkit --skill create-pull-request
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-pull-request
Source: https://github.com/BerryKuipers/claude-code-toolkit/tree/main/.claude/skills/git-workflows/create-pull-request
Command: npx skills add https://github.com/BerryKuipers/claude-code-toolkit --skill create-pull-request

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires git, gh CLI, and includes references (resource) components.

What problem does it solve?

Manually creating pull requests with all required details, proper issue linking, and quality metrics is time-consuming and prone to errors. This Skill automates the PR creation process, ensuring adherence to project standards.

Core Features & Use Cases

  • Automated PR Body: Gathers metadata (issue number, files changed, audit score, test coverage) and drafts a comprehensive PR body using a template.
  • Issue Linking Validation: Critically validates issue linking format (e.g., Fixes #123) to ensure GitHub auto-closes issues.
  • gh CLI Integration: Creates the pull request using the GitHub CLI, ensuring consistency and automation.
  • Use Case: After completing feature implementation and all quality gates pass, use this Skill to instantly generate a compliant and informative pull request, ready for review.

Quick Start

Assuming variables like FEATURE_TITLE, PR_BODY, BRANCH_NAME are set

from previous workflow steps.

The skill will execute a command similar to:

gh pr create \

--title "feat: [FEATURE_TITLE]" \

--body "[PR_BODY_FROM_STEP_2]" \

--base development \

--head [BRANCH_NAME]

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 creating GitHub pull requests with proper issue linking?

Automate GitHub pull request creation by gathering issue metadata, drafting a comprehensive PR body from a template, and validating issue linking format (e.g., Fixes #123) to ensure GitHub auto-closes issues. The Skill uses gh CLI to create compliant PRs after quality gates pass.

What checks must pass before creating a pull request automatically?

Before automated PR creation, feature work must be complete, tests must pass, audit score must reach at least 8.0, the build must succeed, and the branch must be up-to-date. These quality gates ensure only production-ready code enters the review process.

Can I use gh CLI to automate pull request creation in my GitHub workflow?

Yes. The gh CLI enables automated PR creation with proper metadata assembly, title formatting, body templating, and base/head branch specification. It integrates directly into development workflows to generate consistent, compliant pull requests.

How do I format issue linking so GitHub automatically closes issues when PRs merge?

Use the correct format—Fixes #123, Closes #456, or Resolves #789—in your PR body. This Skill validates and enforces proper issue linking format to guarantee GitHub's auto-close mechanism triggers on PR merge.

What information gets included in an automated pull request body?

The PR body template automatically gathers issue number, files changed, audit score, and test coverage metadata. This comprehensive assembly creates informative PRs that document functional and technical requirements without manual effort.

Do I need version control and GitHub CLI installed to use automated PR creation?

Yes. Git and gh CLI are required dependencies. Git manages your branch state and up-to-date status, while gh CLI executes the actual pull request creation with all metadata and formatting applied.