resolve-conflicts

resolve-conflicts is a skill for Claude Code, Codex from fmind/dot. It costs 21 tokens per session (1,199 once invoked), scanned A, original, MIT.

A method for resolving Git merge or rebase conflicts by understanding what both versions of each file were intended to do.

In plain words
What is it for?
Use it to inspect conflicting commits and file versions, resolve the intended result, continue the merge or rebase, and rerun checks.
Why use it?
It prevents changes from being discarded blindly when two branches modify the same code or files.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to inspect conflicting commits and file versions, resolve the intended result, continue the merge or rebase, and rerun checks.

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

Made for: Claude Code, Codex.

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/fmind/dot/resolve-conflicts/github.svg)](https://agentmods.dev/skills/fmind/dot/resolve-conflicts)
Your own site
<a href="https://agentmods.dev/skills/fmind/dot/resolve-conflicts"><img src="https://agentmods.dev/badge/skills/fmind/dot/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/fmind/dot/resolve-conflicts"><img src="https://agentmods.dev/badge/skills/fmind/dot/resolve-conflicts.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,199 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.00021 $0.01199
Opus 5.5 $0.00008 $0.00480
Sonnet 5.5 $0.00004 $0.00240
Haiku 4.5 $0.00002 $0.00120

Measured 10d ago against content hash 4e340a695a18, 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 10d 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/resolve-conflicts/SKILL.md · 56 lines

How it starts

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

Resolve Conflicts

Finish a stopped git merge or git rebase by understanding what each side meant, not by picking a side. If the operation targets the wrong base or cannot safely continue, preserve existing resolutions and report the problem before an authorized abort; aborting can discard conflict-resolution work. Never "take ours" unless history shows the incoming change is obsolete.

Workflow

  1. Map the state: identify which operation stopped, the current and incoming commits, and every conflicted file before editing.
    git status --short                    # UU both modified; AU, UA, DU, UD: added or deleted on one side
    git diff --name-only --diff-filter=U
    git rev-parse -q --verify MERGE_HEAD  # merge only
    git rev-parse -q --verify REBASE_HEAD # rebase only
    
  2. Read both intents: inspect the available index stages and operation-specific history before touching a hunk. Add/delete conflicts legitimately lack one or more stages; a missing stage is evidence, not a reason to restore a deleted file. During a rebase, ours is the branch being rebased onto and theirs is the commit being replayed.
    git show :1:<file>                    # common ancestor
    git show :2:<file>                    # ours; rebase target during a rebase
    git show :3:<file>                    # theirs; replayed commit during a rebase
    git log --merge --oneline -- <file>   # both sides' commits touching the file; Git 2.45+ also covers rebase, cherry-pick, revert
    git show REBASE_HEAD -- <file>        # rebase: the commit currently being replayed
    
  3. Resolve semantically: write the code that satisfies both intents (renamed function plus new caller, both new tests, merged config keys). When intents are incompatible, keep the one matching the merge's goal and record the trade-off in the commit body. Do not invent new behavior, and remove every <<<<<<<, =======, >>>>>>> marker.
  4. Continue: stage the resolved files and resume; repeat per commit during a rebase.
    git add <file>...
    git rebase --continue   # or: git merge --continue
    
  5. Prove it: Run the repository's owning gate (e.g. mise run all); when the tree carries unrelated changes, apply the dirty-tree rule. Fix what the merge broke before pushing.
  6. Push only when already authorized: a rewritten private branch may need git push --force-with-lease; resolving conflicts alone does not authorize that history update, and never force-push a shared branch (main, or one others build on), merge into it instead.

Read the full file on GitHub · 56 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. 10d ago Changed 4e340a695a18
  2. 14d ago Changed a180c7ce5389
  3. 15d ago Changed · +1 tokens per session cf2a88feac77
  4. 17d ago Changed cf4e1e4ffd4a
  5. 23d ago Changed c462feb06167
  6. 29d ago Changed 4821ea6c5b69
  7. 1mo ago Changed · +1 lines · -20 tokens per session 920cea67a252
  8. 1mo ago Changed d96fbaa994d2
  9. 1mo ago Changed · +2 lines 056759fa1541
  10. 1mo ago First seen · 53 lines · 40 tokens per session scan A a4eb5fa21a62

Subscribe to this mod's changes

resolve-conflicts is a skill published in the GitHub repository fmind/dot (12 stars, last pushed today), licensed MIT. It adds 21 tokens to every session and 1,199 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-09-03.