draft-pr

Create a draft GitHub pull request from the current branch linked to an Issue.

Updated Oct 17, 2017
One-click install
npx skills add https://github.com/NAKKA-K/dotfiles --skill draft-pr-nakka-k
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: draft-pr
Source: https://github.com/NAKKA-K/dotfiles/tree/main/claude/skills/draft-pr
Command: npx skills add https://github.com/NAKKA-K/dotfiles --skill draft-pr-nakka-k

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

現在のブランチと対応する GitHub Issue を元に、ドラフト状態の PR を自動で作成します。手動での PR 作成作業を削減し、コントリビューションのワークフローを加速します。

Core Features & Use Cases

  • ブランチと Issue の紐付けを自動化してドラフトPRを作成
  • PR のタイトル/本文はプロジェクト規約に沿った形式に整形
  • 未対応のIssueやブランチの名前を検証し、問題があれば対話的に確認

Quick Start

Create a draft PR for the current branch referencing the related GitHub Issue.

Frequently Asked Questions about 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 branch linked to a GitHub issue?

To create a draft pull request, the current branch is validated for a valid issue reference and a PR formatted to project guidelines is automatically generated.

How do I automatically link a GitHub issue to a new pull request?

Linking a GitHub issue to a new pull request is handled by validating the current branch name for a valid issue reference before automatically drafting the PR.

Do I need gh CLI authentication to create a draft PR?

Yes, you need gh CLI authentication and internet access to create a draft PR, as the automation relies on the GitHub CLI to validate branches and submit pull requests.

What happens if my branch does not have a valid issue reference for the draft PR?

If your branch does not have a valid issue reference, the draft PR creation process will interactively confirm the problem with you before proceeding with the pull request.

Can I format the title and body of a draft PR according to project guidelines?

Yes, you can format the title and body of a draft PR according to project guidelines, as the automation structures the pull request content to follow established project PR conventions.