Skip to content
Back to skills

Resolving Merge Conflicts

ASecurity

Diagnose and resolve an in-progress Git merge, rebase, cherry-pick, or revert conflict while preserving both sides' intent and unrelated work. Use when the user asks to inspect or resolve Git conflict markers or an interrupted integration operation.

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 6, 2026
ai-agentsgogit

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned November 6, 2026

npx -y skills add bolens/agent-skills --skill resolving-merge-conflicts --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Resolving Merge Conflicts?

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

Security grade badge for Resolving Merge Conflicts
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/bolens-resolving-merge-conflicts/badge)](https://www.skillsdirectory.com/skills/bolens-resolving-merge-conflicts)

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: resolving-merge-conflicts
description: Diagnose and resolve an in-progress Git merge, rebase, cherry-pick, or revert conflict while preserving both sides' intent and unrelated work. Use when the user asks to inspect or resolve Git conflict markers or an interrupted integration operation.
---

# Resolve Git Conflicts

When other agents are writing to the repository, use [git-hygiene](../git-hygiene/SKILL.md) to establish the integration owner and pause overlapping writes before resolving or continuing an operation.

1. Read repository instructions. Inspect `git status`, the operation in progress, the conflict stages, relevant history, and the exact unmerged paths. Do not discard unrelated changes.
2. Trace each side to its primary source: commits, tests, specs, issues, and nearby code. Use remote issue or PR data only when access is available and needed.
3. Explain incompatible intent before choosing a side. Preserve both intents when they compose cleanly; otherwise follow the integration goal and record the trade-off. Do not invent unrelated behavior.
4. Edit only conflict-related files unless a small additional change is required to restore consistency. Remove all conflict markers and inspect the resulting diff.
5. Run the repository's relevant formatting, type, build, and test checks. Fix only failures caused by the resolution.
6. Stage resolved paths, continue the operation, or create a commit only when the user's request authorizes that step. Otherwise leave a clean working-tree resolution and give the exact next command.

Aborting may be the safest choice when the operation targets the wrong branch, the intended outcome cannot be established, or continuing would lose work. Never abort, reset, force-push, or discard changes without explicit authorization.

When conflict resolution belongs to a request to get an open PR ready to merge, merge it, or complete a release, automatically use [babysit](../babysit/SKILL.md) for the remaining audit, CI, and delivery steps. Return the resolved head and check evidence to an already active workflow. A local conflict-resolution request alone does not start follow-through or authorize a push.

Files in this skill

  • SKILL.md2.1 KB
  • UPSTREAM.md446 B
  • agents/openai.yaml218 B

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 ai-agents →

Comments

Loading comments…

Newsletter

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