resolving-merge-conflicts

Resolves in-progress git merge and rebase conflicts by analyzing commit intent.

Updated Aug 11, 2026
One-click install
npx skills add https://github.com/Kunj-Sharma03/agent-contextify --skill resolving-merge-conflicts-kunj-sharma03
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: resolving-merge-conflicts
Source: https://github.com/Kunj-Sharma03/agent-contextify/tree/main/skills-main/skills/engineering/resolving-merge-conflicts
Command: npx skills add https://github.com/Kunj-Sharma03/agent-contextify --skill resolving-merge-conflicts-kunj-sharma03

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Merge and rebase conflicts interrupt development and are often resolved hastily, losing one side's intent or introducing broken code. This Skill provides a disciplined workflow for understanding each conflict's origin and resolving it correctly. ## Core Features & Use Cases - Conflict Investigation: Inspects the current merge/rebase state, git history, and conflicting files to understand what is happening. - Intent-Preserving Resolution: Traces each change back to commits, PRs, and original issues so both intents are preserved where possible, with trade-offs documented when they are incompatible. - Verification and Completion: Runs the project's automated checks (typecheck, tests, format) after resolving, then stages, commits, and continues the rebase to completion. - Use Case: You are mid-rebase of a long-lived feature branch onto main and hit conflicts in five files. The Skill walks through each hunk, checks the original PRs for intent, resolves them, runs the test suite, and finishes the rebase. ## Quick Start Resolve the current in-progress git merge conflict in my repository, preserving the intent of both branches, then run the project checks and finish the merge.

Frequently Asked Questions about resolving-merge-conflicts

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

FAQPage Schema
How do I resolve a git merge conflict without losing changes?

Inspect the conflicting files and git history first, then trace each change to its commit message, PR, or original issue to understand intent. Resolve each hunk preserving both intents where possible, and run the project's typecheck and tests before committing.

How to continue a rebase after fixing conflicts?

After resolving each conflicting hunk, stage the fixed files and continue the rebase process until all commits are rebased. Run the project's automated checks such as typecheck and tests before finishing to catch anything the merge broke.

Should I ever use git merge --abort when conflicts get messy?

This workflow explicitly avoids aborting and always resolves the conflict in place. The reasoning is that conflicts contain real intent from both sides that must be understood and preserved rather than discarded.

What should I check before committing a resolved merge?

Discover the project's automated checks and run them in order, typically typecheck first, then tests, then formatting. Fix anything the merge broke, then stage everything and commit to finish the merge or rebase.

When should I not use an automated merge conflict resolution workflow?

Avoid it when you lack access to the original context such as commit messages, PRs, or tickets, since resolving without understanding intent risks silently dropping behavior. In those cases, consult the original authors before resolving.