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
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.pywith summary, per-file, all-files, JSON, and tunable context and line-limit modes - Shows nearby context and the
ours,base, andtheirssections for each hunk, plus a compact unified diff betweenoursandtheirs - 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 -yInstalls 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
- 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.
- 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.
- Resolve the file.
- Take one side wholesale with
git checkout --ours -- path/to/fileorgit checkout --theirs -- path/to/filewhen 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.
- 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- Fix Errors29.5K
- Implement Specs29.4K
- Create Pr29.4K
- Update Skill29.3K
- Diagnose Ci Failures29.3K
- Pr Walkthrough29.1K
- Brandalf29K
- Council28.9K
- Check Impl Against Spec27.9K
- Reproduce Bug Report27.7K
- Respond To Pr Comments In Blocklist26K
- Validate Changes Match Specs26K
- Cross Critique22.9K
- Research22.8K
- Saga21.6K
- Write Feature Docs20.1K
- Scan New Specs20K
- Readout18.5K
- Complain14.9K
- Suggestion Box14.9K
- Review Pr29.9K
- Write Product Spec29.7K
- Spec Driven Implementation29.7K
- Write Tech Spec29.6K
Similar to Resolve Merge Conflicts
More Git & ReleasesGitwandMCP serverdevlint200 starsAuto-resolves Git merge conflicts and gives agents access to the remaining complex hunks.
pull-changes-resolve-conflictsSkillcognitedata/builder-skills1.9K installsStructured workflow that pauses at merge conflicts and requires user approval before resolving them.
fix-merge-conflictsSkillcursor/plugins3K installsResolves merge conflicts non-interactively, then validates the build, tests, and final staged state.
git-advanced-workflowsSkillsickn33/agentic-awesome-skills349 installsAdvanced Git techniques for rewriting history, cherry-picking, bisecting, worktrees, and recovering lost work.
resolve-conflictsSkilltailcallhq/forgecode690 installsStructured workflow for resolving Git merge conflicts that plans before changing anything, then executes after approval.