skills/mp-pr/SKILL.md
Create or update PR from existing commits. Use when: "create PR", "open pull request", "make a PR", "update PR"
npx skillsauth add MartinoPolo/mpx-claude-code mp-prInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Create or update a PR from existing commits on current branch. $ARGUMENTS
Pass draft as argument to create a draft PR instead of a normal PR.
Fast-path: First try node $HOME/.claude/scripts/extract-branch-issue.js. If it returns a number, verify with gh issue view <N> --json title. Only use agent fallback if no number extracted.
If agent fallback needed, spawn mp-issue-finder sub-agent with repo, branch name, commit messages, and diff summary.
Based on result:
Spawn mp-pr-manager sub-agent with:
issue_number: (from Step 1, if found) base_branch: (from $ARGUMENTS if user specified, otherwise omit for auto-detection) draft: true (if
draftin $ARGUMENTS)
Parse the agent's JSON output:
Read the error from agent output. Diagnose and fix the issue (e.g., gh auth problem, remote not set). Then re-spawn mp-pr-manager with the same parameters.
Up to 2 retry attempts. If still failing → report error to user and stop.
PR title and body format governed by agents/mp-pr-manager.md. Git/PR conventions enforced by hooks (pre-commit-gate, gh-transform, dangerous-command-guard).
| Problem | Solution |
| ------------------------- | ----------------------------------------------------------------- |
| "PR creation fails" | Check gh auth status, verify remote exists with git remote -v |
| "Base branch not found" | Specify base explicitly: /mp-pr main |
| "PR already exists" | Existing PR is updated automatically — this is expected |
After completion, display:
development
Audit all active skills for consistency, convention drift, and common issues. Auto-fixes where possible, reports remaining issues. Use when: "audit skills", "skill audit", "check skills", "lint skills"
testing
Ship finished work: sync base, commit, push, PR, wait for CI green, merge. Use when: "ship it", "ship and merge", "ship this"
development
Scan recent Claude Code sessions for grilling/design discussions, extract decisions, and update CONTEXT.md + DECISIONS.md. Use when: "harvest decisions", "extract decisions from sessions", "update docs from sessions", "sync decisions"
tools
Consolidate CONTEXT.md: remove duplicates, outdated items, tighten language. Use when: "consolidate context", "clean up context", "simplify context", "consolidate requirements"