mp-pr

Create or update GitHub pull requests from current branch commits with linked issue detection.

1|Updated Feb 7, 2026
One-click install
npx skills add https://github.com/MartinoPolo/mpx-claude-code --skill mp-pr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mp-pr
Source: https://github.com/MartinoPolo/mpx-claude-code/tree/main/skills/mp-pr
Command: npx skills add https://github.com/MartinoPolo/mpx-claude-code --skill mp-pr

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It removes the friction of manually figuring out the right issue and then creating or updating a pull request based on existing commits.

Core Features & Use Cases

  • Linked issue detection: Extracts an issue number from the current branch using a local script, then validates it via GitHub.
  • PR orchestration: Delegates PR creation/update to a dedicated PR manager agent, including optional draft PR creation.
  • Robust escalation: Retries on failures (up to two attempts) and guides you toward likely setup problems like GitHub CLI auth or missing remotes.
  • Use case: After completing work for an existing change, quickly publish it by generating (or refreshing) the PR while optionally linking it to the relevant issue from the branch/commit context.

Quick Start

Ask: /mp-pr draft

Frequently Asked Questions about mp-pr

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

FAQPage Schema
How do I create a GitHub pull request from existing commits on my current branch?

To create a GitHub pull request from existing commits, this Skill automates PR generation by analyzing your commit history and delegating the PR creation to a dedicated manager agent.

Can I automatically link a pull request to a related GitHub issue from my branch name?

Yes, you can automatically link a pull request to a related issue by parsing the issue number from your current branch name and validating it directly via GitHub.

How do I create a draft PR from the command line after finishing my code changes?

You can create a draft PR from the command line by triggering the draft creation mode, which orchestrates the request through a sub-agent to prepare and keep it in sync.

What should I do if GitHub PR creation fails due to CLI authentication or missing remotes?

If GitHub PR creation fails, the Skill features robust escalation that retries up to two attempts and guides you toward likely setup problems like GitHub CLI auth or missing remotes.

Does this approach update an existing pull request when I push new commits to the same branch?

Yes, this approach updates an existing pull request when you push new commits, keeping the PR prepared and in sync by delegating the update process to its PR manager agent.