resolving-merge-conflicts

Installation
SKILL.md

Resolving Merge Conflicts

Systematically resolve in-progress Git merge and rebase conflicts by identifying the semantic intent of both branches and verifying integration integrity with automated test gates.


Core Invariants

  1. 3-Way Intent Reconstruction: Understand the common merge-base ancestor, the incoming changes (THEIRS), and the target branch changes (OURS) before altering conflicted code.
  2. Never Blindly Choose Ours or Theirs: Inspect every conflict hunk individually; synthesize solutions that preserve the functional requirements of both branches.
  3. Zero Orphaned Conflict Markers: Verify that all <<<<<<<, =======, and >>>>>>> markers are completely eliminated before staging.
  4. Non-Destructive Resolution: Preserve adjacent unchanged code, comments, and docstrings; avoid accidental line deletions outside conflict hunks.
  5. Mandatory Post-Resolution Test Pass: Execute the full build, typecheck, and test suite before concluding the merge (git commit) or rebase (git rebase --continue).

Architecture & Map of Content (MOC)

Installs
1
GitHub Stars
11
First Seen
Oct 23, 2026