Fix Merge Conflicts

by cursorccb5507cec15No license10K starsListed Oct 8, 2026Updated Oct 8, 2026Repository updated today

Resolve merge conflicts non-interactively, validate build and tests, and finalize conflict resolution

Instructions onlySoftware Development
AI-generated overview

Resolves git merge conflicts non-interactively, validates the build and tests, and summarizes the resolution.

What it does
This skill guides an agent through resolving unresolved git merge conflicts: it detects conflicting files from git status and conflict markers, resolves each with minimal correctness-first edits, and regenerates lockfiles using package manager tools. It then runs compile, lint, and relevant tests, stages the resolved files, and reports files resolved, notable resolution choices, and build/test outcome.
When to use it
Use it when a branch has unresolved merge conflicts and needs a reliable path to a buildable state. It fits situations where conflicts should be resolved without interactive prompts and verified by compiling and testing.
Requirements
Requires a git repository with unresolved merge conflicts, plus the project's package manager, compiler, linter, and test tooling needed to validate the result. It ships no scripts; it is instructions only.

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

Source and attribution

Source:cursor/pluginsincursor-team-kit/skills/fix-merge-conflictsat commitccb5507

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal

Fix Merge Conflicts Agent Skill | SourceWeft