draft-pr

Creates a draft GitHub pull request linked to one or more issues.

6|2|Updated May 14, 2016
One-click install
npx skills add https://github.com/kleinjm/dotfiles --skill draft-pr-kleinjm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: draft-pr
Source: https://github.com/kleinjm/dotfiles/tree/main/shared/.claude/skills/draft-pr
Command: npx skills add https://github.com/kleinjm/dotfiles --skill draft-pr-kleinjm

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Draft PRs that automatically link to one or more GitHub issues, ensuring traceability between issues and code changes.

Core Features & Use Cases

  • Link PRs to one or more issues by number or URL (single or multiple).
  • Determine link type (Closes or Related to) based on arguments.
  • Create a GitHub draft PR using gh with a structured PR body and phase-guided content.

Quick Start

Invoke the skill with issue numbers or URLs to create a draft PR linked to those tasks.

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 linked to a GitHub issue?

To create a draft pull request linked to a GitHub issue, invoke the skill with the issue number or URL. It parses the input and generates a draft PR via gh pr with a structured body connecting the code changes to the task.

Can I link a single pull request to multiple GitHub issues?

Yes, you can link a single pull request to multiple GitHub issues. The skill accepts multiple issue numbers or URLs as input, ensuring traceability between the code changes and all related tasks.

How do I specify whether a PR closes or is just related to an issue?

The link type, either Closes or Related to, is determined automatically based on the arguments you pass when invoking the skill. This controls how the GitHub issue associates with the pull request.

Does creating a draft PR with this approach require the GitHub CLI?

Yes, creating a draft PR through this method requires the GitHub CLI, as it executes the gh pr command to generate the pull request with a detailed, phase-driven body and issue links.

How do pull request templates integrate with automated draft PR creation?

During automated draft PR creation, the skill reads your existing pull request templates. It uses this template data to build a structured, phase-guided PR body that links the specified GitHub issues.

What is the best way to automate issue linking in GitHub pull requests?

The best way to automate issue linking in GitHub pull requests is to pass issue numbers or URLs directly to the skill. It parses the inputs, determines the Closes or Related to link type, and creates the draft PR automatically.