merge-conflict-resolution

Resolve git merge conflicts by identifying types, applying per-file strategies, and validating the final state.

1|Updated Mar 18, 2026
One-click install
npx skills add https://github.com/xxih/ai-harness-zh --skill merge-conflict-resolution-xxih
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: merge-conflict-resolution
Source: https://github.com/xxih/ai-harness-zh/tree/main/packages/github-workflows/targets/codex/skills/merge-conflict-resolution
Command: npx skills add https://github.com/xxih/ai-harness-zh --skill merge-conflict-resolution-xxih

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps engineers stabilize and resolve git merge conflicts by identifying conflict types, selecting per-file resolution strategies, and validating the final state before continuing.

Core Features & Use Cases

  • Per-file conflict assessment and strategy selection.
  • Guided resolution workflows for common conflict types (code, tests, docs, and lockfiles).
  • Validation and status reporting after resolution to prevent semantic regressions.

Quick Start

Identify the conflict context and apply a minimal-risk per-file resolution plan, then run validations.

Frequently Asked Questions about merge-conflict-resolution

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I resolve git merge conflicts across different branch operations?

To resolve git merge conflicts, identify the conflict context from merges, rebases, or cherry-picks, enumerate conflicted files, and apply per-file resolution strategies. This approach handles source code, tests, documentation, and lockfiles systematically.

What's the best way to handle merge conflicts in lockfiles and documentation?

Handling merge conflicts in lockfiles and documentation requires selecting targeted per-file resolution strategies based on conflict type. This ensures minimal-risk changes that preserve semantic integrity while stabilizing the branch state.

Can I use automated validation to prevent semantic regressions after resolving merge conflicts?

Yes, after resolving merge conflicts, you can run relevant validations to prevent semantic regressions. The workflow validates the final state by checking per-file changes and logging outcomes before continuing with the branch operation.

Why does git merge conflict resolution fail during complex rebases and cherry-picks?

Git merge conflict resolution fails during rebases and cherry-picks when conflict types are not properly identified and per-file strategies are mismatched. Enumerating conflicted files and applying guided workflows for code, tests, and docs stabilizes the process.

Does git conflict resolution work with update-branch failures and cherry-pick conflicts?

Yes, git conflict resolution applies to update-branch failures and cherry-pick conflicts by detecting the conflict context, selecting appropriate resolution strategies per file, and validating the final state to ensure safe continuation.

How to guide per-file conflict resolution strategies for source code and tests?

Guiding per-file conflict resolution for source code and tests involves identifying the conflict type, enumerating conflicted files, selecting a minimal-risk strategy, performing changes, and running validations to prevent semantic regressions.