Skip to content
Skillpedia
General coding15k · #10935

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.md

Copy 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

Use this skill to help me: https://github.com/cursor/plugins/blob/main/cursor-team-kit/skills/fix-merge-conflicts/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

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

  1. Detect all conflicting files from git status and conflict markers.
  2. Resolve each conflict with minimal, correctness-first edits.
  3. Prefer preserving both sides when safe. Otherwise, choose the variant that compiles and keeps public behavior stable.
  4. Regenerate lockfiles with package manager tools instead of hand-editing.
  5. Run compile, lint, and relevant tests.
  6. 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

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills