merge-conflicts

merge-conflicts is a skill for Claude Code from kBashar/myagentskills. It costs 50 tokens per session (1,706 once invoked), scanned A, original, Apache-2.0.

A read-only report of the conflicts that would occur when merging two Git branches. Git branches are separate lines of development; the report also shows where each conflicting change came from and what keeping either or both sides would do.

In plain words
What is it for?
Use it to preview conflicts, identify the commits or people behind conflicting lines, and compare possible resolutions.
Why use it?
It lets you understand a merge before changing the repository. The analysis leaves files, branches, the staging area, and the current commit unchanged.

Skill for Claude Code

Written for Claude Code: disallowed-tools in frontmatter. Also seen: names the NotebookEdit tool; mentions Claude Code.

Good fit Use it to preview conflicts, identify the commits or people behind conflicting lines, and compare possible resolutions.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/kbashar/myagentskills/merge-conflicts"><img src="https://agentmods.dev/badge/skills/kbashar/myagentskills/merge-conflicts.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,706 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.00050 $0.01706
Opus 5.5 $0.00020 $0.00682
Sonnet 5.5 $0.00010 $0.00341
Haiku 4.5 $0.00005 $0.00171

Measured 23d ago against content hash 38e50ba50b7c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

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 23d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/conflicts.sh, scripts/render.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

merge-conflicts/SKILL.md · 90 lines

How it starts

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

merge-conflicts

Overview

Report every conflict a merge of two branches would produce, where each side came from, and what each resolution does — as a page in the browser plus a short overview in the chat. Analysis only: the repository must be byte-for-byte unchanged afterwards — same files, index, branches, and HEAD. The one file the skill writes is the report page, which render.sh puts in ${TMPDIR:-/tmp}/merge-conflicts/, outside the repository.

Inputs

Two branches. <first> receives the merge, <second> merges into it ("merge feature/login into main" → first = main, second = feature/login). Remote refs such as origin/main work as given. If only one branch is named, <first> is the current branch (git branch --show-current) — say so in the report. If the direction is unclear, ask.

Read-only rule

Use only these git subcommands: merge-tree, merge-base, log, show, blame, diff, grep, rev-parse, cat-file, branch --show-current. Use Read/Grep/Glob freely. Run the two bundled scripts with bash.

If you need information that only another command gives (fetch, checkout, merge, stash, …), stop and ask the user, naming the command and why. Analyze the local refs as they are; the report header shows which commits you analyzed.

Workflow

  1. Collect the facts. Run the script from the target repo (scripts/ is in this skill's directory). Pass repo-dir only when the repo is elsewhere, as an absolute path:

    bash scripts/conflicts.sh <first> <second> [repo-dir]
    

    Exit 2 = bad input (message says which); exit 3 = git older than 2.38. Show the message and stop. CONFLICTED_FILES=0 = clean merge; report that and stop.

    Each conflict starts with --- CONFLICT <n>:; <n> numbers the conflicts across the whole report. Per conflicted file the output gives TYPE and the COMMITS on each side since the merge base; per conflict, the diff3 text (sections labelled with the branch names) plus a BLAME of each side's lines. ^<sha> in a blame line = unchanged since the merge base, not part of that side's change.

Read the full file on GitHub · 90 lines

Files

What ships with it

3 files 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. 23d ago First seen · 90 lines · 50 tokens per session scan A 38e50ba50b7c

Subscribe to this mod's changes

merge-conflicts is a skill published in the GitHub repository kBashar/myagentskills (2 stars, last pushed 2d ago), licensed Apache-2.0. It adds 50 tokens to every session and 1,706 once invoked, about $0.0002 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-10-07.