merge-conflicts

merge-conflicts is a skill for Claude Code, Codex from event4u-app/agent-config. It costs 29 tokens per session (2,444 once invoked), scanned A, original, MIT.

A set of instructions for resolving Git merge conflicts, which happen when two branches change overlapping parts of a project. It explains how to classify conflicts before choosing a resolution.

In plain words
What is it for?
Use it during merges, rebases, branch updates, or review preparation when conflicts appear, especially when generated files are involved.
Why use it?
It helps avoid treating generated files and human-authored files the same way. That reduces the risk of hand-editing generated output into a state that matches neither branch.

Skill for Claude CodeCodex

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

Good fit Use it during merges, rebases, branch updates, or review preparation when conflicts appear, especially when generated files are involved.

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

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/event4u-app/agent-config/merge-conflicts/github.svg)](https://agentmods.dev/skills/event4u-app/agent-config/merge-conflicts)
Your own site
<a href="https://agentmods.dev/skills/event4u-app/agent-config/merge-conflicts"><img src="https://agentmods.dev/badge/skills/event4u-app/agent-config/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/event4u-app/agent-config/merge-conflicts"><img src="https://agentmods.dev/badge/skills/event4u-app/agent-config/merge-conflicts.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,444 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 warn 7 Sept 2026
SkillSpector: 2 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 154
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
  • medium Excessive Agency · line 255
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
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.00029 $0.02444
Opus 5 $0.00015 $0.01222
Sonnet 5 $0.00006 $0.00489
Haiku 4.5 $0.00003 $0.00244

Measured 8d ago against content hash 730d6d9828a5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, 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 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.

src/skills/merge-conflicts/SKILL.md · 256 lines

How it starts

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

merge-conflicts

When to use

Use this skill when:

  • A merge or rebase produces conflicts
  • The user asks to "resolve conflicts", "fix merge", or "update branch"
  • CI fails because the branch is behind main
  • The prepare-for-review command encounters conflicts

Procedure: Resolve merge conflicts

0. Classify before resolving — and never start in the GitHub web editor

A CONFLICTING PR is not a signal to open the web editor. The web editor cannot tell generated from authored, so it presents a mechanical regeneration and a real human decision as the same three-way merge — which is how a generated file gets hand-merged into a state matching neither branch.

So classify locally first, before resolving anything. Sort every conflicted path into three classes, because the correct resolution differs per class and only one of them is a judgement call:

Class What it is Resolution
generated a build output, an index, a compiled manifest — anything a generator writes from a source in the tree re-run the generator. Never mix hunks, and note that a clean auto-merge of a generated file is still wrong: it can produce a file matching neither branch
remeasured a baseline, budget, or ratchet number a CI gate compares against re-run the measurement on the merged tree and record what it says. Two branches legitimately measured two different trees, so there is no side to take — and picking one is how a ratchet silently loosens
authored prose, source, config a human wrote a human decision — read both sides. This is what the rest of this skill is about

Getting the class wrong is the expensive direction: hand-merging a generated file, or picking a side on a measured one, both produce a plausible-looking file that no branch ever had. If the project ships a tool that does this classification, run it before touching the conflict; where it does not, the three-way sort above is still the first step.

This is a checklist item, not a gate — nothing enforces it (road-to-merge-hotspot-drawdown 4.3).

Read the full file on GitHub · 256 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. 8d ago First seen · 256 lines · 29 tokens per session scan A 730d6d9828a5

Subscribe to this mod's changes

merge-conflicts is a skill published in the GitHub repository event4u-app/agent-config (10 stars, last pushed today), licensed MIT. It adds 29 tokens to every session and 2,444 once invoked, about $0.0001 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-09-04.

Related

Other skills, from other repositories

git-advanced-workflows

Master advanced Git workflows including rebasing, cherry-picking, bisect, worktrees, and reflog to maintain clean history and recover from any situation. Use when managing complex Git histories, collaborating on feature branches, or troubleshooting repository issues.

wshobson/agents · 54 tokens

odh-llm-d-release

Orchestrate the opendatahub-io release for all llm-d components in one cycle. Collects upstream(llm-d) versions, auto-discovers the release tracker issue, then spawns parallel sub-agents — one per component (release branch, Konflux onboarder workflow, PR validation, approve+merge, Quay image verify, GitHub draft…

opendatahub-io/ai-helpers · 124 tokens

pr-jira-linker

Find and link Jira issues to PRs/MRs that are missing Jira references. Supports single PR/MR linking and batch audit of configured repos. Use when the user mentions "link PR to Jira", "scan PRs", "PR audit", "MR missing Jira", "link merge request", or wants to connect code changes to Jira for traceability.

opendatahub-io/ai-helpers · 77 tokens

gist-upload

Use this skill to upload a summary or plan from the current conversation as a GitHub Gist using the gh CLI.

opendatahub-io/ai-helpers · 29 tokens

appstore-archive-uploader

App Store IPA/PKG archives: set version/build numbers, archive, export, upload, or publish with asc xcode before TestFlight/App Store submission.

Xopoko/build-swift-apps · 41 tokens

vllm-backport-push-report

Push a triage report to GitHub under a timestamped directory in reports/. Use after the agent writes the report markdown and has ranked.json ready. Outputs the report URL to stdout.

opendatahub-io/ai-helpers · 46 tokens