merge-resolver

merge-resolver is a skill for Claude Code from rjmurillo/ai-agents. It costs 93 tokens per session (4,084 once invoked), scanned A, original, MIT.

A Git workflow for resolving conflicts when branches or pull requests change the same lines. Git is the version-control system used to track and combine code changes.

In plain words
What is it for?
Use it to resolve branch, pull-request, and session-file conflicts, including conflicts with the main branch.
Why use it?
It uses commit history and the intent behind changes to help choose a suitable combined result.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; mentions .claude-plugin.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is uv run python scripts/validate_session_json.py ".project-toolkit/sessions/<log>.json".

Part of the project-toolkit plugin — 74 skills shipped together

Good fit Use it to resolve branch, pull-request, and session-file conflicts, including conflicts with the main branch.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/rjmurillo/ai-agents
agentmods
npx agentmods add skills/rjmurillo/ai-agents/merge-resolver

Made for: Claude Code.

Or install project-toolkit, the plugin that ships this one along with the rest of its 74 skills.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/rjmurillo/ai-agents/merge-resolver"><img src="https://agentmods.dev/badge/skills/rjmurillo/ai-agents/merge-resolver.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 93 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,084 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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 MCP Rug Pull · line 81
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 241
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
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.00093 $0.04084
Opus 5.5 $0.00037 $0.01634
Sonnet 5.5 $0.00019 $0.00817
Haiku 4.5 $0.00009 $0.00408

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

Security

Grade A, and why

merge-resolver scanned grade A with 1 finding 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 19d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/resolve_pr_conflicts.py, scripts/verify_no_conflict_markers.py), 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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

| All conflicts resolved | `python3 -c "import subprocess, sys; r=subprocess.run(['git','diff','--name-only','--diff-filter=U'],capture_output=True,text=True,encoding='utf-8',errors='replace'); u=[l for l in r.stdout.spl
src/claude/skills/merge-resolver/SKILL.md · 329 lines

How it starts

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

Merge Resolver

Resolve merge conflicts by analyzing git history and commit intent.

Quick Start

# Resolve conflicts for a specific PR
python3 .claude/skills/merge-resolver/scripts/resolve_pr_conflicts.py \
    --pr-number 123 --branch-name "fix/my-feature" --target-branch "main"

# Dry-run mode (no side effects)
python3 .claude/skills/merge-resolver/scripts/resolve_pr_conflicts.py \
    --pr-number 123 --branch-name "fix/test" --dry-run

Triggers

Trigger Phrase Operation
resolve merge conflicts Auto-detect branch/PR and resolve
fix conflicts on this branch Context-aware conflict resolution
PR has conflicts with main Merge-based conflict resolution
can't merge due to conflicts Analyze and fix blocking conflicts
resolve PR conflicts Resolve conflicts for a specific PR number

Process

Phase 0: Execution Capability Precondition (BLOCKING)

Run this self-check FIRST, before any context gathering, analysis, or plan. Conflict resolution requires shell execution: worktree creation, git merge, staging, commit, and git push. Without those tools you can only describe steps, never resolve anything.

Step Action Verification
0.1 Confirm shell/Bash is available (git, worktree creation, git push) A tool result in this run shows a shell command executed
0.2 If shell is unavailable: return immediately with status [BLOCKED], one-line reason, route execution back to the orchestrator, and STOP No resolution plan, phase list, or report is produced

If shell execution is unavailable, do NOT produce a step-by-step resolution plan. A plan reads as completed work and is the exact failure this precondition prevents (issue #2646). Return BLOCKED and route execution back to the orchestrator.

Completion rule (applies to every execution phase below): mark a phase complete ONLY when a tool result in this run proves it ran. A plan is not a completion. Never report "create worktree", "merge", "push", or "run gates" as complete from instructions alone.

Read the full file on GitHub · 329 lines

Files

What ships with it

4 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. 19d ago Changed · -1 lines efb9dd88f88e
  2. 1mo ago Changed · +6 lines 3df45c5e243b
  3. 1mo ago Changed · +1 lines 3f5809144ad2
  4. 1mo ago Changed · +2 lines 97505cbd3c23
  5. 1mo ago Changed f8c67b0b2dbc
  6. 1mo ago First seen · 321 lines · 93 tokens per session scan A 88f9d20e41d1

Subscribe to this mod's changes

merge-resolver is a skill published in the GitHub repository rjmurillo/ai-agents (49 stars, last pushed today), licensed MIT. It adds 93 tokens to every session and 4,084 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). 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

review-remote

Review open PR/MR and publish findings.

juliusz-cwiakalski/agentic-delivery-os · 13 tokens

github-automation

GitHub workflow automation, PR management, issue tracking, and code review coordination. Integrates with GitHub Actions and repository management. Use when: PR creation, code review, issue management, release automation, workflow setup. Skip when: local-only changes, non-GitHub repositories.

ruvnet/ruflo · 61 tokens

turborepo-caching

Configure Turborepo for efficient monorepo builds with local and remote caching. Use when setting up Turborepo, optimizing build pipelines, or implementing distributed caching.

wshobson/agents · 42 tokens

review-this-branch

Run the nohuman review gate (fresh-session adversarial reviewer + tamper guard) over the current branch or a GitHub pull request, with no server, no database, and no onboarding, and relay the pass/fail checklist.

no-human-ai/no_human · 53 tokens

ci-cd-pipeline-authoring

Use when a repository needs CI/CD - author GitHub Actions workflows so TaskTrooper's pipeline auto-detects your validate/build/test jobs and stage/preprod/prod deploys, and so a dispatch delivery profile can dispatch the production deploy.

makifbaysal/tasktrooper · 56 tokens

ase-repo-review

Perform a holistic, human-reviewer-style critique of the currently staged Git changes (or, with --unstaged, of the unstaged and untracked changes, with --branch, of a branch against its base, or, with --commit, of a single commit) and emit an approve/reject verdict with prioritized, severity-tagged, line-cited…

rse/ase · 111 tokens