resolving-merge-conflicts

resolving-merge-conflicts is a skill for Claude Code, Codex from axiomantic/spellbook. It costs 67 tokens per session (1,941 once invoked), scanned A, original, MIT.

A guided method for resolving conflicts when Git cannot combine changes from different branches or a rebase.

In plain words
What is it for?
It helps inspect conflicted files, understand why each change was made, and combine the changes carefully.
Why use it?
It helps preserve the intended work from both branches instead of accidentally discarding one side of the changes.

Skill for Claude CodeCodex

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

Good fit It helps inspect conflicted files, understand why each change was made, and combine the changes carefully.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/axiomantic/spellbook/resolving-merge-conflicts"><img src="https://agentmods.dev/badge/skills/axiomantic/spellbook/resolving-merge-conflicts.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,941 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00067 $0.01941
Opus 5.5 $0.00027 $0.00776
Sonnet 5.5 $0.00013 $0.00388
Haiku 4.5 $0.00007 $0.00194

Measured 1mo ago against content hash 0109bb3054d4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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 · 216 lines

How it starts

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

Merge Conflict Resolution

Invariant Principles

  1. Synthesis over selection - Never pick sides. Create third option combining both intents. --ours/--theirs = amputation.
  2. Intent preservation - Both branches represent valuable parallel work. Understand WHY each changed before touching code.
  3. Surgical precision - Line-by-line edits, never wholesale replacement. >20 line changes require explicit approval.
  4. Evidence-based decisions - Tests exist for reasons. Deleting tested code = breaking expected behavior. Check first.
  5. Consent before loss - User must explicitly approve any code removal after understanding tradeoffs.

Why Synthesis Matters

Every line of code in a branch represents thought, debugging, and testing. Choosing --ours declares the other developer's work worthless. Choosing --theirs declares the current branch's work worthless. Both branches exist because both were needed.

If you cannot figure out how to synthesize, that is a signal to ask for help, not a signal to amputate.

Inputs

Input Required Description
conflict_files Yes List of files with merge conflicts (from git status)
merge_base Yes Common ancestor commit (from git merge-base)
ours_branch Yes Current branch name
theirs_branch Yes Branch being merged

Outputs

Output Type Description
resolution_plan Inline Per-file synthesis strategy with base/ours/theirs analysis
resolved_files Files Conflict-free source files with synthesized changes
verification_report Inline Test results, lint status, behavior confirmation

Reasoning Schema

Read the full file on GitHub · 216 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. 1mo ago First seen · 216 lines · 67 tokens per session scan A 0109bb3054d4

Subscribe to this mod's changes

resolving-merge-conflicts is a skill published in the GitHub repository axiomantic/spellbook (11 stars, last pushed 4d ago), licensed MIT. It adds 67 tokens to every session and 1,941 once invoked, about $0.0003 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.

Related

Other skills, from other repositories

autofix-pr

Watch a pull request and fix it from a worktree of its own - CI failures, review feedback from trusted authors and merge conflicts are fixed, pushed to the PR branch and answered on the PR under the user's git and gh identity. Usage - /autofix-pr [ | ] [--once] [--every ] [--no-reply] [--yes] [instructions]…

QwenLM/qwen-code · 108 tokens

stuck

Diagnose frozen, stuck, or slow Qwen Code sessions on this machine. Scans for problematic processes, high CPU/memory usage, hung subprocesses, and debug logs. Use /stuck or /stuck to focus on a specific process.

QwenLM/qwen-code · 57 tokens

structured-debugging

Hypothesis-driven debugging methodology for hard bugs. Use this skill whenever you're investigating non-trivial bugs, unexpected behavior, flaky tests, or tracing issues through complex systems. Activate proactively when debugging requires more than a quick glance — especially when the first attempt at a fix didn't…

QwenLM/qwen-code · 85 tokens

repo-hygiene

Use when the scheduled repo-hygiene workflow runs from GitHub Actions (or an operator dry-run) to scan the repository for small, certain docs/test/code hygiene issues and fix them as one batched branch.

QwenLM/qwen-code · 48 tokens

create-issue

Draft and submit a GitHub issue from a user idea or bug description, with bilingual body and correct labels.

QwenLM/qwen-code · 26 tokens

test-failure-explorer

Import and query an existing Vitest 3.2 JSON report to explore test failures, file-level errors and original diagnostic evidence.

QwenLM/qwen-code · 32 tokens