fix-merge-conflicts

fix-merge-conflicts is a skill for Claude Code from Yeachan-Heo/oh-my-claudecode. It costs 44 tokens per session (924 once invoked), scanned A, original, MIT.

A workflow for resolving Git merge conflicts, which happen when two branches change the same code in incompatible ways. It reads the commits behind both sides, preserves both intended changes, and checks the combined result.

In plain words
What is it for?
Use it when integrating a branch with an updated base produces conflicts. It handles the resolution on an owned branch and avoids force-pushing shared branches.
Why use it?
A conflict can appear resolved while silently discarding one branch's purpose. Looking at the commits, rather than only the conflict markers, helps retain both sides' intent.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the oh-my-claudecode plugin — 84 skills, 21 commands, 19 agents, 11 hooks, 1 MCP server shipped together

Good fit Use it when integrating a branch with an updated base produces conflicts. It handles the resolution on an owned branch and avoids force-pushing shared branches.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yeachan-heo/oh-my-claudecode/fix-merge-conflicts
About the project

Oh My Claude Code is a multi-agent orchestration system for Claude Code, coordinating specialized agents, commands, skills, hooks, and workflows. It is designed for developers who want Claude Code to handle coding tasks through coordinated agent roles. Catalogue entries are components of its Claude Code workflow, including agents, commands, skills, hooks, instructions, MCP configuration, and a plugin.

Yeachan-Heo/oh-my-claudecode · 41,123 stars · on GitHub · oh-my-claudecode.dev

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 Yeachan-Heo/oh-my-claudecode --skill fix-merge-conflicts
Clone the repo
git clone --depth 1 https://github.com/Yeachan-Heo/oh-my-claudecode

Made for: Claude Code.

Or install oh-my-claudecode, the plugin that ships this one along with the rest of its 84 skills, 21 commands, 19 agents, 11 hooks, 1 MCP server.

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 fix-merge-conflicts

README.md
[![agentmods](https://agentmods.dev/badge/skills/yeachan-heo/oh-my-claudecode/fix-merge-conflicts/github.svg)](https://agentmods.dev/skills/yeachan-heo/oh-my-claudecode/fix-merge-conflicts)
Your own site
<a href="https://agentmods.dev/skills/yeachan-heo/oh-my-claudecode/fix-merge-conflicts"><img src="https://agentmods.dev/badge/skills/yeachan-heo/oh-my-claudecode/fix-merge-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 fix-merge-conflicts

Your own site · 80×15
<a href="https://agentmods.dev/skills/yeachan-heo/oh-my-claudecode/fix-merge-conflicts"><img src="https://agentmods.dev/badge/skills/yeachan-heo/oh-my-claudecode/fix-merge-conflicts.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 924 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.
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.00044 $0.00924
Opus 5.5 $0.00018 $0.00370
Sonnet 5.5 $0.00009 $0.00185
Haiku 4.5 $0.00004 $0.00092

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

Security

Grade A, and why

fix-merge-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 22d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

skills/fix-merge-conflicts/SKILL.md · 73 lines

How it starts

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

Fix Merge Conflicts

A conflict is two intents meeting in one file. Resolution that flattens either intent is a bug with a clean git status.

Workflow

  1. Establish ownership: you resolve conflicts on a branch you own, against a base others own. Conflicts on a shared branch get reported to the owner, not resolved unilaterally.
  2. Start the approved integration first: fetch the remote base (git fetch origin <base>) and merge the fetched SHA — git merge FETCH_HEAD (or the project's rebase convention, when the caller has not constrained it) — so the conflicts you inspect match what GitHub reported; a local base ref can be absent or behind origin/<base>, and git merge never refreshes it implicitly. A mergeable: conflicting answer from the remote, or a clean local branch, has no MERGE_HEAD — git log --merge before integrating exits 128.
  3. Read both intents: git log --merge -p -- <file> for each conflicted file once the merge is in progress — what did each side change and why (commit messages are evidence). Conflict markers show the what; the commits show the why. On the rebase path there is no MERGE_HEAD — git log --merge reads nothing there; read the topic side with git show REBASE_HEAD -- <file> (the dotted range REBASE_HEAD..HEAD excludes the topic commit itself, so it shows only the base side) and the base side with git log -p HEAD -- <file> until the rebase continues. When the caller forbids starting an integration at all (e.g. read-only inspection), compare explicit ranges instead: git log -p <base>...HEAD -- <file>.
  4. Resolve: the default is both-intent-preserving — base side's change and branch side's change both survive, composed. When the intents are genuinely incompatible, the base (upstream) intent wins on shared surfaces and the branch adapts, and the override is reported with its reason.
  5. Validate: run the project's checks (build/test/lint at minimum) on the resolved tree. A resolution that compiles but breaks a test took the wrong side somewhere. If intent analysis, resolution, or validation cannot complete after a merge starts, run git merge --abort; after a rebase starts, run git rebase --abort. If abort is unsafe or unavailable, stop and hand off the repository with the active MERGE_HEAD/REBASE_HEAD and conflict list explicitly reported.
  6. Finalize: for a rebase, stage each resolved file and run git rebase --continue repeatedly until git status shows no active rebase. Validate that final tree before pushing. Then commit the resolution with a message naming what each side wanted. No force-push to shared branches, ever; a rebased own-branch uses --force-with-lease — unless a caller (e.g. babysit) forbids rebase and force-push entirely, in which case merge-commit resolution is the only path.

Read the full file on GitHub · 73 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. 22d ago First seen · 73 lines · 44 tokens per session scan A f77910270dc8

Subscribe to this mod's changes

fix-merge-conflicts is a skill published in the GitHub repository Yeachan-Heo/oh-my-claudecode (41,123 stars, last pushed today), licensed MIT. It adds 44 tokens to every session and 924 once invoked, about $0.0002 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-11-08.

Related

fix-merge-conflicts compared with skills from other repositories

fix-merge-conflicts next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
fix-merge-conflictsYeachan-Heo/oh-my-claudecodeSkill41ktodayMITA44Claude Code
code-retromartinffx/atelierSkill532d agoMITA61Claude Code, Codex
code-commitmartinffx/atelierSkill532d agoMITA62Claude Code
spec-finishmartinffx/atelierSkill532d agoMITA73Claude Code
spec-loopmartinffx/atelierSkill532d agoMITA66Claude Code
code-pull-requestmartinffx/atelierSkill532d agoMITA84Claude Code
merge-agentEZotoff/ez-omo-configSkill61mo agoMITA0Claude Code, Codex