Create a GitHub pull request from the current branch. Validates preconditions, generates title and description, and opens the PR as draft. Use when the user asks to create a PR, open a pull request, or submit changes for review.
100
100%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Passed
No known issues
git rev-parse --abbrev-ref HEAD
git status --porcelain
git rev-parse --verify origin/<branch>main --> abort: "Cannot create a PR from main"AskQuestion tool to ask whether to push, with options "Yes, push" and "No, abort" (default: No, abort). Never push without explicit user consent.Generate a PR description for the current branch (see pr-description skill if available).
Run these two steps concurrently since they are independent:
3a. Create the PR
Prefer gh CLI:
gh pr create \
--title "<generated title>" \
--body "<generated body>" \
--base main \
--assignee @me \
--draftFallback to GitHub MCP (create_pull_request tool from user-github server):
{
"server": "user-github",
"toolName": "create_pull_request",
"arguments": {
"owner": "MetaMask",
"repo": "metamask-mobile",
"title": "<generated title>",
"body": "<generated body>",
"head": "<branch-name>",
"base": "main",
"draft": true
}
}3b. Identify code owners
Identify code owners and their Slack handles for the changed files (see pr-codeowners skill if available). This only depends on the diff, not the PR itself.
If code owners were found:
PR ready for review: <PR title>
<PR URL>
<one-line summary of what changed>
cc @<slack-handle-1> @<slack-handle-2>If no code owners (or only the author's own team):
PR ready for review: <PR title>
<PR URL>
<one-line summary of what changed>Tell the user they can paste it in #metamask-mobile-dev in the "Mobile PRs that need review" thread of the day.
Use the AskQuestion tool to ask whether to add the PR to the PR review queue, with options "Yes" and "No" (default: Yes). If yes, invoke the pr-review-queue skill if available.
@memain branchadd-team-label.yml) on PR openbee9b14
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.