resolving-merge-conflicts

resolving-merge-conflicts is a skill for Claude Code, Codex from aethrox/doctrine. It costs 97 tokens per session (1,227 once invoked), scanned A, original, MIT.

A method for resolving conflicts during a Git merge or rebase, operations that combine changes from different lines of development.

In plain words
What is it for?
It helps inspect the shared base and both changed versions before reconciling conflict markers.
Why use it?
It avoids choosing one side of a conflict blindly and preserves the intent behind both sets of changes.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the doctrine plugin — 33 skills shipped together

Good fit It helps inspect the shared base and both changed versions before reconciling conflict markers.

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

Made for: Claude Code, Codex.

Or install doctrine, the plugin that ships this one along with the rest of its 33 skills.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/aethrox/doctrine/resolving-merge-conflicts.svg)](https://agentmods.dev/skills/aethrox/doctrine/resolving-merge-conflicts)
Your own site
<a href="https://agentmods.dev/skills/aethrox/doctrine/resolving-merge-conflicts"><img src="https://agentmods.dev/badge/skills/aethrox/doctrine/resolving-merge-conflicts.svg" alt="Measured on agentmods" height="20"></a>
Per session 97 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,227 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.00097 $0.01227
Opus 5 $0.00048 $0.00613
Sonnet 5 $0.00019 $0.00245
Haiku 4.5 $0.00010 $0.00123

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

Security

Grade A, and why

resolving-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 8d 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/resolving-merge-conflicts/SKILL.md · 58 lines

How it starts

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

Resolving Merge Conflicts

A conflict marker is not a text diff to eyeball into agreement; it's two commits that each changed the same region of a file since their shared ancestor, and git can't tell which change should win because it doesn't know what either side was trying to accomplish. Resolving it means tracing each side back to its actual intent and reconciling those intents, not picking whichever half of the marker looks less broken.

Phase 1: Understand what's actually being compared

Git's three-way merge compares three points: the merge base (the last common ancestor), HEAD (the current branch's state), and the incoming branch's state. A conflict fires specifically where both sides changed the same region relative to that shared base; git applies both sets of changes automatically everywhere they don't overlap, and only asks a human where they do.

Before resolving anything, identify all three for the conflicting hunk: what did the base look like, what did HEAD do to it, what did the incoming side do to it. A resolution written by comparing only the two conflicting sides, without the base, is missing the information that explains why they diverged.

Phase 2: Resolve hunk by hunk, by intent

For each conflict marker:

  1. Read both sides' actual commits that touched this region (the commit message, and the rest of that commit's diff) to understand what each side was trying to achieve, not just what the raw conflicting lines say.
  2. Determine whether the two intents are compatible (both can be kept, combined) or genuinely contradictory (only one can stand, or a third resolution is needed that satisfies the goal behind both).
  3. Write the resolution to satisfy both intents where possible. A resolution that keeps one side's text while silently dropping the behavior the other side's commit existed to add is not a resolution; it's a regression wearing the shape of one.
  4. Move to the next hunk. Resolve one conflict region at a time rather than skimming the whole file and guessing at a combined result; the intent-tracing in step 1 only works region by region.

Read the full file on GitHub · 58 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 8d ago First seen · 58 lines · 97 tokens per session scan A 7ec57db91470

Subscribe to this mod's changes

resolving-merge-conflicts is a skill published in the GitHub repository aethrox/doctrine (18 stars, last pushed 27d ago), licensed MIT. It adds 97 tokens to every session and 1,227 once invoked, about $0.0005 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-30.

Related

Other skills, from other repositories

finishing-a-development-branch

Use when implementation is complete, all tests pass, and you need to decide how to integrate the work.

obra/superpowers · 27 tokens

ce-commit

Create a git commit with a clear, value-communicating message. Use when the user asks to commit/save staged or unstaged changes with a repo-appropriate message.

EveryInc/compound-engineering-plugin · 38 tokens

release-changelog-harness

Chooses ecosystem-native release and changelog tooling (Changesets, Melos, release-plz) plus binary distribution (GitHub Release tarballs, install.sh) when the product is an executable. Use for release CI, install.sh, versioning, CHANGELOGs, shipping MCP/CLI without clone, or meta repos that only ship skills via npx…

Arenukvern/mcp_flutter · 84 tokens

polish-docs-meta

Finalize documentation and project metadata for a ship-ready release. Use after implementation is complete, tests pass, and devcheck is clean. Safe to run at any stage — each step checks current state and only acts on what still needs work.

cyanheads/git-mcp-server · 53 tokens

github-via-nyxid

Operate a user's GitHub account through NyxID's credential-brokering proxy (service slug api-github) — read and write repositories, files, issues, pull requests, commits, branches, Actions, gists and anything else the GitHub REST API exposes, all on the user's behalf and without ever handling a raw token. NyxID…

ChronoAIProject/NyxID · 116 tokens

git-workflow

Git best practices for version control and collaboration.

athola/skrills · 12 tokens