fix-merge-conflicts
What it does
Lets the assistant work through merge conflicts step by step until the branch builds again. It is for developers who hit conflicts when merging or rebasing.
When to use it
- ✓When your branch has unresolved merge conflicts.
- ✓When you want a build that works again after a conflict.
- ✓When you want the conflicts resolved with minimal changes and a short summary.
Skill link
https://github.com/cursor/plugins/blob/main/cursor-team-kit/skills/fix-merge-conflicts/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“My branch has merge conflicts with main. Resolve them, make sure it builds, and tell me what you chose.”
5 new skills a week. 1 minute to read.
How it works
The assistant finds the conflicting files, resolves each with the smallest correct edit, regenerates lockfiles with the package tool, and runs the build and tests. It stages the results and summarizes the key decisions.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Fix merge conflicts
Trigger
Branch has unresolved merge conflicts and needs a reliable path to a buildable state.
Workflow
- Detect all conflicting files from git status and conflict markers.
- Resolve each conflict with minimal, correctness-first edits.
- Prefer preserving both sides when safe. Otherwise, choose the variant that compiles and keeps public behavior stable.
- Regenerate lockfiles with package manager tools instead of hand-editing.
- Run compile, lint, and relevant tests.
- Stage resolved files and summarize key decisions.
Guardrails
- Keep changes minimal and readable.
- Do not leave conflict markers in any file.
- Avoid broad refactors while resolving conflicts.
- Do not push or tag during conflict resolution.
Output
- Files resolved
- Notable resolution choices
- Build/test outcome
FAQ
Will it push the branch?
No. It does not push or tag while resolving conflicts.
Does it edit lockfiles by hand?
No. It regenerates lockfiles with the package manager instead.
Can conflict markers be left behind?
No. No conflict markers should remain in any file after the resolution.
Details
Original description by the author
Resolve merge conflicts non-interactively, validate build and tests, and finalize conflict resolution
repo: cursor/plugins
Popularity
- GitHub stars
- 15k
- Ranking position
- #10935
- License
- —
- Updated
- 10/31/2026
Comments
- …
More skills from this repository
advisor
15kLets your agent consult a stronger second model at key checkpoints, such as before a big decision or when stuck on an error, if you turn it on.
check-agent-compatibility
15kRuns a full check of whether AI coding agents can start, verify and document a repository, and returns one compatibility score with the main issues.
cli-for-agents
15kTeaches your agent to design or review command-line tools so AI agents can run them without prompts, with clear help text and examples.
continual-learning
15kKeeps your AGENTS.md notes up to date by handing the work of reviewing past chats to a dedicated memory updater.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.