resolve-merge-conflicts

Extract unresolved conflict hunks and per-file diffs from Git operations.

64.1k|5.4k|Updated Jul 8, 2021
One-click install
npx skills add https://github.com/warpdotdev/warp --skill resolve-merge-conflicts-warpdotdev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: resolve-merge-conflicts
Source: https://github.com/warpdotdev/warp/tree/main/.agents/skills/resolve-merge-conflicts
Command: npx skills add https://github.com/warpdotdev/warp --skill resolve-merge-conflicts-warpdotdev

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

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

Core Features & Use Cases

  • Extract conflict context without loading entire files.
  • Generate per-file conflict hunks and compact diffs for quick triage during git operations.
  • Suitable for merges, rebases, cherry-picks, or stash pops when conflicts arise.

Quick Start

Run the provided script to generate a concise conflict report for your repository.

Frequently Asked Questions about resolve-merge-conflicts

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

FAQPage Schema
How do I resolve Git merge conflicts without loading full files into my review context?

To resolve Git merge conflicts without loading full files, you can extract only unresolved conflict context using a script that parses conflict markers. This delivers per-file compact diffs and staged information for efficient triage.

Can I extract conflict hunks during a Git rebase or cherry-pick?

Yes, you can extract conflict hunks during Git rebases, cherry-picks, merges, or stash pops. The process queries Git for unmerged paths and parses conflict markers to isolate the necessary conflict context.

What is the best way to triage unmerged paths in Git?

The best way to triage unmerged paths in Git is by generating a concise conflict report that extracts per-file conflict hunks. This avoids opening full files and provides structured data for quick review.

Does resolving Git merge conflicts with compact diffs require any dependencies?

Resolving Git merge conflicts with compact diffs requires Python-based scripts to parse conflict markers and query Git for index and worktree states. No additional external dependencies are needed.

Why should I use compact diffs for merge conflict resolution?

You should use compact diffs for merge conflict resolution to avoid loading entire files into your review context. This approach provides a summary of unmerged paths, allowing you to inspect one conflicted file at a time efficiently.

When do I need to parse conflict markers in Git?

You need to parse conflict markers in Git when unmerged paths or conflict hunks exist after operations like merges, rebases, cherry-picks, or stash pops, allowing you to extract structured data for resolution.