merge-conflict-analysis

merge-conflict-analysis is a command for GitHub Copilot from rjmurillo/ai-agents. It costs 0 tokens per session (944 once invoked), scanned A, original, MIT.

A command for analyzing merge conflicts in a pull request. A merge conflict happens when two branches change the same code in incompatible ways and Git cannot combine them automatically.

In plain words
What is it for?
Use it to examine blocked files, conflict markers, and related commits before deciding how to resolve a pull-request conflict.
Why use it?
It uses the conflicting text and recent commit history to infer what each branch intended. This gives reviewers a reasoned basis for choosing a resolution when automatic merging has failed.

Command for GitHub Copilot

Written for GitHub Copilot: a Copilot chat mode or prompt.

Good fit Use it to examine blocked files, conflict markers, and related commits before deciding how to resolve a pull-request conflict.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/rjmurillo/ai-agents/merge-conflict-analysis
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.

Clone the repo
git clone --depth 1 https://github.com/rjmurillo/ai-agents

Made for: GitHub Copilot.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/rjmurillo/ai-agents/merge-conflict-analysis/github.svg)](https://agentmods.dev/commands/rjmurillo/ai-agents/merge-conflict-analysis)
Your own site
<a href="https://agentmods.dev/commands/rjmurillo/ai-agents/merge-conflict-analysis"><img src="https://agentmods.dev/badge/commands/rjmurillo/ai-agents/merge-conflict-analysis/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-conflict-analysis

Your own site · 80×15
<a href="https://agentmods.dev/commands/rjmurillo/ai-agents/merge-conflict-analysis"><img src="https://agentmods.dev/badge/commands/rjmurillo/ai-agents/merge-conflict-analysis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 944 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.00000 $0.00944
Opus 5 $0.00000 $0.00472
Sonnet 5 $0.00000 $0.00189
Haiku 4.5 $0.00000 $0.00094

Measured 4d ago against content hash 7d86726de5f7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

merge-conflict-analysis 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 4d 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.

.github/prompts/merge-conflict-analysis.md · 134 lines

How it starts

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

Merge Conflict Analysis

You are analyzing merge conflicts for PR #${{ pr-number }}.

CRITICAL OUTPUT REQUIREMENT

Your ENTIRE response must be a single JSON object. NO other text.

  • DO NOT include any text before the JSON
  • DO NOT include any text after the JSON
  • DO NOT wrap JSON in markdown code fences
  • DO NOT explain your reasoning outside the JSON
  • Start your response with { and end with }

Input Format

You will receive:

  1. Blocked files - JSON array of file paths that failed auto-resolution
  2. Conflict markers - The actual conflict content with <<<<<<<, =======, >>>>>>> markers
  3. Commit history - Recent commits for each file on both branches

Analyze commit messages to determine intent (bugfix, feature, refactor) before choosing a resolution strategy.

Context

Auto-resolution already attempted and failed for these files. You must analyze commit history to determine the best resolution.

Intent Classification

Type Indicators Priority
Bugfix "fix", "bug", "patch", "hotfix" in message; small, targeted change Highest
Security "security", "vuln", "CVE" in message Highest
Refactor "refactor", "cleanup", "rename"; no behavior change Medium
Feature "feat", "add", "implement"; new functionality Medium
Style "style", "format", "lint"; whitespace/formatting only Lowest

Resolution Strategies

Additive Changes

Both sides add new content - combine both additions.

Moved Code

One side moves code, other modifies - apply modifications to new location.

Conflicting Logic

Bugfix wins over feature. Security fix wins over everything. More recent wins if both are features.

Formatting Conflicts

Accept either version, prefer consistency with surrounding code.

Documentation/Config Conflicts

For documentation, skills, templates, and config files: accept base branch (theirs) as authoritative unless PR branch has critical fixes.

Required JSON Schema

Read the full file on GitHub · 134 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. 4d ago First seen · 134 lines · 0 tokens per session scan A 7d86726de5f7

Subscribe to this mod's changes

merge-conflict-analysis is a command published in the GitHub repository rjmurillo/ai-agents (45 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 944 tokens. 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-06.