pr-create

Create a draft GitHub pull request from the current branch to main.

3.0k|1.6k|Updated Jul 18, 2018
One-click install
npx skills add https://github.com/MetaMask/metamask-mobile --skill pr-create-metamask
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pr-create
Source: https://github.com/MetaMask/metamask-mobile/tree/main/.agents/skills/pr-create
Command: npx skills add https://github.com/MetaMask/metamask-mobile --skill pr-create-metamask

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill streamlines the process of opening a GitHub pull request from the active branch by validating preconditions, generating a meaningful title and body, and performing the PR creation as a draft.

Core Features & Use Cases

  • Precondition validation: checks for the current branch name, a clean working directory, and origin synchronization to prevent errors.
  • Automatic PR description: generates a descriptive PR title and body based on changes in the branch.
  • Parallel workflow: creates the PR and identifies code owners in parallel to speed up the workflow.
  • Use Case: when you want to submit changes for review but keep them in draft until they are ready.

Quick Start

Ask the assistant to create a draft PR from your current branch to main with an automatically generated title and description.

Frequently Asked Questions about pr-create

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a draft pull request from my current branch to main?

To create a draft pull request, the skill validates your current branch and clean working tree, generates a descriptive title and body from branch changes, and runs gh pr create with base main and draft status.

What preconditions are checked before opening a GitHub pull request?

Before opening a GitHub pull request, the skill checks your current branch name, ensures the working directory is clean, and verifies origin synchronization to prevent errors during PR creation.

Can I automatically generate a title and body for my pull request?

Yes, you can automatically generate a pull request title and body. The skill analyzes the changes in your current branch to create a descriptive title and body for the draft PR.

How does code owners identification work when creating a PR?

Code owners identification runs in parallel with the pull request creation. The skill identifies code owners simultaneously while using gh pr create or the MCP tool fallback to open the draft PR.

Does the skill fall back to the MCP tool if gh pr create fails?

Yes, the skill falls back to the MCP tool for a JSON-based PR creation if the standard gh pr create command is not available or fails to open the draft pull request.

When should I use a draft PR instead of a regular pull request?

Use a draft PR when you want to submit changes for review but keep them in draft until they are ready. This signals to code owners that the work is still in progress.