skills/mp-sync-base/SKILL.md
Merge target branch into current branch. Use when: "sync with main", "merge dev into branch", "update from main"
npx skillsauth add MartinoPolo/mpx-claude-code mp-sync-baseInstall 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.
Merge a target branch into the current branch. $ARGUMENTS
Args: [branch]
If $ARGUMENTS provides a branch → use it.
Otherwise, spawn mp-base-branch-detector sub-agent:
git branch -rBased on result:
2a. Uncommitted changes:
git status --porcelain
If non-empty → ask user: "Uncommitted changes detected. Stash before merging?"
git stash push -m "Auto-stash before merge"2b. Remote sync (current branch):
git branch --show-current
git rev-parse --verify origin/<current> 2>/dev/null
If no tracking branch → skip to Step 3.
Otherwise:
git fetch origin <current>
git rev-list --left-right --count HEAD...origin/<current>
git pull origin <current>git pull origin <current>git fetch origin <target>
git log HEAD..origin/<target> --oneline
Display incoming commits. If none → report "Already up-to-date" and stop.
git merge origin/<target>
If conflicts occur:
git diff --name-only --diff-filter=U<<<<<<<, =======, >>>>>>>)
c. Simple conflicts (non-overlapping, clear intent) → resolve with Edit tool, then git add <file>
d. Complex conflicts (overlapping logic, ambiguous) → show both sides to user, ask how to resolvegit commit (accept default merge message)If origin/<current> exists (determined in Step 2b) → git push origin <current>
If no remote tracking branch → skip push, inform user.
After completion, display:
tools
Show current project progress. Displays phase status and next steps. Use when: "show status", "project progress", "what's done"
data-ai
Unified project setup. Auto-detects state and orchestrates mpx skills/agents for init, conversion, or restructure.
testing
Track bugs/issues in .mpx/ phase system. Parses reports, finds related phases, adds fix tasks or creates bugfix phases. Use when: "track this bug", "add issue to project", "log this bug", "add bug to checklist"
development
Project workflow guidance for spec-driven development. Background knowledge auto-loaded when relevant.