create-draft-pr

Create draft pull requests from local git branches against a specified base branch.

3|2|Updated Jan 12, 2026
One-click install
npx skills add https://github.com/ukwhatn/.claude --skill create-draft-pr-ukwhatn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-draft-pr
Source: https://github.com/ukwhatn/.claude/tree/main/skills/create-draft-pr
Command: npx skills add https://github.com/ukwhatn/.claude --skill create-draft-pr-ukwhatn

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automate the creation of pull requests from local Git work against a specified base branch, ensuring a consistent PR scaffold for collaboration.

Core Features & Use Cases

  • Draft PR creation from local branches for teammates to review.
  • Validate base-branch targeting and PR template presence when available.
  • Integrate with GitHub CLI (gh) to publish or preview PRs in CI or development workflows.

Quick Start

Pass the base branch name (and optional --no-draft) to create a draft PR against the specified base.

Frequently Asked Questions about create-draft-pr

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

FAQPage Schema
How do I create a draft pull request from a local git branch against a specific base?

To create a draft pull request, pass the target base branch name to the command line tool. It automates PR scaffolding via the gh CLI, validating the base branch and requiring an assignee for the draft PR.

Can I publish a standard pull request instead of a draft using this workflow?

Yes, you can publish a standard pull request by passing the optional --no-draft flag. This overrides the default behavior, creating a ready-to-review PR against the specified base branch instead of a draft.

Does this PR automation tool require the GitHub CLI and an assignee?

Yes, this PR automation requires the GitHub CLI (gh) to publish or preview pull requests. It also enforces an assignee when creating the draft PR to ensure consistent collaboration and review tracking.

What is the best way to automate draft PR creation for CI workflows?

Automating draft PR creation for CI workflows is best handled by targeting a specified base branch with the gh CLI. This enforces base-branch validation and PR template presence, ensuring consistent scaffolding for automated feedback.

When do I need to specify a base branch for pull request automation?

You need to specify a base branch whenever creating a pull request from local Git work. The tool strictly enforces a base-branch target to prevent accidental merges into incorrect branches during feature development or code review.