Skip to content
Back to skills

Resolve Merge

ASecurity

Use when a merge or rebase has conflicts, including plans and chronicles with colliding names.

  • 12 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added May 26, 2026
developmentgobashgit

Security analysis

A100/100

Scanned November 13, 2026

npx -y skills add reidemeister94/development-skills --skill resolve-merge --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Resolve Merge?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Resolve Merge
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/reidemeister94-resolve-merge/badge)](https://www.skillsdirectory.com/skills/reidemeister94-resolve-merge)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: resolve-merge
description: "Use when a merge or rebase has conflicts, including plans and chronicles with colliding names."
user-invocable: true
allowed-tools: Glob, Grep, Read, Bash, Edit, Write, AskUserQuestion
---

# Resolve Merge Conflicts

1. Verify `MERGE_HEAD` or `REBASE_HEAD`; otherwise stop with `No merge in progress.`
2. Before any write, list conflicts and classify each as AUTO or JUDGMENT.
3. AUTO requires mechanical proof; default to JUDGMENT. AUTO cases:
   - Sides byte-identical (`git show :2:<f>` vs `:3:<f>`) or differing only in whitespace/EOL → take either.
   - AU → `git add`, but `git rm` if its slug already exists in theirs under another name (duplicate).
   - Lock file → checkout one side, regenerate via the package manager.
   - `CHANGELOG.md` → merge unique entries, dedupe, keep category order.
4. When an OURS-only `NNNN__` plan or chronicle collides with a THEIRS number, keep THEIRS. Rename the OURS file to `YYYY-MM-DD__<slug>.md` with its own date and slug, and never give it a new number. Repair its paired record, research, and cross-references. When date names collide, reconcile the same task or give different tasks distinct slugs.
5. Show every conflict with file, code, action, and classification. Ask once: Approve / Modify / Abort. Abort writes nothing.
6. Apply approved AUTO actions; report only counts and failures.
7. For each JUDGMENT file, show exact OURS and THEIRS hunks plus the proposed merge. Ask Approve / Edit / Skip; Skip leaves it conflicted.
8. A file failure stays conflicted and goes under `Skipped`; continue with others.
9. Verify no tracked conflict markers, valid file names and references when relevant, and known build/lint checks.
10. Report `N resolved: X AUTO, Y JUDGMENT; Skipped: …`, then hand off to `/commit` without committing. Stop on failed checks.

On Codex, translate gates with [codex-tools.md](../using-development-skills/references/codex-tools.md).

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.