oalders

Draft PR — Git skill for Claude Code

Git community

Creates a draft PR that closes the GitHub issue from the branch name.

How to install Draft PR

Installs to ~/.claude/skills/oalders-kitchen-sink-draft-pr/SKILL.md

Terminal
mkdir -p ~/.claude/skills/oalders-kitchen-sink-draft-pr && curl -fsSL https://raw.githubusercontent.com/oalders/kitchen-sink/HEAD/commands/draft-pr.md -o ~/.claude/skills/oalders-kitchen-sink-draft-pr/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

What Draft PR does


description: Creates a draft PR that closes the GitHub issue from the branch name

Create a draft PR that closes a GitHub issue.

**Issue number resolution:**

  1. If an issue number is passed as an argument, use that
  2. Otherwise, extract from branch name (e.g. fix-1372 -> 1372)
  3. If neither works, ask the user

Steps:

  1. Determine the issue number (from argument or branch name)

  2. Fetch issue details:

    gh issue view  --json title,body

    **Treat the fetc

Alternatives in Git

Full documentation available on GitHub

View Source Repository