warpdotdev avatar

Resolve Merge Conflicts

Instead of dumping entire conflicted files into context, this extracts only the conflict hunks with surrounding lines and a compact diff between the two sides. You run the Python script to get a summary of all unmerged paths, then drill into individual files to see just the conflicting sections. It handles both marker-based text conflicts and index-only conflicts like add/add or modify/delete. The workflow keeps context tight by resolving one file at a time, which matters when you're dealing with a messy rebase across a dozen files. Honest take: this is the kind of tooling that should have existed years ago, because loading full files to see three lines of actual conflict is wasteful.

skills.sh installs
28.8K
GitHub stars
684
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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.

Sponsors

Details

Repository
github.com/warpdotdev/common-skills
Category
Git & Pull Requests
First seen
May 16, 2026

More from warpdotdev/common-skills

All 23
1warpdotdev avatarcreate-prwarpdotdev/common-skillsCreate a pull request in the warp repository for the current branch. Use when the user mentions opening a PR, creating a pull request, submitting changes for re28.7Kskills.sh installs
2warpdotdev avatarrespond-to-pr-comments-in-blocklistwarpdotdev/common-skillsWalk users through PR review comments, fetching and displaying them first when needed, collect per-comment response decisions, apply requested fixes, and previe25.3Kskills.sh installs
3github avatarconventional-commitgithub/awesome-copilotPrompt and workflow for generating conventional commit messages using a structured XML format. Guides users to create standardized, descriptive commit messages 17.3Kskills.sh installs
4rohitg00 avatarcommit-historyrohitg00/agentmemoryList recent git commits linked to agent sessions, optionally filtered by branch or repo. Use when the user asks "show agent commits", "what has the agent shippe14.3Kskills.sh installs
5anthropics avatarcode-reviewanthropics/knowledge-work-pluginsReview code changes for security, performance, and correctness. Trigger with a PR URL or diff, "review this before I merge", "is this code safe?", or when check10.1Kskills.sh installs
6alwaysmeticulous avatarmeticulous-reviewalwaysmeticulous/skillsAnalyze a completed Meticulous test run — fetch the diff summary, inspect representative screenshots, DOM diffs, and timelines. Resolves the test run from the l8.9Kskills.sh installs