Skip to main content
ClaudeWave
Slash Command1.3k repo starsupdated 3d ago

merge-conflict

Resolve a merge conflict

Install in Claude Code
Copy
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/specstoryai/getspecstory/HEAD/specstory-cli/.claude/commands/merge-conflict.md -o ~/.claude/commands/merge-conflict.md
Then start a new Claude Code session; the slash command loads automatically.

merge-conflict.md

## Context

- Current git status: !`git status`
- Current git diff: !`git diff`

## Your task

Examine the current merge conflict using git commands.

Review each issue conflict by conflict and explain what caused each conflict. Explain what each side of the conflict was attempting to accomplish with their change. 

Importantly, make a suggestion for the best resolution for each conflict, but only resolve them in discussion with me.

Use file names and line numbers to reference the changes, but also sequentially number every observation so we can easily reference them.