Skip to content
warpdotdev avatar

Resolve Merge Conflicts

Resolves Git merge conflicts by extracting only unresolved paths, conflict hunks, and compact diffs.

CCM score
68 of 100
skills.sh installs
29.6K
GitHub stars
752
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the conflict workflow for merge, rebase, cherry-pick, and stash pop stops, starting from a summary and drilling into one file at a time
  • Includes scripts/extract_conflict_context.py with summary, per-file, all-files, JSON, and tunable context and line-limit modes
  • Shows nearby context and the ours, base, and theirs sections for each hunk, plus a compact unified diff between ours and theirs
  • Handles marker-based text conflicts and index-only add/add or modify/delete conflicts by falling back to index-stage previews

Install

$ npx -y skills add warpdotdev/common-skills --skill resolve-merge-conflicts -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Resolve Merge Conflicts

Overview

Resolve conflicts without opening full files unless the compact view is insufficient. Start with a summary, then inspect one conflicted file at a time.

Workflow

  1. Start with a summary.
python3 .agents/skills/resolve-merge-conflicts/scripts/extract_conflict_context.py

Use the summary to identify which files are unresolved, which index stages exist, and how many text hunks each file contains.

  1. Drill into one file.
python3 .agents/skills/resolve-merge-conflicts/scripts/extract_conflict_context.py --file path/to/file

Prefer this over reading the whole file. The script prints only nearby context, the ours / base / theirs sections for each hunk, and a compact unified diff between ours and theirs.

  1. Resolve the file.
  • Take one side wholesale with git checkout --ours -- path/to/file or git checkout --theirs -- path/to/file when appropriate.
  • Otherwise edit the file directly and remove the conflict markers.
  • Read more of the file only if the compact output is not enough to decide the correct merge.
  1. Re-check unresolved files.

Details

Repository
github.com/warpdotdev/common-skills
Categories
Git & Releases, Code Review & Quality
First seen
May 16, 2026

Questions

What does the resolve-merge-conflicts skill do?

It resolves Git merge conflicts by extracting only the unresolved paths, conflict hunks, and compact diffs instead of loading whole files into context. It works when a merge, rebase, cherry-pick, or stash pop stops on conflicts, or when files contain conflict markers.

How do I install the resolve-merge-conflicts skill?

Run npx -y skills add warpdotdev/common-skills --skill resolve-merge-conflicts -y in your project. After that, the agent can use the helper script to summarize conflicted files and drill into one file at a time.

Where does resolve-merge-conflicts rank in its category?

It is in the Git & Releases category and ranks in the top 10 there, alongside triage, git-guardrails-claude-code, setup-pre-commit, caveman-commit, and pr. It stands out by keeping context small, showing only nearby lines and the ours, base, and theirs sections for each hunk.

More from warpdotdev/common-skills

All 25

Similar to Resolve Merge Conflicts

More Git & Releases