merge-conflict

merge-conflict is a skill for Claude Code from KhaledSaeed18/dotclaude. It costs 60 tokens per session (1,251 once invoked), scanned A, original, MIT.

A Git conflict-resolution guide for merges, rebases, cherry-picks, reverts, and stashes. A conflict happens when Git cannot combine competing changes automatically.

In plain words
What is it for?
Use it when Git reports conflicts or files that need merging. It explains which side is which for the current operation and guides resolution and verification.
Why use it?
It helps preserve the purpose of both sides of a change instead of choosing one blindly, then checks that the result still builds and passes tests.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the git plugin — 9 skills, 1 command shipped together

Good fit Use it when Git reports conflicts or files that need merging. It explains which side is which for the current operation and guides resolution and verification.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/khaledsaeed18/dotclaude/merge-conflict
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 KhaledSaeed18/dotclaude --skill merge-conflict
Clone the repo
git clone --depth 1 https://github.com/KhaledSaeed18/dotclaude

Made for: Claude Code.

Or install git, the plugin that ships this one along with the rest of its 9 skills, 1 command.

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 merge-conflict

README.md
[![agentmods](https://agentmods.dev/badge/skills/khaledsaeed18/dotclaude/merge-conflict/github.svg)](https://agentmods.dev/skills/khaledsaeed18/dotclaude/merge-conflict)
Your own site
<a href="https://agentmods.dev/skills/khaledsaeed18/dotclaude/merge-conflict"><img src="https://agentmods.dev/badge/skills/khaledsaeed18/dotclaude/merge-conflict/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 merge-conflict

Your own site · 80×15
<a href="https://agentmods.dev/skills/khaledsaeed18/dotclaude/merge-conflict"><img src="https://agentmods.dev/badge/skills/khaledsaeed18/dotclaude/merge-conflict.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,251 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.00060 $0.01251
Opus 5 $0.00030 $0.00626
Sonnet 5 $0.00012 $0.00250
Haiku 4.5 $0.00006 $0.00125

Measured 9d ago against content hash a3e2004063c3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

merge-conflict 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 9d 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.

.claude-plugin/plugins/git/skills/merge-conflict/SKILL.md · 75 lines

How it starts

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

Resolve conflicts by integrating the intent of both sides, never by blindly picking one or deleting code you don't understand. Work from the actual conflict, the operation that produced it, and the history behind each side.

Hard rules: never break these

  • Understand before you resolve. Read what each side was trying to do (the commits, the surrounding code) before editing a single marker. A "resolved" conflict that drops one side's intent is a silent bug, not a fix.
  • Never reflexively accept --ours or --theirs. Whole-file side-picking is almost always wrong and discards real work. Resolve hunk by hunk.
  • Know which side is which. It flips by operation. In a merge, ours = the branch you're on, theirs = the branch being merged. In a rebase, it's reversed: ours = the branch you're replaying onto (upstream), theirs = your commits being replayed. Confirm before using either.
  • Verify after resolving. The merge succeeding means the markers are gone, not that the code is correct. Build, lint, and run tests before you consider it done.
  • Don't commit a half-resolved or unverified state, and confirm before finalizing (commit / --continue) or aborting.
  • When in doubt, it's safe to bail. Conflicts are recoverable: git merge --abort / git rebase --abort / git cherry-pick --abort returns you to where you started. Prefer that over guessing.

Step 1: Identify the operation in progress

The right "continue" and "abort" commands depend on what's running. Check first:

  • git status: it names the operation ("You have unmerged paths", "interactive rebase in progress", "cherry-pick in progress", etc.) and lists conflicted files.
  • Operation → continue / abort:
    • mergegit merge --continue / git merge --abort
    • rebasegit rebase --continue / git rebase --abort (or --skip to drop the current commit)
    • cherry-pickgit cherry-pick --continue / --abort
    • revertgit revert --continue / --abort
    • stash pop → resolve, then the stash stays in the list until you git stash drop

Read the full file on GitHub · 75 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. 9d ago First seen · 75 lines · 60 tokens per session scan A a3e2004063c3

Subscribe to this mod's changes

merge-conflict is a skill published in the GitHub repository KhaledSaeed18/dotclaude (5 stars, last pushed yesterday), licensed MIT. It adds 60 tokens to every session and 1,251 once invoked, about $0.0003 per session on Opus 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

Other skills, from other repositories

pre-publish-review

Nuclear-grade 12-agent pre-publish release gate. Runs /get-unpublished-changes to detect all changes since last npm release, spawns up to 10 ultrabrain agents for deep per-change analysis, invokes /review-work (orchestrator manual QA plus one gate reviewer) for holistic review, and 1 oracle for overall release…

code-yeongyu/oh-my-openagent · 161 tokens

publish

Publish oh-my-opencode to npm by triggering the GitHub Actions publish workflow and verifying its artifacts. Ship-only: never runs pre-publish-review or re-reviews merged code unless the user explicitly asks. Argument: . Triggers: publish, release, deploy, npm publish.

code-yeongyu/oh-my-openagent · 68 tokens

work-with-pr

Full PR lifecycle in a fresh task-owned git worktree: implement via the ulw-loop skill with mandatory evidence-bound manual QA → reviewer-readable English PR → verification loop (CI + Cubic, where Cubic is skipped only when its quota is exhausted) → merge by default → worktree cleanup. Decomposes one task into the…

code-yeongyu/oh-my-openagent · 211 tokens

lcx-contribute-bug-fix

Contribute a verified bug fix for LazyCodex, lazycodex-ai, omo-codex, bundled Codex skills, or upstream Codex CLI bugs. Opens a fork PR only for upstream openai/codex; LazyCodex-owned defects become a verified-fix issue on code-yeongyu/lazycodex (never a PR — that repo is a generated distribution mirror). Use when the…

code-yeongyu/oh-my-openagent · 129 tokens

git-master

Handles git work: atomic commits, rebase, squash, blame, bisect, reflog, and history questions. Use whenever a task needs a commit or a git-history investigation; skip for ordinary code edits.

code-yeongyu/oh-my-openagent · 46 tokens

get-unpublished-changes

Compare HEAD with the latest published npm versions and list all unpublished changes by release layer. Triggers: unpublished changes, changelog, what changed, whats new.

code-yeongyu/oh-my-openagent · 38 tokens