Skip to content
Skills Library
Programming · Building & coding

resolve-conflict

/resolve-conflict

Resolve git merge conflicts - find the conflicted files, explain both versions, combine them with the user's say-so, and finish the merge. Use when someone says "merge conflict", "both modified", or sees <<<<<<< markers.

Licence
MIT
Last repository change
11.11.2026

Assessment and security

95/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content30 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 11.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Resolve git merge conflicts - find the conflicted files, explain both versions, combine them with the user's say-so, and finish the merge. Use when someone says "merge conflict", "both modified", or sees <<<<<<< markers.

Triggers from the description

s say-so, and finish the merge. Use when someone saysboth modified
Original author description

Resolve git merge conflicts - find the conflicted files, explain both versions, combine them with the user's say-so, and finish the merge. Use when someone says "merge conflict", "both modified", or sees <<<<<<< markers.

How it works

  1. 0. Context
  2. 1. Find the conflicted files
  3. 2. Explain each one
  4. 3. Decide with the user
  5. 4. Apply it
  6. 5. Finish the merge
Original SKILL.md headings · 40 lines, 231 words
SKILL.md preview
---
name: resolve-conflict
description: Resolve git merge conflicts - find the conflicted files, explain both versions, combine them with the user's say-so, and finish the merge. Use when someone says "merge conflict", "both modified", or sees <<<<<<< markers.
---

# Resolve a merge conflict

Guide: if the repo has a CONTRIBUTING.md, the matching section is "I got a merge conflict". The steps below work without it.

## 0. Context

Confirm a merge is actually in progress: `git status` should say "You have unmerged paths". If not, there's nothing to resolve; explain what `git status` shows instead.

## 1. Find the conflicted files

```bash
git diff --name-only --diff-filter=U
```

## 2. Explain each one

Read the conflict blocks (between `<<<<<<<`, `=======` and `>>>>>>>`). Explain in plain terms what each side does. The top side is the current branch; the bottom is what's being merged in (its name is after `>>>>>>>`). `git log --oneline -3 MERGE_HEAD -- <file>` shows who changed it on the other side.

## 3. Decide with the user

Propose a combined version and show it. If it's not obvious which is right (both sides change behavior), tell them to check with the teammate who wrote the other side. Don't silently pick one.

## 4. Apply it

Remove every `<<<<<<<`, `=======` and `>>>>>>>` line, then confirm none remain:
```bash
git diff --check
```

## 5. Finish the merge

```bash
git add <file> ...
git commit --no-edit
git push
```

**Want to back out instead?** Before step 5, `git merge --abort` returns everything to how it was before the merge. Ask first; it discards any conflict fixes made so far.

Versions

The database has no other skills named resolve-conflict.

Database snapshot: 13.11.2026 · package version 69f88f9ed1c9 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100hk-merge-resolve
    Resolve merge conflicts in the current branch. Only invoke when the user explicitly runs /hk-merge-resolve. Do NOT auto-trigger on mentions of merge conflicts, conflict markers, or similar keywords.
  • 100hk-merge-resolve
    Resolve the conflicts of an in-progress merge, rebase or cherry-pick, then run the affected suite with the verify gate the entrypoint names. Triggers on: 'merge conflict', 'resolve conflicts', 'conflict markers', 'rebase conflict', or /hk-merge-resolve.
  • 96resolving-merge-conflicts
    Use when you need to resolve an in-progress git merge/rebase conflict.
  • 96resolving-merge-conflicts
    Use when you need to resolve an in-progress git merge/rebase conflict.
  • 90resolve-m-conflicts
    This skill should be used when resolving git merge conflicts. Parses conflict markers, shows clean side-by-side diffs, explains why each conflict occurred using git history, and presents resolution options via AskUserQuestion with reasoning for the recommended choice. Use this…
  • 100resolve-conflicts
    Use when the user is stuck in a merge conflict, rebase conflict, failed pull, or any git operation that left conflict markers in the working tree. Dispatches a conflict-analyzer sub-agent that classifies each conflicted hunk by confidence (auto-resolvable vs needs-human-review),…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.