Skip to content
Skillpedia
Deploy & cloud (DevOps)48k · #4009

resolving-merge-conflicts

Helps your agent resolve conflicts when code is updated. It's essential for ensuring changes are integrated correctly.

What it does

This tool helps resolve conflicts that occur when you try to merge different versions of code. It guides you to understand the changes and combine them correctly.

When to use it

  • ✓When Git warns about conflicts after trying to merge code.
  • ✓When checking which files have issues and what changed in each.
  • ✓When you need to decide which code version to keep or how to combine both.

Example of what to ask your AI

“I have Git conflicts, help me resolve them.”

Want more? Open the sections below.

How to use

The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.

Skill link

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/resolving-merge-conflicts/SKILL.md

Ready-to-paste message

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/resolving-merge-conflicts/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
How it works

The tool analyzes the current state of your code, understands the changes causing the conflict by reading messages and history, and helps you decide how to combine the parts, preserving the main goal. Then, it checks if everything still works and finalizes the process.

Installation

Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.

In the terminal (Claude Code, Codex, Cursor), in your project folder:

npx skills add sickn33/agentic-awesome-skills --skill resolving-merge-conflicts

Or download just the file:

curl -L https://raw.githubusercontent.com/sickn33/agentic-awesome-skills/main/plugins/agentic-awesome-skills-claude/skills/resolving-merge-conflicts/SKILL.md -o SKILL.md
Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

When to Use

Use when you need to resolve an in-progress git merge/rebase conflict.

  1. See the current state of the merge/rebase. Check git history, and the conflicting files.

  2. Find the primary sources for each conflict. Understand deeply why each change was made, and what the original intent was. Read the commit messages, check the PRs, check original issues/tickets.

  3. Resolve each hunk. Preserve both intents where possible. Where incompatible, pick the one matching the merge's stated goal and note the trade-off. Do not invent new behaviour. Always resolve; never --abort.

  4. Discover the project's automated checks and run them — typically typecheck, then tests, then format. Fix anything the merge broke.

  5. Finish the merge/rebase. Stage everything and commit. If rebasing, continue the rebase process until all commits are rebased.

Example

User request:

Use @resolving-merge-conflicts for this task: Use when you need to resolve an in-progress git merge/rebase conflict.

Limitations

  • Use this skill only when the task clearly matches its upstream source and local project context.
  • Verify commands, generated code, dependencies, credentials, and external service behavior before applying changes.
  • Do not treat examples as a substitute for environment-specific tests, security review, or user approval for destructive or costly actions.
FAQ

What is a merge/rebase conflict?

It's when Git cannot automatically combine two versions of code because they modified the same parts in different ways.

What does 'resolve each hunk' mean?

A 'hunk' is a block of code with changes. Resolving means deciding which version of that block to keep or how to combine both.

Why shouldn't I invent new behavior?

The goal is to merge the original intentions of the changes, not create something new. Inventing can break what already worked or go against the project's objective.

Details

Original description by the author

Use when you need to resolve an in-progress git merge/rebase conflict.

repo: sickn33/agentic-awesome-skills

Popularity

GitHub stars
48k
Ranking position
#4009
License
MIT
Updated
10/15/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills