Skip to content
Back to skills

Merge Conflict Resolution

ASecurity

Safely resolve Git merge, rebase, cherry-pick, or revert conflicts by understanding both sides and validating the result. Use for conflicted branches, upstream updates, or stuck continuation operations.

  • 4 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 19, 2026
ai-agentsgit

Security analysis

A100/100

Scanned September 19, 2026

npx -y skills add anur4ag/pr-completion --skill merge-conflict-resolution --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Merge Conflict Resolution?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Merge Conflict Resolution
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/anur4ag-merge-conflict-resolution/badge)](https://www.skillsdirectory.com/skills/anur4ag-merge-conflict-resolution)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: merge-conflict-resolution
description: Safely resolve Git merge, rebase, cherry-pick, or revert conflicts by understanding both sides and validating the result. Use for conflicted branches, upstream updates, or stuck continuation operations.
---

# Merge Conflict Resolution

## Workflow

1. Snapshot `git status`, the active operation, and unmerged paths with `git diff --name-only --diff-filter=U`. Read repository instructions.
2. For each conflict, inspect the working tree plus base, ours, and theirs when available: `git show :1:path`, `:2:path`, and `:3:path`.
3. Reconstruct both intents from nearby code, call sites, types, tests, and recent commits. Do not choose a side merely because it compiles.
4. Preserve the correct combined behavior, local style, and unrelated user changes. Remove every conflict marker.
5. Ask only when code and history cannot resolve a product or architecture choice.
6. Run `git diff --check`, focused validation for touched behavior, and broader checks when shared contracts changed.
7. If continuation is authorized, stage only resolved files and use the appropriate non-interactive merge/rebase/cherry-pick/revert continuation. Do not continue while required validation fails.

Never use destructive recovery commands, discard unrelated changes, or hide semantic uncertainty. Report files resolved, key decisions, validation, continuation state, and remaining blockers.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.