Resolves Git merge conflicts systematically by assessing damage, understanding both sides, and validating resolution.
Ships in developer. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Resolve Git merge conflicts systematically and safely.
git merge or git rebase fails with conflicts<<<<<<<, =======, >>>>>>>) in filesgit status shows "both modified" files# See all conflicted files
git status
# See the full diff of conflicts
git diff --name-only --diff-filter=U
List all conflicted files and categorize them:
For each conflicted file, understand:
# See what YOUR branch changed
git diff HEAD~1 -- <file>
# See what the OTHER branch changed
git diff MERGE_HEAD~1 -- <file>
# See common ancestor
git show :1:<file> # Base version
git show :2:<file> # Ours (current branch)
git show :3:<file> # Theirs (merging branch)
For simple conflicts (different functionality):
For overlapping conflicts (same code, different changes):
For delete/modify conflicts:
# Mark as resolved
git add <resolved-file>
# Verify no remaining conflicts
git diff --check
# Run tests before completing
npm test # or your test command
# Complete the merge
git commit # or git rebase --continue
<<<<<<< HEAD
function processUser(user) {
validateUser(user);
=======
function processUser(user) {
logUserAccess(user);
>>>>>>> feature-branch
Resolution: Keep both - they're independent additions
function processUser(user) {
validateUser(user);
logUserAccess(user);
<<<<<<< HEAD
const result = items.filter(x => x.active).map(x => x.name);
=======
const result = items.reduce((acc, x) => x.active ? [...acc, x.name] : acc, []);
>>>>>>> feature-branch
Resolution: Choose based on readability/performance needs. The filter().map() is clearer.
<<<<<<< HEAD
const API_URL = 'https://api.prod.example.com';
=======
const API_URL = 'https://api.staging.example.com';
>>>>>>> feature-branch
Resolution: This is environment-specific. Use environment variables instead:
const API_URL = process.env.API_URL || 'https://api.prod.example.com';
# Use a merge tool (if configured)
git mergetool
# Abort if things go wrong
git merge --abort
git rebase --abort
# Accept all of one side (use carefully)
git checkout --ours <file> # Keep your version
git checkout --theirs <file> # Keep their version
# If you messed up the resolution
git checkout -m <file> # Restore conflict markers
# If you committed a bad resolution
git reset --soft HEAD~1 # Undo commit, keep changes
# Then resolve again
# Nuclear option: start over
git merge --abort # or git rebase --abort
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/developer:merge-conflict-surgeonfrom developer
npx claudepluginhub latestaiagents/agent-skills --plugin developer19 skills in this plugin
/ai-code-reviewerUse this skill when reviewing AI-generated code. Activate when the user has code generated by an AI
assistant and wants to review it, validate AI output, check for common AI mistakes, ensure code quality
of generated code, or verify that AI-generated code follows best practices before merging.
/branch-strategy-advisorUse this skill when discussing Git branching strategies. Activate when the user asks about branch naming,
GitFlow, trunk-based development, feature branches, release branches, how to organize branches,
branch protection, or setting up a branching workflow for their team.
/codebase-context-builder4 plugins in one repository ship this exact skill · first indexed Aug 19, 2026
Other plugins' skills for the same job