skills/mp-commit-push-pr/SKILL.md
Full workflow - commit, push, and create or update PR. Use when: "commit push and PR", "full workflow", "commit push PR"
npx skillsauth add MartinoPolo/mpx-claude-code mp-commit-push-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.
Full workflow: stage → commit → push → find issue → create/update PR. $ARGUMENTS
Pass draft as argument to create a draft PR instead of a normal PR.
Spawn mp-git-committer sub-agent with:
push: true commit_hint: $ARGUMENTS (user's description, if any)
Handle result:
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 2, if found) base_branch: (from $ARGUMENTS if user specified, otherwise omit for auto-detection) draft: true (if
draftin $ARGUMENTS) description_hint: $ARGUMENTS or summary from mp-git-committer result
Handle result:
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 |
| "No commits to push" | Ensure working tree has staged/unstaged changes |
| "Base branch not found" | Specify base explicitly: /mp-commit-push-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"