Skip to content

resolving-merge-conflicts

Use when you need to resolve an in-progress git merge/rebase conflict.

— (0 ratings) 551.3K downloads mattpocock
$ npx skills add https://github.com/mattpocock/skills --skill resolving-merge-conflicts

Skills can run code on your computer. Review the source before installing. This listing is community-made and isn't affiliated with Anthropic.

About this skill

  1. See the current state of the merge/rebase. Check git history, and the conflicting files.
  2. Find the primary sources for each conflict. Understand deeply why each change was made, and what the original intent was. Read the commit messages, check the PRs, check original issues/tickets.
  3. Resolve each hunk. Preserve both intents where possible. Where incompatible, pick the one matching the merge's stated goal and note the trade-off. Do not invent new behaviour. Always resolve; never --abort.
  4. Discover the project's automated checks and run them, typically typecheck, then tests, then format. Fix anything the merge broke.
  5. Finish the merge/rebase. Stage everything and commit. If rebasing, continue the rebase process until all commits are rebased.

Installs: 551.3K | GitHub stars: 334.7K | First seen: Jun 4, 2026

Related skills

New

Coding & dev tools

code-review

Review the changes since a fixed point (commit, branch, tag, or merge-base) along two axes: Standards (does the code follow this repo's documented coding

New • 951K
New

Coding & dev tools

git-guardrails-claude-code

Set up Claude Code hooks to block dangerous git commands (push, reset --hard, clean, branch -D, etc.) before they execute. Use when user wants to prevent

New • 594.2K
New

Coding & dev tools

setup-pre-commit

Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. Use when user wants to add pre-commit hooks, set up

New • 583.3K