Pull Request Creator

Create and update pull requests via GitHub CLI with commit analysis.

Updated Sep 11, 2021
One-click install
npx skills add https://github.com/biwsantang/dotfiles --skill pull-request-creator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Pull Request Creator
Source: https://github.com/biwsantang/dotfiles/tree/main/claude/.claude/skills/pr
Command: npx skills add https://github.com/biwsantang/dotfiles --skill pull-request-creator

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines the often-tedious process of creating and updating pull requests. It automates prerequisite checks, intelligently determines base branches, and generates comprehensive PR content, ensuring your code reviews start faster and are more effective.

Core Features & Use Cases

  • Smart Base Branch Detection: Automatically identifies the correct target branch (e.g., develop vs main) for your pull request.
  • Comprehensive Commit Analysis: Generates a detailed PR title and body based on all commits since your branch diverged, including support for PR templates.
  • Use Case: After finishing a feature branch, use this Skill to automatically generate a well-formatted pull request, including a title, description, and checklist, ready for review, without manual drafting.

Quick Start

Example: Create a new pull request with a title and body

gh pr create --title "feat: add user profile" --body "Implements user profile management."

Frequently Asked Questions about Pull Request Creator

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

FAQPage Schema
How do I automate pull request creation from the command line?

Automate pull request creation by analyzing commits since branch divergence and generating formatted PR content with title and description. This Skill integrates with GitHub CLI to create PRs automatically, detecting the correct base branch and applying PR templates without manual drafting.

Can I automatically detect the correct base branch for my pull request?

Yes, this Skill intelligently detects base branches by checking for a develop branch first, then falling back to main. It supports configurable overrides so you can specify a custom base branch when needed for feature, fix, hotfix, and release branches.

How do I generate pull request descriptions from git commits?

Generate comprehensive PR descriptions by analyzing all commits since your branch diverged from the base. The Skill extracts commit messages, supports PR templates, and builds a detailed title and body ready for code review without manual content creation.

What happens if a pull request already exists on my branch?

The Skill handles existing PRs gracefully by updating them instead of creating duplicates. It checks for pre-existing PRs on your current branch and refreshes the content with latest commits and formatting.

Does this work with GitHub CLI and git workflows?

Yes, this Skill integrates directly with GitHub CLI (gh) and works across standard git workflows including feature, fix, hotfix, and release branches. It performs parallel git operations and prerequisite validation to ensure smooth PR creation.

Can I use PR templates with automated pull request creation?

Yes, the Skill supports PR template usage and applies them when generating PR content. It combines commit analysis with your repository's PR templates to produce well-structured, template-aware pull requests.