Skip to content
Back to skills

Resolve Conflicts

ASecurity

Finds every conflicted file after a merge or rebase, resolves each with written reasoning and runs the checks before you continue.

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 15, 2026
ai-agentsgit

Security analysis

A100/100

Scanned November 15, 2026

npx -y skills add workspace-templates/ai-agent-templates --skill resolve-conflicts --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Resolve Conflicts?

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

Security grade badge for Resolve Conflicts
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/workspace-templates-resolve-conflicts/badge)](https://www.skillsdirectory.com/skills/workspace-templates-resolve-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: resolve-conflicts
description: Finds every conflicted file after a merge or rebase, resolves each with written reasoning and runs the checks before you continue.
argument-hint: "[hints on which side should win, optional]"
user-invocable: true
disable-model-invocation: true
---

Resolve the merge or rebase conflicts in this repository. Notes: $ARGUMENTS

1. Run `git status` to see whether a merge, rebase or cherry-pick is in progress, and `git diff --name-only --diff-filter=U` for the conflicted files.
2. For each file, view the three versions (`git show :1:file`, `:2:`, `:3:`) and the commit messages on each side (`git log --merge -p -n 3 -- file`). Decide what each side intended.
3. Resolve by combining intents, not by picking a side. For lockfiles, regenerate with the package manager instead of editing markers. For generated files, rerun the generator.
4. Remove every marker and check with `grep -rn "<<<<<<<\|>>>>>>>" .` that none remain.
5. If a conflict changes behavior and you cannot tell which intent wins, leave the file unresolved and ask.
6. Run lint, type check and tests.

Print a table of file, resolution and reason. Then `git add` only the files you resolved, and ask before `git rebase --continue` or `git commit`. Never run `--abort` or `checkout --theirs` without asking.

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.