Skip to content
Back to skills

Github Conflicts

ASecurity

Resolve merge conflicts safely

  • 666 stars
  • 0 votes
  • 0 copies
  • 8 views
  • Added February 8, 2026
toolsbashgit

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill github-conflicts --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Github Conflicts?

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

Security grade badge for Github Conflicts
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-github-conflicts/badge)](https://www.skillsdirectory.com/skills/majiayu000-github-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: github-conflicts
description: Resolve merge conflicts safely
---

# GitHub Conflicts Skill

Safely resolve merge and rebase conflicts with user guidance.

> **See also**: [Shared Conventions](../shared/CONVENTIONS.md) | [Safety Guidelines](../shared/SAFETY.md)

## Purpose

Handle merge conflicts methodically without guessing at resolutions.

## Commands

```bash
git status
git diff
git merge <branch>
git rebase <branch>
git cherry-pick <commit>
git mergetool
git add <file>
git rebase --continue
git merge --abort
git rebase --abort
```

## Conflict Resolution Protocol

**Do not guess at resolutions.** Follow this process:

### 1. Stop and Enumerate

List all conflicting files:
```bash
git status
```

### 2. Analyze Each Conflict

For each conflicting file, show:
- The conflicting sections
- **Ours** (current branch version)
- **Theirs** (incoming version)

```bash
git diff --name-only --diff-filter=U
```

### 3. Present Options

For each conflict, propose:
1. **Accept ours** - keep current branch version
2. **Accept theirs** - take incoming version
3. **Manual merge** - combine both with specific proposal

### 4. Apply Resolution

Only after user confirms:
```bash
# Edit file to resolve
git add <resolved-file>
git rebase --continue  # or git merge --continue
```

## Workflow: Rebase Conflicts

```bash
# Start rebase
git fetch origin
git rebase origin/main

# If conflicts occur:
# 1. List conflicts
git status

# 2. Show conflict details (present to user)

# 3. After user decision, resolve and continue
git add <file>
git rebase --continue
```

## Workflow: Merge Conflicts

```bash
# Start merge
git merge feature-branch

# If conflicts occur:
# 1. List conflicts
git status

# 2. Show conflict details (present to user)

# 3. After user decision, resolve and commit
git add <file>
git commit
```

## Abort Options

If resolution becomes too complex:
```bash
git merge --abort
git rebase --abort
git cherry-pick --abort
```

## Policies

- **Never auto-resolve** conflicts without user confirmation
- Always show both versions before proposing resolution
- Offer abort as an option for complex conflicts
- Verify successful resolution with `git status`
- Run tests after resolving if applicable

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.

Comments

Loading comments…

Newsletter

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