create-pr

Create draft pull requests from ticket data and current Git branch.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/sato-dev1234/claude-code-sample --skill create-pr-sato-dev1234
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-pr
Source: https://github.com/sato-dev1234/claude-code-sample/tree/main/skills/create-pr
Command: npx skills add https://github.com/sato-dev1234/claude-code-sample --skill create-pr-sato-dev1234

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates the creation of draft pull requests from the current Git branch by integrating ticket data, reducing manual PR drafting and context switching.

Core Features & Use Cases

  • Generate a Draft PR description from ticket details (title, acceptance criteria, design notes) and current branch information.
  • Resolve the ticket path automatically or via explicit TICKET_ID, read relevant ticket files, and update ticket status after PR creation.
  • Works within standard Git workflows by reading git branch, commits, and diffs to compose a complete PR body.

Quick Start

Provide a TICKET_PATH or TICKET_ID, then execute the skill to generate and create a Draft PR.

Frequently Asked Questions about create-pr

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

FAQPage Schema
How do I automatically create a draft pull request from a git branch using ticket data?

You can create a draft pull request by providing a ticket path or ID, which allows the automation to read ticket details, gather git branch information, generate a PR body, and create the draft PR via gh.

Can I generate a PR description from ticket details and git commits automatically?

Yes, generating a PR description from ticket details is possible by reading ticket contents like acceptance criteria and design notes, combining them with current git branch commits and diffs to compose the body.

Does creating a draft PR with ticket integration update the ticket status automatically?

Yes, draft PR creation with ticket integration updates the ticket status automatically after the PR is successfully created, ensuring traceability between your software development workflow and project tracking.

What do I need to set up before automating draft PR creation with ticket integration?

You need a standard git workflow with a current branch, a valid ticket path or explicit TICKET_ID, and the gh command-line tool installed to execute the draft PR creation and ticket status updates.

How does ticket integration handle errors during draft PR creation?

Ticket integration during draft PR creation implements robust error handling to manage failures when reading ticket files, gathering git information, or executing the gh command to create the pull request.

Why use a draft PR automation tool instead of manually creating pull requests?

Draft PR automation reduces manual drafting and context switching by automatically resolving ticket paths, reading relevant files, and applying ticket data directly into the pull request description for traceability.