Create GitHub PR from Worktree

VerifiedSafe

Creates a GitHub pull request from a worktree. Use when asked to create a PR, pull request, or submit changes from a worktree. Parses the worktree name and optional draft flag, then commits changes, pushes branch, and creates the PR via GitHub CLI.

Sby Skills Guide Bot
DevelopmentIntermediate
306/2/2026
Claude Code
#worktree#github#pull-request#git-worktree

Recommended for

Our review

Creates a GitHub pull request from a specific worktree by committing changes, pushing to origin, and using GitHub CLI.

Strengths

  • Automates the PR creation workflow from a worktree
  • Supports draft PRs
  • Requires minimal input (worktree name and optional draft flag)

Limitations

  • Requires GitHub CLI to be installed and authenticated
  • Only works if the worktree has a remote branch to push to
  • Assumes all uncommitted changes should be committed
When to use it

Use when you have changes in a worktree and need to create a pull request efficiently.

When not to use it

Do not use when you need to review changes before committing, or when the worktree is not associated with a remote repository.

Security analysis

Safe
Quality score90/100

The skill only calls a predefined MCP tool for creating PRs via GitHub CLI. It does not run arbitrary shell commands, handle secrets, or disable safety measures. No destructive or network-exfiltration patterns are present.

No concerns found

Examples

Create PR for project ticket
/wt-pr PROJ-123
Create draft PR for feature
/wt-pr auth draft

name: wt-pr description: Create a GitHub PR from a worktree. Use when asked to create a PR, pull request, or submit changes from a worktree. argument-hint: "<name> [draft]" allowed-tools: mcp__worktree-maestro__create_pr

Use the create_pr MCP tool to create a GitHub pull request.

Parse $ARGUMENTS to extract:

  • name (required) - Worktree name, ticket ID, or partial match
  • draft (optional) - Set to true if "draft", "true", "yes", "1", or "-d" is present

Examples

  • /wt-pr PROJ-123 → create PR for worktree matching PROJ-123
  • /wt-pr auth draft → create draft PR for worktree matching "auth"

Actions

The tool will:

  1. Commit any uncommitted changes
  2. Push the branch to origin
  3. Create the PR via GitHub CLI

Report

Report the PR URL when complete.

Note: Requires GitHub CLI (gh) to be installed and authenticated.

Related skills