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 matchdraft(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:
- Commit any uncommitted changes
- Push the branch to origin
- Create the PR via GitHub CLI
Issue Linking
After creating the PR, link it to the issue tracker:
- Detect tracker from the worktree's ticket:
- Get worktree info using list_worktrees - Check the tracker field or detect from ticket pattern
- 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
- 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.