resolve-merge-conflicts

Resolve git merge and rebase conflicts by tracing both sides' intent before resolving each hunk.

1|Updated Jul 13, 2026
One-click install
npx skills add https://github.com/dineshrevunuru/SuperSkills --skill resolve-merge-conflicts-dineshrevunuru
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: resolve-merge-conflicts
Source: https://github.com/dineshrevunuru/SuperSkills/tree/main/resolve-merge-conflicts
Command: npx skills add https://github.com/dineshrevunuru/SuperSkills --skill resolve-merge-conflicts-dineshrevunuru

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Blindly accepting one side of a git conflict with --theirs or --ours silently drops real fixes and features. This Skill forces you to understand both sides' intent before resolving, so no committed work vanishes during a merge or rebase. ## Core Features & Use Cases - Intent-traced resolution: Trace each conflicting hunk to its source via git log, blame, or PRs before touching it, citing evidence rather than guessing from the diff. - Conflict-class menu: Apply the right move per hunk type — regenerate lockfiles, let the formatter decide whitespace clashes, union independent edits, and pick by merge goal only for truly incompatible logic. - Rebase inversion guard: Catch the trap where --ours/--theirs swap meaning during a rebase, preventing accidental reverts of production fixes. - Use Case: While rebasing a feature branch onto main, a conflict appears in usePrice.ts. Instead of running git checkout --theirs, you trace both sides, discover main's hunk is a NaN crash fix and the feature side only changed formatting, then union both changes and verify with typecheck and tests. ## Quick Start Resolve the merge conflict in my React/TypeScript repo by reading both sides' intent first, then run typecheck and tests to confirm the resolution.

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 a git merge conflict safely?

Read both sides' intent before touching any hunk: run git status and git log --merge, trace each change to its commit or PR, then resolve per conflict class. Finish by running typecheck, tests, and lint — resolved means green, not just marker-free.

How to resolve merge conflicts in package-lock.json?

Never hand-merge a lockfile. Take either side of package-lock.json, then regenerate it from the resolved package.json by reinstalling dependencies. The same regenerate-from-source rule applies to build output and test snapshots.

What does --theirs mean during a git rebase?

During a rebase the labels invert: --ours is the branch you are rebasing onto (upstream), and --theirs is your own commits being replayed. Check git status first, because assuming theirs means the other branch silently reverts upstream fixes.

When should I use git checkout --theirs or --ours?

Only as a last resort on a hunk you have already understood, never as the opening move. Blind-accepting a side drops the other side's intent unseen, which is how production fixes silently vanish during conflict resolution.

Why does my resolved merge still fail after the conflict markers are gone?

Removing <<<<<<< markers only clears the textual conflict, not semantic breakage. A resolution is complete only when typecheck, tests, and format/lint all pass, so always run the project's checks before committing.