resolve-conflicts

Resolve in-progress Git merge, rebase, cherry-pick, and revert conflicts per file.

4|Updated Feb 9, 2021
One-click install
npx skills add https://github.com/breengles/poor-man-OS-setup --skill resolve-conflicts-breengles
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: resolve-conflicts
Source: https://github.com/breengles/poor-man-OS-setup/tree/main/.claude/skills/resolve-conflicts
Command: npx skills add https://github.com/breengles/poor-man-OS-setup --skill resolve-conflicts-breengles

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you correctly resolve in-progress Git merge, rebase, cherry-pick, or revert conflicts without accidentally choosing the wrong “ours” vs “theirs” side.

Core Features & Use Cases

  • Operation-aware framing: Detects whether you’re in a merge, rebase, cherry-pick, or revert and explains how “ours” and “theirs” flip for rebase so decisions match the operation.
  • Conflict inventory and intent analysis: Lists conflicted paths and guides you to read full file context and inspect commit history to understand why each side changed things.
  • Per-file safe resolution and verification: Removes conflict markers by taking the correct side or manually combining content, then validates via build, type checks, lint/format, and tests before finalizing the operation.

Quick Start

Use the resolve-conflicts skill to inspect the current Git operation, identify all conflicted files (or those in a given path), resolve each conflict with the correct side semantics, and run the project’s verification steps before continuing the operation.

Frequently Asked Questions about resolve-conflicts

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

FAQPage Schema
How do I resolve git merge conflicts correctly without picking the wrong side?

To resolve git merge conflicts correctly, analyze the operation context and conflict intent per file, determine “ours” vs “theirs” accurately, remove markers, stage resolved paths, and verify with build and tests before continuing.

Why does “ours” and “theirs” flip during a git rebase conflict?

During a git rebase conflict, “ours” and “theirs” flip because the branch being rebased onto becomes the current base, making operation-aware framing essential to ensure your decisions match the specific git operation in progress.

What's the best way to handle cherry-pick conflicts file by file in git?

The best way to handle cherry-pick conflicts is to list conflicted paths, inspect the conflicting file context and related commits, resolve each file by taking the correct side or combining content, and run verification steps before continuing safely.

Can I limit conflict resolution to a specific file or directory during a git rebase?

Yes, you can limit conflict resolution to a specific file or directory during an active git rebase by optionally providing a path, allowing the resolution process to focus only on the conflicted files within that scope.

How do I verify git conflict resolution is safe before continuing a revert operation?

To verify git conflict resolution is safe before continuing a revert, remove all conflict markers, stage only the resolved paths, and run the project's build, type checks, lint, format, and tests to ensure nothing is broken.

When should I skip a conflicted file instead of resolving it during a git merge?

You should skip a conflicted file during a git merge when the conflict cannot be safely resolved by choosing a side or combining content, allowing you to continue the operation safely without staging that unresolved path.