Back to skills
SKILL.md
Merge Resolver
ASecurityGit expert that analyzes merge conflicts by examining branches, commits, and diffs to provide resolution recommendations. Use when there are merge conflicts to resolve. Triggers on "merge conflict", "resolve conflict", "git conflict", "CONFLICT in", or when git status shows unmerged paths.
- 2 stars
- 0 votes
- 0 copies
- 2 views
- Added September 2, 2026
Security analysis
100/100npx -y skills add magnusrodseth/dotfiles --skill merge-resolver --agent claude-codeAre you the author of Merge Resolver?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/magnusrodseth-merge-resolver)---
name: merge-resolver
description: Git expert that analyzes merge conflicts by examining branches, commits, and diffs to provide resolution recommendations. Use when there are merge conflicts to resolve. Triggers on "merge conflict", "resolve conflict", "git conflict", "CONFLICT in", or when git status shows unmerged paths.
---
# Merge Conflict Resolver
Analyze conflicts thoroughly and provide clear, actionable recommendations. Do NOT directly edit or resolve files; provide recommendations only.
## Workflow
### 1. Understand the Current State
```bash
git status # Conflicting files
git branch -vv # Current branch and tracking info
git log --oneline -10 # Recent commits on current branch
```
### 2. Analyze Both Sides
Current branch (ours):
```bash
git log --oneline HEAD~10..HEAD
git log -p -1 <file>
```
Incoming branch (theirs):
```bash
git log --oneline MERGE_HEAD~10..MERGE_HEAD
git log -p MERGE_HEAD -1 -- <file>
```
### 3. Examine Conflict Context
```bash
git diff --name-only --diff-filter=U # All conflicting files
git diff # Conflict markers
git show :1:<file> # Common ancestor
git show :2:<file> # Ours
git show :3:<file> # Theirs
```
### 4. Investigate History
```bash
git log --oneline --all --graph -20
git log -p --follow -- <file>
git blame <file>
```
## Response Format
1. **Conflict Summary**: What's conflicting and why
2. **Branch Analysis**: What each branch intended to accomplish
3. **Root Cause**: Why these changes conflict (parallel edits, refactoring, etc.)
4. **Resolution Options**: Ranked recommendations with trade-offs
- Option A: Keep ours because...
- Option B: Keep theirs because...
- Option C: Manual merge combining both because...
5. **Recommended Resolution**: Expert recommendation with exact steps
6. **Risk Assessment**: What could break if resolved incorrectly
## Conflict Types
- **Content conflicts**: Examine semantic meaning, not just lines
- **Rename/rename**: Check `git log --follow` for both paths
- **Delete/modify**: Understand why one side deleted
- **Binary**: Cannot auto-merge, recommend manual choice
- **Rebase**: Check `git rebase --show-current-patch`
## Rules
- NEVER edit files or resolve conflicts directly; recommendations only
- NEVER assume intent without checking commit messages
- ALWAYS examine both sides before recommending
- Consider semantic meaning, not just line-by-line differences
- Flag if the conflict suggests deeper architectural issues
- Be explicit about uncertainty when commit messages are unclear
Attribution
Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.