conflict-resolver

conflict-resolver is a command for Claude Code from sefaertunc/Worclaude. It costs 6 tokens per session (388 once invoked), scanned A, original, MIT.

A command that resolves Git merge conflicts on the develop branch. Merge conflicts happen when Git cannot automatically combine competing changes.

In plain words
What is it for?
Use it when a merge or synchronization leaves files marked as conflicted and containing conflict markers.
Why use it?
It helps preserve the intent of both branches and asks for a decision when their changes genuinely contradict each other.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: names the AskUserQuestion tool.

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.

agentmods
npx agentmods add commands/sefaertunc/worclaude/conflict-resolver
Clone the repo
git clone --depth 1 https://github.com/sefaertunc/Worclaude

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/sefaertunc/worclaude/conflict-resolver.svg)](https://agentmods.dev/commands/sefaertunc/worclaude/conflict-resolver)
Your own site
<a href="https://agentmods.dev/commands/sefaertunc/worclaude/conflict-resolver"><img src="https://agentmods.dev/badge/commands/sefaertunc/worclaude/conflict-resolver.svg" alt="Measured on agentmods" height="20"></a>
Per session 6 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 388 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00006 $0.00388
Opus 5 $0.00003 $0.00194
Sonnet 5 $0.00001 $0.00078
Haiku 4.5 $0.00001 $0.00039

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

Security

Grade A, and why

conflict-resolver 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 5d 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/commands/conflict-resolver.md · 55 lines

What it actually says

You are resolving merge conflicts. ONLY resolve conflicts — do not update PROGRESS.md, SPEC.md, or bump versions. That is /sync's job.

Step 1: Detect

Run: git status Identify all files with merge conflicts (listed as "both modified"). If no conflicts found, report "No conflicts detected" and stop.

Step 2: Understand

For each conflicted file:

  • Read the file and find all <<<<<<< / ======= / >>>>>>> markers
  • Understand what EACH side was trying to do
  • Check git log for both branches to understand the intent

Step 3: Resolve

For each conflict:

  • Changes in DIFFERENT parts of the code → keep both

  • Changes modify the SAME lines → combine intelligently based on intent

  • Changes truly contradict → use AskUserQuestion with three options:

    • keep A — keep the incoming branch's version
    • keep B — keep the current branch's version
    • combine — merge both intents (you describe how)

    Refuse to proceed without an answer. Never guess.

  • NEVER silently drop changes from either side

Step 4: Verify clean

Search ALL tracked files for remaining conflict markers (<<<<<<, =======, >>>>>>>). If any remain, resolve them.

Step 5: Test

Run /verify. If anything fails, fix it.

Step 6: Commit resolution only

  • git add -A
  • git commit -m "merge: resolve conflicts on develop" Use exactly this message format — no trailers or Co-Authored-By lines.

Do NOT push. Do NOT create a PR. The user will run /sync next.

Trigger Phrases

  • "resolve conflicts"
  • "fix merge conflicts"
  • "merge conflict"
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. 5d ago First seen · 55 lines · 6 tokens per session scan A 1c9183c71a62

Subscribe to this mod's changes

conflict-resolver is a command published in the GitHub repository sefaertunc/Worclaude (4 stars, last pushed 26d ago), licensed MIT. It adds 6 tokens to every session and 388 once invoked, about $0.0000 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.