-
See the current state of the merge/rebase. Check git history, and the conflicting files.
-
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.
-
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. -
Discover the project's automated checks and run them, typically typecheck, then tests, then format. Fix anything the merge broke.
-
Finish the merge/rebase. Stage everything and commit. If rebasing, continue the rebase process until all commits are rebased.

Resolving Merge Conflicts
by mattpocockc55ee46073edNo licenseListed Oct 8, 2026Updated Oct 8, 2026
Use when you need to resolve an in-progress git merge/rebase conflict.
Guides an agent through resolving an in-progress git merge or rebase conflict step by step.
- What it does
- This skill provides a five-step procedure for resolving an in-progress git merge or rebase conflict. It covers inspecting the current state and conflicting files, tracing each conflict back to its original intent via commit messages, pull requests and tickets, resolving each hunk while preserving both intents where possible, running the project's automated checks, and finishing the merge or rebase by staging and committing. It is instructions only and produces a completed, committed merge or rebase rather than any file artifact.
- When to use it
- Use it when a git merge or rebase is already in progress and has left conflicting files that need to be resolved. It suits situations where the agent must decide how to reconcile competing changes and then verify the result with the project's own checks.
- Requirements
- Requires a git repository with an in-progress merge or rebase and access to git history, commit messages, pull requests and issue tickets. Running the project's automated checks requires whatever tooling the project uses, such as a typechecker, test suite and formatter. It ships no scripts; it is instructions only.
Source and attribution
Source:mattpocock/skillsinskills/engineering/resolving-merge-conflictsat commitc55ee46
License: No license
Content belongs to its original authors. SourceWeft indexes it from a public repository.
More from mattpocock/skills

Chief Of Staff
mattpocock
Coordinates subagents and schedules to pursue a long-running goal in one session.

Writing For Agents
mattpocock
A reference on writing documents that AI agents consume, such as skills, AGENTS.md and CLAUDE.md files.

Wait What
mattpocock
Re-pitches a confusing message using Simplified Technical English and the project's ubiquitous language.

To Questionnaire
mattpocock
Turns a decision the user cannot answer alone into a Markdown questionnaire for someone else to fill in.

Teach
mattpocock
Teaches a user a topic over multiple sessions, producing HTML lessons, reference sheets and learning records in a workspace.

Handoff
mattpocock
Compacts the current conversation into a handoff document so a fresh agent can continue the work.
More in Software Development

Playground
anthropics
Builds self-contained interactive HTML playgrounds with controls, live preview, and copyable prompt output.

M5 Onboard
anthropics
Provisions M5Stack ESP32 boards by detecting them on USB, flashing UIFlow 2.0 firmware, and installing a MicroPython app bundle.

Cardputer Buddy
anthropics
Guides iterating on a Cardputer-Adv MicroPython app bundle: adding apps, pushing files over USB-serial, tailing logs, and running REPL commands.

Dpop Adoption
Guides implementation of OAuth 2.0 DPoP (RFC 9449) sender-constrained refresh tokens for Google's OAuth platform.

Gemini Live Api
Generates a Gemini Live API WebSocket client class, tests, docs, and a demo UI for bidirectional streaming.

Gemini Api
Guides use of the Gemini API on Google's Agent Platform with the Gen AI SDK across languages and capabilities.