smithery.ai

wt-pr

Create a GitHub PR from a worktree. Use when asked to create a PR, pull request, or submit changes from a worktree.

First seen Mar 20, 2026

Installation

$ npx skills add https://smithery.ai

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Skill metadata

Parsed from SKILL.md frontmatter.

Allowed toolsmcp__worktree-maestro__create_pr, mcp__worktree-maestro__list_worktrees, mcp__plugin_linear_linear__get_issue, mcp__plugin_linear_linear__create_comment, mcp__plane__retrieve_work_item_by_identifier, mcp__plane__create_work_item_comment, Bash

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,038 B
  • docs SUMMARY.md 128 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

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

Issue Linking

After creating the PR, link it to the issue tracker:

  1. Detect tracker from the worktree's ticket:

- Get worktree info using list_worktrees - Check the tracker field or detect from ticket pattern

  1. Add PR comment to issue:

- Linear: Use mcp__pluginlinearlinear__create_comment with: - issueId: The ticket ID (e.g., "ABC-123") - body: "PR opened: #<number> <url>"

- Plane: Use mcpplanecreateworkitem_comment with: - identifier: The ticket ID - comment: "PR opened: #<number> <url>"

- GitHub: Use GitHub MCP server tools or gh issue comment to add PR link - Note: GitHub often auto-links PRs to issues when branch contains issue number

  1. Handle failures gracefully:

- If MCP tool is unavailable, skip issue linking - Report what was done in the final output

Report

Report the following when complete:

  • PR URL
  • PR number
  • Whether issue was linked (and to which tracker)

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