Skip to content
cursor avatar

Fix Merge Conflicts

Resolves merge conflicts non-interactively, then validates the build, tests, and final staged state.

CCM score
56 of 100
skills.sh installs
3K
GitHub stars
20.2K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the full conflict path: detect conflicting files, resolve each one, regenerate lockfiles, and verify the result
  • Prefers keeping both sides when safe, otherwise picks the variant that compiles and keeps public behavior stable
  • Enforces no conflict markers left in any file, minimal edits, and no pushes or tags during resolution
  • Designed for branches with unresolved conflicts that need a reliable path back to a buildable state

Install

$ npx -y skills add cursor/plugins --skill fix-merge-conflicts -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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

Details

Repository
github.com/cursor/plugins
Categories
Git & Releases, Code Review & Quality
First seen
Jun 3, 2026

Questions

What does the fix-merge-conflicts skill do?

The fix-merge-conflicts skill resolves merge conflicts non-interactively, using minimal, correctness-first edits in each conflicting file. It regenerates lockfiles with package manager tools, runs compile, lint and relevant tests, then stages the resolved files and summarizes the key decisions.

How do I install the fix-merge-conflicts skill?

Run npx -y skills add cursor/plugins --skill fix-merge-conflicts -y in your project to install it. Once installed, the agent can detect conflicting files, resolve them and validate the build and tests.

Where does fix-merge-conflicts rank in its category?

It is in the Git & Releases category on Claude Marketplaces, where it ranks in the top 100. It sits alongside skills such as triage, git-guardrails-claude-code, setup-pre-commit, caveman-commit and pr.

Will fix-merge-conflicts push or tag my branch?

No, the skill is set not to push or tag during conflict resolution. It also leaves no conflict markers in any file and avoids broad refactors while resolving conflicts.

More from cursor/plugins

All 93

Similar to Fix Merge Conflicts

More Git & Releases