pr-creation

Create draft pull requests with the gh CLI for Git and GitButler.

Updated Mar 6, 2026
One-click install
npx skills add https://github.com/53able/docs-site --skill pr-creation-53able
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pr-creation
Source: https://github.com/53able/docs-site/tree/main/.cursor/skills/pr-creation
Command: npx skills add https://github.com/53able/docs-site --skill pr-creation-53able

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the creation of draft pull requests, simplifying the code review process for both standard Git and GitButler environments.

Core Features & Use Cases

  • Environment Detection: Automatically identifies whether you're using GitButler or standard Git.
  • Intelligent Branching: Determines the correct base branch based on naming conventions and GitButler's stack structure.
  • Automated PR Generation: Creates draft PRs using gh pr create with appropriate titles and bodies, referencing dependencies when necessary.
  • Use Case: After committing changes to a feature branch, you can invoke this Skill to create a draft PR targeting main or a previous branch, ensuring all necessary information is included and correctly formatted.

Quick Start

Create a draft pull request for your current branch using the pr-creation skill.

Frequently Asked Questions about pr-creation

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

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

You can automate draft pull request creation by using the `gh` CLI to trigger a script that detects your environment, determines the base branch, and generates the PR title and body. This streamlines the process for both standard Git and GitButler workflows.

Does this PR automation tool work with GitButler stacked branches?

Yes, the PR creation automation works with GitButler stacked branches by detecting the environment and determining the correct base branch based on GitButler's stack structure. It ensures the draft PR targets the appropriate previous branch.

How do I create a draft PR targeting a specific base branch automatically?

To create a draft PR targeting a specific base branch automatically, the skill analyzes your branch naming conventions to determine the correct base. It then uses `gh pr create` with predefined templates to format the title and body.

What is the best way to handle complex pull request generation scenarios?

For complex pull request generation scenarios, the skill delegates the task to a `pr-manager` sub-agent. It handles simple PR cases directly using predefined logic and templates, while routing advanced branching needs to the sub-agent.

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

Yes, you need the `gh` CLI installed because the skill directly executes `gh pr create` commands to generate draft pull requests. It relies on the GitHub CLI to interact with your repository and submit the PR.

Can I automatically generate PR titles and bodies from predefined templates?

Yes, you can automatically generate PR titles and bodies from predefined templates during the draft creation process. The skill applies this logic when invoking the `gh` CLI, ensuring all necessary information is included and correctly formatted.