resolve-conflicts

resolve-conflicts is a skill for Claude Code from mthines/agent-skills. It costs 32 tokens per session (1,734 once invoked), scanned A, original, MIT.

A guided tool for finding and resolving conflicts that happen when Git combines changes from different branches.

In plain words
What is it for?
It checks active merge or rebase conflicts, previews possible conflicts, shows differences, and asks questions when the intended result is unclear.
Why use it?
It helps you understand competing edits and decide what the final code should contain instead of resolving files blindly.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Part of the mthines-agent-skills plugin — 49 skills, 3 agents shipped together

Good fit It checks active merge or rebase conflicts, previews possible conflicts, shows differences, and asks questions when the intended result is unclear.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mthines/agent-skills/resolve-conflicts
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add mthines/agent-skills --skill resolve-conflicts
Clone the repo
git clone --depth 1 https://github.com/mthines/agent-skills

Made for: Claude Code.

Or install mthines-agent-skills, the plugin that ships this one along with the rest of its 49 skills, 3 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for resolve-conflicts

README.md
[![agentmods](https://agentmods.dev/badge/skills/mthines/agent-skills/resolve-conflicts/github.svg)](https://agentmods.dev/skills/mthines/agent-skills/resolve-conflicts)
Your own site
<a href="https://agentmods.dev/skills/mthines/agent-skills/resolve-conflicts"><img src="https://agentmods.dev/badge/skills/mthines/agent-skills/resolve-conflicts/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for resolve-conflicts

Your own site · 80×15
<a href="https://agentmods.dev/skills/mthines/agent-skills/resolve-conflicts"><img src="https://agentmods.dev/badge/skills/mthines/agent-skills/resolve-conflicts.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,734 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00032 $0.01734
Opus 5.5 $0.00013 $0.00694
Sonnet 5.5 $0.00006 $0.00347
Haiku 4.5 $0.00003 $0.00173

Measured 2mo ago against content hash c5130566a88f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

resolve-conflicts scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/delivery/resolve-conflicts/SKILL.md · 255 lines

How it starts

The opening of the file, as written. The whole thing — 255 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Resolve Git Conflicts

You are tasked with helping resolve Git merge or rebase conflicts. This command handles both active conflict states and proactive conflict preview/resolution.

Step 1: Detect Conflict State

First, determine the current state:

# Check if we're in the middle of a merge
git rev-parse --verify MERGE_HEAD 2>/dev/null && echo "MERGE_IN_PROGRESS" || echo "NO_MERGE"

# Check if we're in the middle of a rebase
test -d "$(git rev-parse --git-dir)/rebase-merge" -o -d "$(git rev-parse --git-dir)/rebase-apply" && echo "REBASE_IN_PROGRESS" || echo "NO_REBASE"

# Check for unmerged files (active conflicts)
git diff --name-only --diff-filter=U

Based on results:

  • Active merge conflict: MERGE_HEAD exists + unmerged files present
  • Active rebase conflict: rebase-merge/rebase-apply dir exists + unmerged files present
  • No active conflict: Can preview differences for potential conflicts

Step 2: Gather Context

Get Branch Information

# Current branch
git branch --show-current

# Target branch (default: main)
git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@' || echo "main"

# Fetch latest to ensure accurate comparison
git fetch origin

If Active Conflict Exists

# List all conflicted files AND capture the list now — once files are staged
# in Step 5, `--diff-filter=U` returns nothing. Step 7's merge commit message
# reads this file.
git diff --name-only --diff-filter=U | tee /tmp/conflicted.txt

# Show the conflict markers in each file
git diff --check

If No Active Conflict (Preview Mode)

# Show what would change when merging target into current
git diff origin/main...HEAD --name-status

# Show detailed diff
git diff origin/main...HEAD --stat

# Identify files modified in both branches (potential conflicts)
git log origin/main..HEAD --name-only --pretty=format: | sort -u > /tmp/head_files
git log HEAD..origin/main --name-only --pretty=format: | sort -u > /tmp/main_files
comm -12 /tmp/head_files /tmp/main_files

Read the full file on GitHub · 255 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 255 lines · 32 tokens per session scan A c5130566a88f

Subscribe to this mod's changes

resolve-conflicts is a skill published in the GitHub repository mthines/agent-skills (20 stars, last pushed 2d ago), licensed MIT. It adds 32 tokens to every session and 1,734 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

resolve-conflicts compared with skills from other repositories

resolve-conflicts next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
resolve-conflictsmthines/agent-skillsSkill202d agoMITA32Claude Code
git-workflow-and-versioningshennawardana23/skillmeSkill422d agoApache-2.0A68Claude Code
incremental-implementationshennawardana23/skillmeSkill422d agoApache-2.0A70Claude Code
codely-plan-phase-implement-githubCodelyTV/agent-harnessSkill30110d agononeA96Claude Code
codely-git-conventional-commitCodelyTV/agent-harnessSkill30110d agononeA34Claude Code
gajnsahaj/skillsSkill1071mo agononeA50Claude Code
create-draft-prjnsahaj/skillsSkill1071mo agononeA27Claude Code