create-pr

Create draft GitHub Pull Requests from the current working branch.

Updated Feb 7, 2026
One-click install
npx skills add https://github.com/tkdn/dotfiles --skill create-pr-tkdn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-pr
Source: https://github.com/tkdn/dotfiles/tree/main/dot_claude/skills/create-pr
Command: npx skills add https://github.com/tkdn/dotfiles --skill create-pr-tkdn

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the creation of draft GitHub Pull Requests, streamlining the code review process and ensuring consistency.

Core Features & Use Cases

  • Draft PR Creation: Automatically creates PRs in draft mode, preventing accidental merges.
  • Pre-creation Checks: Verifies branch status, commit history, and push status before proceeding.
  • Self-Review Integration: Integrates with pr-review for an initial code quality check.
  • Contextual Information Gathering: Collects commit logs, changed files, and branch names for PR descriptions.
  • Template Adherence: Utilizes and populates .github/PULL_REQUEST_TEMPLATE.md if available.

Quick Start

Use the create-pr skill to open a draft pull request for your current branch.

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 draft pull request on GitHub from my current branch?

To create a draft pull request, the skill validates your current working branch, checks for commits ahead of the base branch, and confirms the branch is pushed to origin before opening a draft PR. This ensures your branch is properly synced before drafting.

How does a draft PR prevent accidental merges during code review?

A draft PR prevents accidental merges by marking the pull request as not yet merge-ready. This signals to reviewers that the code is still in progress, ensuring no changes are merged into the base branch until you manually mark the PR as ready for review.

Can I automatically populate a GitHub PR template when generating a pull request?

Yes, you can populate a GitHub PR template when generating a pull request. The skill locates and utilizes the `.github/PULL_REQUEST_TEMPLATE.md` file if available, filling the draft PR body based on your git log, diff, and branch name.

Does the pull request creation process include an automated self-review step?

The pull request creation process includes an automated self-review step using pr-review. Before drafting the PR body, the skill integrates this initial code quality check to gather contextual information and verify your changed files.

What happens if my working branch is not pushed to origin before opening a draft PR?

If your working branch is not pushed to origin, the draft PR creation process will halt during pre-creation checks. The skill validates branch status and confirms the branch is pushed to origin to ensure remote synchronization before proceeding.

How do I assign a newly created draft pull request to myself automatically?

To assign a newly created draft pull request to yourself, the skill automatically assigns the PR to the current user upon creation. This happens after gathering git context and generating the draft PR body for your working branch.