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:
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"